aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/yellow
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/yellow')
-rw-r--r--crates/ra_syntax/src/yellow/syntax_text.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/yellow/syntax_text.rs b/crates/ra_syntax/src/yellow/syntax_text.rs
index 279a83b61..31db0fdab 100644
--- a/crates/ra_syntax/src/yellow/syntax_text.rs
+++ b/crates/ra_syntax/src/yellow/syntax_text.rs
@@ -3,17 +3,17 @@ use std::{fmt, ops};
3use ra_text_edit::text_utils::contains_offset_nonstrict; 3use ra_text_edit::text_utils::contains_offset_nonstrict;
4use crate::{ 4use crate::{
5 text_utils::intersect, 5 text_utils::intersect,
6 SyntaxNodeRef, TextRange, TextUnit, 6 SyntaxNode, TextRange, TextUnit,
7}; 7};
8 8
9#[derive(Clone)] 9#[derive(Clone)]
10pub struct SyntaxText<'a> { 10pub struct SyntaxText<'a> {
11 node: SyntaxNodeRef<'a>, 11 node: &'a SyntaxNode,
12 range: TextRange, 12 range: TextRange,
13} 13}
14 14
15impl<'a> SyntaxText<'a> { 15impl<'a> SyntaxText<'a> {
16 pub(crate) fn new(node: SyntaxNodeRef<'a>) -> SyntaxText<'a> { 16 pub(crate) fn new(node: &'a SyntaxNode) -> SyntaxText<'a> {
17 SyntaxText { 17 SyntaxText {
18 node, 18 node,
19 range: node.range(), 19 range: node.range(),