about summary refs log tree commit diff
path: root/src/needless_features.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/needless_features.rs')
-rw-r--r--src/needless_features.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/needless_features.rs b/src/needless_features.rs
index 2dd53c2d783..2c293d04600 100644
--- a/src/needless_features.rs
+++ b/src/needless_features.rs
@@ -49,14 +49,16 @@ impl LateLintPass for NeedlessFeaturesPass {
     fn check_expr(&mut self, cx: &LateContext, expr: &Expr) {
         if let ExprMethodCall(ref name, _, _) = expr.node {
             if name.node.as_str() == "as_slice" && check_paths(cx, expr) {
-                span_lint(cx, UNSTABLE_AS_SLICE, expr.span,
-                          "used as_slice() from the 'convert' nightly feature. Use &[..] \
-                           instead");
+                span_lint(cx,
+                          UNSTABLE_AS_SLICE,
+                          expr.span,
+                          "used as_slice() from the 'convert' nightly feature. Use &[..] instead");
             }
             if name.node.as_str() == "as_mut_slice" && check_paths(cx, expr) {
-                span_lint(cx, UNSTABLE_AS_MUT_SLICE, expr.span,
-                          "used as_mut_slice() from the 'convert' nightly feature. Use &mut [..] \
-                           instead");
+                span_lint(cx,
+                          UNSTABLE_AS_MUT_SLICE,
+                          expr.span,
+                          "used as_mut_slice() from the 'convert' nightly feature. Use &mut [..] instead");
             }
         }
     }