mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 02:21:04 +00:00
Easy PR: Fix warnings from latest nightly (#14195)
* unneeded mut * remove needless borrows
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user