Skip to content

Commit

Permalink
Make Clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Nov 18, 2024
1 parent 8d7d6ec commit d81c3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,5 @@ fn udeps() {

#[must_use]
pub fn enabled(key: &str) -> bool {
std::env::var(key).map_or(false, |value| value != "0")
std::env::var(key).is_ok_and(|value| value != "0")
}

0 comments on commit d81c3a0

Please sign in to comment.