Skip to content

Commit 565fa04

Browse files
committed
Replace an unnecessary .get().is_some() check
This fixes a warning from the new `unnecessary_get_then_check` Clippy lint [0] that got added in `1.78.0`. [0]: https://rust-lang.github.io/rust-clippy/master/index.html#/unnecessary_get_then_check Signed-off-by: Michael Weiss <[email protected]>
1 parent a7e5680 commit 565fa04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/not_validated.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ mod tests {
298298
assert!(changelog.is_ok());
299299
let changelog = changelog.unwrap();
300300
for i in 0..=CONFIGURATION_VERSION {
301-
assert!(changelog.get(&i.to_string()).is_some());
301+
assert!(changelog.contains_key(&i.to_string()));
302302
}
303303
}
304304

0 commit comments

Comments
 (0)