summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMaxVerevkin <maxxverrr@gmail.com>2022-08-27 09:16:12 +0300
committerMaxVerevkin <maxxverrr@gmail.com>2022-08-27 09:19:12 +0300
commitf0e53e6b8119d872f5986c3fcb4403d7b8214382 (patch)
treeb5392afd381f7ccdfe081c2d180581ae1113a0cc /src/main.rs
parenta68c55c3462fa9c716a4d286a11cc451ac917800 (diff)
downloadi3bar-mango-f0e53e6b8119d872f5986c3fcb4403d7b8214382.tar.gz
refactor
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 b158c91..7f8dd38 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -50,7 +50,7 @@ async fn main() -> anyhow::Result<()> {
readable = state.wait_for_status_cmd() => {
readable?.clear_ready();
if let Err(e) = state.notify_available() {
- if let Some(mut status_cmd) = state.shared_state.as_mut().unwrap().status_cmd.take() {
+ if let Some(mut status_cmd) = state.shared_state.status_cmd.take() {
let _ = status_cmd.child.kill();
}
state.set_error(e.to_string());