Skip to content

Commit 631e7da

Browse files
Fix new lint warning in clippy_config
1 parent 22f0c00 commit 631e7da

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

clippy_config/src/conf.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ macro_rules! define_Conf {
173173
}
174174
})*
175175
// ignore contents of the third_party key
176-
Ok(Field::third_party) => drop(map.next_value::<IgnoredAny>())
176+
Ok(Field::third_party) => {
177+
let _ = map.next_value::<IgnoredAny>();
178+
}
177179
}
178180
}
179181
let conf = Conf { $($name: $name.unwrap_or_else(defaults::$name),)* };

clippy_dev/src/update_lints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ fn try_rename_file(old_name: &Path, new_name: &Path) -> bool {
999999
match fs::rename(old_name, new_name) {
10001000
Ok(()) => true,
10011001
Err(e) => {
1002-
drop(fs::remove_file(new_name));
1002+
let _ = fs::remove_file(new_name);
10031003
if e.kind() == io::ErrorKind::NotFound {
10041004
false
10051005
} else {

0 commit comments

Comments
 (0)