Slight optimisation

This commit is contained in:
Nox Sluijtman 2025-06-21 21:16:26 +02:00
parent 76facd0ec2
commit 02f8ac6095
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M

View file

@ -84,10 +84,7 @@ fn main() {
let n = libnotify::Notification::new("Noise", None, None); let n = libnotify::Notification::new("Noise", None, None);
let cli = Cli::parse(); let cli = Cli::parse();
let host = match cli.host { let host = cli.host.unwrap_or("localhost:6600".into());
Some(host) => host,
None => String::from("localhost:6600"),
};
let mut conn = Client::connect(host).expect("Connection failed"); let mut conn = Client::connect(host).expect("Connection failed");