From daa2637486755f012c738d3516ff7cb3d3dcd234 Mon Sep 17 00:00:00 2001 From: vsrs Date: Thu, 11 Mar 2021 17:39:41 +0300 Subject: Apply review suggestions --- crates/ide_db/src/search.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ide_db/src') 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 { SearchScope::new(std::iter::once((file, None)).collect()) } - pub fn file_part(file: FileId, range: TextRange) -> SearchScope { - SearchScope::new(std::iter::once((file, Some(range))).collect()) + pub fn file_range(range: FileRange) -> SearchScope { + SearchScope::new(std::iter::once((range.file_id, Some(range.range))).collect()) } pub fn files(files: &[FileId]) -> SearchScope { -- cgit v1.2.3