Skip to content

Commit 3c28eb0

Browse files
committed
thanks clippy
1 parent 34397f1 commit 3c28eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/messages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl MessageRingBuffer {
8686
let cursor_ofs: isize = self.cursor as isize - cursor as isize;
8787
match cursor_ofs {
8888
// there was some capacity left without wrapping around
89-
c if c == 0 => {
89+
0 => {
9090
out.extend_from_slice(&self.buf[self.buf.len() - new_elements_below_cap..]);
9191
}
9292
// cursor advanced

0 commit comments

Comments
 (0)