From a13411f1221909e18c6cc9a6f7e3c081dabfe0cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sat, 2 Mar 2024 14:54:24 +0100 Subject: [PATCH] Remove the use in the error module --- src/error.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/error.rs b/src/error.rs index a465d47..85d50d5 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,6 +1,3 @@ -use crate::ikm::IkmId; -use crate::scheme::SchemeSerializeType; - pub(crate) type Result = core::result::Result; #[derive(thiserror::Error, Debug)] @@ -10,7 +7,7 @@ pub enum Error { #[error("ikm error: no input key material available")] IkmNoneAvailable, #[error("ikm error: {0}: input key material not found")] - IkmNotFound(IkmId), + IkmNotFound(crate::ikm::IkmId), #[error("parsing error: invalid base64-urlsafe-nopadding data: {0}")] ParsingBase64Error(base64ct::Error), #[error("parsing error: encoded data: invalid IKM id: {0:?}")] @@ -24,7 +21,7 @@ pub enum Error { #[error("parsing error: encoded data: invalid timestamp: {0:?}")] ParsingEncodedDataInvalidTimestamp(Vec), #[error("parsing error: scheme: {0}: unknown scheme")] - ParsingSchemeUnknownScheme(SchemeSerializeType), + ParsingSchemeUnknownScheme(crate::scheme::SchemeSerializeType), #[error("unable to generate random values: {0}")] RandomSourceError(getrandom::Error), #[error("system time error: {0}")]