Skip to content

Commit 8213987

Browse files
committed
Rust: Test spacing.
1 parent 91f1cf1 commit 8213987

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| main.rs:23:9:23:9 | a | Variable is not used. |
2-
| main.rs:88:13:88:13 | d | Variable is not used. |
3-
| main.rs:112:9:112:9 | k | Variable is not used. |
4-
| main.rs:139:5:139:5 | y | Variable is not used. |
1+
| main.rs:25:9:25:9 | a | Variable is not used. |
2+
| main.rs:90:13:90:13 | d | Variable is not used. |
3+
| main.rs:114:9:114:9 | k | Variable is not used. |
4+
| main.rs:141:5:141:5 | y | Variable is not used. |

rust/ql/test/query-tests/unusedentities/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ fn locals_1() {
88
let c = 1;
99
let d = String::from("a"); // BAD: unused value [NOT DETECTED]
1010
let e = String::from("b");
11+
1112
let _ = 1; // (deliberately unused)
1213

1314
println!("use {}", b);
@@ -17,6 +18,7 @@ fn locals_1() {
1718
}
1819

1920
println!("use {}", e);
21+
2022
}
2123

2224
fn locals_2() {

0 commit comments

Comments
 (0)