Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcur committed Jun 30, 2024
1 parent de9e36a commit adfb990
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ringbuffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ pub enum IoResult<'b> {
}

impl IoResult<'_> {
pub fn is_err(&self) -> bool {
matches!(self, IoResult::Err { .. })
}

pub fn bytes(&self) -> Bytes<'_> {
match self {
IoResult::Ok(bytes) => *bytes,
Expand Down

0 comments on commit adfb990

Please sign in to comment.