From a95018cc9039851e707973bc19faf907132ae4f3 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Tue, 12 Apr 2022 23:06:19 +0100 Subject: goodbye warp, hello axum (#296) --- src/command/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command/server.rs') diff --git a/src/command/server.rs b/src/command/server.rs index 6047e5bf..9d97e928 100644 --- a/src/command/server.rs +++ b/src/command/server.rs @@ -10,7 +10,7 @@ pub enum Cmd { /// Start the server Start { /// The host address to bind - #[clap(long, short)] + #[clap(long)] host: Option, /// The port to bind @@ -20,7 +20,7 @@ pub enum Cmd { } impl Cmd { - pub async fn run(&self, settings: &Settings) -> Result<()> { + pub async fn run(&self, settings: Settings) -> Result<()> { match self { Self::Start { host, port } => { let host = host -- cgit v1.3.1