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 d1caa9c commit 3f5317aCopy full SHA for 3f5317a
clippy_lints/src/loops/manual_flatten.rs
@@ -42,6 +42,7 @@ pub(super) fn check<'tcx>(
42
})
43
{
44
let if_let_type = if some_ctor { "Some" } else { "Ok" };
45
+
46
// Prepare the error message
47
let msg =
48
format!("unnecessary `if let` since only the `{if_let_type}` variant of the iterator element is used");
0 commit comments