Skip to content

Commit

Permalink
style(add): Use implicit argument capture
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 13, 2022
1 parent 1a20200 commit 5a6cfc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/ops/cargo_add/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ fn print_msg(shell: &mut Shell, dep: &DependencyUI, section: &[String]) -> Cargo
.and_then(|v| semver::VersionReq::parse(v).ok())
.and_then(|v| precise_version(&v));
if version_req.as_deref() != Some(version.as_str()) {
format!(" as of v{}", version)
format!(" as of v{version}")
} else {
"".to_owned()
}
Expand Down

0 comments on commit 5a6cfc9

Please sign in to comment.