Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Aug 29, 2023
1 parent f797080 commit bea1d94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/extension/infer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ mod test {
let lift_node = hugr.add_node_with_parent(
child,
NodeType::open_extensions(ops::LeafOp::Lift {
type_row: just_bool.clone(),
type_row: just_bool,
new_extension: "C".into(),
}),
)?;
Expand Down
4 changes: 2 additions & 2 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ impl Type {
TypeEnum::Sum(SumType::Simple(_)) => Ok(()), // No leaves there
TypeEnum::Prim(PrimType::Alias(_)) => Ok(()),
TypeEnum::Prim(PrimType::Extension(custy)) => custy.validate(extension_registry),
TypeEnum::Prim(PrimType::Function(ft)) => (*ft)
TypeEnum::Prim(PrimType::Function(ft)) => ft
.input
.iter()
.chain((*ft).output.iter())
.chain(ft.output.iter())
.try_for_each(|t| t.validate(extension_registry)),
}
}
Expand Down

0 comments on commit bea1d94

Please sign in to comment.