Skip to content

Commit 673d619

Browse files
committed
fix clippy
1 parent 98ed152 commit 673d619

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pallets/commitments/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ where
234234
pub fn get_priority_vanilla() -> u64 {
235235
// Return high priority so that every extrinsic except set_weights function will
236236
// have a higher priority than the set_weights call
237-
u64::MAX()
237+
u64::MAX
238238
}
239239
}
240240

pallets/subtensor/src/root.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1009,12 +1009,12 @@ impl<T: Config> Pallet<T> {
10091009
NetworkRegisteredAt::<T>::remove(netuid);
10101010

10111011
// --- 8. Remove incentive mechanism memory.
1012-
let _ = Uids::<T>::clear_prefix(netuid, u32::MAX(), None);
1013-
let _ = Keys::<T>::clear_prefix(netuid, u32::MAX(), None);
1014-
let _ = Bonds::<T>::clear_prefix(netuid, u32::MAX(), None);
1012+
let _ = Uids::<T>::clear_prefix(netuid, u32::MAX, None);
1013+
let _ = Keys::<T>::clear_prefix(netuid, u32::MAX, None);
1014+
let _ = Bonds::<T>::clear_prefix(netuid, u32::MAX, None);
10151015

10161016
// --- 8. Removes the weights for this subnet (do not remove).
1017-
let _ = Weights::<T>::clear_prefix(netuid, u32::MAX(), None);
1017+
let _ = Weights::<T>::clear_prefix(netuid, u32::MAX, None);
10181018

10191019
// --- 9. Iterate over stored weights and fill the matrix.
10201020
for (uid_i, weights_i) in

0 commit comments

Comments
 (0)