From b02e9a9562084f2e96054d11b08d5818f5905999 Mon Sep 17 00:00:00 2001 From: gengteng Date: Sat, 15 Jul 2023 14:51:27 +0800 Subject: [PATCH] modify: Rejection type of HasValidate for Path --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }