diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2025-03-05 16:09:40 +0200 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2025-03-05 16:09:40 +0200 |
| commit | fbc2a0bc56ab75affd8dc4277ad04940ce0d21a4 (patch) | |
| tree | 2f3ff0da7c47db472fc14f2518f083abc70fecbd /src/i3bar_protocol.rs | |
| parent | ebc8d96847485010729941dabb90cc773000e0e7 (diff) | |
| download | i3bar-mango-fbc2a0bc56ab75affd8dc4277ad04940ce0d21a4.tar.gz | |
fix clippy::clippy::io_other_error
Diffstat (limited to 'src/i3bar_protocol.rs')
| -rw-r--r-- | src/i3bar_protocol.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/i3bar_protocol.rs b/src/i3bar_protocol.rs index 8aee9af..d0a371a 100644 --- a/src/i3bar_protocol.rs +++ b/src/i3bar_protocol.rs @@ -100,10 +100,10 @@ impl Protocol { *self = Self::JsonNotStarted { header }; self.process_new_bytes(rem) } - Ok((Some(header), _)) => Err(Error::new( - ErrorKind::Other, - format!("Protocol version {} is not supported", header.version), - )), + Ok((Some(header), _)) => Err(Error::other(format!( + "Protocol version {} is not supported", + header.version + ))), _ => { *self = Self::PlainText { pending_line: None }; self.process_new_bytes(bytes) |
