Skip to content

Commit

Permalink
Fix new lint warning in clippy_config
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Nov 28, 2023
1 parent de617dd commit cd038a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion clippy_config/src/conf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ macro_rules! define_Conf {
}
})*
// ignore contents of the third_party key
Ok(Field::third_party) => drop(map.next_value::<IgnoredAny>())
Ok(Field::third_party) => {
let _ = map.next_value::<IgnoredAny>();
}
}
}
let conf = Conf { $($name: $name.unwrap_or_else(defaults::$name),)* };
Expand Down
2 changes: 1 addition & 1 deletion clippy_dev/src/update_lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ fn try_rename_file(old_name: &Path, new_name: &Path) -> bool {
match fs::rename(old_name, new_name) {
Ok(()) => true,
Err(e) => {
drop(fs::remove_file(new_name));
let _ = fs::remove_file(new_name);
if e.kind() == io::ErrorKind::NotFound {
false
} else {
Expand Down

0 comments on commit cd038a3

Please sign in to comment.