diff --git a/src/validators/datetime.rs b/src/validators/datetime.rs index 8779ea76c..94dc7ba05 100644 --- a/src/validators/datetime.rs +++ b/src/validators/datetime.rs @@ -140,7 +140,6 @@ impl Validator for DateTimeValidator { } /// In lax mode, if the input is not a datetime, we try parsing the input as a date and add the "00:00:00" time. -/// /// Ok(None) means that this is not relevant to datetimes (the input was not a date nor a string) fn datetime_from_date<'data>(input: &'data impl Input<'data>) -> Result>, ValError> { let either_date = match input.validate_date(false) { @@ -171,7 +170,7 @@ fn datetime_from_date<'data>(input: &'data impl Input<'data>) -> Result