Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
renan061 committed Jul 31, 2023
1 parent 5106887 commit 3bf5e84
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions offchain/authority-claimer/src/claimer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ pub enum AuthorityClaimerError<S: ClaimSender, L: BrokerListener> {

#[derive(Default)]
pub struct DefaultAuthorityClaimer<'a> {
lifetime: PhantomData<&'a ()>,
_lifetime: PhantomData<&'a ()>,
}

impl<'a> DefaultAuthorityClaimer<'a> {
impl DefaultAuthorityClaimer<'_> {
pub fn new() -> Self {
Self::default()
}
Expand Down
4 changes: 2 additions & 2 deletions offchain/authority-claimer/src/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion offchain/authority-claimer/src/sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3bf5e84

Please sign in to comment.