Skip to content

Commit

Permalink
Fix clippy warning (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidli2010 authored May 25, 2024
1 parent 3c6b273 commit 1fb2bc6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/rpc/election.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,13 @@ impl LeaderKey {
}
}

impl Default for LeaderKey {
#[inline]
fn default() -> Self {
Self::new()
}
}

impl From<LeaderKey> for PbLeaderKey {
#[inline]
fn from(leader_key: LeaderKey) -> Self {
Expand Down

0 comments on commit 1fb2bc6

Please sign in to comment.