Rust: Remove redundant code and imports.

This commit is contained in:
Geoffrey White
2025-06-18 13:22:51 +01:00
parent 9c3e362594
commit 01c6966cef

View File

@@ -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"]
)
}