From cae2498513601c507bb10b15710feb800a24517f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 16 Apr 2020 19:21:18 +0200 Subject: Don't expose SyntaxNodePtr impl details --- crates/ra_syntax/src/algo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_syntax/src/algo.rs') diff --git a/crates/ra_syntax/src/algo.rs b/crates/ra_syntax/src/algo.rs index 7f87f4212..ea41bf85d 100644 --- a/crates/ra_syntax/src/algo.rs +++ b/crates/ra_syntax/src/algo.rs @@ -351,7 +351,7 @@ fn with_children( // FIXME: use a more elegant way to re-fetch the node (#1185), make // `range` private afterwards let mut ptr = SyntaxNodePtr::new(parent); - ptr.range = TextRange::offset_len(ptr.range().start(), len); + ptr.range = TextRange::offset_len(ptr.range.start(), len); ptr.to_node(&new_root_node) } -- cgit v1.2.3