aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2021-04-25 12:30:34 +0200
committerAndreas Grois <andi@grois.info>2021-04-25 12:30:34 +0200
commit6ca5b7c9c25c96b82fcba2f3ae823d532147a538 (patch)
treee931f1844f7b9aa4cb3e5ef2da28a2921ded8aec
parent81d450181eed9a3813fc40cc7976547fbe3e39b7 (diff)
Fix warnings with new Rust version
-rw-r--r--swaystatus/src/signalhandler/mod.rs4
1 files 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<communication::Messa
signal::SIGPIPE, //quit, because nobody's listening
signal::SIGHUP, //quit, but send the Reload message instead of the Quit one.
signal::SIGUSR1, //trigger a refresh. The ONLY one upon which we dont break the loop!
- ]).unwrap_or_else(|_| {panic!(gettextrs::gettext("Failed to register signal handler. Since without signal handler there's no proper way to cleanly exit any plugins, we bail now."))});
+ ]).unwrap_or_else(|_| {panic!("{}",gettextrs::gettext("Failed to register signal handler. Since without signal handler there's no proper way to cleanly exit any plugins, we bail now."))});
scope.spawn(move |_| {
for signal in &mut signals {
@@ -31,5 +31,5 @@ pub fn handle_signals(scope : &Scope, sender : mpsc::Sender<communication::Messa
}
fn send(sender : &mpsc::Sender<communication::Message>, 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."))});
}