Skip to content

Commit cab9164

Browse files
committed
Rust: Update unused value expected test result
1 parent b86a581 commit cab9164

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
| main.rs:348:5:348:39 | kind | Variable is assigned a value that is never used. |
1919
| main.rs:370:9:370:9 | x | Variable is assigned a value that is never used. |
2020
| main.rs:378:17:378:17 | x | Variable is assigned a value that is never used. |
21-
| main.rs:432:9:432:10 | i6 | Variable is assigned a value that is never used. |
2221
| more.rs:24:9:24:11 | val | Variable is assigned a value that is never used. |
2322
| more.rs:46:9:46:14 | a_ptr4 | Variable is assigned a value that is never used. |
2423
| more.rs:61:9:61:13 | d_ptr | Variable is assigned a value that is never used. |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ fn folds_and_closures() {
429429
let a5 = 1..10;
430430
_ = a5.fold(0, | acc, val | val); // BAD: unused variable
431431

432-
let i6 = 1; // SPURIOUS: unused value
432+
let i6 = 1;
433433
let a6 = 1..10;
434434
_ = a6.fold(0, | acc, val | acc + val + i6);
435435
}

0 commit comments

Comments
 (0)