diff options
author | Aleksey Kladov <[email protected]> | 2020-06-05 14:07:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-06-05 14:07:30 +0100 |
commit | bba374bab2ee53643a899e7ea459b4ab27663bd0 (patch) | |
tree | 77610cd5b460dba0c350a5a9504b813bb3e8be98 /crates/ra_hir_ty | |
parent | e63c00f100e960f7b72997026b4b2cd3cd29774b (diff) |
More direct signature for resolve_path
Diffstat (limited to 'crates/ra_hir_ty')
-rw-r--r-- | crates/ra_hir_ty/src/test_db.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_ty/src/test_db.rs b/crates/ra_hir_ty/src/test_db.rs index 43927c991..21a3bdfd1 100644 --- a/crates/ra_hir_ty/src/test_db.rs +++ b/crates/ra_hir_ty/src/test_db.rs | |||
@@ -72,8 +72,8 @@ impl FileLoader for TestDB { | |||
72 | fn file_text(&self, file_id: FileId) -> Arc<String> { | 72 | fn file_text(&self, file_id: FileId) -> Arc<String> { |
73 | FileLoaderDelegate(self).file_text(file_id) | 73 | FileLoaderDelegate(self).file_text(file_id) |
74 | } | 74 | } |
75 | fn resolve_path(&self, anchor: FileId, relative_path: &RelativePath) -> Option<FileId> { | 75 | fn resolve_path(&self, anchor: FileId, path: &str) -> Option<FileId> { |
76 | FileLoaderDelegate(self).resolve_path(anchor, relative_path) | 76 | FileLoaderDelegate(self).resolve_path(anchor, path) |
77 | } | 77 | } |
78 | fn relevant_crates(&self, file_id: FileId) -> Arc<Vec<CrateId>> { | 78 | fn relevant_crates(&self, file_id: FileId) -> Arc<Vec<CrateId>> { |
79 | FileLoaderDelegate(self).relevant_crates(file_id) | 79 | FileLoaderDelegate(self).relevant_crates(file_id) |