From e3437a6824d88e4363c679fb7927b5b8fd020bce Mon Sep 17 00:00:00 2001 From: vezenovm Date: Wed, 30 Aug 2023 20:51:54 +0000 Subject: [PATCH] cargo fmt and clippy --- crates/noirc_frontend/src/hir/type_check/errors.rs | 9 +++++---- crates/noirc_frontend/src/hir/type_check/stmt.rs | 1 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/noirc_frontend/src/hir/type_check/errors.rs b/crates/noirc_frontend/src/hir/type_check/errors.rs index 31812a105e8..7e98c35b324 100644 --- a/crates/noirc_frontend/src/hir/type_check/errors.rs +++ b/crates/noirc_frontend/src/hir/type_check/errors.rs @@ -164,10 +164,11 @@ impl From 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, .. } diff --git a/crates/noirc_frontend/src/hir/type_check/stmt.rs b/crates/noirc_frontend/src/hir/type_check/stmt.rs index dbad9617396..c3912314c3c 100644 --- a/crates/noirc_frontend/src/hir/type_check/stmt.rs +++ b/crates/noirc_frontend/src/hir/type_check/stmt.rs @@ -1,4 +1,3 @@ -use acvm::FieldElement; use iter_extended::vecmap; use noirc_errors::{Location, Span};