Skip to content

Commit 5f0b306

Browse files
authored
ctutils: fix clippy::bool_assert_comparison (#1260)
1 parent 3a9a3ac commit 5f0b306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ctutils/src/choice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ mod tests {
198198

199199
#[test]
200200
fn to_bool() {
201-
assert_eq!(Choice::new(0).to_bool(), false);
202-
assert_eq!(Choice::new(1).to_bool(), true);
201+
assert!(!Choice::new(0).to_bool());
202+
assert!(Choice::new(1).to_bool());
203203
}
204204

205205
#[test]

0 commit comments

Comments
 (0)