Skip to content

Commit

Permalink
Ooops, allow creation only for whole Hugr, anything else is not usable
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Oct 9, 2023
1 parent dc85d3e commit 783e5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hugr/views/root_checked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use super::{check_tag, RootTagged};
/// (Just provides static checking of the type of the root node)
pub struct RootChecked<H, Root = Node>(H, PhantomData<Root>);

impl<H: RootTagged, Root: NodeHandle> RootChecked<H, Root> {
impl<H: RootTagged + AsRef<Hugr>, Root: NodeHandle> RootChecked<H, Root> {
/// Create a hierarchical view of a whole HUGR
///
/// # Errors
Expand Down

0 comments on commit 783e5a3

Please sign in to comment.