Skip to content

Commit 7c5afc2

Browse files
committed
uefi-raw: fix clippy
1 parent 95a79f2 commit 7c5afc2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

uefi-raw/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ mod tests {
190190
assert_eq!(Boolean::from(false).0, 0);
191191
assert_eq!(Boolean::TRUE.0, 1);
192192
assert_eq!(Boolean::FALSE.0, 0);
193-
assert_eq!(bool::from(Boolean(0b0)), false);
194-
assert_eq!(bool::from(Boolean(0b1)), true);
193+
assert!(!bool::from(Boolean(0b0)));
194+
assert!(bool::from(Boolean(0b1)));
195195
// We do it as in C: Every bit pattern not 0 is equal to true.
196-
assert_eq!(bool::from(Boolean(0b11111110)), true);
197-
assert_eq!(bool::from(Boolean(0b11111111)), true);
196+
assert!(bool::from(Boolean(0b11111110)));
197+
assert!(bool::from(Boolean(0b11111111)));
198198
}
199199
}

0 commit comments

Comments
 (0)