Skip to content

Commit

Permalink
Address Clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Jul 31, 2024
1 parent bf54536 commit bd7256f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit bd7256f

Please sign in to comment.