Skip to content

Commit

Permalink
feat: Extend Command::optype lifetime (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmondada authored Aug 28, 2024
1 parent 3d32130 commit 7c83ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tket2/src/circuit/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl<'circ, T: HugrView> Command<'circ, T> {

/// Returns the [`OpType`] of the command.
#[inline]
pub fn optype(&self) -> &OpType {
pub fn optype(&self) -> &'circ OpType {
self.circ.hugr().get_optype(self.node)
}

Expand Down

0 comments on commit 7c83ba8

Please sign in to comment.