Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Dec 7, 2023
1 parent 34397f1 commit 3c28eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c28eb0

Please sign in to comment.