Skip to content

Commit

Permalink
Rust: update expected output
Browse files Browse the repository at this point in the history
  • Loading branch information
aibaars committed Oct 17, 2024
1 parent d70403a commit 17db188
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
| main.rs:90:13:90:13 | d | Variable is not used. |
| main.rs:141:5:141:5 | y | Variable is not used. |
| main.rs:168:9:168:9 | x | Variable is not used. |
| main.rs:196:9:196:9 | x | Variable is not used. |
| main.rs:201:9:201:9 | x | Variable is not used. |
| main.rs:250:17:250:17 | a | Variable is not used. |
| main.rs:258:20:258:22 | val | Variable is not used. |
| main.rs:272:14:272:16 | val | Variable is not used. |
Expand Down
4 changes: 2 additions & 2 deletions rust/ql/test/query-tests/unusedentities/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ fn loops() {
}
}

for x // SPURIOUS: unused variable
for x
in 1..10 {
println!("x is {x}");
}

for x // SPURIOUS: unused variable
for x
in 1..10 {
_ = format!("x is {x}"); // SPURIOUS: unused value `res`
}
Expand Down

0 comments on commit 17db188

Please sign in to comment.