From 57a59a25f623302e674432049e2f2c13d6fea322 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Tue, 28 Jun 2022 14:10:15 -0400 Subject: auth: Finished PASETO auth Closes #4 --- src/errors.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/errors.rs') 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 for ServiceError { - fn from(_: FromHexError) -> Self { - ServiceError::Generic(String::from("Could not convert from hex")) - } -} - impl From for ServiceError { fn from(_: RingUnspecified) -> Self { ServiceError::Generic("Unspecified RNG error".to_string()) -- cgit v1.2.3