mirror of
https://github.com/bspeice/dtparse
synced 2025-08-04 22:45:09 -04:00
Minor TODO
This commit is contained in:
@ -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() {
|
if !year.and(month).and(day).is_some() {
|
||||||
Err(ParseInternalError::YMDValueUnset)
|
Err(ParseInternalError::YMDValueUnset)
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user