Skip to content

Commit

Permalink
refactor: remove dead code from Rewind
Browse files Browse the repository at this point in the history
  • Loading branch information
omjadas committed Jan 5, 2024
1 parent d7d5e6b commit feb9085
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/rewind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,6 @@ impl<T> Rewind<T> {
inner: io,
}
}

#[allow(dead_code)]
pub(crate) fn rewind(&mut self, bs: Bytes) {
debug_assert!(self.pre.is_none());
self.pre = Some(bs);
}

#[allow(dead_code)]
pub(crate) fn into_inner(self) -> (T, Bytes) {
(self.inner, self.pre.unwrap_or_else(Bytes::new))
}

// pub(crate) fn get_mut(&mut self) -> &mut T {
// &mut self.inner
// }
}

impl<T> AsyncRead for Rewind<T>
Expand Down

0 comments on commit feb9085

Please sign in to comment.