remove impl FromRef<()> for ValidationContext

This commit is contained in:
gengteng
2023-09-27 17:17:24 +08:00
parent 5a5c24678f
commit f85fcd5dbf

View File

@@ -211,12 +211,6 @@ impl ValidationContext {
}
}
impl FromRef<()> for ValidationContext {
fn from_ref(_: &()) -> Self {
ValidationContext::default()
}
}
/// `ValidError` is the error type returned when the `Valid` extractor fails.
///
/// It has two variants: