Skip to content

Commit dc96aad

Browse files
committed
fix clippy issue
1 parent c8b5ea0 commit dc96aad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pallets/subtensor/src/root.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,11 @@ impl<T: Config> Pallet<T> {
577577
}
578578

579579
// --- 15. Update the registration counters for both the block and interval.
580+
#[allow(clippy::arithmetic_side_effects)]
581+
// note this RA + clippy false positive is a known substrate issue
580582
RegistrationsThisInterval::<T>::mutate(root_netuid, |val| *val += 1);
583+
#[allow(clippy::arithmetic_side_effects)]
584+
// note this RA + clippy false positive is a known substrate issue
581585
RegistrationsThisBlock::<T>::mutate(root_netuid, |val| *val += 1);
582586

583587
// --- 16. Log and announce the successful registration.

0 commit comments

Comments
 (0)