Skip to content

Commit 49b569c

Browse files
committed
Rust: Update for changes on main.
1 parent 0f34693 commit 49b569c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/ql/src/queries/security/CWE-696/BadCtorInitialization.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class CtorAttr extends Attr {
3232
*/
3333
class StdCall extends Expr {
3434
StdCall() {
35-
this.(CallExpr).getExpr().(PathExpr).getPath().getResolvedCrateOrigin() = "lang:std" or
35+
this.(CallExpr).getFunction().(PathExpr).getPath().getResolvedCrateOrigin() = "lang:std" or
3636
this.(MethodCallExpr).getResolvedCrateOrigin() = "lang:std"
3737
}
3838
}

0 commit comments

Comments
 (0)