Skip to content

Commit 1916e1c

Browse files
committed
clippy
1 parent f5d4708 commit 1916e1c

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,7 @@ where
17791779
}
17801780
} else {
17811781
Ok(ValidTransaction {
1782-
priority: priority,
1782+
priority,
17831783
..Default::default()
17841784
})
17851785
}

pallets/subtensor/src/staking/stake_utils.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -748,11 +748,7 @@ impl<T: Config> Pallet<T> {
748748
TotalStake::<T>::mutate(|total| {
749749
*total = total.saturating_add(actual_fee);
750750
});
751-
LastColdkeyHotkeyStakeBlock::<T>::insert(
752-
&coldkey,
753-
&hotkey,
754-
Self::get_current_block_as_u64(),
755-
);
751+
LastColdkeyHotkeyStakeBlock::<T>::insert(coldkey, hotkey, Self::get_current_block_as_u64());
756752

757753
// Step 5. Deposit and log the unstaking event.
758754
Self::deposit_event(Event::StakeRemoved(
@@ -812,11 +808,7 @@ impl<T: Config> Pallet<T> {
812808
TotalStake::<T>::mutate(|total| {
813809
*total = total.saturating_add(actual_fee);
814810
});
815-
LastColdkeyHotkeyStakeBlock::<T>::insert(
816-
&coldkey,
817-
&hotkey,
818-
Self::get_current_block_as_u64(),
819-
);
811+
LastColdkeyHotkeyStakeBlock::<T>::insert(coldkey, hotkey, Self::get_current_block_as_u64());
820812

821813
// Step 6. Deposit and log the staking event.
822814
Self::deposit_event(Event::StakeAdded(

0 commit comments

Comments
 (0)