Skip to content

Commit

Permalink
temp fix waiting for 1758
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Dec 10, 2024
1 parent 5c18ab0 commit a9732c6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hugr-core/src/ops/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,14 @@ impl DataflowOpTrait for OpaqueOp {
}

fn signature(&self) -> Cow<'_, Signature> {
Cow::Borrowed(&self.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()),
)
}
}

Expand Down

0 comments on commit a9732c6

Please sign in to comment.