aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db/src
diff options
context:
space:
mode:
authorvsrs <[email protected]>2021-03-11 14:39:41 +0000
committervsrs <[email protected]>2021-03-11 14:39:41 +0000
commitdaa2637486755f012c738d3516ff7cb3d3dcd234 (patch)
tree7ee45f3bc3d89a90a709ae4076c0eec74717b262 /crates/ide_db/src
parentf234b80520ed63b168475be38086d053567f4c1e (diff)
Apply review suggestions
Diffstat (limited to 'crates/ide_db/src')
-rw-r--r--crates/ide_db/src/search.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide_db/src/search.rs b/crates/ide_db/src/search.rs
index 8b211256e..fa18703e1 100644
--- a/crates/ide_db/src/search.rs
+++ b/crates/ide_db/src/search.rs
@@ -86,8 +86,8 @@ impl SearchScope {
86 SearchScope::new(std::iter::once((file, None)).collect()) 86 SearchScope::new(std::iter::once((file, None)).collect())
87 } 87 }
88 88
89 pub fn file_part(file: FileId, range: TextRange) -> SearchScope { 89 pub fn file_range(range: FileRange) -> SearchScope {
90 SearchScope::new(std::iter::once((file, Some(range))).collect()) 90 SearchScope::new(std::iter::once((range.file_id, Some(range.range))).collect())
91 } 91 }
92 92
93 pub fn files(files: &[FileId]) -> SearchScope { 93 pub fn files(files: &[FileId]) -> SearchScope {