Skip to content

Commit

Permalink
feat: add into_inner for csv writer
Browse files Browse the repository at this point in the history
  • Loading branch information
Weijun-H committed Feb 25, 2023
1 parent d016403 commit f1fa6c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arrow-csv/src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,13 @@ impl<W: Write> Writer<W> {

Ok(())
}

/// Unwraps this `Writer<W>`, returning the underlying writer.
///
/// Safe to call `unwrap` since `write` always flushes the writer.
pub fn into_inner(self) -> W {
self.writer.into_inner().unwrap()
}
}

/// A CSV writer builder
Expand Down

0 comments on commit f1fa6c0

Please sign in to comment.