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 ee0856c commit e722b13Copy full SHA for e722b13
clippy_lints/src/question_mark.rs
@@ -127,15 +127,15 @@ impl Pass {
127
}
128
129
false
130
- }
+ },
131
ExprKind::Ret(Some(ref expr)) => Self::expression_returns_none(cx, expr),
132
ExprKind::Path(ref qp) => {
133
if let Def::VariantCtor(def_id, _) = cx.tables.qpath_def(qp, expression.hir_id) {
134
return match_def_path(cx.tcx, def_id, &OPTION_NONE);
135
136
137
138
139
_ => false,
140
141
0 commit comments