Remove the use in the error module
This commit is contained in:
parent
5da1e3f5b6
commit
a13411f122
1 changed files with 2 additions and 5 deletions
|
@ -1,6 +1,3 @@
|
||||||
use crate::ikm::IkmId;
|
|
||||||
use crate::scheme::SchemeSerializeType;
|
|
||||||
|
|
||||||
pub(crate) type Result<T, E = Error> = core::result::Result<T, E>;
|
pub(crate) type Result<T, E = Error> = core::result::Result<T, E>;
|
||||||
|
|
||||||
#[derive(thiserror::Error, Debug)]
|
#[derive(thiserror::Error, Debug)]
|
||||||
|
@ -10,7 +7,7 @@ pub enum Error {
|
||||||
#[error("ikm error: no input key material available")]
|
#[error("ikm error: no input key material available")]
|
||||||
IkmNoneAvailable,
|
IkmNoneAvailable,
|
||||||
#[error("ikm error: {0}: input key material not found")]
|
#[error("ikm error: {0}: input key material not found")]
|
||||||
IkmNotFound(IkmId),
|
IkmNotFound(crate::ikm::IkmId),
|
||||||
#[error("parsing error: invalid base64-urlsafe-nopadding data: {0}")]
|
#[error("parsing error: invalid base64-urlsafe-nopadding data: {0}")]
|
||||||
ParsingBase64Error(base64ct::Error),
|
ParsingBase64Error(base64ct::Error),
|
||||||
#[error("parsing error: encoded data: invalid IKM id: {0:?}")]
|
#[error("parsing error: encoded data: invalid IKM id: {0:?}")]
|
||||||
|
@ -24,7 +21,7 @@ pub enum Error {
|
||||||
#[error("parsing error: encoded data: invalid timestamp: {0:?}")]
|
#[error("parsing error: encoded data: invalid timestamp: {0:?}")]
|
||||||
ParsingEncodedDataInvalidTimestamp(Vec<u8>),
|
ParsingEncodedDataInvalidTimestamp(Vec<u8>),
|
||||||
#[error("parsing error: scheme: {0}: unknown scheme")]
|
#[error("parsing error: scheme: {0}: unknown scheme")]
|
||||||
ParsingSchemeUnknownScheme(SchemeSerializeType),
|
ParsingSchemeUnknownScheme(crate::scheme::SchemeSerializeType),
|
||||||
#[error("unable to generate random values: {0}")]
|
#[error("unable to generate random values: {0}")]
|
||||||
RandomSourceError(getrandom::Error),
|
RandomSourceError(getrandom::Error),
|
||||||
#[error("system time error: {0}")]
|
#[error("system time error: {0}")]
|
||||||
|
|
Loading…
Reference in a new issue