Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Aug 16, 2023
1 parent aeec555 commit f78dd8d
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 13 deletions.
1 change: 0 additions & 1 deletion modules/asset-registry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ use frame_support::{
ensure,
pallet_prelude::*,
traits::{Currency, EnsureOrigin},
transactional,
};
use frame_system::pallet_prelude::*;
use module_support::{AssetIdMapping, BuyWeightRate, EVMBridge, Erc20InfoMapping, InvokeContext, Ratio};
Expand Down
2 changes: 1 addition & 1 deletion modules/dex-oracle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#![allow(clippy::unused_unit)]
#![allow(clippy::type_complexity)]

use frame_support::{pallet_prelude::*, traits::Time, transactional};
use frame_support::{pallet_prelude::*, traits::Time};
use frame_system::pallet_prelude::*;
use orml_traits::Happened;
use primitives::{Balance, CurrencyId, TradingPair};
Expand Down
1 change: 0 additions & 1 deletion modules/earning/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use frame_support::{
pallet_prelude::*,
traits::{Currency, ExistenceRequirement, LockIdentifier, LockableCurrency, OnUnbalanced, WithdrawReasons},
transactional,
};
use frame_system::pallet_prelude::*;
use orml_traits::Happened;
Expand Down
2 changes: 1 addition & 1 deletion modules/emergency-shutdown/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(clippy::unused_unit)]

use frame_support::{pallet_prelude::*, transactional};
use frame_support::pallet_prelude::*;
use frame_system::{ensure_signed, pallet_prelude::*};
use primitives::{Balance, CurrencyId};
use sp_runtime::{traits::Zero, FixedPointNumber};
Expand Down
1 change: 0 additions & 1 deletion modules/evm-accounts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ use frame_support::{
ensure,
pallet_prelude::*,
traits::{Currency, IsType, OnKilledAccount},
transactional,
};
use frame_system::{ensure_signed, pallet_prelude::*};
use module_evm_utility_macro::keccak256;
Expand Down
2 changes: 1 addition & 1 deletion modules/homa-validator-list/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#![allow(clippy::collapsible_if)]

use codec::MaxEncodedLen;
use frame_support::{pallet_prelude::*, traits::Contains, transactional};
use frame_support::{pallet_prelude::*, traits::Contains};
use frame_system::pallet_prelude::*;
use orml_traits::{BasicCurrency, BasicLockableCurrency, Happened, LockIdentifier};
use primitives::Balance;
Expand Down
2 changes: 1 addition & 1 deletion modules/honzon-bridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(clippy::unused_unit)]

use frame_support::{pallet_prelude::*, transactional};
use frame_support::pallet_prelude::*;
use frame_system::pallet_prelude::*;

use primitives::{currency::KUSD, evm::EvmAddress, Balance, CurrencyId};
Expand Down
2 changes: 1 addition & 1 deletion modules/honzon/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(clippy::unused_unit)]

use frame_support::{pallet_prelude::*, traits::NamedReservableCurrency, transactional};
use frame_support::{pallet_prelude::*, traits::NamedReservableCurrency};
use frame_system::pallet_prelude::*;
use primitives::{Amount, Balance, CurrencyId, Position, ReserveIdentifier};
use sp_core::U256;
Expand Down
2 changes: 1 addition & 1 deletion modules/nft/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use frame_support::{
ExistenceRequirement::{AllowDeath, KeepAlive},
NamedReservableCurrency,
},
transactional, PalletId,
PalletId,
};
use frame_system::pallet_prelude::*;
use orml_traits::InspectExtended;
Expand Down
2 changes: 1 addition & 1 deletion modules/nominees-election/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use frame_support::{
log,
pallet_prelude::*,
traits::{Contains, Get, LockIdentifier},
transactional, BoundedVec,
BoundedVec,
};
use frame_system::pallet_prelude::*;
use orml_traits::{BasicCurrency, BasicLockableCurrency};
Expand Down
2 changes: 1 addition & 1 deletion modules/prices/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(clippy::unused_unit)]

use frame_support::{pallet_prelude::*, transactional};
use frame_support::pallet_prelude::*;
use frame_system::pallet_prelude::*;
use orml_traits::{DataFeeder, DataProvider, GetByKey, MultiCurrency};
use primitives::{Balance, CurrencyId, Lease};
Expand Down
1 change: 0 additions & 1 deletion modules/transaction-pause/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use frame_support::{
dispatch::{CallMetadata, GetCallMetadata},
pallet_prelude::*,
traits::{Contains, PalletInfoAccess},
transactional,
};
use frame_system::pallet_prelude::*;
use sp_core::H160;
Expand Down
2 changes: 1 addition & 1 deletion modules/xcm-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(clippy::unused_unit)]

use frame_support::{log, pallet_prelude::*, traits::Get, transactional};
use frame_support::{log, pallet_prelude::*, traits::Get};
use frame_system::pallet_prelude::*;
use module_support::{CallBuilder, CrowdloanVaultXcm, HomaSubAccountXcm};
use orml_traits::XcmTransfer;
Expand Down

0 comments on commit f78dd8d

Please sign in to comment.