We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2f577f commit 4c50c08Copy full SHA for 4c50c08
1 file changed
rust/ql/lib/codeql/rust/frameworks/Reqwest.qll
@@ -9,11 +9,11 @@ private import codeql.rust.Concepts
9
* A call to `reqwest::get` or `reqwest::blocking::get`.
10
*/
11
private class ReqwestGet extends RemoteSource::Range {
12
- CallExpr ce;
13
-
14
ReqwestGet() {
15
- this.asExpr().getExpr() = ce and
16
- ce.getExpr().(PathExpr).getPath().getResolvedCrateOrigin().matches("%reqwest") and
17
- ce.getExpr().(PathExpr).getPath().getResolvedPath() = ["crate::get", "crate::blocking::get"]
+ exists(CallExpr ce |
+ this.asExpr().getExpr() = ce and
+ ce.getExpr().(PathExpr).getPath().getResolvedCrateOrigin().matches("%reqwest") and
+ ce.getExpr().(PathExpr).getPath().getResolvedPath() = ["crate::get", "crate::blocking::get"]
+ )
18
}
19
0 commit comments