summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2022-11-28 14:14:39 +0530
committerSunil Nimmagadda <sunil@nimmagadda.net>2022-11-28 14:14:39 +0530
commiteab4c75b217950cf4272e490167137b1edb3b738 (patch)
treee28a2a706aca510923c69e850f8c8be1554c9d36 /src/main.rs
parent07463c6301172a6f7af1272a25c2bb84ab4c48d2 (diff)
expect instead of unwrap.
Diffstat (limited to 'src/main.rs')
-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;