From d91a98ec843ec8562c58ccb01a1e29d00cc744dc Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 7 Jan 2019 16:15:47 +0300 Subject: switch ra_syntax to new rowan API --- crates/ra_syntax/src/yellow/syntax_text.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_syntax/src/yellow/syntax_text.rs') 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}; use ra_text_edit::text_utils::contains_offset_nonstrict; use crate::{ text_utils::intersect, - SyntaxNodeRef, TextRange, TextUnit, + SyntaxNode, TextRange, TextUnit, }; #[derive(Clone)] pub struct SyntaxText<'a> { - node: SyntaxNodeRef<'a>, + node: &'a SyntaxNode, range: TextRange, } impl<'a> SyntaxText<'a> { - pub(crate) fn new(node: SyntaxNodeRef<'a>) -> SyntaxText<'a> { + pub(crate) fn new(node: &'a SyntaxNode) -> SyntaxText<'a> { SyntaxText { node, range: node.range(), -- cgit v1.2.3