Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
NobodyXu authored Oct 6, 2024
1 parent 9ea363f commit 71d2ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3752,7 +3752,7 @@ impl Build {
/// get boolean flag that is either true or false
fn getenv_boolean(&self, v: &str) -> bool {
match self.getenv(v) {
Some(s) => &*s != "0" && &*s != "false" && &*s != "",
Some(s) => &*s != "0" && &*s != "false" && !s.is_empty(),
None => false,
}
}
Expand Down

0 comments on commit 71d2ecf

Please sign in to comment.