Skip to content

Commit 77f33f1

Browse files
committed
1 parent 52012c1 commit 77f33f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/question_mark_in_expression/src/question_mark_in_expression.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ impl<'tcx> LateLintPass<'tcx> for QuestionMarkInExpression {
4343
if let Some(node_id) = get_non_into_iter_ancestor(cx, expr.hir_id);
4444
if let Node::Expr(ancestor) = cx.tcx.hir().get(node_id);
4545
then {
46-
// smoelius: Matches get a pass.
46+
// smoelius: `Let` and `Match` expressions get a pass.
4747
match ancestor.kind {
48-
ExprKind::Match(..) => {}
48+
ExprKind::Let(..) | ExprKind::Match(..) => {}
4949
_ => {
5050
span_lint_and_help(
5151
cx,

0 commit comments

Comments
 (0)