Slight optimisation
This commit is contained in:
parent
76facd0ec2
commit
02f8ac6095
1 changed files with 1 additions and 4 deletions
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue