summaryrefslogtreecommitdiffstats
path: root/vendor/odht/src/error.rs
blob: 5a72c265be0889adfcba1b83cd8a7067de41c9d3 (plain)
1
2
3
4
5
6
7
8
9
#[derive(Eq, PartialEq, Debug)]
pub(crate) struct Error(pub String);

impl std::error::Error for Error {}
impl std::fmt::Display for Error {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{}", self.0)
    }
}