]> git.lizzy.rs Git - rust.git/commitdiff
clean tests/ui/short_circuit_statement.rs
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 11 May 2017 14:45:02 +0000 (15:45 +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/short_circuit_statement.rs
tests/ui/short_circuit_statement.stderr

index 55ff4a83b87a9760783964c009052b84c64d8f85..c51bdcbe6930546f23ecd205dbcabeb85e4e10b7 100644 (file)
@@ -5,17 +5,8 @@
 
 fn main() {
     f() && g();
-
-
-
     f() || g();
-
-
-
     1 == 2 || g();
-
-
-
 }
 
 fn f() -> bool {
index 09e24fa7de6b5756fb61c60bfeffcc84a4560e05..60b7ca801ab3daa885f4933728fb9d138b895d4d 100644 (file)
@@ -11,16 +11,16 @@ note: lint level defined here
   |         ^^^^^^^^^^^^^^^^^^^^^^^
 
 error: boolean short circuit operator in statement may be clearer using an explicit test
 --> $DIR/short_circuit_statement.rs:11:5
-   |
-11 |     f() || g();
-   |     ^^^^^^^^^^^ help: replace it with `if !f() { g(); }`
--> $DIR/short_circuit_statement.rs:8:5
+  |
+8 |     f() || g();
+  |     ^^^^^^^^^^^ help: replace it with `if !f() { g(); }`
 
 error: boolean short circuit operator in statement may be clearer using an explicit test
 --> $DIR/short_circuit_statement.rs:15:5
-   |
-15 |     1 == 2 || g();
-   |     ^^^^^^^^^^^^^^ help: replace it with `if !(1 == 2) { g(); }`
--> $DIR/short_circuit_statement.rs:9:5
+  |
+9 |     1 == 2 || g();
+  |     ^^^^^^^^^^^^^^ help: replace it with `if !(1 == 2) { g(); }`
 
 error: aborting due to 3 previous errors