Skip to content

Commit

Permalink
remove unneeded clone
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Oct 21, 2024
1 parent 440f9a2 commit 9dd7469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugr-core/src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ mod test {
#[case::cfg(simple_cfg_hugr(), false)]
#[case::unsupported_input(simple_input_node(), true)]
fn hugr_to_package(#[case] hugr: Hugr, #[case] errors: bool) {
match (&Package::from_hugr(hugr.clone()), errors) {
match (&Package::from_hugr(hugr), errors) {
(Ok(package), false) => {
assert_eq!(package.modules.len(), 1);
let root_op = package.modules[0].get_optype(package.modules[0].root());
Expand Down

0 comments on commit 9dd7469

Please sign in to comment.