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 11, 2024
1 parent c4256f2 commit 4d573ca
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 4d573ca

Please sign in to comment.