) {
if_chain! {
// Extract the body of the closure passed to fold
- if let hir::ExprKind::Closure { body, .. } = acc.kind;
+ if let hir::ExprKind::Closure(&hir::Closure { body, .. }) = acc.kind;
let closure_body = cx.tcx.hir().body(body);
let closure_expr = peel_blocks(&closure_body.value);