Skip to content

Commit

Permalink
Use super
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Apr 23, 2024
1 parent 14fa9c7 commit 063bc13
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
12 changes: 6 additions & 6 deletions crates/polars-io/src/csv/read/read_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ use polars_time::prelude::*;
use polars_utils::flatten;
use rayon::prelude::*;

use super::buffer::init_buffers;
use super::options::{CommentPrefix, CsvEncoding, NullValues, NullValuesCompiled};
use super::parser::{
get_line_stats, is_comment_line, next_line_position, next_line_position_naive, parse_lines,
skip_bom, skip_line_ending, skip_this_line, skip_whitespace_exclude,
};
#[cfg(any(feature = "decompress", feature = "decompress-fast"))]
use super::utils::decompress;
#[cfg(not(any(feature = "decompress", feature = "decompress-fast")))]
use super::utils::is_compressed;
use super::utils::{check_decimal_comma, get_file_chunks, infer_file_schema};
use crate::csv::read::buffer::init_buffers;
use crate::csv::read::options::{CommentPrefix, CsvEncoding, NullValues, NullValuesCompiled};
use crate::csv::read::parser::{
get_line_stats, is_comment_line, next_line_position, next_line_position_naive, parse_lines,
skip_bom, skip_line_ending, skip_this_line, skip_whitespace_exclude,
};
use crate::mmap::ReaderBytes;
use crate::predicates::PhysicalIoExpr;
use crate::utils::update_row_counts;
Expand Down
10 changes: 4 additions & 6 deletions crates/polars-io/src/csv/read/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ use polars_time::chunkedarray::string::infer as date_infer;
use polars_time::prelude::string::Pattern;
use polars_utils::slice::GetSaferUnchecked;

use crate::csv::read::options::{CommentPrefix, CsvEncoding, NullValues};
use super::options::{CommentPrefix, CsvEncoding, NullValues};
#[cfg(any(feature = "decompress", feature = "decompress-fast"))]
use crate::csv::read::parser::next_line_position_naive;
use crate::csv::read::parser::{
is_comment_line, next_line_position, skip_bom, skip_line_ending, SplitLines,
};
use crate::csv::read::splitfields::SplitFields;
use super::parser::next_line_position_naive;
use super::parser::{is_comment_line, next_line_position, skip_bom, skip_line_ending, SplitLines};
use super::splitfields::SplitFields;
use crate::mmap::ReaderBytes;
use crate::utils::{BOOLEAN_RE, FLOAT_RE, FLOAT_RE_DECIMAL, INTEGER_RE};

Expand Down

0 comments on commit 063bc13

Please sign in to comment.