Skip to content

Commit 250dc8b

Browse files
Pindikura Ravindrakszucs
authored andcommitted
ARROW-4403 : [Rust] Fix format errors
Author: Pindikura Ravindra <ravindra@dremio.com> Closes #3513 from pravindra/rust and squashes the following commits: 6b08acf <Pindikura Ravindra> ARROW-4403 : Fix format errors
1 parent 16d53c3 commit 250dc8b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

rust/arrow/src/csv/reader.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ pub struct Reader<R: Read> {
197197
impl<R: Read> Reader<R> {
198198
/// Create a new CsvReader from any value that implements the `Read` trait.
199199
///
200-
/// If reading a `File` you can customise the Reader, such as to enable schema inference, use `ReaderBuilder`.
200+
/// If reading a `File` you can customise the Reader, such as to enable schema
201+
/// inference, use `ReaderBuilder`.
201202
pub fn new(
202203
reader: R,
203204
schema: Arc<Schema>,
@@ -216,8 +217,8 @@ impl<R: Read> Reader<R> {
216217

217218
/// Create a new CsvReader from a `BufReader<R: Read>
218219
///
219-
/// This constructor allows you more flexibility in what records are processed by the csv
220-
/// reader.
220+
/// This constructor allows you more flexibility in what records are processed by the
221+
/// csv reader.
221222
pub fn from_buf_reader(
222223
buf_reader: BufReader<R>,
223224
schema: Arc<Schema>,
@@ -545,7 +546,8 @@ mod tests {
545546
Field::new("lng", DataType::Float64, false),
546547
]);
547548

548-
let file_with_headers = File::open("test/data/uk_cities_with_headers.csv").unwrap();
549+
let file_with_headers =
550+
File::open("test/data/uk_cities_with_headers.csv").unwrap();
549551
let file_without_headers = File::open("test/data/uk_cities.csv").unwrap();
550552
let both_files = file_with_headers
551553
.chain(Cursor::new("\n".to_string()))

0 commit comments

Comments
 (0)