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 c6bf954 commit b700d9cCopy full SHA for b700d9c
clippy_lints/src/matches/single_match.rs
@@ -75,7 +75,7 @@ fn report_single_pattern(
75
) {
76
let lint = if els.is_some() { SINGLE_MATCH_ELSE } else { SINGLE_MATCH };
77
let ctxt = expr.span.ctxt();
78
- let mut app = Applicability::HasPlaceholders;
+ let mut app = Applicability::MachineApplicable;
79
let els_str = els.map_or(String::new(), |els| {
80
format!(" else {}", expr_block(cx, els, ctxt, "..", Some(expr.span), &mut app))
81
});
0 commit comments