Skip to content

Commit c853f57

Browse files
committed
fix for git rebase
1 parent 71d35df commit c853f57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/manual_retain.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ fn check_to_owned(
148148

149149
fn suggest(cx: &LateContext<'_>, parent_expr: &hir::Expr<'_>, left_expr: &hir::Expr<'_>, filter_expr: &hir::Expr<'_>) {
150150
if let hir::ExprKind::MethodCall(_, [_, closure], _) = filter_expr.kind
151-
&& let hir::ExprKind::Closure(_, _, filter_body_id, ..) = closure.kind
152-
&& let filter_body = cx.tcx.hir().body(filter_body_id)
151+
&& let hir::ExprKind::Closure{ body, ..} = closure.kind
152+
&& let filter_body = cx.tcx.hir().body(body)
153153
&& let [filter_params] = filter_body.params
154154
&& let Some(sugg) = match filter_params.pat.kind {
155155
hir::PatKind::Binding(_, _, filter_param_ident, None) => {

0 commit comments

Comments
 (0)