diff options
Diffstat (limited to 'vendor/odht/src/error.rs')
-rw-r--r-- | vendor/odht/src/error.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/odht/src/error.rs b/vendor/odht/src/error.rs new file mode 100644 index 000000000..5a72c265b --- /dev/null +++ b/vendor/odht/src/error.rs @@ -0,0 +1,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) + } +} |