Skip to content

Commit

Permalink
Small fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
lochetti committed Jul 3, 2024
1 parent eff6f68 commit 4e71fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/set_contains_or_insert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fn find_insert_calls<'tcx>(
contains_expr: &OpExpr<'tcx>,
expr: &'tcx Expr<'_>,
) -> Option<OpExpr<'tcx>> {
for_each_expr(expr, |e| {
for_each_expr(cx, expr, |e| {
if let Some(insert_expr) = try_parse_op_call(cx, e, sym!(insert))
&& SpanlessEq::new(cx).eq_expr(contains_expr.receiver, insert_expr.receiver)
&& SpanlessEq::new(cx).eq_expr(contains_expr.value, insert_expr.value)
Expand Down

0 comments on commit 4e71fc4

Please sign in to comment.