From 9185c8d99684e5532ac5dd57c8b0b1844c50f16a Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Mon, 18 Feb 2019 08:32:53 +0200 Subject: [PATCH] Format --- clippy_lints/src/methods/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index b1bd43410150..739f6e3990a3 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -1686,7 +1686,11 @@ fn lint_iter_skip_next(cx: &LateContext<'_, '_>, expr: &hir::Expr) { } } -fn derefs_to_slice<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &'tcx hir::Expr, ty: Ty<'tcx>) -> Option<&'tcx hir::Expr> { +fn derefs_to_slice<'a, 'tcx>( + cx: &LateContext<'a, 'tcx>, + expr: &'tcx hir::Expr, + ty: Ty<'tcx>, +) -> Option<&'tcx hir::Expr> { fn may_slice(cx: &LateContext<'_, '_>, ty: Ty<'_>) -> bool { match ty.sty { ty::Slice(_) => true,