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 bbe609b commit 60a5cbdCopy full SHA for 60a5cbd
compiler-core/src/language_server/code_action.rs
@@ -1429,7 +1429,10 @@ impl<'ast> ast::visit::Visit<'ast> for AnnotateTopLevelDefinitions<'_> {
1429
1430
fn visit_typed_function(&mut self, fun: &'ast ast::TypedFunction) {
1431
// Don't annotate already annotated arguments
1432
- let arguments_to_annotate = fun.arguments().iter().filter(|argument| argument.annotation.is_none());
+ let arguments_to_annotate = fun
1433
+ .arguments
1434
+ .iter()
1435
+ .filter(|argument| argument.annotation.is_none());
1436
let return_annotation_needed = fun.return_annotation.is_none();
1437
1438
if arguments_to_annotate.is_empty() && !return_annotation_needed {
0 commit comments