We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f95004 commit ac7fb70Copy full SHA for ac7fb70
compiler-core/src/language_server/code_action.rs
@@ -1430,7 +1430,10 @@ impl<'ast> ast::visit::Visit<'ast> for AnnotateTopLevelDefinitions<'_> {
1430
1431
fn visit_typed_function(&mut self, fun: &'ast ast::TypedFunction) {
1432
// Don't annotate already annotated arguments
1433
- let arguments_to_annotate = fun.arguments().iter().filter(|argument| argument.annotation.is_none());
+ let arguments_to_annotate = fun
1434
+ .arguments
1435
+ .iter()
1436
+ .filter(|argument| argument.annotation.is_none());
1437
let return_annotation_needed = fun.return_annotation.is_none();
1438
1439
if arguments_to_annotate.is_empty() && !return_annotation_needed {
0 commit comments