From c2dd196db285226f38eb73b454d4c762316e678e Mon Sep 17 00:00:00 2001 From: Jake Fecher Date: Mon, 9 Dec 2024 14:57:29 -0600 Subject: [PATCH] clippy --- compiler/noirc_frontend/src/hir/type_check/errors.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/noirc_frontend/src/hir/type_check/errors.rs b/compiler/noirc_frontend/src/hir/type_check/errors.rs index 26d04cbdca8..15b8d50c78b 100644 --- a/compiler/noirc_frontend/src/hir/type_check/errors.rs +++ b/compiler/noirc_frontend/src/hir/type_check/errors.rs @@ -524,8 +524,8 @@ impl<'a> From<&'a TypeCheckError> for Diagnostic { }, TypeCheckError::TypeAnnotationsNeededForIndex { span } => { Diagnostic::simple_error( - format!("Type annotations required before indexing this array or slice"), - format!("Type annotations needed before this point, can't decide if this is an array or slice"), + "Type annotations required before indexing this array or slice".into(), + "Type annotations needed before this point, can't decide if this is an array or slice".into(), *span, ) },