diff --git a/pallets/distance/src/lib.rs b/pallets/distance/src/lib.rs index ddcff521833871062ddab62fe08951f7d37705c1..4860ff4b4f9e9b9a25a1bc0016500021200559dd 100644 --- a/pallets/distance/src/lib.rs +++ b/pallets/distance/src/lib.rs @@ -555,7 +555,7 @@ pub mod pallet { } Some(false) => { // negative result, slash and deposit event - T::Currency::slash_reserved( + let _ = T::Currency::slash_reserved( &requester, <T as Config>::EvaluationPrice::get(), ); diff --git a/pallets/oneshot-account/src/lib.rs b/pallets/oneshot-account/src/lib.rs index 0c86b3ce425d5bd0028745615e0d3d3a7f7db50c..637debf4d6ee77bd9aac739bc967ee57048a1d58 100644 --- a/pallets/oneshot-account/src/lib.rs +++ b/pallets/oneshot-account/src/lib.rs @@ -147,7 +147,7 @@ pub mod pallet { Error::<T>::OneshotAccountAlreadyCreated ); - <T::Currency as Currency<T::AccountId>>::withdraw( + let _ = <T::Currency as Currency<T::AccountId>>::withdraw( &transactor, value, WithdrawReasons::TRANSFER, @@ -206,7 +206,8 @@ pub mod pallet { creator: transactor.clone(), }); } else { - <T::Currency as Currency<T::AccountId>>::deposit_into_existing(&dest, value)?; + let _ = + <T::Currency as Currency<T::AccountId>>::deposit_into_existing(&dest, value)?; } OneshotAccounts::<T>::remove(&transactor); Self::deposit_event(Event::OneshotAccountConsumed { @@ -295,7 +296,9 @@ pub mod pallet { creator: transactor.clone(), }); } else { - <T::Currency as Currency<T::AccountId>>::deposit_into_existing(&dest2, balance2)?; + let _ = <T::Currency as Currency<T::AccountId>>::deposit_into_existing( + &dest2, balance2, + )?; } if dest1_is_oneshot { OneshotAccounts::<T>::insert(&dest1, balance1); @@ -305,7 +308,9 @@ pub mod pallet { creator: transactor.clone(), }); } else { - <T::Currency as Currency<T::AccountId>>::deposit_into_existing(&dest1, balance1)?; + let _ = <T::Currency as Currency<T::AccountId>>::deposit_into_existing( + &dest1, balance1, + )?; } OneshotAccounts::<T>::remove(&transactor); Self::deposit_event(Event::OneshotAccountConsumed { diff --git a/pallets/universal-dividend/src/lib.rs b/pallets/universal-dividend/src/lib.rs index 7a446c483d96c9a92fd1eb31031ad93d5941c9e4..a360fbdf4a9cac88631fd1353e33822fa57fdea2 100644 --- a/pallets/universal-dividend/src/lib.rs +++ b/pallets/universal-dividend/src/lib.rs @@ -305,7 +305,7 @@ pub mod pallet { core::num::NonZeroU16::new(current_ud_index) .expect("unreachable because current_ud_index is never zero."), ); - T::Currency::deposit_creating(who, uds_total); + let _ = T::Currency::deposit_creating(who, uds_total); Self::deposit_event(Event::UdsClaimed { count: uds_count, total: uds_total, @@ -443,7 +443,7 @@ pub mod pallet { first_ud_index, PastReevals::<T>::get().into_iter(), ); - T::Currency::deposit_creating(who, uds_total); + let _ = T::Currency::deposit_creating(who, uds_total); Self::deposit_event(Event::UdsAutoPaid { count: uds_count, total: uds_total,