Skip to content

Commit

Permalink
cargo fmt and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm committed Aug 30, 2023
1 parent fc2cf11 commit e3437a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 5 additions & 4 deletions crates/noirc_frontend/src/hir/type_check/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@ impl From<TypeCheckError> for Diagnostic {
let msg = format!("Function expects {expected} parameter{empty_or_s} but {found} {was_or_were} given");
Diagnostic::simple_error(msg, String::new(), span)
}
TypeCheckError::OverflowingBitShift { span, .. } => {
let msg = format!("This arithmetic operation will overflow");
Diagnostic::simple_error(msg, error.to_string(), span)
}
TypeCheckError::OverflowingBitShift { span, .. } => Diagnostic::simple_error(
"This arithmetic operation will overflow".to_string(),
error.to_string(),
span,
),
TypeCheckError::InvalidCast { span, .. }
| TypeCheckError::ExpectedFunction { span, .. }
| TypeCheckError::AccessUnknownMember { span, .. }
Expand Down
1 change: 0 additions & 1 deletion crates/noirc_frontend/src/hir/type_check/stmt.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use acvm::FieldElement;
use iter_extended::vecmap;
use noirc_errors::{Location, Span};

Expand Down

0 comments on commit e3437a6

Please sign in to comment.