From c3045c68a95d34d9381dc288dde7cb00a6cefeef Mon Sep 17 00:00:00 2001 From: kjeremy Date: Tue, 15 Oct 2019 10:44:26 -0400 Subject: relative-path 1.0 --- crates/ra_ide_api/Cargo.toml | 2 +- crates/ra_ide_api/src/db.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide_api') diff --git a/crates/ra_ide_api/Cargo.toml b/crates/ra_ide_api/Cargo.toml index f919a2d61..73f39b647 100644 --- a/crates/ra_ide_api/Cargo.toml +++ b/crates/ra_ide_api/Cargo.toml @@ -12,7 +12,7 @@ format-buf = "1.0.0" itertools = "0.8.0" join_to_string = "0.1.3" log = "0.4.5" -relative-path = "0.4.0" +relative-path = "1.0.0" rayon = "1.0.2" fst = { version = "0.3.1", default-features = false } rustc-hash = "1.0" diff --git a/crates/ra_ide_api/src/db.rs b/crates/ra_ide_api/src/db.rs index bbf04bcf7..9146b647a 100644 --- a/crates/ra_ide_api/src/db.rs +++ b/crates/ra_ide_api/src/db.rs @@ -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)) } } -- cgit v1.2.3