]> git.proxmox.com Git - cargo.git/commitdiff
style(add): Use implicit argument capture
authorEd Page <eopage@gmail.com>
Tue, 13 Sep 2022 16:18:00 +0000 (11:18 -0500)
committerEd Page <eopage@gmail.com>
Tue, 13 Sep 2022 16:18:00 +0000 (11:18 -0500)
src/cargo/ops/cargo_add/mod.rs

index b6491f59dbbf9490934f800ac64c2b2c5a65f7b2..48963284e0e7717edcb1914139e1079559b0f1cd 100644 (file)
@@ -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()
             }