File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
delegates/token-generator/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ impl TokenAssignmentInternal for TokenAllocationRecord {
310
310
Some ( currently_assigned) => {
311
311
let mut oldest_valid_observed = None ;
312
312
let mut first_valid = None ;
313
- for ( _idx , assignment) in currently_assigned. iter ( ) . enumerate ( ) {
313
+ for assignment in currently_assigned. iter ( ) {
314
314
// dbg!(
315
315
// oldest_valid_observed.map(|a: &TokenAssignment| a.time_slot),
316
316
// first_valid,
Original file line number Diff line number Diff line change @@ -728,7 +728,7 @@ impl TokenAssignment {
728
728
TokenAssignment :: signature_content ( & self . time_slot , self . tier , & self . assignment_hash ) ;
729
729
if verifying_key. verify ( & msg, & self . signature ) . is_err ( ) {
730
730
// not signed by the private key of this generator
731
- #[ cfg( all( target_family = "wasm" , features = "contract" ) ) ]
731
+ #[ cfg( all( target_family = "wasm" , feature = "contract" ) ) ]
732
732
{
733
733
freenet_stdlib:: log:: info ( & format ! (
734
734
"failed verification of message `{msg:?}` with signature: `{sig}`" ,
@@ -743,7 +743,7 @@ impl TokenAssignment {
743
743
744
744
impl PartialOrd for TokenAssignment {
745
745
fn partial_cmp ( & self , other : & Self ) -> Option < std:: cmp:: Ordering > {
746
- Some ( self . time_slot . cmp ( & other. time_slot ) )
746
+ Some ( self . cmp ( other) )
747
747
}
748
748
}
749
749
You can’t perform that action at this time.
0 commit comments