From c933ed380949a45144121f7560f75b484b4ce61e Mon Sep 17 00:00:00 2001 From: Uncle Stretch Date: Tue, 29 Jul 2025 14:27:08 +0300 Subject: [PATCH] rustfmt generate-bags and fix typos Signed-off-by: Uncle Stretch --- utils/generate-bags/Cargo.toml | 2 +- utils/generate-bags/src/main.rs | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/utils/generate-bags/Cargo.toml b/utils/generate-bags/Cargo.toml index 4ca584d..0a846f5 100644 --- a/utils/generate-bags/Cargo.toml +++ b/utils/generate-bags/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ghost-voter-bags" -version = "0.3.6" +version = "0.3.7" description = "CLI to generate voter bags for Ghost runtimes" license.workspace = true authors.workspace = true diff --git a/utils/generate-bags/src/main.rs b/utils/generate-bags/src/main.rs index 4330cbd..3eeb791 100644 --- a/utils/generate-bags/src/main.rs +++ b/utils/generate-bags/src/main.rs @@ -4,10 +4,10 @@ //! again. It can be resued to generate a wholly different quantity of bags, //! or if the existential deposit changes, etc. +use casper_runtime::Runtime as CasperRuntime; use clap::{Parser, ValueEnum}; use generate_bags::generate_thresholds; use std::path::{Path, PathBuf}; -use casper_runtime::Runtime as CasperRuntime; #[derive(Clone, Debug, ValueEnum)] #[value(rename_all = "kebab-case")] @@ -36,7 +36,7 @@ struct Opt { runtime: Runtime, /// Where to write the output. - #[arg(short, long, value_name="FILE")] + #[arg(short, long, value_name = "FILE")] output: PathBuf, /// The total issuance of the native currency (`value` * 10^18). @@ -50,6 +50,12 @@ struct Opt { } fn main() -> Result<(), std::io::Error> { - let Opt { n_bags, output, runtime, total_issuance, minimum_balance } = Opt::parse(); + let Opt { + n_bags, + output, + runtime, + total_issuance, + minimum_balance, + } = Opt::parse(); runtime.generate_thresholds_fn()(n_bags, &output, total_issuance, minimum_balance) }