aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-10-30 18:26:55 +0000
committerAleksey Kladov <[email protected]>2018-10-30 18:26:55 +0000
commit1643d94a65a66f32b9278829dd3af00883f3852b (patch)
tree95344947f1957d03edcbcd6ef8a2786cc1b9142d /crates/ra_analysis/src
parent950e8b8182897da60bcece70d84e9f0b6dc88632 (diff)
switch to TextRange::subrange
Diffstat (limited to 'crates/ra_analysis/src')
-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