Skip to content

Commit c8d6964

Browse files
committed
Fix CC_FORCE_DISABLE=0 evaluating to true
1 parent d2dc6a9 commit c8d6964

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4158,7 +4158,7 @@ fn is_disabled() -> bool {
41584158
// Not set? Not disabled.
41594159
None => false,
41604160
// Respect `CC_FORCE_DISABLE=0` and some simple synonyms.
4161-
Some(v) if &*v != "0" && &*v != "false" && &*v != "no" => false,
4161+
Some(v) if &*v == "0" || &*v == "false" || &*v == "no" => false,
41624162
// Otherwise, we're disabled. This intentionally includes `CC_FORCE_DISABLE=""`
41634163
Some(_) => true,
41644164
}

0 commit comments

Comments
 (0)