diff --git a/sasl/src/server/mod.rs b/sasl/src/server/mod.rs index d3fcd7e9..897b000d 100644 --- a/sasl/src/server/mod.rs +++ b/sasl/src/server/mod.rs @@ -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) } } }