From b5ee04a1c2b636d31a7452cdf5ac876399c2edee Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Wed, 21 Apr 2021 08:02:20 +0200 Subject: [PATCH] Fix warnings new in the 2021 edition of rust --- src/cmds.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmds.rs b/src/cmds.rs index 7180640..db6439a 100644 --- a/src/cmds.rs +++ b/src/cmds.rs @@ -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), } }