From 75f605ccf69a6de856038af088fe2aaa5069db81 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Tue, 31 Jan 2017 11:26:18 +0100 Subject: [PATCH] rustfmt --- clippy_lints/src/large_enum_variant.rs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/clippy_lints/src/large_enum_variant.rs b/clippy_lints/src/large_enum_variant.rs index 485266429aad..ca812067878b 100644 --- a/clippy_lints/src/large_enum_variant.rs +++ b/clippy_lints/src/large_enum_variant.rs @@ -80,18 +80,15 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for LargeEnumVariant { VariantData::Unit(_) => unreachable!(), }; if let Some(snip) = snippet_opt(cx, span) { - db.span_suggestion( - span, - "consider boxing the large fields to reduce the total size of the enum", - format!("Box<{}>", snip), - ); + db.span_suggestion(span, + "consider boxing the large fields to reduce the total size of \ + the enum", + format!("Box<{}>", snip)); return; } } - db.span_help( - def.variants[i].span, - "consider boxing the large fields to reduce the total size of the enum", - ); + db.span_help(def.variants[i].span, + "consider boxing the large fields to reduce the total size of the enum"); }); } });