macro impl_validator_using_provider!: use $crate::server::ValidatorError instead of ValidatorError

This commit is contained in:
Raman Hafiyatulin 2023-07-30 17:17:26 +03:00
parent 372e37b31f
commit fd26d04635

View file

@ -13,11 +13,11 @@ macro_rules! impl_validator_using_provider {
&self,
identity: &$crate::common::Identity,
value: &$secret,
) -> Result<(), ValidatorError> {
) -> Result<(), $crate::server::ValidatorError> {
if &(self as &$crate::server::Provider<$secret>).provide(identity)? == value {
Ok(())
} else {
Err(ValidatorError::AuthenticationFailed)
Err($crate::server::ValidatorError::AuthenticationFailed)
}
}
}