From 729f7efbd8d39fbe2c70947a4ae56cae85cd0092 Mon Sep 17 00:00:00 2001 From: Michael Montour Date: Fri, 27 Sep 2024 14:46:20 -0700 Subject: [PATCH] More "clippy" fixes. Changes to be committed: modified: crates/types/src/hybrid_compute.rs --- crates/types/src/hybrid_compute.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/types/src/hybrid_compute.rs b/crates/types/src/hybrid_compute.rs index 9f5ef87..6129ff6 100644 --- a/crates/types/src/hybrid_compute.rs +++ b/crates/types/src/hybrid_compute.rs @@ -606,9 +606,9 @@ mod test { let t_no = "0x5f41415f545249479c6df0d4c9d8f527221b59c66ad5279c16a1dbc221e8f4e33617575840a20013d516f1be1937bb52bbd7d525d996fd557d3d597f97e0d7ba00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001".parse::().unwrap(); let t_yes = "0x5f48435f545249479c6df0d4c9d8f527221b59c66ad5279c16a1dbc221e8f4e33617575840a20013d516f1be1937bb52bbd7d525d996fd557d3d597f97e0d7ba00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001".parse::().unwrap(); let t_short = "0x5f48435f545249479c6df0d4c9d8f527221b59c66ad5279c16a1dbc221e8f4e33617575840a20013d516f1be1937bb52bbd7d525d996fd557d3d597f97e0d7".parse::().unwrap(); - assert_eq!(check_trigger(&t_no), false); - assert_eq!(check_trigger(&t_yes), true); - assert_eq!(check_trigger(&t_short), false); + assert!(!check_trigger(&t_no)); + assert!(check_trigger(&t_yes)); + assert!(!check_trigger(&t_short)); } #[test]