Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Feb 27, 2024
1 parent 92266a2 commit a725c17
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions primitives/src/ceremonies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,9 @@ pub enum Reputation {

impl Reputation {
pub fn is_verified(&self) -> bool {
match self {
Self::VerifiedLinked(_) => true,
Self::VerifiedUnlinked => true,
_ => false,
}
matches!(self, Self::VerifiedLinked(_) | Self::VerifiedUnlinked)
}

pub fn is_verified_and_unlinked_for_cindex(&self, cindex: CeremonyIndexType) -> bool {
match self {
Self::VerifiedUnlinked => true,
Expand Down

0 comments on commit a725c17

Please sign in to comment.