Skip to content

Commit 7010651

Browse files
committed
Rust: Remove the workaround in rust/unused-variable.
1 parent 25b592f commit 7010651

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rust/ql/src/queries/unusedentities/UnusedVariable.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ from Variable v
1414
where
1515
not exists(v.getAnAccess()) and
1616
not exists(v.getInitializer()) and
17-
not v.getName().charAt(0) = "_" and
18-
exists(File f | f.getBaseName() = "main.rs" | v.getLocation().getFile() = f) // temporarily severely limit results
17+
not v.getName().charAt(0) = "_"
1918
select v, "Variable is not used."

0 commit comments

Comments
 (0)