fix compilation error

This commit is contained in:
gengteng
2023-10-07 11:46:25 +08:00
parent 59fe4a4cda
commit 21ee4e7913
3 changed files with 179 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
pub mod extra;
#[cfg(feature = "form")]
pub mod form;
pub mod garde;
#[cfg(feature = "json")]
pub mod json;
#[cfg(feature = "msgpack")]
@@ -218,7 +219,7 @@ impl<E: IntoResponse> IntoResponse for ValidRejection<E> {
///
pub trait HasValidate {
/// Inner type that can be validated for correctness
type Validate: Validate;
type Validate;
/// Get the inner value
fn get_validate(&self) -> &Self::Validate;
}