mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 11:41:02 +00:00
Fix/ignore clippy warnings (#1157)
* fix/ignore clippy * --locked check && test * RUSTC_WRAPPER="" for clippy-nightly, check-nightly, test-nightly
This commit is contained in:
committed by
Bastian Köcher
parent
70f87e826c
commit
87cbb382d9
@@ -556,6 +556,7 @@ pub mod pallet {
|
||||
StorageMap<_, Identity, H256, AuraScheduledChange>;
|
||||
|
||||
#[pallet::genesis_config]
|
||||
#[cfg_attr(feature = "std", derive(Default))]
|
||||
pub struct GenesisConfig {
|
||||
/// PoA header to start with.
|
||||
pub initial_header: AuraHeader,
|
||||
@@ -565,17 +566,6 @@ pub mod pallet {
|
||||
pub initial_validators: Vec<Address>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl Default for GenesisConfig {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
initial_header: Default::default(),
|
||||
initial_difficulty: Default::default(),
|
||||
initial_validators: Default::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[pallet::genesis_build]
|
||||
impl<T: Config<I>, I: 'static> GenesisBuild<T, I> for GenesisConfig {
|
||||
fn build(&self) {
|
||||
|
||||
@@ -192,6 +192,7 @@ pub mod pallet {
|
||||
/// rules will lead to losing message fees for this and other transactions + losing fees for message
|
||||
/// transfer.
|
||||
#[pallet::weight(0)]
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn create_swap(
|
||||
origin: OriginFor<T>,
|
||||
swap: TokenSwapOf<T, I>,
|
||||
|
||||
Reference in New Issue
Block a user