modify: Rejection type of HasValidate for Path
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "axum-valid"
|
name = "axum-valid"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
description = "Validation tools for axum using the validator library."
|
description = "Validation tools for axum using the validator library."
|
||||||
authors = ["GengTeng <me@gteng.org>"]
|
authors = ["GengTeng <me@gteng.org>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ impl<T: Validate> HasValidate for Query<T> {
|
|||||||
|
|
||||||
impl<T: Validate> HasValidate for Path<T> {
|
impl<T: Validate> HasValidate for Path<T> {
|
||||||
type Validate = T;
|
type Validate = T;
|
||||||
type Rejection = QueryRejection;
|
type Rejection = PathRejection;
|
||||||
fn get_validate(&self) -> &T {
|
fn get_validate(&self) -> &T {
|
||||||
&self.0
|
&self.0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user