Skip to content

Commit

Permalink
test breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Oct 18, 2024
1 parent b5b88d9 commit d482fa9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hugr-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions hugr-cli/src/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ impl ValArgs {
/// Run the HUGR cli and validate against an extension registry.
pub fn run(&mut self) -> Result<(Vec<Hugr>, 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)
}
}
Expand Down
3 changes: 0 additions & 3 deletions hugr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit d482fa9

Please sign in to comment.