Skip to content

Commit

Permalink
Rust: Correct spurious annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffw0 committed Oct 9, 2024
1 parent fa1c92d commit f3d727f
Showing 1 changed file with 2 additions and 2 deletions.
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 @@ -265,8 +265,8 @@ fn if_lets_matches() {

let i = Yes;
match i {
Yes => {} // SPURIOUS: unused variable 'None'
No => {} // SPURIOUS: unused variable 'None'
Yes => {} // SPURIOUS: unused variable 'Yes'
No => {} // SPURIOUS: unused variable 'No'
}

if let j = Yes { // BAD: unused variable
Expand Down

0 comments on commit f3d727f

Please sign in to comment.