diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2024-05-06 19:51:46 +0300 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2024-05-06 19:51:46 +0300 |
| commit | 2d6268ba72bc27ee35a05821775cfb6166596951 (patch) | |
| tree | c6599e5595e42e9f6ef351246ce1625f46d8e0fe /src/status_cmd.rs | |
| parent | 179f33a1fde61d75e339d9935ab83e3c03e8731d (diff) | |
| download | i3bar-mango-2d6268ba72bc27ee35a05821775cfb6166596951.tar.gz | |
simplify read_to_vec
Diffstat (limited to 'src/status_cmd.rs')
| -rw-r--r-- | src/status_cmd.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/status_cmd.rs b/src/status_cmd.rs index 243b209..68dd1b7 100644 --- a/src/status_cmd.rs +++ b/src/status_cmd.rs @@ -38,7 +38,7 @@ impl StatusCmd { } pub fn receive_blocks(&mut self) -> Result<Option<Vec<Block>>> { - match read_to_vec(&mut self.output, &mut self.buf) { + match read_to_vec(&self.output, &mut self.buf) { Ok(0) => bail!("status command exited"), Ok(_n) => (), Err(e) if e.kind() == ErrorKind::WouldBlock => return Ok(None), |
