diff --git a/hugr-core/src/ops/custom.rs b/hugr-core/src/ops/custom.rs index eed0a761f..91b93e332 100644 --- a/hugr-core/src/ops/custom.rs +++ b/hugr-core/src/ops/custom.rs @@ -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) } }