]> git.lizzy.rs Git - rust.git/commitdiff
Format
authorMichael Wright <mikerite@lavabit.com>
Mon, 18 Feb 2019 06:32:53 +0000 (08:32 +0200)
committerMichael Wright <mikerite@lavabit.com>
Mon, 18 Feb 2019 06:32:53 +0000 (08:32 +0200)
clippy_lints/src/methods/mod.rs

index b1bd43410150419137455ff7c590f22d6829a88e..739f6e3990a340fea2abcf0e6ec84f8c610a48cb 100644 (file)
@@ -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,