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 6eccb1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arrow-csv/src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ impl<W: Write> Writer<W> {

Ok(())
}

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

/// A CSV writer builder
Expand Down

0 comments on commit 6eccb1f

Please sign in to comment.