Skip to content

Commit 75f605c

Browse files
committed
rustfmt
1 parent 9bda699 commit 75f605c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

clippy_lints/src/large_enum_variant.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,15 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for LargeEnumVariant {
8080
VariantData::Unit(_) => unreachable!(),
8181
};
8282
if let Some(snip) = snippet_opt(cx, span) {
83-
db.span_suggestion(
84-
span,
85-
"consider boxing the large fields to reduce the total size of the enum",
86-
format!("Box<{}>", snip),
87-
);
83+
db.span_suggestion(span,
84+
"consider boxing the large fields to reduce the total size of \
85+
the enum",
86+
format!("Box<{}>", snip));
8887
return;
8988
}
9089
}
91-
db.span_help(
92-
def.variants[i].span,
93-
"consider boxing the large fields to reduce the total size of the enum",
94-
);
90+
db.span_help(def.variants[i].span,
91+
"consider boxing the large fields to reduce the total size of the enum");
9592
});
9693
}
9794
});

0 commit comments

Comments
 (0)