When users are using anyhow crate to handle error on their Rust project, there is no straight-forward solution to cast OasysDB native error type to anyhow error beside using .map_err() method. Although it works, when handling multiple errors from OasysDB, users have to write more boilerplate codes to handle errors.
Use case
When users are using
anyhow
crate to handle error on their Rust project, there is no straight-forward solution to cast OasysDB native error type to anyhow error beside using.map_err()
method. Although it works, when handling multiple errors from OasysDB, users have to write more boilerplate codes to handle errors.