From 6c0bf12ecdc7d4e0e03aed0bf98f3a6d8ca17c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Sat, 20 Dec 2025 04:32:43 +0300 Subject: [PATCH] ctutils: fix `clippy::bool_assert_comparison` --- ctutils/src/choice.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctutils/src/choice.rs b/ctutils/src/choice.rs index 6163c69a..8591da86 100644 --- a/ctutils/src/choice.rs +++ b/ctutils/src/choice.rs @@ -198,8 +198,8 @@ mod tests { #[test] fn to_bool() { - assert_eq!(Choice::new(0).to_bool(), false); - assert_eq!(Choice::new(1).to_bool(), true); + assert!(!Choice::new(0).to_bool()); + assert!(Choice::new(1).to_bool()); } #[test]