aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-12-06 17:49:36 +0000
committerAleksey Kladov <[email protected]>2018-12-06 17:49:36 +0000
commit1761a7d213664cd00f7616ba3447a207eeababe9 (patch)
tree6dc2eeb8a5431f08e5ddcdfc235fc175165c4f96 /crates
parent49324ee5669c5aad2b43a04d9d2c877b989ddc46 (diff)
modernize some files
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_syntax/Cargo.toml2
-rw-r--r--crates/ra_syntax/src/lib.rs9
-rw-r--r--crates/ra_syntax/src/parser_api.rs3
3 files changed, 4 insertions, 10 deletions
diff --git a/crates/ra_syntax/Cargo.toml b/crates/ra_syntax/Cargo.toml
index 54ee72386..8ad8ed196 100644
--- a/crates/ra_syntax/Cargo.toml
+++ b/crates/ra_syntax/Cargo.toml
@@ -1,5 +1,5 @@
1[package] 1[package]
2edition = "2015" 2edition = "2018"
3name = "ra_syntax" 3name = "ra_syntax"
4version = "0.1.0" 4version = "0.1.0"
5authors = ["Aleksey Kladov <[email protected]>"] 5authors = ["Aleksey Kladov <[email protected]>"]
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs
index 330f68053..56c61ae5d 100644
--- a/crates/ra_syntax/src/lib.rs
+++ b/crates/ra_syntax/src/lib.rs
@@ -20,13 +20,6 @@
20#![allow(missing_docs)] 20#![allow(missing_docs)]
21//#![warn(unreachable_pub)] // rust-lang/rust#47816 21//#![warn(unreachable_pub)] // rust-lang/rust#47816
22 22
23extern crate arrayvec;
24extern crate drop_bomb;
25extern crate itertools;
26extern crate parking_lot;
27extern crate rowan;
28extern crate unicode_xid;
29
30#[cfg(test)] 23#[cfg(test)]
31#[macro_use] 24#[macro_use]
32extern crate test_utils; 25extern crate test_utils;
@@ -48,11 +41,11 @@ pub mod utils;
48mod validation; 41mod validation;
49mod yellow; 42mod yellow;
50 43
44pub use rowan::{SmolStr, TextRange, TextUnit};
51pub use crate::{ 45pub use crate::{
52 ast::AstNode, 46 ast::AstNode,
53 lexer::{tokenize, Token}, 47 lexer::{tokenize, Token},
54 reparsing::AtomEdit, 48 reparsing::AtomEdit,
55 rowan::{SmolStr, TextRange, TextUnit},
56 syntax_kinds::SyntaxKind, 49 syntax_kinds::SyntaxKind,
57 yellow::{ 50 yellow::{
58 Direction, OwnedRoot, RefRoot, SyntaxError, SyntaxNode, SyntaxNodeRef, TreeRoot, WalkEvent, Location, 51 Direction, OwnedRoot, RefRoot, SyntaxError, SyntaxNode, SyntaxNodeRef, TreeRoot, WalkEvent, Location,
diff --git a/crates/ra_syntax/src/parser_api.rs b/crates/ra_syntax/src/parser_api.rs
index 42046d36f..c37c30e34 100644
--- a/crates/ra_syntax/src/parser_api.rs
+++ b/crates/ra_syntax/src/parser_api.rs
@@ -1,5 +1,6 @@
1use drop_bomb::DropBomb;
2
1use crate::{ 3use crate::{
2 drop_bomb::DropBomb,
3 parser_impl::ParserImpl, 4 parser_impl::ParserImpl,
4 token_set::TokenSet, 5 token_set::TokenSet,
5 SyntaxKind::{self, ERROR}, 6 SyntaxKind::{self, ERROR},