Fix warnings new in the 2021 edition of rust

timeout_old
Tassilo Horn 4 years ago
parent 334a6a6354
commit b5ee04a1c2
  1. 4
      src/cmds.rs

@ -87,7 +87,7 @@ fn quit_window_by_id(id: i64) {
fn get_tree() -> r::Node { fn get_tree() -> r::Node {
match s::Connection::new() { match s::Connection::new() {
Ok(mut con) => con.get_tree().expect("Got no root node"), Ok(mut con) => con.get_tree().expect("Got no root node"),
Err(err) => panic!(err), Err(err) => panic!("{}", err),
} }
} }
@ -342,6 +342,6 @@ pub fn run_sway_command(args: &[&str]) {
eprintln!("Could not run sway command: {}", err) eprintln!("Could not run sway command: {}", err)
} }
} }
Err(err) => panic!(err), Err(err) => panic!("{}", err),
} }
} }

Loading…
Cancel
Save