We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34397f1 commit 3c28eb0Copy full SHA for 3c28eb0
src/messages.rs
@@ -86,7 +86,7 @@ impl MessageRingBuffer {
86
let cursor_ofs: isize = self.cursor as isize - cursor as isize;
87
match cursor_ofs {
88
// there was some capacity left without wrapping around
89
- c if c == 0 => {
+ 0 => {
90
out.extend_from_slice(&self.buf[self.buf.len() - new_elements_below_cap..]);
91
}
92
// cursor advanced
0 commit comments