Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Dec 2, 2024
1 parent 4429152 commit 9fc3271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hugr-core/src/hugr/monomorphize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand All @@ -329,7 +329,7 @@ mod test {
.filter_map(|n| nopoly.get_optype(n).as_func_defn().map(|fd| (&fd.name, fd)))
.collect::<HashMap<_, _>>();

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());
}
Expand Down

0 comments on commit 9fc3271

Please sign in to comment.