mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
clippy::single_match(_else) may be machine applicable
This commit is contained in:
parent
c6bf9548d5
commit
b700d9c928
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ fn report_single_pattern(
|
|||
) {
|
||||
let lint = if els.is_some() { SINGLE_MATCH_ELSE } else { SINGLE_MATCH };
|
||||
let ctxt = expr.span.ctxt();
|
||||
let mut app = Applicability::HasPlaceholders;
|
||||
let mut app = Applicability::MachineApplicable;
|
||||
let els_str = els.map_or(String::new(), |els| {
|
||||
format!(" else {}", expr_block(cx, els, ctxt, "..", Some(expr.span), &mut app))
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue