From 3c28eb04e42cf0b2d47e4a6538c2436e8abac274 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 7 Dec 2023 17:18:14 +0100 Subject: [PATCH] thanks clippy --- src/messages.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messages.rs b/src/messages.rs index 2abd638..f708736 100644 --- a/src/messages.rs +++ b/src/messages.rs @@ -86,7 +86,7 @@ impl MessageRingBuffer { let cursor_ofs: isize = self.cursor as isize - cursor as isize; match cursor_ofs { // there was some capacity left without wrapping around - c if c == 0 => { + 0 => { out.extend_from_slice(&self.buf[self.buf.len() - new_elements_below_cap..]); } // cursor advanced