diff options
author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2022-11-28 14:14:39 +0530 |
---|---|---|
committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2022-11-28 14:14:39 +0530 |
commit | eab4c75b217950cf4272e490167137b1edb3b738 (patch) | |
tree | e28a2a706aca510923c69e850f8c8be1554c9d36 /src | |
parent | 07463c6301172a6f7af1272a25c2bb84ab4c48d2 (diff) |
expect instead of unwrap.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
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; |