Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Dec 7, 2024
1 parent 3c431e0 commit 605f32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ fn is_backtrace_runtime_enabled() -> bool {
std::env::var("RUST_BACKTRACE")
.ok()
.and_then(|s| i32::from_str(&s).ok())
.map_or(false, |val| val != 0)
.is_some_and(|val| val != 0)
}

0 comments on commit 605f32c

Please sign in to comment.