use std::fmt;
pub type Result<T, E = CoverioError> = std::result::Result<T, E>;
#[derive(PartialEq, Eq)]
pub struct CoverioError(String);
impl fmt::Debug for CoverioError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
}
}
impl CoverioError {
pub fn new(message: impl AsRef<str>) -> Self {
Self(message.as_ref().into())
}
}