6 lines
207 B
Rust
6 lines
207 B
Rust
|
|
pub type Error = Box<dyn std::error::Error + Send + Sync + 'static>;
|
||
|
|
pub type Result<T> = std::result::Result<T, Error>;
|
||
|
|
pub fn convert_err<E: std::fmt::Debug>(e: E) -> Error {
|
||
|
|
format!("{e:?}").into()
|
||
|
|
}
|