use std::error::Error; use std::io::BufReader; use std::path::Path; use std::fs::File; use serde::de::DeserializeOwned; use super::parse_csv_data; pub fn parse_csv_file(path: &Path) -> Result, Box> { let file = File::open(path)?; let mut reader = BufReader::new(file); let records: Vec = parse_csv_data::(&mut reader)?; Ok(records) }