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 4b20cc4 commit bc0cf59Copy full SHA for bc0cf59
examples/question_mark_in_expression/src/question_mark_in_expression.rs
@@ -43,9 +43,9 @@ impl<'tcx> LateLintPass<'tcx> for QuestionMarkInExpression {
43
if let Some(node_id) = get_non_into_iter_ancestor(cx, expr.hir_id);
44
if let Node::Expr(ancestor) = cx.tcx.hir().get(node_id);
45
then {
46
- // smoelius: Matches get a pass.
+ // smoelius: `Let` and `Match` expressions get a pass.
47
match ancestor.kind {
48
- ExprKind::Match(..) => {}
+ ExprKind::Let(..) | ExprKind::Match(..) => {}
49
_ => {
50
span_lint_and_help(
51
cx,
0 commit comments