pub trait Into<T> {
fn into_anyhow2(self) -> crate::Result<T>;
}
impl<T> Into<T> for core::result::Result<T, anyhow::Error> {
#[track_caller]
fn into_anyhow2(self) -> crate::Result<T> {
#[cfg(feature = "location")]
let location = Some(core::panic::Location::caller());
#[cfg(not(feature = "location"))]
let location = None;
self.map_err(|e| crate::Error::from_boxed(e.into_boxed_dyn_error(), location))
}
}