Skip to content

Commit 617b31c

Browse files
committed
Fix Windows failures
1 parent fb0c28b commit 617b31c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ark_test/src/dummy_frontend.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ impl DummyArkFrontend {
451451
write!(file, "{code}").unwrap();
452452

453453
let url = ExtUrl::from_file_path(file.path()).unwrap();
454-
let path = url.path().to_string();
454+
let path = url.to_file_path().unwrap().to_string_lossy().to_string();
455455
let uri = url.to_string();
456456
let filename = file
457457
.path()
@@ -667,7 +667,7 @@ impl SourceFile {
667667
write!(file, "{code}").unwrap();
668668

669669
let url = ExtUrl::from_file_path(file.path()).unwrap();
670-
let path = url.path().to_string();
670+
let path = url.to_file_path().unwrap().to_string_lossy().to_string();
671671
let uri = url.to_string();
672672

673673
// Extract file name

0 commit comments

Comments
 (0)