From c88b19dc65e95013dd9cb476f708707e31eb6d1f Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Fri, 13 Oct 2023 14:57:31 -0700 Subject: [PATCH] Don't glob import the enum variants Makes it very difficult to jump to a specific reference to `FhSubcommands` if there's only the one glob import. --- src/main.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index fb8c3edc..45461561 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,7 @@ use std::io::IsTerminal; use clap::Parser; use crate::cli::{ - cmd::{CommandExecute, FhSubcommands::*}, + cmd::{CommandExecute, FhSubcommands}, Cli, }; @@ -29,13 +29,13 @@ async fn main() -> color_eyre::Result { cli.instrumentation.setup().await?; match cli.subcommand { - Add(add) => add.execute().await, - Init(init) => init.execute().await, - List(list) => list.execute().await, - Search(search) => search.execute().await, - Completion(completion) => completion.execute().await, - Convert(convert) => convert.execute().await, - Login(login) => login.execute().await, - Status(status) => status.execute().await, + FhSubcommands::Add(add) => add.execute().await, + FhSubcommands::Init(init) => init.execute().await, + FhSubcommands::List(list) => list.execute().await, + FhSubcommands::Search(search) => search.execute().await, + FhSubcommands::Completion(completion) => completion.execute().await, + FhSubcommands::Convert(convert) => convert.execute().await, + FhSubcommands::Login(login) => login.execute().await, + FhSubcommands::Status(status) => status.execute().await, } }