relative-path 1.0

This commit is contained in:
kjeremy 2019-10-15 10:44:26 -04:00
parent 6b588004c6
commit c3045c68a9
9 changed files with 21 additions and 21 deletions

View file

@ -58,7 +58,7 @@ impl hir::debug::HirDebugHelper for RootDatabase {
let source_root_id = self.file_source_root(file_id);
let source_root_path = self.debug_data.root_paths.get(&source_root_id)?;
let file_path = self.file_relative_path(file_id);
Some(format!("{}/{}", source_root_path, file_path.display()))
Some(format!("{}/{}", source_root_path, file_path))
}
}