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

@@ -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 <me@gteng.org>"]
license = "MIT"

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
}