From 88c944f96b426955933b77ca68c92990734769be Mon Sep 17 00:00:00 2001 From: CAD97 Date: Thu, 12 Mar 2020 22:29:44 -0400 Subject: Remove some TextUnit->usize escapees --- crates/ra_ide/src/syntax_tree.rs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'crates/ra_ide') diff --git a/crates/ra_ide/src/syntax_tree.rs b/crates/ra_ide/src/syntax_tree.rs index 55966daf3..f58e436d1 100644 --- a/crates/ra_ide/src/syntax_tree.rs +++ b/crates/ra_ide/src/syntax_tree.rs @@ -5,7 +5,7 @@ use ra_ide_db::RootDatabase; use ra_syntax::{ algo, AstNode, NodeOrToken, SourceFile, SyntaxKind::{RAW_STRING, STRING}, - SyntaxToken, TextRange, + SyntaxToken, TextRange, TextUnit, }; pub use ra_db::FileId; @@ -56,19 +56,23 @@ fn syntax_tree_for_token(node: &SyntaxToken, text_range: TextRange) -> Option