diff --git a/hugr-cli/src/main.rs b/hugr-cli/src/main.rs index 20f602fed..b9d1ec5e9 100644 --- a/hugr-cli/src/main.rs +++ b/hugr-cli/src/main.rs @@ -30,7 +30,7 @@ fn run_validate(mut args: validate::ValArgs) { let result = args.run(); if let Err(e) = result { - if args.verbosity(Level::Error) { + if args.test_verbosity(Level::Error) { eprintln!("{}", e); } std::process::exit(1); diff --git a/hugr-cli/src/validate.rs b/hugr-cli/src/validate.rs index b7fac3b5c..c3d7fd2ac 100644 --- a/hugr-cli/src/validate.rs +++ b/hugr-cli/src/validate.rs @@ -26,14 +26,14 @@ impl ValArgs { /// Run the HUGR cli and validate against an extension registry. pub fn run(&mut self) -> Result<(Vec, ExtensionRegistry), CliError> { let result = self.hugr_args.validate()?; - if self.verbosity(Level::Info) { + if self.test_verbosity(Level::Info) { eprintln!("{}", VALID_PRINT); } Ok(result) } /// Test whether a `level` message should be output. - pub fn verbosity(&self, level: Level) -> bool { + pub fn test_verbosity(&self, level: Level) -> bool { self.hugr_args.verbosity(level) } } diff --git a/hugr/src/lib.rs b/hugr/src/lib.rs index f845a2653..e4fa3ee99 100644 --- a/hugr/src/lib.rs +++ b/hugr/src/lib.rs @@ -151,6 +151,3 @@ pub use hugr_core::hugr::{Hugr, HugrView, SimpleReplacement}; // Re-export macros. pub use hugr_core::macros::{const_extension_ids, type_row}; - -/// A dummy non-breaking change to test the semver-checks workflow. -pub struct DummyNonBreakingChange;