Address clippy warnings

This commit is contained in:
topjohnwu
2025-01-30 02:19:30 +08:00
committed by John Wu
parent 7f7f625864
commit c05e963f37
3 changed files with 22 additions and 29 deletions
+1 -1
View File
@@ -70,5 +70,5 @@ pub mod ffi {
#[inline(always)]
pub(crate) fn check_env(env: &str) -> bool {
env::var(env).map_or(false, |var| var == "true")
env::var(env).is_ok_and(|var| var == "true")
}