Clean up RelPath API (#38912)
Consolidate constructors and accessors. Release Notes: - N/A --------- Co-authored-by: Cole Miller <cole@zed.dev>
This commit is contained in:
co-authored by
Cole Miller
parent
301e976465
commit
495a7b0a84
@@ -162,7 +162,7 @@ impl LanguageServerState {
|
||||
let relative_path =
|
||||
abs_path.strip_prefix(&worktree.abs_path()).ok()?;
|
||||
let relative_path =
|
||||
RelPath::from_std_path(relative_path, path_style)
|
||||
RelPath::new(relative_path, path_style)
|
||||
.log_err()?;
|
||||
let entry = worktree.entry_for_path(&relative_path)?;
|
||||
let project_path =
|
||||
|
||||
Reference in New Issue
Block a user