Skip to content

Commit

Permalink
Merge pull request #339 from andrewliebenow/clippy-needless-borrow
Browse files Browse the repository at this point in the history
Add "needless_borrow" lint
  • Loading branch information
jgarzik authored Oct 17, 2024
2 parents 19ac67c + ba8f194 commit 3d42f44
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 109 deletions.
2 changes: 1 addition & 1 deletion file/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ fn analyze_file(mut path: String, args: &Args, magic_files: &Vec<PathBuf>) {
println!("{path}: empty");
return;
}
match get_type_from_magic_file_dbs(&PathBuf::from(&path), &magic_files) {
match get_type_from_magic_file_dbs(&PathBuf::from(&path), magic_files) {
Some(f_type) => println!("{path}: {f_type}"),
None => println!("{path}: data"),
}
Expand Down
2 changes: 1 addition & 1 deletion fs/df.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ impl Mount {
let percentage_used = percentage_used.ceil() as u32;

FieldsData {
fields: &fields,
fields: fields,
source: &self.devname,
size: total,
used,
Expand Down
Loading

0 comments on commit 3d42f44

Please sign in to comment.