diff --git a/offchain/authority-claimer/src/claimer.rs b/offchain/authority-claimer/src/claimer.rs index ba0f084d..1c4ea83c 100644 --- a/offchain/authority-claimer/src/claimer.rs +++ b/offchain/authority-claimer/src/claimer.rs @@ -36,10 +36,10 @@ pub enum AuthorityClaimerError { #[derive(Default)] pub struct DefaultAuthorityClaimer<'a> { - lifetime: PhantomData<&'a ()>, + _lifetime: PhantomData<&'a ()>, } -impl<'a> DefaultAuthorityClaimer<'a> { +impl DefaultAuthorityClaimer<'_> { pub fn new() -> Self { Self::default() } diff --git a/offchain/authority-claimer/src/listener.rs b/offchain/authority-claimer/src/listener.rs index 6bfa5152..7ab23afa 100644 --- a/offchain/authority-claimer/src/listener.rs +++ b/offchain/authority-claimer/src/listener.rs @@ -14,11 +14,11 @@ pub trait BrokerListener: Sized + Send + Debug { } // ------------------------------------------------------------------------------------------------ -// RedisBrokerListener +// DefaultBrokerListener // ------------------------------------------------------------------------------------------------ #[derive(Debug)] -pub struct DefaultBrokerListener {} +pub struct DefaultBrokerListener; #[derive(Debug, Snafu)] pub enum DefaultBrokerListenerError { diff --git a/offchain/authority-claimer/src/sender.rs b/offchain/authority-claimer/src/sender.rs index 33080c16..bf9b09f6 100644 --- a/offchain/authority-claimer/src/sender.rs +++ b/offchain/authority-claimer/src/sender.rs @@ -25,7 +25,7 @@ pub trait ClaimSender: Sized + Send + Debug { // ------------------------------------------------------------------------------------------------ #[derive(Debug, Clone)] -pub struct TxManagerClaimSender {} +pub struct TxManagerClaimSender; #[derive(Debug, Snafu)] pub enum TxManagerClaimSenderError {