From cec97741452e542d78fa9f029bd0787b86549e9c Mon Sep 17 00:00:00 2001 From: Chad Ostrowski <221614+chadoh@users.noreply.github.com> Date: Wed, 28 Aug 2024 14:59:42 -0400 Subject: [PATCH 1/2] chore: remove unused `enum FrontendTemplate` It was marked as `pub` so the checker didn't tell us it was unused. But it's not used anywhere else in the codebase. --- cmd/soroban-cli/src/commands/contract/init.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cmd/soroban-cli/src/commands/contract/init.rs b/cmd/soroban-cli/src/commands/contract/init.rs index a83504d96..5db389715 100644 --- a/cmd/soroban-cli/src/commands/contract/init.rs +++ b/cmd/soroban-cli/src/commands/contract/init.rs @@ -26,12 +26,6 @@ const GITHUB_URL: &str = "https://github.com"; const WITH_EXAMPLE_LONG_HELP_TEXT: &str = "An optional flag to specify Soroban example contracts to include. A hello-world contract will be included by default."; -#[derive(Clone, Debug, ValueEnum, PartialEq)] -pub enum FrontendTemplate { - Astro, - None, -} - #[derive(Parser, Debug, Clone)] #[group(skip)] pub struct Cmd { From df4426c20a64caf4ed2472caa5da29da996d357c Mon Sep 17 00:00:00 2001 From: Willem Wyndham Date: Thu, 29 Aug 2024 11:55:59 +0200 Subject: [PATCH 2/2] fix: cargo fmt --- cmd/soroban-cli/src/commands/contract/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/soroban-cli/src/commands/contract/init.rs b/cmd/soroban-cli/src/commands/contract/init.rs index 5db389715..e38f27d7e 100644 --- a/cmd/soroban-cli/src/commands/contract/init.rs +++ b/cmd/soroban-cli/src/commands/contract/init.rs @@ -1,6 +1,6 @@ use clap::{ builder::{PossibleValue, PossibleValuesParser, ValueParser}, - Parser, ValueEnum, + Parser, }; use gix::{clone, create, open, progress, remote}; use rust_embed::RustEmbed;