aboutsummaryrefslogtreecommitdiff
path: root/src/errors.rs
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-06-28 14:10:15 -0400
committerCara Salter <cara@devcara.com>2022-06-28 14:11:28 -0400
commit57a59a25f623302e674432049e2f2c13d6fea322 (patch)
treeecb64352133d8ead7ad5f4177ba4a88b3f81df80 /src/errors.rs
parenta684e1bab093b9007f51bd34e4e087b1a9eecdfb (diff)
downloadsolard-57a59a25f623302e674432049e2f2c13d6fea322.tar.gz
solard-57a59a25f623302e674432049e2f2c13d6fea322.zip
auth: Finished PASETO auth
Closes #4
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())