Skip to content

Commit

Permalink
Fix rust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Chia committed Oct 7, 2023
1 parent 214e237 commit d3f456f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/daft-io/src/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ mod tests {
filepath: format!(
"file://{}/{}",
dir.path().to_string_lossy().replace("\\", "/"),
file1.file_name().to_string_lossy()
file1.path().file_name().unwrap().to_string_lossy(),
),
size: Some(file1.as_file().metadata().unwrap().len()),
filetype: FileType::File,
Expand All @@ -390,7 +390,7 @@ mod tests {
filepath: format!(
"file://{}/{}",
dir.path().to_string_lossy().replace("\\", "/"),
file2.file_name().to_string_lossy()
file2.path().file_name().unwrap().to_string_lossy(),
),
size: Some(file2.as_file().metadata().unwrap().len()),
filetype: FileType::File,
Expand All @@ -399,7 +399,7 @@ mod tests {
filepath: format!(
"file://{}/{}",
dir.path().to_string_lossy().replace("\\", "/"),
file3.file_name().to_string_lossy()
file3.path().file_name().unwrap().to_string_lossy(),
),
size: Some(file3.as_file().metadata().unwrap().len()),
filetype: FileType::File,
Expand Down

0 comments on commit d3f456f

Please sign in to comment.