Skip to content

Commit be41ca5

Browse files
committed
Rust: update expected output
1 parent 11396ef commit be41ca5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rust/ql/test/query-tests/unusedentities/UnusedVariable.expected

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
| main.rs:90:13:90:13 | d | Variable is not used. |
33
| main.rs:141:5:141:5 | y | Variable is not used. |
44
| main.rs:168:9:168:9 | x | Variable is not used. |
5-
| main.rs:196:9:196:9 | x | Variable is not used. |
6-
| main.rs:201:9:201:9 | x | Variable is not used. |
75
| main.rs:250:17:250:17 | a | Variable is not used. |
86
| main.rs:258:20:258:22 | val | Variable is not used. |
97
| main.rs:272:14:272:16 | val | Variable is not used. |

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ fn loops() {
193193
}
194194
}
195195

196-
for x // SPURIOUS: unused variable
196+
for x
197197
in 1..10 {
198198
println!("x is {x}");
199199
}
200200

201-
for x // SPURIOUS: unused variable
201+
for x
202202
in 1..10 {
203203
_ = format!("x is {x}"); // SPURIOUS: unused value `res`
204204
}

0 commit comments

Comments
 (0)