Skip to content

Commit

Permalink
Reinserted commata
Browse files Browse the repository at this point in the history
  • Loading branch information
fuerstenau committed Dec 19, 2018
1 parent ee0856c commit e722b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/question_mark.rs
Expand Up @@ -127,15 +127,15 @@ impl Pass {
}

false
}
},
ExprKind::Ret(Some(ref expr)) => Self::expression_returns_none(cx, expr),
ExprKind::Path(ref qp) => {
if let Def::VariantCtor(def_id, _) = cx.tables.qpath_def(qp, expression.hir_id) {
return match_def_path(cx.tcx, def_id, &OPTION_NONE);
}

false
}
},
_ => false,
}
}
Expand Down

0 comments on commit e722b13

Please sign in to comment.