modify: Rejection type of HasValidate for Path

This commit is contained in:
gengteng
2023-07-15 14:51:27 +08:00
parent ba3b23a419
commit b02e9a9562
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ impl<T: Validate> HasValidate for Query<T> {
impl<T: Validate> HasValidate for Path<T> {
type Validate = T;
type Rejection = QueryRejection;
type Rejection = PathRejection;
fn get_validate(&self) -> &T {
&self.0
}