Skip to content

Commit

Permalink
Replace an unnecessary .get().is_some() check
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
primeos-work committed Apr 2, 2024
1 parent a7e5680 commit 565fa04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/not_validated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ mod tests {
assert!(changelog.is_ok());
let changelog = changelog.unwrap();
for i in 0..=CONFIGURATION_VERSION {
assert!(changelog.get(&i.to_string()).is_some());
assert!(changelog.contains_key(&i.to_string()));
}
}

Expand Down

0 comments on commit 565fa04

Please sign in to comment.