Skip to content

Commit d7c6502

Browse files
committed
simplify bounds
Signed-off-by: Nikolaos Dymitriadis <[email protected]>
1 parent 2814ac7 commit d7c6502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toolkit/primitives/authority-selection-inherents/src/filter_invalid_candidates.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ pub enum Candidate<TAccountId, TAccountKeys> {
4343
Registered(CandidateWithStake<TAccountId, TAccountKeys>),
4444
}
4545

46-
impl<TAccountId: Ord + Eq, TAccountKeys: Eq> PartialOrd for Candidate<TAccountId, TAccountKeys> {
46+
impl<TAccountId: Ord, TAccountKeys: Eq> PartialOrd for Candidate<TAccountId, TAccountKeys> {
4747
fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> {
4848
Some(self.cmp(other))
4949
}
5050
}
51-
impl<TAccountId: Ord + Eq, TAccountKeys: Eq> Ord for Candidate<TAccountId, TAccountKeys> {
51+
impl<TAccountId: Ord, TAccountKeys: Eq> Ord for Candidate<TAccountId, TAccountKeys> {
5252
fn cmp(&self, other: &Self) -> core::cmp::Ordering {
5353
self.account_id().cmp(other.account_id())
5454
}

0 commit comments

Comments
 (0)