From a7ec3b035e2c780d4a67116525ddc354e7e41ff3 Mon Sep 17 00:00:00 2001 From: Daniel Frederico Lins Leite Date: Thu, 14 Nov 2024 10:39:31 -0300 Subject: [PATCH] clippy and fmt issues --- .../src/semantic_analysis/ast_node/declaration/auto_impl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway-core/src/semantic_analysis/ast_node/declaration/auto_impl.rs b/sway-core/src/semantic_analysis/ast_node/declaration/auto_impl.rs index 6a225edfcfd..9efcc2392d3 100644 --- a/sway-core/src/semantic_analysis/ast_node/declaration/auto_impl.rs +++ b/sway-core/src/semantic_analysis/ast_node/declaration/auto_impl.rs @@ -502,7 +502,7 @@ where fn generate_type(engines: &Engines, t: &TypeArgument) -> Option { match &*engines.te().get(t.type_id) { // when a function does not define a return type, the span points to the whole signature. - TypeInfo::Tuple(v) if v.is_empty() => return Some("()".into()), + TypeInfo::Tuple(v) if v.is_empty() => Some("()".into()), _ => Some(t.span().as_str().to_string()), } }