]> git.lizzy.rs Git - rust.git/commitdiff
Rust fmt
authorBood Qian <bood@glowing.com>
Fri, 17 Feb 2017 00:39:58 +0000 (08:39 +0800)
committerBood Qian <bood@glowing.com>
Fri, 17 Feb 2017 00:39:58 +0000 (08:39 +0800)
clippy_lints/src/types.rs

index c8cd531d364da29117958799d9ec848fd7d69a33..ce5afb7eac8440e00c032d68e3a8a01d1bcb4793 100644 (file)
@@ -538,9 +538,10 @@ fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
                             span_lint(cx,
                                       UNNECESSARY_CAST,
                                       expr.span,
-                                      &format!("casting to the same type is unnecessary (`{}` -> `{}`)", cast_from, cast_to));
+                                      &format!("casting to the same type is unnecessary (`{}` -> `{}`)",
+                                               cast_from, cast_to));
                         }
-                    }
+                    },
                 }
             }
             if cast_from.is_numeric() && cast_to.is_numeric() && !in_external_macro(cx, expr.span) {