From a7635aa1c8b9355e7d4564f5cbf5c472c6332178 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Thu, 11 May 2017 15:47:31 +0100 Subject: [PATCH] clean tests/ui/strings.rs Cleaning the empty lines for clarity. --- tests/ui/strings.rs | 6 ------ tests/ui/strings.stderr | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/ui/strings.rs b/tests/ui/strings.rs index f893d99491bee..b4aef1ba62cf6 100644 --- a/tests/ui/strings.rs +++ b/tests/ui/strings.rs @@ -49,9 +49,6 @@ fn both() { fn str_lit_as_bytes() { let bs = "hello there".as_bytes(); - - - // no warning, because this cannot be written as a byte string literal: let ubs = "☃".as_bytes(); @@ -66,8 +63,5 @@ fn main() { // the add is only caught for `String` let mut x = 1; ; x = x + 1; - - - assert_eq!(2, x); } diff --git a/tests/ui/strings.stderr b/tests/ui/strings.stderr index 575028887445c..197d52a8781e2 100644 --- a/tests/ui/strings.stderr +++ b/tests/ui/strings.stderr @@ -65,9 +65,9 @@ note: lint level defined here | ^^^^^^^^^^^^^^^^^^^ warning: manual implementation of an assign operation - --> $DIR/strings.rs:68:7 + --> $DIR/strings.rs:65:7 | -68 | ; x = x + 1; +65 | ; x = x + 1; | ^^^^^^^^^ help: replace it with `x += 1` | = note: #[warn(assign_op_pattern)] on by default