Skip to content

Commit

Permalink
Add into_inner to IoReader
Browse files Browse the repository at this point in the history
  • Loading branch information
dishmaker committed May 8, 2024
1 parent 4232f84 commit 7ab14b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/de/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3067,6 +3067,13 @@ pub struct IoReader<R: BufRead> {
buf: Vec<u8>,
}

impl<R: BufRead> IoReader<R> {
/// Consumes this deserializer returning the underlying reader.
pub fn into_inner(self) -> R {
self.reader.into_inner()
}
}

impl<'i, R: BufRead> XmlRead<'i> for IoReader<R> {
fn next(&mut self) -> Result<PayloadEvent<'static>, DeError> {
loop {
Expand Down

0 comments on commit 7ab14b1

Please sign in to comment.