modify: Rejection type of HasValidate for Path
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user