From d20e6d4b2b081b7acced60286956a78d8f3c37df Mon Sep 17 00:00:00 2001 From: lumi Date: Sat, 25 Mar 2017 23:25:28 +0100 Subject: [PATCH] lower rust versions really don't like this --- sasl/src/server/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sasl/src/server/mod.rs b/sasl/src/server/mod.rs index 9436fdb2..292dc004 100644 --- a/sasl/src/server/mod.rs +++ b/sasl/src/server/mod.rs @@ -3,8 +3,8 @@ use secret::SecretKind; #[macro_export] macro_rules! impl_validator_using_provider { - ( $type:ty, $secret:ty ) => { - impl $crate::server::Validator<$secret> for $type { + ( $validator:ty, $secret:ty ) => { + impl $crate::server::Validator<$secret> for $validator { fn validate(&self, identity: &$crate::common::Identity , value: &<$secret as sasl::secret::SecretKind>::Value) -> Result<(), String> { if &(self as &$crate::server::Provider<$secret>).provide(identity)? == value {