aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_mbe/src/syntax_bridge.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_mbe/src/syntax_bridge.rs')
-rw-r--r--crates/ra_mbe/src/syntax_bridge.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/ra_mbe/src/syntax_bridge.rs b/crates/ra_mbe/src/syntax_bridge.rs
index cb039ca37..b91b0e7a5 100644
--- a/crates/ra_mbe/src/syntax_bridge.rs
+++ b/crates/ra_mbe/src/syntax_bridge.rs
@@ -1,11 +1,11 @@
1use ra_parser::{TreeSink, ParseError}; 1use crate::subtree_source::SubtreeTokenSource;
2use crate::ExpandError;
3use ra_parser::{ParseError, TreeSink};
2use ra_syntax::{ 4use ra_syntax::{
3 AstNode, SyntaxNode, TextRange, SyntaxKind, SmolStr, SyntaxTreeBuilder, TreeArc, SyntaxElement, 5 ast, AstNode, SmolStr, SyntaxElement, SyntaxKind, SyntaxKind::*, SyntaxNode, SyntaxTreeBuilder,
4 ast, SyntaxKind::*, TextUnit, T 6 TextRange, TextUnit, TreeArc, T,
5}; 7};
6use tt::buffer::{TokenBuffer, Cursor}; 8use tt::buffer::{Cursor, TokenBuffer};
7use crate::subtree_source::{SubtreeTokenSource};
8use crate::ExpandError;
9 9
10/// Maps `tt::TokenId` to the relative range of the original token. 10/// Maps `tt::TokenId` to the relative range of the original token.
11#[derive(Default)] 11#[derive(Default)]
@@ -367,7 +367,7 @@ impl<'a> TreeSink for TtTreeSink<'a> {
367#[cfg(test)] 367#[cfg(test)]
368mod tests { 368mod tests {
369 use super::*; 369 use super::*;
370 use crate::tests::{expand, create_rules}; 370 use crate::tests::{create_rules, expand};
371 use ra_parser::TokenSource; 371 use ra_parser::TokenSource;
372 372
373 #[test] 373 #[test]