]> git.lizzy.rs Git - rust.git/commitdiff
clean tests/ui/strings.rs
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 11 May 2017 14:47:31 +0000 (15:47 +0100)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 11 May 2017 15:22:32 +0000 (16:22 +0100)
Cleaning the empty lines for clarity.

tests/ui/strings.rs
tests/ui/strings.stderr

index f893d99491bee50b7c902c40003ac9e250ca9ead..b4aef1ba62cf6813d4e4b0f5dfe6e59d141a1c4d 100644 (file)
@@ -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);
 }
index 575028887445cc6766de362eaeda96fbf6ae5014..197d52a8781e2745d9d489cd8ee87a7f473af88e 100644 (file)
@@ -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