summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 59f4286..7d31e24 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -33,7 +33,7 @@ async fn main() {
}
});
let sighup_handle = tokio::spawn(async move {
- let mut stream = signal(SignalKind::hangup()).unwrap();
+ let mut stream = signal(SignalKind::hangup()).expect("Should be a signal stream");
loop {
stream.recv().await;
sighup_handler().await;