Skip to content

Commit 6e965f4

Browse files
fix path handling for platform differences
1 parent bc0b6c5 commit 6e965f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/djls-workspace/src/paths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn url_to_path(url: &Url) -> Option<PathBuf> {
3131
path.strip_prefix('/').unwrap_or(&path)
3232
};
3333

34-
Some(PathBuf::from(path.as_ref()))
34+
Some(PathBuf::from(&*path))
3535
}
3636

3737
/// Context for LSP operations, used for error reporting

0 commit comments

Comments
 (0)