mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
remove relative_path_buf workaround
The upstream problem was fixed with the change to 1.0
This commit is contained in:
parent
da5528824a
commit
8464c45086
2 changed files with 4 additions and 14 deletions
|
@ -134,10 +134,7 @@ impl<T: SourceDatabaseExt> FileLoader for FileLoaderDelegate<&'_ T> {
|
|||
) -> Option<FileId> {
|
||||
let path = {
|
||||
let mut path = self.0.file_relative_path(anchor);
|
||||
// Workaround for relative path API: turn `lib.rs` into ``.
|
||||
if !path.pop() {
|
||||
path = RelativePathBuf::default();
|
||||
}
|
||||
assert!(path.pop());
|
||||
path.push(relative_path);
|
||||
path.normalize()
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue