aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_analysis')
-rw-r--r--crates/ra_analysis/src/descriptors/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/descriptors/mod.rs b/crates/ra_analysis/src/descriptors/mod.rs
index 873eb47e4..0220f7d5d 100644
--- a/crates/ra_analysis/src/descriptors/mod.rs
+++ b/crates/ra_analysis/src/descriptors/mod.rs
@@ -2,7 +2,6 @@ pub(crate) mod module;
2 2
3use ra_syntax::{ 3use ra_syntax::{
4 ast::{self, AstNode, NameOwner}, 4 ast::{self, AstNode, NameOwner},
5 text_utils::is_subrange,
6}; 5};
7 6
8#[derive(Debug, Clone)] 7#[derive(Debug, Clone)]
@@ -23,7 +22,7 @@ impl FnDescriptor {
23 let label: String = node 22 let label: String = node
24 .syntax() 23 .syntax()
25 .children() 24 .children()
26 .filter(|child| !is_subrange(body_range, child.range())) 25 .filter(|child| !child.range().is_subrange(&body_range))
27 .map(|node| node.text().to_string()) 26 .map(|node| node.text().to_string())
28 .collect(); 27 .collect();
29 label 28 label