blob: 01ddb723863e240e38bfc29d36f409045f246314 [file] [log] [blame]
//! Error types
use core::fmt;
/// Result type
pub type Result<T> = core::result::Result<T, Error>;
/// Error type
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub struct Error;
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str("OID error")
}
}
#[cfg(feature = "std")]
impl std::error::Error for Error {}