Skip to content

Commit 01c6966

Browse files
committed
Rust: Remove redundant code and imports.
1 parent 9c3e362 commit 01c6966

File tree

1 file changed

+1
-5
lines changed
  • rust/ql/lib/codeql/rust/frameworks

1 file changed

+1
-5
lines changed

rust/ql/lib/codeql/rust/frameworks/Poem.qll

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,14 @@
44

55
private import rust
66
private import codeql.rust.Concepts
7-
private import codeql.rust.dataflow.DataFlow
8-
private import codeql.rust.internal.TypeInference
9-
private import codeql.rust.internal.Type
107

118
/**
129
* Parameters of a handler function
1310
*/
1411
private class PoemHandlerParam extends RemoteSource::Range {
1512
PoemHandlerParam() {
16-
exists(TupleStructPat param, Type t |
13+
exists(TupleStructPat param |
1714
this.asPat().getPat() = param.getAField() and
18-
t = inferType(param) and
1915
param.getStruct().getCanonicalPath() = ["poem::web::query::Query", "poem::web::path::Path"]
2016
)
2117
}

0 commit comments

Comments
 (0)