Closed marcospb19 closed 1 year ago
OK I've made the changes as you suggested. In my old experience also a number of crates are using crate::errors::{Error, Result}
scheme and not exposing them, just like mine. That's right because moving them to crate root can be more practical and easy-to-use.
ff49ca48f43842cf88e4c9bacb29f17613b8d2cf
Taking
serde_json
as an example, it seems good to haveError
andResult
at the root of your crate so users can refer to it asbzip3::Error
andbzip3::Result
.They can be a link to
bzip3::error::*
, but I don't think it's strictly necessary to have the explicit module exposed in your API.