From 140297bcc3320c1b00fd585d28d5d3566577eb89 Mon Sep 17 00:00:00 2001 From: Volkan Sagcan Date: Mon, 14 Oct 2024 11:53:52 +0200 Subject: [PATCH] chore: cargo clippy --- src/codegen/generators/expression_generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen/generators/expression_generator.rs b/src/codegen/generators/expression_generator.rs index 8f5942e2a1..507c857d83 100644 --- a/src/codegen/generators/expression_generator.rs +++ b/src/codegen/generators/expression_generator.rs @@ -684,7 +684,7 @@ impl<'ink, 'b> ExpressionCodeGenerator<'ink, 'b> { } else { // TODO: using the global context we could get a slice here; currently not possible because the // global context isn't passed into codegen - Err(Diagnostic::new(&format!("{element:?} not a direct access")) + Err(Diagnostic::new(format!("{element:?} not a direct access")) .with_error_code("E055") .with_location(element.get_location())) }?;