diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2022-08-27 09:16:12 +0300 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2022-08-27 09:19:12 +0300 |
| commit | f0e53e6b8119d872f5986c3fcb4403d7b8214382 (patch) | |
| tree | b5392afd381f7ccdfe081c2d180581ae1113a0cc /src/main.rs | |
| parent | a68c55c3462fa9c716a4d286a11cc451ac917800 (diff) | |
| download | i3bar-mango-f0e53e6b8119d872f5986c3fcb4403d7b8214382.tar.gz | |
refactor
Diffstat (limited to 'src/main.rs')
| -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 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()); |
