summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2017-07-25 20:16:07 -0400
committerAndrew Gallant <jamslam@gmail.com>2017-07-25 20:16:07 -0400
commit72e5532873c25cd68bff03e36233a294247ba6fc (patch)
tree8cb5bb7d978f411ba4471a28201392317aef62ec
parenta3f7585de8e1ac5fdb17fb4c5f33cc2310b86cd9 (diff)
fix config bug
In the move to csv 1.0, the ReaderBuilder wasn't being configured with the quote flag if it was present. This commit fixes that.
-rw-r--r--src/config.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 063d2dc..a0843bb 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -53,6 +53,7 @@ impl Decodable for Delimiter {
}
}
+#[derive(Debug)]
pub struct Config {
path: Option<PathBuf>, // None implies <stdin>
idx_path: Option<PathBuf>,
@@ -275,6 +276,7 @@ impl Config {
.flexible(self.flexible)
.delimiter(self.delimiter)
.has_headers(!self.no_headers)
+ .quote(self.quote)
.from_reader(rdr)
}