From d6b03a84a1b08d1a691d9308a3a8ed6ae25ff925 Mon Sep 17 00:00:00 2001 From: Pushkar Mishra Date: Wed, 6 Nov 2024 05:25:13 +0000 Subject: [PATCH] lint Signed-off-by: Pushkar Mishra --- packages/@winglang/wingc/src/lsp/completions.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/@winglang/wingc/src/lsp/completions.rs b/packages/@winglang/wingc/src/lsp/completions.rs index 4c84a4fb977..9a34f530c35 100644 --- a/packages/@winglang/wingc/src/lsp/completions.rs +++ b/packages/@winglang/wingc/src/lsp/completions.rs @@ -485,7 +485,8 @@ pub fn on_completion(params: lsp_types::CompletionParams) -> CompletionResponse .pos_args .iter() .filter(|a| !types.get_expr_type(a).is_unresolved()) - .count() == func.parameters.len() - 1 + .count() + == func.parameters.len() - 1 { completions.extend(get_inner_struct_completions(structy, arg_list_strings)); }