Closed adamgreig closed 1 year ago
Provisional fix for #501.
I'm not totally sure it makes sense to re-add WriteZero to ErrorKind since we're now using it for something a bit different to std, but since we do ask implementations to return an error instead of Ok(0), I guess that error should have a type.
WriteZero
ErrorKind
std
Ok(0)
LGTM. We should also change the adapters to convert Ok(0) to an error.
Thanks for catching those points! I've updated the first commit and added a new one that updates the adaptors.
Provisional fix for #501.
I'm not totally sure it makes sense to re-add
WriteZero
toErrorKind
since we're now using it for something a bit different tostd
, but since we do ask implementations to return an error instead ofOk(0)
, I guess that error should have a type.