Skip to content

Commit

Permalink
Merge pull request #55 from hiro-o918/fix/clippy
Browse files Browse the repository at this point in the history
🔨 make ci fail on clippy warning
  • Loading branch information
hiro-o918 authored Jul 30, 2022
2 parents 52058e2 + 7c77a3b commit 25b724e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ jobs:
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
args: --all-features -- -D warnings
6 changes: 1 addition & 5 deletions src/creds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,7 @@ fn parse_aws_credentials(file: &File) -> Result<CredentialData, ctx::CTXError> {
.context("failed to deserialize credentials".to_string())
.map_or_else(
|e| Err(ctx::CTXError::CredentialsIsBroken { source: Some(e) }),
|h| {
Ok(h.into_iter()
.map(|(k, v)| (k.to_string(), Rc::new(v)))
.collect())
},
|h| Ok(h.into_iter().map(|(k, v)| (k, Rc::new(v))).collect()),
)
}

Expand Down

0 comments on commit 25b724e

Please sign in to comment.