Skip to content

Commit

Permalink
use base_hugr more to avoid double-filtering (fixes test)
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Sep 12, 2023
1 parent 8b3fbe4 commit 054bac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hugr/views/sibling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ where

#[inline]
fn get_optype(&self, node: Node) -> &OpType {
self.hugr.get_optype(node)
self.base_hugr().get_optype(node)
}

#[inline]
Expand Down

0 comments on commit 054bac3

Please sign in to comment.