diff --git a/src/import/csv_parser.rs b/src/import/csv_parser.rs index 4e85279..d0ab33e 100644 --- a/src/import/csv_parser.rs +++ b/src/import/csv_parser.rs @@ -79,14 +79,14 @@ fn parse_csv_field(field: &str) -> Value { #[cfg(test)] mod tests { use super::*; - use std::fs; + use std::{fs, path::PathBuf}; use tempfile::tempdir; - fn create_temp_csv(content: &str) -> (String, tempfile::TempDir) { + fn create_temp_csv(content: &str) -> (PathBuf, tempfile::TempDir) { let dir = tempdir().unwrap(); let path = dir.path().join("test.csv"); fs::write(&path, content).unwrap(); - (path.to_string_lossy().to_string(), dir) + (path, dir) } #[test]