Skip to content

Commit

Permalink
fix: clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
YourUsername committed Sep 17, 2024
1 parent 367c84c commit a1fa029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/subnet_emission/src/post_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl<T: Config> Pallet<T> {
log::info!("Deregistering module with UID: {}", uid);

let _ = PalletS::<T>::remove_module(netuid, uid, false);
module_count -= 1;
module_count = module_count.saturating_sub(1);
weight = weight.saturating_add(deregister_weight);
remaining = remaining.saturating_sub(deregister_weight);
} else {
Expand Down

0 comments on commit a1fa029

Please sign in to comment.