pub trait RAnyhowResultExt: snafu::ResultExt { fn to_dyn_boxed(self) -> Result>; } impl RAnyhowResultExt for Result { fn to_dyn_boxed(self) -> Result> { self.map_err(|e| e.into()) } }