impl FromRef<()> for ValidationContext<()>
This commit is contained in:
@@ -293,6 +293,12 @@ impl<Arguments> ValidationContext<Arguments> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl FromRef<()> for ValidationContext<()> {
|
||||||
|
fn from_ref(_: &()) -> Self {
|
||||||
|
ValidationContext::default()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// `ValidError` is the error type returned when the `Valid` extractor fails.
|
/// `ValidError` is the error type returned when the `Valid` extractor fails.
|
||||||
///
|
///
|
||||||
/// It has two variants:
|
/// It has two variants:
|
||||||
|
|||||||
Reference in New Issue
Block a user