icu4x
icu4x copied to clipboard
Make DataResponse.payload be non-optional
If the data isn't present, an error should be returned. It's likely we don't need the payload to be an Option.
I investigated this; the only case where we set None is in draft PR https://github.com/unicode-org/icu4x/pull/4607
As discussed in https://github.com/unicode-org/icu4x/issues/58, we plan to add a can_load function to the DataProvider traits, meaning work can be done on this issue.