From 3dcb88e9372dda33f58c5c311da910a0dc75364c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= Date: Tue, 10 Dec 2024 15:20:18 +0000 Subject: [PATCH] undo workaround --- hugr-core/src/ops/custom.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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) } }