]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/fn_ctxt/checks.rs
Rollup merge of #96038 - beyarkay:patch-1, r=m-ou-se
[rust.git] / compiler / rustc_typeck / src / check / fn_ctxt / checks.rs
index ad635eecdace275c1dd60eed65418e9627ea91a9..80f6190732ac2a273fba37ba057898525803ccfb 100644 (file)
@@ -948,8 +948,8 @@ enum SuggestionText {
                     .get_if_local(def_id)
                     .and_then(|node| node.body_id())
                     .into_iter()
-                    .map(|id| tcx.hir().body(id).params)
-                    .flatten();
+                    .flat_map(|id| tcx.hir().body(id).params)
+                    ;
 
                 for param in params {
                     spans.push_span_label(param.span, String::new());