Skip to content

Commit

Permalink
clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Arrowana committed Oct 12, 2023
1 parent 518b390 commit 4cec0b4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions avm/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ fn parse_install_target(version_or_commit: &str) -> Result<InstallTarget, Error>
.or_else(|version_error| {
avm::check_and_get_full_commit(version_or_commit)
.map(InstallTarget::Commit)
.or_else(|commit_error| {
Err(anyhow!(
"Not a valid version or commit: {version_error}, {commit_error}"
))
.map_err(|commit_error| {
anyhow!("Not a valid version or commit: {version_error}, {commit_error}")
})
})
}
Expand Down

0 comments on commit 4cec0b4

Please sign in to comment.