summaryrefslogtreecommitdiff
path: root/src/sheet/loader/native
diff options
context:
space:
mode:
Diffstat (limited to 'src/sheet/loader/native')
-rw-r--r--src/sheet/loader/native/csv.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sheet/loader/native/csv.rs b/src/sheet/loader/native/csv.rs
index 4a8f05d..6f81645 100644
--- a/src/sheet/loader/native/csv.rs
+++ b/src/sheet/loader/native/csv.rs
@@ -9,10 +9,8 @@ pub fn load_csv(path: String) -> Tablized {
let mut table = Vec::new();
- for result in csv_reader.records() {
- if let Ok(record) = result {
- table.push(record.iter().map(|s| Cell::from(s)).collect::<Vec<Cell>>())
- }
+ for record in csv_reader.records().flatten() {
+ table.push(record.iter().map(Cell::from).collect::<Vec<Cell>>())
}
Tablized::Vector(table)