File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
rust/ql/lib/codeql/rust/frameworks Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ private import codeql.rust.Concepts
9
9
* A call to `reqwest::get` or `reqwest::blocking::get`.
10
10
*/
11
11
private class ReqwestGet extends RemoteSource:: Range {
12
- CallExpr ce ;
13
-
14
12
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" ]
13
+ exists ( CallExpr ce |
14
+ this .asExpr ( ) .getExpr ( ) = ce and
15
+ ce .getExpr ( ) .( PathExpr ) .getPath ( ) .getResolvedCrateOrigin ( ) .matches ( "%reqwest" ) and
16
+ ce .getExpr ( ) .( PathExpr ) .getPath ( ) .getResolvedPath ( ) = [ "crate::get" , "crate::blocking::get" ]
17
+ )
18
18
}
19
19
}
You can’t perform that action at this time.
0 commit comments