From b9da06c55f1db3d89f425f4f37ceb8d8d2e76628 Mon Sep 17 00:00:00 2001 From: Edward Langley Date: Thu, 2 Apr 2026 10:18:01 -0700 Subject: [PATCH] fix: csv_parser tests --- src/import/csv_parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]