aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ssr/src/parsing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ssr/src/parsing.rs')
-rw-r--r--crates/ra_ssr/src/parsing.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ssr/src/parsing.rs b/crates/ra_ssr/src/parsing.rs
index f455eb5b7..9570e96e3 100644
--- a/crates/ra_ssr/src/parsing.rs
+++ b/crates/ra_ssr/src/parsing.rs
@@ -7,9 +7,9 @@
7 7
8use crate::errors::bail; 8use crate::errors::bail;
9use crate::{SsrError, SsrPattern, SsrRule}; 9use crate::{SsrError, SsrPattern, SsrRule};
10use ra_syntax::{ast, AstNode, SmolStr, SyntaxKind, SyntaxNode, T};
11use rustc_hash::{FxHashMap, FxHashSet}; 10use rustc_hash::{FxHashMap, FxHashSet};
12use std::str::FromStr; 11use std::str::FromStr;
12use syntax::{ast, AstNode, SmolStr, SyntaxKind, SyntaxNode, T};
13use test_utils::mark; 13use test_utils::mark;
14 14
15#[derive(Debug)] 15#[derive(Debug)]
@@ -243,7 +243,7 @@ fn validate_rule(rule: &SsrRule) -> Result<(), SsrError> {
243 243
244fn tokenize(source: &str) -> Result<Vec<Token>, SsrError> { 244fn tokenize(source: &str) -> Result<Vec<Token>, SsrError> {
245 let mut start = 0; 245 let mut start = 0;
246 let (raw_tokens, errors) = ra_syntax::tokenize(source); 246 let (raw_tokens, errors) = syntax::tokenize(source);
247 if let Some(first_error) = errors.first() { 247 if let Some(first_error) = errors.first() {
248 bail!("Failed to parse pattern: {}", first_error); 248 bail!("Failed to parse pattern: {}", first_error);
249 } 249 }