use std::boxed::Box;
#[derive(thiserror::Error, Debug)]
#[error(transparent)]
pub struct ErasedError(Box<dyn core::error::Error + Send + Sync + 'static>);
impl ErasedError {
pub fn new(error: impl core::error::Error + Send + Sync + 'static) -> Self {
Self(Box::new(error))
}
#[inline]
pub fn into_inner(self) -> Box<dyn core::error::Error + Send + Sync + 'static> {
self.0
}
}