summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxVerevkin <maxxverrr@gmail.com>2025-03-05 16:09:40 +0200
committerMaxVerevkin <maxxverrr@gmail.com>2025-03-05 16:09:40 +0200
commitfbc2a0bc56ab75affd8dc4277ad04940ce0d21a4 (patch)
tree2f3ff0da7c47db472fc14f2518f083abc70fecbd
parentebc8d96847485010729941dabb90cc773000e0e7 (diff)
downloadi3bar-mango-fbc2a0bc56ab75affd8dc4277ad04940ce0d21a4.tar.gz
fix clippy::clippy::io_other_error
-rw-r--r--src/i3bar_protocol.rs8
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)