mirror of
https://github.com/github/codeql.git
synced 2026-04-22 07:15:15 +02:00
Rust: Remove redundant code and imports.
This commit is contained in:
@@ -4,18 +4,14 @@
|
||||
|
||||
private import rust
|
||||
private import codeql.rust.Concepts
|
||||
private import codeql.rust.dataflow.DataFlow
|
||||
private import codeql.rust.internal.TypeInference
|
||||
private import codeql.rust.internal.Type
|
||||
|
||||
/**
|
||||
* Parameters of a handler function
|
||||
*/
|
||||
private class PoemHandlerParam extends RemoteSource::Range {
|
||||
PoemHandlerParam() {
|
||||
exists(TupleStructPat param, Type t |
|
||||
exists(TupleStructPat param |
|
||||
this.asPat().getPat() = param.getAField() and
|
||||
t = inferType(param) and
|
||||
param.getStruct().getCanonicalPath() = ["poem::web::query::Query", "poem::web::path::Path"]
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user