]> git.lizzy.rs Git - rust.git/commitdiff
Make Travis' rustfmt happy
authorPascal Hertleif <killercup@gmail.com>
Sat, 28 Jan 2017 13:17:37 +0000 (14:17 +0100)
committerPascal Hertleif <killercup@gmail.com>
Sat, 28 Jan 2017 13:17:37 +0000 (14:17 +0100)
clippy_lints/src/loops.rs

index e3492fd00f75cfd7c4b451dfc05ceb229f257e24..f3dd2d4b8e3c4007c9fdf15fe24cd593a3eba817 100644 (file)
@@ -616,9 +616,7 @@ fn check_for_loop_arg(cx: &LateContext, pat: &Pat, arg: &Expr, expr: &Expr) {
                                             object,
                                             method_name),
                                    |db| {
-                    db.span_suggestion(arg.span,
-                                       "to write this more concisely, try looping over",
-                                       object.to_string());
+                    db.span_suggestion(arg.span, "to write this more concisely, try looping over", object.to_string());
                 });
 
             } else if &*method_name.as_str() == "next" && match_trait_method(cx, arg, &paths::ITERATOR) {