diff --git a/gateway/src/commands/mod.rs b/gateway/src/commands/mod.rs index 34ecc95b47..f3b1adac7c 100644 --- a/gateway/src/commands/mod.rs +++ b/gateway/src/commands/mod.rs @@ -5,7 +5,6 @@ use crate::Cli; use clap::CommandFactory; use clap::Subcommand; use nym_bin_common::completions::{fig_generate, ArgShell}; -use std::error::Error; pub(crate) mod build_info; pub(crate) mod helpers; @@ -50,7 +49,7 @@ pub(crate) enum Commands { GenerateFigSpec, } -pub(crate) async fn execute(args: Cli) -> Result<(), Box> { +pub(crate) async fn execute(args: Cli) -> anyhow::Result<()> { let bin_name = "nym-gateway"; match args.command { diff --git a/gateway/src/main.rs b/gateway/src/main.rs index f88398e0b9..44e33aec73 100644 --- a/gateway/src/main.rs +++ b/gateway/src/main.rs @@ -11,7 +11,6 @@ use nym_bin_common::bin_info; use nym_bin_common::logging::{maybe_print_banner, setup_logging}; use nym_bin_common::output_format::OutputFormat; use nym_network_defaults::setup_env; -use std::error::Error; use std::sync::OnceLock; mod commands; @@ -42,7 +41,7 @@ struct Cli { } #[tokio::main] -async fn main() -> Result<(), Box> { +async fn main() -> anyhow::Result<()> { setup_logging(); let args = Cli::parse();