From fbcaa62e87d4a958ceb6600c8c375223b37b096f Mon Sep 17 00:00:00 2001 From: Volker Mische Date: Tue, 17 Oct 2023 13:04:42 +0200 Subject: [PATCH] chore: fix Clippy warning --- tests/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib.rs b/tests/lib.rs index 10e84d0..212aa62 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -222,6 +222,6 @@ mod no_std_tests { // This should not panic, but should return an error. // bad_cid created during fuzz testing let bad_cid = [255, 255, 255, 255, 0, 6, 85, 0]; - assert_eq!(Cid::read_bytes(&bad_cid[..]).is_ok(), false); + assert!(Cid::read_bytes(&bad_cid[..]).is_err()); } }