diff --git a/Cargo.toml b/Cargo.toml index f439f17..1236f7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,6 +24,9 @@ members = [ rust_2018_idioms = "deny" unused_crate_dependencies = "deny" +[workspace.lints.clippy] +lint_groups_priority = { level = "allow", priority = 1 } # Remove after 1.80. https://github.com/rust-lang/rust-clippy/issues/12270 + [workspace.dependencies] argh = { version = "0.1.12", default-features = false } registry-conformance = { version = "0.5.0", registry = "registry-conformance" } diff --git a/src/main.rs b/src/main.rs index ee37fc2..f5924c1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -751,7 +751,7 @@ impl Registry { fn crate_file_path_for(&self, name: &CrateName, version: &Version) -> PathBuf { let mut crate_file_path = self.crate_dir_for(name); - crate_file_path.push(&format!("{}.crate", version)); + crate_file_path.push(format!("{}.crate", version)); crate_file_path } }