From 1834bae5b86c54ed9dece26e82436919d59e6cb7 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 4 Jul 2019 23:05:17 +0300 Subject: 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 --- crates/ra_syntax/src/lib.rs | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'crates/ra_syntax/src/lib.rs') diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index e46ad12db..9790a984d 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs @@ -31,23 +31,26 @@ pub mod ast; #[doc(hidden)] pub mod fuzz; -use std::{sync::Arc, fmt::Write}; +use std::{fmt::Write, sync::Arc}; use ra_text_edit::AtomTextEdit; use crate::syntax_node::GreenNode; -pub use rowan::{SmolStr, TextRange, TextUnit}; -pub use ra_parser::SyntaxKind; -pub use ra_parser::T; pub use crate::{ ast::AstNode, - syntax_error::{SyntaxError, SyntaxErrorKind, Location}, + parsing::{classify_literal, tokenize, Token}, + ptr::{AstPtr, SyntaxNodePtr}, + syntax_error::{Location, SyntaxError, SyntaxErrorKind}, + syntax_node::{ + Direction, InsertPosition, SyntaxElement, SyntaxNode, SyntaxToken, SyntaxTreeBuilder, + TreeArc, WalkEvent, + }, syntax_text::SyntaxText, - syntax_node::{Direction, SyntaxNode, WalkEvent, TreeArc, SyntaxTreeBuilder, SyntaxElement, SyntaxToken, InsertPosition}, - ptr::{SyntaxNodePtr, AstPtr}, - parsing::{tokenize, classify_literal, Token}, }; +pub use ra_parser::SyntaxKind; +pub use ra_parser::T; +pub use rowan::{SmolStr, TextRange, TextUnit}; /// `Parse` is the result of the parsing: a syntax tree and a collection of /// errors. -- cgit v1.2.3