Re-export PrepareVerifyError

This commit is contained in:
asonix 2022-11-28 18:38:31 -06:00
parent 878abecd4c
commit 19d3c28116

View file

@ -5,7 +5,7 @@
pub use actix_web_lab::extract::RequestSignature;
pub use http_signature_normalization::{
verify::{Algorithm, DeprecatedAlgorithm},
Config,
Config, PrepareVerifyError,
};
pub type Signed<Extractor, Config, Digest, VerifyKey> =
@ -19,7 +19,7 @@ pub enum Error {
Digest,
Signature,
InvalidHeaderValue,
PrepareVerify(http_signature_normalization::PrepareVerifyError),
PrepareVerify(PrepareVerifyError),
}
impl std::fmt::Display for Error {
@ -54,8 +54,8 @@ impl actix_web::ResponseError for Error {
}
}
impl From<http_signature_normalization::PrepareVerifyError> for Error {
fn from(e: http_signature_normalization::PrepareVerifyError) -> Self {
impl From<PrepareVerifyError> for Error {
fn from(e: PrepareVerifyError) -> Self {
Error::PrepareVerify(e)
}
}