Skip to content

Commit

Permalink
Make HugrMut pub(crate) not pub
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Jun 7, 2023
1 parent 6e46bc3 commit 1bb79d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hugr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub mod serialize;
pub mod validate;
pub mod view;

pub use self::hugrmut::HugrMut;
pub(crate) use self::hugrmut::HugrMut;
use self::multiportgraph::MultiPortGraph;
pub use self::validate::ValidationError;

Expand Down
2 changes: 1 addition & 1 deletion src/hugr/hugrmut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::ops::OpType;
use crate::{Hugr, Port};

/// Functions for low-level building of a HUGR. (Or, in the future, a subregion thereof)
pub trait HugrMut: AsRef<Hugr> + AsMut<Hugr> {
pub(crate) trait HugrMut: AsRef<Hugr> + AsMut<Hugr> {
/// Add a node to the graph.
fn add_op(&mut self, op: impl Into<OpType>) -> Node;

Expand Down

0 comments on commit 1bb79d2

Please sign in to comment.