Skip to content

Commit 5a6cfc9

Browse files
committed
style(add): Use implicit argument capture
1 parent 1a20200 commit 5a6cfc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/cargo_add/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ fn print_msg(shell: &mut Shell, dep: &DependencyUI, section: &[String]) -> Cargo
784784
.and_then(|v| semver::VersionReq::parse(v).ok())
785785
.and_then(|v| precise_version(&v));
786786
if version_req.as_deref() != Some(version.as_str()) {
787-
format!(" as of v{}", version)
787+
format!(" as of v{version}")
788788
} else {
789789
"".to_owned()
790790
}

0 commit comments

Comments
 (0)