~tsdh/swayr

b5ee04a1c2b636d31a7452cdf5ac876399c2edee — Tassilo Horn 2 months ago 334a6a6
Fix warnings new in the 2021 edition of rust
1 files changed, 2 insertions(+), 2 deletions(-)

M src/cmds.rs
M src/cmds.rs => src/cmds.rs +2 -2
@@ 87,7 87,7 @@ fn quit_window_by_id(id: i64) {
fn get_tree() -> r::Node {
    match s::Connection::new() {
        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)
            }
        }
        Err(err) => panic!(err),
        Err(err) => panic!("{}", err),
    }
}