Skip to content

Commit

Permalink
chore: remove unused seek traits from parquet & ipc
Browse files Browse the repository at this point in the history
  • Loading branch information
universalmind303 authored and ritchie46 committed Jan 20, 2022
1 parent 96b1258 commit b338ee8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion polars/polars-io/src/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ pub use write::Compression as IpcCompression;

impl<W> IpcWriter<W>
where
W: Write + Seek,
W: Write,
{
/// Set the compression used. Defaults to None.
pub fn with_compression(mut self, compression: Option<write::Compression>) -> Self {
Expand Down
6 changes: 3 additions & 3 deletions polars/polars-io/src/parquet/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use arrow::io::parquet::write::{array_to_pages, DynIter, DynStreamingIterator, E
use polars_core::prelude::*;
use rayon::prelude::*;
use std::collections::VecDeque;
use std::io::{Seek, Write};
use std::io::Write;

struct Bla {
columns: VecDeque<CompressedPage>,
Expand Down Expand Up @@ -52,12 +52,12 @@ pub use write::Compression as ParquetCompression;

impl<W> ParquetWriter<W>
where
W: Write + Seek,
W: Write,
{
/// Create a new writer
pub fn new(writer: W) -> Self
where
W: Write + Seek,
W: Write,
{
ParquetWriter {
writer,
Expand Down

0 comments on commit b338ee8

Please sign in to comment.