From 9fc327146c61706f1726efd92237355a019299c5 Mon Sep 17 00:00:00 2001 From: Alan Lawrence Date: Mon, 2 Dec 2024 21:24:38 +0000 Subject: [PATCH] clippy --- hugr-core/src/hugr/monomorphize.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hugr-core/src/hugr/monomorphize.rs b/hugr-core/src/hugr/monomorphize.rs index 1751ccc86..cc7bdf0b7 100644 --- a/hugr-core/src/hugr/monomorphize.rs +++ b/hugr-core/src/hugr/monomorphize.rs @@ -313,7 +313,7 @@ mod test { for n in expected_mangled_names.iter() { let mono_fn = funcs.remove(n).unwrap(); - assert!((*mono_fn).signature.params().is_empty()); + assert!(mono_fn.signature.params().is_empty()); } assert_eq!( @@ -329,7 +329,7 @@ mod test { .filter_map(|n| nopoly.get_optype(n).as_func_defn().map(|fd| (&fd.name, fd))) .collect::>(); - assert!(funcs.values().all(|fd| (*fd).signature.params().is_empty())); + assert!(funcs.values().all(|fd| fd.signature.params().is_empty())); for n in expected_mangled_names { assert!(funcs.remove(&n).is_some()); }