diff options
author | Aleksey Kladov <[email protected]> | 2018-08-25 09:47:24 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-25 09:47:24 +0100 |
commit | 70333c8edfd9fd958ceb5669b578a33a289473fe (patch) | |
tree | 8722c1f5db217be94449ed13103e4bf5ca82d5d6 /crates/libeditor | |
parent | 220d285b4afb250e59a08e9b1ad38c2fc2275782 (diff) |
remove reesports
Diffstat (limited to 'crates/libeditor')
-rw-r--r-- | crates/libeditor/src/lib.rs | 2 | ||||
-rw-r--r-- | crates/libeditor/tests/test.rs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/crates/libeditor/src/lib.rs b/crates/libeditor/src/lib.rs index a6e6deba7..da337cca0 100644 --- a/crates/libeditor/src/lib.rs +++ b/crates/libeditor/src/lib.rs | |||
@@ -10,11 +10,11 @@ mod code_actions; | |||
10 | mod typing; | 10 | mod typing; |
11 | 11 | ||
12 | use libsyntax2::{ | 12 | use libsyntax2::{ |
13 | File, TextUnit, TextRange, | ||
13 | ast::{AstNode, NameOwner}, | 14 | ast::{AstNode, NameOwner}, |
14 | algo::{walk, find_leaf_at_offset}, | 15 | algo::{walk, find_leaf_at_offset}, |
15 | SyntaxKind::{self, *}, | 16 | SyntaxKind::{self, *}, |
16 | }; | 17 | }; |
17 | pub use libsyntax2::{File, TextRange, TextUnit}; | ||
18 | pub use self::{ | 18 | pub use self::{ |
19 | line_index::{LineIndex, LineCol}, | 19 | line_index::{LineIndex, LineCol}, |
20 | extend_selection::extend_selection, | 20 | extend_selection::extend_selection, |
diff --git a/crates/libeditor/tests/test.rs b/crates/libeditor/tests/test.rs index 3114a128e..ab325c520 100644 --- a/crates/libeditor/tests/test.rs +++ b/crates/libeditor/tests/test.rs | |||
@@ -4,8 +4,9 @@ extern crate libsyntax2; | |||
4 | extern crate assert_eq_text; | 4 | extern crate assert_eq_text; |
5 | 5 | ||
6 | use assert_eq_text::{assert_eq_dbg}; | 6 | use assert_eq_text::{assert_eq_dbg}; |
7 | use libsyntax2::{File, TextUnit, TextRange}; | ||
7 | use libeditor::{ | 8 | use libeditor::{ |
8 | File, TextUnit, TextRange, ActionResult, | 9 | ActionResult, |
9 | highlight, runnables, extend_selection, file_structure, | 10 | highlight, runnables, extend_selection, file_structure, |
10 | flip_comma, add_derive, add_impl, matching_brace, | 11 | flip_comma, add_derive, add_impl, matching_brace, |
11 | join_lines, | 12 | join_lines, |