Skip to content

Commit f4d4925

Browse files
committed
Rust: Address QL-for-QL complaint.
1 parent 2be5ce4 commit f4d4925

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rust/ql/src/queries/summary/Stats.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ int getLinesOfUserCode() {
2121
/**
2222
* Gets a count of the total number of abstract syntax tree inconsistencies in the database.
2323
*/
24-
int getTotalAstInconsistencies() { result = sum(AstConsistency::getAstInconsistencyCounts(_)) }
24+
int getTotalAstInconsistencies() {
25+
result = sum(string type | | AstConsistency::getAstInconsistencyCounts(type))
26+
}
2527

2628
/**
2729
* Gets a count of the total number of control flow graph inconsistencies in the database.

0 commit comments

Comments
 (0)