diff --git a/Cargo.toml b/Cargo.toml index e64b6be..f7c8804 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "axum-valid" -version = "0.2.1" +version = "0.2.2" description = "Validation tools for axum using the validator library." authors = ["GengTeng "] license = "MIT" diff --git a/src/lib.rs b/src/lib.rs index 92ce405..68326f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -100,7 +100,7 @@ impl HasValidate for Query { impl HasValidate for Path { type Validate = T; - type Rejection = QueryRejection; + type Rejection = PathRejection; fn get_validate(&self) -> &T { &self.0 }