Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
fix: warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gitsimon committed May 26, 2023
1 parent d218452 commit 9bb8594
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pallets/marketplace/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ impl ManagerProvider<Test> for ManagerOf {
pub struct ProcessorLastSeenProvider;

impl crate::traits::ProcessorLastSeenProvider<Test> for ProcessorLastSeenProvider {
fn last_seen(processor: &<Test as frame_system::Config>::AccountId) -> Option<u128> {
fn last_seen(_processor: &<Test as frame_system::Config>::AccountId) -> Option<u128> {
Some(AcurastMarketplace::now().unwrap().into())
}
}
Expand Down
10 changes: 5 additions & 5 deletions pallets/parachain-staking/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7825,7 +7825,7 @@ fn test_delegator_with_deprecated_status_leaving_can_schedule_leave_delegators_a
.build()
.execute_with(|| {
<DelegatorState<Test>>::mutate(2, |value| {
value.as_mut().map(|mut state| {
value.as_mut().map(|state| {
state.status = DelegatorStatus::Leaving(2);
})
});
Expand Down Expand Up @@ -7859,7 +7859,7 @@ fn test_delegator_with_deprecated_status_leaving_can_cancel_leave_delegators_as_
.build()
.execute_with(|| {
<DelegatorState<Test>>::mutate(2, |value| {
value.as_mut().map(|mut state| {
value.as_mut().map(|state| {
state.status = DelegatorStatus::Leaving(2);
})
});
Expand All @@ -7886,7 +7886,7 @@ fn test_delegator_with_deprecated_status_leaving_can_execute_leave_delegators_as
.build()
.execute_with(|| {
<DelegatorState<Test>>::mutate(2, |value| {
value.as_mut().map(|mut state| {
value.as_mut().map(|state| {
state.status = DelegatorStatus::Leaving(2);
})
});
Expand Down Expand Up @@ -7919,7 +7919,7 @@ fn test_delegator_with_deprecated_status_leaving_cannot_execute_leave_delegators
.build()
.execute_with(|| {
<DelegatorState<Test>>::mutate(2, |value| {
value.as_mut().map(|mut state| {
value.as_mut().map(|state| {
state.status = DelegatorStatus::Leaving(2);
})
});
Expand Down Expand Up @@ -8202,7 +8202,7 @@ fn test_execute_leave_delegators_with_deprecated_status_leaving_removes_auto_com
));

<DelegatorState<Test>>::mutate(2, |value| {
value.as_mut().map(|mut state| {
value.as_mut().map(|state| {
state.status = DelegatorStatus::Leaving(2);
})
});
Expand Down
2 changes: 1 addition & 1 deletion pallets/proxy/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ pub mod acurast_runtime {
impl pallet_acurast_marketplace::traits::ProcessorLastSeenProvider<Runtime>
for ProcessorLastSeenProvider
{
fn last_seen(processor: &<Runtime as frame_system::Config>::AccountId) -> Option<u128> {
fn last_seen(_processor: &<Runtime as frame_system::Config>::AccountId) -> Option<u128> {
Some(AcurastMarketplace::now().unwrap().into())
}
}
Expand Down

0 comments on commit 9bb8594

Please sign in to comment.