Skip to content

Commit

Permalink
fix: format module code
Browse files Browse the repository at this point in the history
  • Loading branch information
saiintbrisson committed Feb 29, 2024
1 parent 23f0b4d commit e8bc9b8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pallets/subspace/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,7 @@ impl<T: Config> Pallet<T> {

let weights: Vec<(u16, u16)> = Weights::<T>::get(netuid, uid)
.iter()
.filter_map(|(i, w)| {
if *w > 0 {
Some(((*i), (*w)))
} else {
None
}
})
.filter_map(|(i, w)| if *w > 0 { Some((*i, *w)) } else { None })
.collect();
let stake_from: Vec<(T::AccountId, u64)> = StakeFrom::<T>::get(netuid, key);
let registration_block = Self::get_registration_block_for_uid(netuid, uid);
Expand Down

0 comments on commit e8bc9b8

Please sign in to comment.