]> git.lizzy.rs Git - rust.git/commitdiff
clean tests/ui/cmp_owned.rs
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 11 May 2017 09:41:44 +0000 (10:41 +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/cmp_owned.rs
tests/ui/cmp_owned.stderr

index 30cd502a105704be7e052dadc24c21dae176fc34..12dcc8262c286027d4ec8e4d9774d0bc3e0a22df 100644 (file)
@@ -7,9 +7,7 @@ fn main() {
     fn with_to_string(x : &str) {
         x != "foo".to_string();
 
-
         "foo".to_string() != x;
-
     }
 
     let x = "oh";
index 231e2752c81307cf1497c5aaf5443e9a3a506f4b..a476110be61876ce8b925c73635f6286428204d9 100644 (file)
@@ -11,21 +11,21 @@ note: lint level defined here
   |        ^^^^^^^^^
 
 error: this creates an owned instance just for comparison. Consider using `"foo" != x` to compare without allocation
-  --> $DIR/cmp_owned.rs:11:9
+  --> $DIR/cmp_owned.rs:10:9
    |
-11 |         "foo".to_string() != x;
+10 |         "foo".to_string() != x;
    |         ^^^^^^^^^^^^^^^^^
 
 error: this creates an owned instance just for comparison. Consider using `x != "foo"` to compare without allocation
-  --> $DIR/cmp_owned.rs:19:10
+  --> $DIR/cmp_owned.rs:17:10
    |
-19 |     x != "foo".to_owned();
+17 |     x != "foo".to_owned();
    |          ^^^^^^^^^^^^^^^^
 
 error: this creates an owned instance just for comparison. Consider using `x != "foo"` to compare without allocation
-  --> $DIR/cmp_owned.rs:24:10
+  --> $DIR/cmp_owned.rs:22:10
    |
-24 |     x != String::from("foo");
+22 |     x != String::from("foo");
    |          ^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to 4 previous errors