You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ks...@apache.org on 2019/01/28 12:34:53 UTC
[arrow] branch master updated: ARROW-4403 : [Rust] Fix format errors
This is an automated email from the ASF dual-hosted git repository.
kszucs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 250dc8b ARROW-4403 : [Rust] Fix format errors
250dc8b is described below
commit 250dc8b47e585d2b0b039b67be05b0cfdc76a05a
Author: Pindikura Ravindra <ra...@dremio.com>
AuthorDate: Mon Jan 28 13:34:26 2019 +0100
ARROW-4403 : [Rust] Fix format errors
Author: Pindikura Ravindra <ra...@dremio.com>
Closes #3513 from pravindra/rust and squashes the following commits:
6b08acf2 <Pindikura Ravindra> ARROW-4403 : Fix format errors
---
rust/arrow/src/csv/reader.rs | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/rust/arrow/src/csv/reader.rs b/rust/arrow/src/csv/reader.rs
index 4582171..b543011 100644
--- a/rust/arrow/src/csv/reader.rs
+++ b/rust/arrow/src/csv/reader.rs
@@ -197,7 +197,8 @@ pub struct Reader<R: Read> {
impl<R: Read> Reader<R> {
/// Create a new CsvReader from any value that implements the `Read` trait.
///
- /// If reading a `File` you can customise the Reader, such as to enable schema inference, use `ReaderBuilder`.
+ /// If reading a `File` you can customise the Reader, such as to enable schema
+ /// inference, use `ReaderBuilder`.
pub fn new(
reader: R,
schema: Arc<Schema>,
@@ -216,8 +217,8 @@ impl<R: Read> Reader<R> {
/// Create a new CsvReader from a `BufReader<R: Read>
///
- /// This constructor allows you more flexibility in what records are processed by the csv
- /// reader.
+ /// This constructor allows you more flexibility in what records are processed by the
+ /// csv reader.
pub fn from_buf_reader(
buf_reader: BufReader<R>,
schema: Arc<Schema>,
@@ -545,7 +546,8 @@ mod tests {
Field::new("lng", DataType::Float64, false),
]);
- let file_with_headers = File::open("test/data/uk_cities_with_headers.csv").unwrap();
+ let file_with_headers =
+ File::open("test/data/uk_cities_with_headers.csv").unwrap();
let file_without_headers = File::open("test/data/uk_cities.csv").unwrap();
let both_files = file_with_headers
.chain(Cursor::new("\n".to_string()))