summaryrefslogtreecommitdiffstats
path: root/vendor/digest-0.8.1/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/digest-0.8.1/src/errors.rs')
-rw-r--r--vendor/digest-0.8.1/src/errors.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/vendor/digest-0.8.1/src/errors.rs b/vendor/digest-0.8.1/src/errors.rs
deleted file mode 100644
index aa026a21a..000000000
--- a/vendor/digest-0.8.1/src/errors.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-use core::fmt;
-#[cfg(feature = "std")]
-use std::error;
-
-/// The error type for variable hasher initialization
-#[derive(Clone, Copy, Debug, Default)]
-pub struct InvalidOutputSize;
-
-impl fmt::Display for InvalidOutputSize {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.write_str("invalid output size")
- }
-}
-
-#[cfg(feature = "std")]
-impl error::Error for InvalidOutputSize {
- fn description(&self) -> &str {
- "invalid output size"
- }
-}