aboutsummaryrefslogtreecommitdiff
path: root/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/errors.rs b/src/errors.rs
index e32c6d5..a243c12 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -1,4 +1,3 @@
-use hex::FromHexError;
use ring::error::KeyRejected;
use thiserror::Error;
@@ -36,12 +35,6 @@ pub enum ServiceError {
PasetoInvalid(#[from] KeyRejected),
}
-impl From<FromHexError> for ServiceError {
- fn from(_: FromHexError) -> Self {
- ServiceError::Generic(String::from("Could not convert from hex"))
- }
-}
-
impl From<RingUnspecified> for ServiceError {
fn from(_: RingUnspecified) -> Self {
ServiceError::Generic("Unspecified RNG error".to_string())