allow rustfmt to reorder imports

This wasn't a right decision in the first place, the feature flag was
broken in the last rustfmt release, and syntax highlighting of imports
is more important anyway
This commit is contained in:
Aleksey Kladov 2019-07-04 23:05:17 +03:00
parent 2b2cd829b0
commit 1834bae5b8
166 changed files with 798 additions and 814 deletions

View file

@ -1,11 +1,11 @@
use ra_parser::{TreeSink, ParseError};
use ra_syntax::{
AstNode, SyntaxNode, TextRange, SyntaxKind, SmolStr, SyntaxTreeBuilder, TreeArc, SyntaxElement,
ast, SyntaxKind::*, TextUnit, T
};
use tt::buffer::{TokenBuffer, Cursor};
use crate::subtree_source::{SubtreeTokenSource};
use crate::subtree_source::SubtreeTokenSource;
use crate::ExpandError;
use ra_parser::{ParseError, TreeSink};
use ra_syntax::{
ast, AstNode, SmolStr, SyntaxElement, SyntaxKind, SyntaxKind::*, SyntaxNode, SyntaxTreeBuilder,
TextRange, TextUnit, TreeArc, T,
};
use tt::buffer::{Cursor, TokenBuffer};
/// Maps `tt::TokenId` to the relative range of the original token.
#[derive(Default)]
@ -367,7 +367,7 @@ impl<'a> TreeSink for TtTreeSink<'a> {
#[cfg(test)]
mod tests {
use super::*;
use crate::tests::{expand, create_rules};
use crate::tests::{create_rules, expand};
use ra_parser::TokenSource;
#[test]