mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-02 20:18:38 -05:00
Format the Windows File URI conversion
This commit is contained in:
1 parent
d689f09e46
commit
b2ee88ca82
1 file changed
+1
-2
@@ -527,8 +527,7 @@ impl Files {
|
||||
let fail = |kind, message: String| Failure { kind, message, index: 0, file: current.clone(), line: 0, column: 0 };
|
||||
let dir = module_dir.or_else(|| self.frames.last().and_then(|f| f.dir.clone()));
|
||||
let native = if cfg!(windows) {
|
||||
crate::script::files::windows_drive_uri(path)
|
||||
.map_err(|()| fail(FailKind::Error, format!("script file read refused: {path}")))?
|
||||
crate::script::files::windows_drive_uri(path).map_err(|()| fail(FailKind::Error, format!("script file read refused: {path}")))?
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user