wrap_err

Function wrap_err 

Source
pub fn wrap_err<T, E: Error + Send + Sync + 'static>(
    result: Result<T, E>,
) -> Result<T>
Expand description

Wrap a Result into an okerr/anyhow Error.

Equivalent to result.map_err(okerr::Error::new)