diff options
author | Andrew Gallant <jamslam@gmail.com> | 2017-07-25 20:16:07 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-07-25 20:16:07 -0400 |
commit | 72e5532873c25cd68bff03e36233a294247ba6fc (patch) | |
tree | 8cb5bb7d978f411ba4471a28201392317aef62ec | |
parent | a3f7585de8e1ac5fdb17fb4c5f33cc2310b86cd9 (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.rs | 2 |
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) } |