aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-10-17 18:11:12 +0100
committerGitHub <[email protected]>2019-10-17 18:11:12 +0100
commitdb8a68d18631a5772ed55471cfed18edda8dade7 (patch)
treed19e51f41505b4170097312e74a94db04b3c4df1 /crates/ra_ide_api/src
parent6b588004c6853eeef9557ddcef90304d612367c0 (diff)
parentc3045c68a95d34d9381dc288dde7cb00a6cefeef (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.rs2
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