Skip to content

Commit 33fe51d

Browse files
paldepindhvitved
andauthored
Update rust/ql/lib/codeql/rust/dataflow/internal/DataFlowImpl.qll
Co-authored-by: Tom Hvitved <[email protected]>
1 parent bb015cf commit 33fe51d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rust/ql/lib/codeql/rust/dataflow/internal/DataFlowImpl.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,10 +1024,9 @@ module RustDataFlow implements InputSig<Location> {
10241024

10251025
/** Holds if `creation` is an expression that creates a lambda of kind `kind` for `c`. */
10261026
predicate lambdaCreation(Node creation, LambdaCallKind kind, DataFlowCallable c) {
1027-
exists(Expr cl |
1027+
exists(ClosureExpr cl |
10281028
cl = creation.asExpr().getExpr() and
1029-
cl = c.asCfgScope() and
1030-
cl instanceof ClosureExpr
1029+
cl = c.asCfgScope()
10311030
) and
10321031
exists(kind)
10331032
}

0 commit comments

Comments
 (0)