Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup
This commit is contained in:
@@ -26,7 +26,7 @@ pub(super) fn derefs_to_slice<'tcx>(
|
||||
}
|
||||
}
|
||||
|
||||
if let hir::ExprKind::MethodCall(ref path, _, ref args, _) = expr.kind {
|
||||
if let hir::ExprKind::MethodCall(path, _, args, _) = expr.kind {
|
||||
if path.ident.name == sym::iter && may_slice(cx, cx.typeck_results().expr_ty(&args[0])) {
|
||||
Some(&args[0])
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user