From 3bf5e84b3b3d7305080375df086bae10209f05f3 Mon Sep 17 00:00:00 2001 From: Renan Date: Mon, 31 Jul 2023 12:23:42 -0300 Subject: [PATCH] minor --- offchain/authority-claimer/src/claimer.rs | 4 ++-- offchain/authority-claimer/src/listener.rs | 4 ++-- offchain/authority-claimer/src/sender.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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 {