From 6ca5b7c9c25c96b82fcba2f3ae823d532147a538 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sun, 25 Apr 2021 12:30:34 +0200 Subject: Fix warnings with new Rust version --- swaystatus/src/signalhandler/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swaystatus/src/signalhandler/mod.rs b/swaystatus/src/signalhandler/mod.rs index 20a91e7..1df0e73 100644 --- a/swaystatus/src/signalhandler/mod.rs +++ b/swaystatus/src/signalhandler/mod.rs @@ -16,7 +16,7 @@ pub fn handle_signals(scope : &Scope, sender : mpsc::Sender, message : communication::InternalMessage) { - sender.send(communication::Message::Internal(message)).unwrap_or_else(|_| {panic!(gettextrs::gettext("Message handler failed to send a message to main thread. This is supposed to be impossible. In any case it's a critical error."))}); + sender.send(communication::Message::Internal(message)).unwrap_or_else(|_| {panic!("{}",gettextrs::gettext("Message handler failed to send a message to main thread. This is supposed to be impossible. In any case it's a critical error."))}); } -- cgit v1.2.3