diff --git a/crates/rustfix/tests/parse_and_replace.rs b/crates/rustfix/tests/parse_and_replace.rs index 11905c69ba2..0c7e64a3b2a 100644 --- a/crates/rustfix/tests/parse_and_replace.rs +++ b/crates/rustfix/tests/parse_and_replace.rs @@ -234,7 +234,7 @@ fn get_fixture_files(p: &str) -> Result, Error> { fn assert_fixtures(dir: &str, mode: &str) { let files = get_fixture_files(dir) - .with_context(|| format!("couldn't load dir `{}`", dir)) + .with_context(|| format!("couldn't load dir `{dir}`")) .unwrap(); let mut failures = 0; diff --git a/src/cargo/ops/cargo_add/mod.rs b/src/cargo/ops/cargo_add/mod.rs index 22a1f8a7004..c6f71847df3 100644 --- a/src/cargo/ops/cargo_add/mod.rs +++ b/src/cargo/ops/cargo_add/mod.rs @@ -1087,7 +1087,7 @@ fn find_workspace_dep(toml_key: &str, root_manifest: &Path) -> CargoResult