Skip to content

Commit 9314ae2

Browse files
committed
Formatting inside if_chain! macro
1 parent 0f56069 commit 9314ae2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clippy_lints/src/get_last_with_len.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UseLast {
7676
if let LitKind::Int(rhs_value, ..) = rhs_lit.node;
7777
if rhs_value == 1;
7878

79-
8079
then {
8180
let mut applicability = Applicability::MachineApplicable;
82-
let vec_name = snippet_with_applicability(cx, struct_calling_on.span, "vec",
83-
&mut applicability);
81+
let vec_name = snippet_with_applicability(
82+
cx,
83+
struct_calling_on.span, "vec",
84+
&mut applicability);
8485

8586
span_lint_and_sugg(
8687
cx,

0 commit comments

Comments
 (0)