Skip to content

Commit

Permalink
chore: change 'unnecessary pub' error to a warning (#2064)
Browse files Browse the repository at this point in the history
change 'unnecessary pub' error to a warning
  • Loading branch information
kek kek kek authored Jul 27, 2023
1 parent ad118eb commit 7d61d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/noirc_frontend/src/hir/resolution/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl From<ResolverError> for Diagnostic {
ResolverError::UnnecessaryPub { ident, position } => {
let name = &ident.0.contents;

let mut diag = Diagnostic::simple_error(
let mut diag = Diagnostic::simple_warning(
format!("unnecessary pub keyword on {position} for function {name}"),
format!("unnecessary pub {position}"),
ident.0.span(),
Expand Down

0 comments on commit 7d61d98

Please sign in to comment.