1
0
mirror of https://github.com/bspeice/dtparse synced 2024-12-22 12:28:08 -05:00

Minor TODO

This commit is contained in:
Bradlee Speice 2018-05-18 23:58:28 -04:00
parent 184dd9f25c
commit ef3bd59959

View File

@ -628,6 +628,9 @@ impl YMD {
}
}
// TODO: Remove the error handling here
// We should be able to justify the UNWRAP, but I haven't
// convinced myself of that quite yet.
if !year.and(month).and(day).is_some() {
Err(ParseInternalError::YMDValueUnset)
} else {