diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-17 18:11:12 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-17 18:11:12 +0100 |
commit | db8a68d18631a5772ed55471cfed18edda8dade7 (patch) | |
tree | d19e51f41505b4170097312e74a94db04b3c4df1 /crates/ra_ide_api/src | |
parent | 6b588004c6853eeef9557ddcef90304d612367c0 (diff) | |
parent | c3045c68a95d34d9381dc288dde7cb00a6cefeef (diff) |
Merge #2027
2027: relative-path 1.0 r=matklad a=kjeremy
Co-authored-by: kjeremy <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/db.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
58 | let source_root_id = self.file_source_root(file_id); | 58 | let source_root_id = self.file_source_root(file_id); |
59 | let source_root_path = self.debug_data.root_paths.get(&source_root_id)?; | 59 | let source_root_path = self.debug_data.root_paths.get(&source_root_id)?; |
60 | let file_path = self.file_relative_path(file_id); | 60 | let file_path = self.file_relative_path(file_id); |
61 | Some(format!("{}/{}", source_root_path, file_path.display())) | 61 | Some(format!("{}/{}", source_root_path, file_path)) |
62 | } | 62 | } |
63 | } | 63 | } |
64 | 64 | ||