Skip to content

Commit

Permalink
Rust: Remove the workaround in rust/unused-variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffw0 committed Oct 14, 2024
1 parent 25b592f commit 7010651
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rust/ql/src/queries/unusedentities/UnusedVariable.ql
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ from Variable v
where
not exists(v.getAnAccess()) and
not exists(v.getInitializer()) and
not v.getName().charAt(0) = "_" and
exists(File f | f.getBaseName() = "main.rs" | v.getLocation().getFile() = f) // temporarily severely limit results
not v.getName().charAt(0) = "_"
select v, "Variable is not used."

0 comments on commit 7010651

Please sign in to comment.