aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r--crates/ra_hir/src/ty/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs
index d4bfcb888..706500484 100644
--- a/crates/ra_hir/src/ty/tests.rs
+++ b/crates/ra_hir/src/ty/tests.rs
@@ -3162,7 +3162,7 @@ fn infer(content: &str) -> String {
3162 for (syntax_ptr, ty) in &types { 3162 for (syntax_ptr, ty) in &types {
3163 let node = syntax_ptr.to_node(source_file.syntax()); 3163 let node = syntax_ptr.to_node(source_file.syntax());
3164 let (range, text) = if let Some(self_param) = ast::SelfParam::cast(node.clone()) { 3164 let (range, text) = if let Some(self_param) = ast::SelfParam::cast(node.clone()) {
3165 (self_param.self_kw_token().range(), "self".to_string()) 3165 (self_param.self_kw_token().text_range(), "self".to_string())
3166 } else { 3166 } else {
3167 (syntax_ptr.range(), node.text().to_string().replace("\n", " ")) 3167 (syntax_ptr.range(), node.text().to_string().replace("\n", " "))
3168 }; 3168 };