A crate's Error is usually put inside an own error module for organizational reasons and then exported directly for optimal usability. The relevant lib.rs entries would look like this:
mod error;
pub use error::Error;
A crate's Error is usually put inside an own error module for organizational reasons and then exported directly for optimal usability. The relevant lib.rs entries would look like this:
mod error;
pub use error::Error;