Skip to content

Commit 9185c8d

Browse files
author
Michael Wright
committed
Format
1 parent 6e7a813 commit 9185c8d

File tree

1 file changed

+5
-1
lines changed
  • clippy_lints/src/methods

1 file changed

+5
-1
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,11 @@ fn lint_iter_skip_next(cx: &LateContext<'_, '_>, expr: &hir::Expr) {
16861686
}
16871687
}
16881688

1689-
fn derefs_to_slice<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &'tcx hir::Expr, ty: Ty<'tcx>) -> Option<&'tcx hir::Expr> {
1689+
fn derefs_to_slice<'a, 'tcx>(
1690+
cx: &LateContext<'a, 'tcx>,
1691+
expr: &'tcx hir::Expr,
1692+
ty: Ty<'tcx>,
1693+
) -> Option<&'tcx hir::Expr> {
16901694
fn may_slice(cx: &LateContext<'_, '_>, ty: Ty<'_>) -> bool {
16911695
match ty.sty {
16921696
ty::Slice(_) => true,

0 commit comments

Comments
 (0)