Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
vgantchev committed Jan 15, 2025
1 parent 8bc6f60 commit f89e817
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions pallets/dispatcher/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,7 @@ use hydradx_traits::Create as CreateRegistry;
#[cfg(feature = "runtime-benchmarks")]
use sp_runtime::DispatchError;
#[cfg(feature = "runtime-benchmarks")]
impl<T: Config> CreateRegistry<Balance> for DummyRegistry<T>
where
T::AssetId: Into<AssetId> + From<u32>,
{
impl<T: Config> CreateRegistry<Balance> for DummyRegistry<T> {
type Error = DispatchError;
type Name = sp_runtime::BoundedVec<u8, sp_core::ConstU32<100>>;
type Symbol = sp_runtime::BoundedVec<u8, sp_core::ConstU32<100>>;
Expand Down
4 changes: 1 addition & 3 deletions pallets/dispatcher/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use crate as dispatcher;
use crate::mock::*;
use crate::Event;
use crate::Weight;
use frame_support::dispatch::Pays;
use frame_support::{assert_noop, assert_ok, dispatch::PostDispatchInfo};
use orml_traits::MultiCurrency;
Expand Down Expand Up @@ -30,7 +28,7 @@ fn dispatch_as_treasury_should_work() {
assert_eq!(treasury_balance_after, treasury_balance_before - 1_000);

expect_events(vec![Event::TreasuryManagerCallDispatched {
call_hash: call_hash,
call_hash,
result: Ok(PostDispatchInfo {
actual_weight: None,
pays_fee: Pays::Yes,
Expand Down

0 comments on commit f89e817

Please sign in to comment.