Fix formatting of if let chain
This commit is contained in:
parent
cf182b9f43
commit
83a4b0987f
@ -77,7 +77,8 @@ impl<'tcx> LateLintPass<'tcx> for ManualLetElse {
|
||||
local.els.is_none() &&
|
||||
local.ty.is_none() &&
|
||||
init.span.ctxt() == stmt.span.ctxt() &&
|
||||
let Some(if_let_or_match) = IfLetOrMatch::parse(cx, init) {
|
||||
let Some(if_let_or_match) = IfLetOrMatch::parse(cx, init)
|
||||
{
|
||||
match if_let_or_match {
|
||||
IfLetOrMatch::IfLet(if_let_expr, let_pat, if_then, if_else) => if_chain! {
|
||||
if expr_is_simple_identity(let_pat, if_then);
|
||||
|
Loading…
x
Reference in New Issue
Block a user