Easy PR: Fix warnings from latest nightly (#14195)

* unneeded mut

* remove needless borrows
This commit is contained in:
Squirrel
2023-05-23 16:06:48 +01:00
committed by GitHub
parent 0fd0fb44d6
commit ea21a495f8
13 changed files with 31 additions and 33 deletions
+4 -4
View File
@@ -331,7 +331,7 @@ pub mod pallet {
parent_bounty_id,
child_bounty_id,
|maybe_child_bounty| -> DispatchResult {
let mut child_bounty =
let child_bounty =
maybe_child_bounty.as_mut().ok_or(BountiesError::<T>::InvalidIndex)?;
// Ensure child-bounty is in expected state.
@@ -396,7 +396,7 @@ pub mod pallet {
parent_bounty_id,
child_bounty_id,
|maybe_child_bounty| -> DispatchResult {
let mut child_bounty =
let child_bounty =
maybe_child_bounty.as_mut().ok_or(BountiesError::<T>::InvalidIndex)?;
// Ensure child-bounty is in expected state.
@@ -473,7 +473,7 @@ pub mod pallet {
parent_bounty_id,
child_bounty_id,
|maybe_child_bounty| -> DispatchResult {
let mut child_bounty =
let child_bounty =
maybe_child_bounty.as_mut().ok_or(BountiesError::<T>::InvalidIndex)?;
let slash_curator = |curator: &T::AccountId,
@@ -591,7 +591,7 @@ pub mod pallet {
parent_bounty_id,
child_bounty_id,
|maybe_child_bounty| -> DispatchResult {
let mut child_bounty =
let child_bounty =
maybe_child_bounty.as_mut().ok_or(BountiesError::<T>::InvalidIndex)?;
// Ensure child-bounty is in active state.