Skip to content

Commit

Permalink
undo workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Dec 10, 2024
1 parent fdf24d9 commit 3dcb88e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions hugr-core/src/ops/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,7 @@ impl DataflowOpTrait for OpaqueOp {
}

fn signature(&self) -> Cow<'_, Signature> {
// TODO: Return a borrowed cow once
// https://github.com/CQCL/hugr/issues/1758
// gets fixed
Cow::Owned(
self.signature
.clone()
.with_extension_delta(self.extension.clone()),
)
Cow::Borrowed(&self.signature)
}
}

Expand Down

0 comments on commit 3dcb88e

Please sign in to comment.