Format templates and fix --steps default value (#12286)

* Cleaup imports

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Format template

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Set steps min value to two

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Oliver Tale-Yazdi
2022-09-21 13:08:56 +02:00
committed by GitHub
parent d5c57ffcc1
commit cb82064cb8
3 changed files with 18 additions and 7 deletions
@@ -43,7 +43,7 @@ pub struct PalletCmd {
pub extrinsic: Option<String>,
/// Select how many samples we should take across the variable components.
#[clap(short, long, default_value = "1")]
#[clap(short, long, default_value = "2")]
pub steps: u32,
/// Indicates lowest values for each of the component ranges.
@@ -15,7 +15,7 @@
#![allow(unused_parens)]
#![allow(unused_imports)]
use frame_support::{traits::Get, weights::{Weight}};
use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;
/// Weight functions for `{{pallet}}`.