diff --git a/src/main.rs b/src/main.rs index 574fcda..1fcbfb3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -84,10 +84,7 @@ fn main() { let n = libnotify::Notification::new("Noise", None, None); let cli = Cli::parse(); - let host = match cli.host { - Some(host) => host, - None => String::from("localhost:6600"), - }; + let host = cli.host.unwrap_or("localhost:6600".into()); let mut conn = Client::connect(host).expect("Connection failed");