diff --git a/pallets/marketplace/src/mock.rs b/pallets/marketplace/src/mock.rs index 87a8b8cb..f260bd4e 100644 --- a/pallets/marketplace/src/mock.rs +++ b/pallets/marketplace/src/mock.rs @@ -307,7 +307,7 @@ impl ManagerProvider for ManagerOf { pub struct ProcessorLastSeenProvider; impl crate::traits::ProcessorLastSeenProvider for ProcessorLastSeenProvider { - fn last_seen(processor: &::AccountId) -> Option { + fn last_seen(_processor: &::AccountId) -> Option { Some(AcurastMarketplace::now().unwrap().into()) } } diff --git a/pallets/parachain-staking/src/tests.rs b/pallets/parachain-staking/src/tests.rs index 3859bcc4..ad8c6f21 100644 --- a/pallets/parachain-staking/src/tests.rs +++ b/pallets/parachain-staking/src/tests.rs @@ -7825,7 +7825,7 @@ fn test_delegator_with_deprecated_status_leaving_can_schedule_leave_delegators_a .build() .execute_with(|| { >::mutate(2, |value| { - value.as_mut().map(|mut state| { + value.as_mut().map(|state| { state.status = DelegatorStatus::Leaving(2); }) }); @@ -7859,7 +7859,7 @@ fn test_delegator_with_deprecated_status_leaving_can_cancel_leave_delegators_as_ .build() .execute_with(|| { >::mutate(2, |value| { - value.as_mut().map(|mut state| { + value.as_mut().map(|state| { state.status = DelegatorStatus::Leaving(2); }) }); @@ -7886,7 +7886,7 @@ fn test_delegator_with_deprecated_status_leaving_can_execute_leave_delegators_as .build() .execute_with(|| { >::mutate(2, |value| { - value.as_mut().map(|mut state| { + value.as_mut().map(|state| { state.status = DelegatorStatus::Leaving(2); }) }); @@ -7919,7 +7919,7 @@ fn test_delegator_with_deprecated_status_leaving_cannot_execute_leave_delegators .build() .execute_with(|| { >::mutate(2, |value| { - value.as_mut().map(|mut state| { + value.as_mut().map(|state| { state.status = DelegatorStatus::Leaving(2); }) }); @@ -8202,7 +8202,7 @@ fn test_execute_leave_delegators_with_deprecated_status_leaving_removes_auto_com )); >::mutate(2, |value| { - value.as_mut().map(|mut state| { + value.as_mut().map(|state| { state.status = DelegatorStatus::Leaving(2); }) }); diff --git a/pallets/proxy/src/mock.rs b/pallets/proxy/src/mock.rs index e7c5493a..a9425cc9 100644 --- a/pallets/proxy/src/mock.rs +++ b/pallets/proxy/src/mock.rs @@ -419,7 +419,7 @@ pub mod acurast_runtime { impl pallet_acurast_marketplace::traits::ProcessorLastSeenProvider for ProcessorLastSeenProvider { - fn last_seen(processor: &::AccountId) -> Option { + fn last_seen(_processor: &::AccountId) -> Option { Some(AcurastMarketplace::now().unwrap().into()) } }