diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/test_utils/src/lib.rs | 7 | ||||
-rw-r--r-- | crates/tools/src/lib.rs | 6 | ||||
-rw-r--r-- | crates/tools/src/main.rs | 12 |
3 files changed, 7 insertions, 18 deletions
diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs index d9fbb9b5b..e72ec9c47 100644 --- a/crates/test_utils/src/lib.rs +++ b/crates/test_utils/src/lib.rs | |||
@@ -1,12 +1,9 @@ | |||
1 | extern crate difference; | 1 | use std::fmt; |
2 | extern crate itertools; | ||
3 | extern crate text_unit; | ||
4 | 2 | ||
5 | use itertools::Itertools; | 3 | use itertools::Itertools; |
6 | use std::fmt; | ||
7 | use text_unit::{TextRange, TextUnit}; | 4 | use text_unit::{TextRange, TextUnit}; |
8 | 5 | ||
9 | pub use self::difference::Changeset as __Changeset; | 6 | pub use difference::Changeset as __Changeset; |
10 | 7 | ||
11 | pub const CURSOR_MARKER: &str = "<|>"; | 8 | pub const CURSOR_MARKER: &str = "<|>"; |
12 | 9 | ||
diff --git a/crates/tools/src/lib.rs b/crates/tools/src/lib.rs index 4ff783c50..c2123db99 100644 --- a/crates/tools/src/lib.rs +++ b/crates/tools/src/lib.rs | |||
@@ -1,7 +1,3 @@ | |||
1 | extern crate failure; | ||
2 | extern crate itertools; | ||
3 | extern crate teraron; | ||
4 | |||
5 | use std::{ | 1 | use std::{ |
6 | path::{Path, PathBuf}, | 2 | path::{Path, PathBuf}, |
7 | process::{Command, Stdio}, | 3 | process::{Command, Stdio}, |
@@ -12,7 +8,7 @@ use itertools::Itertools; | |||
12 | 8 | ||
13 | pub use teraron::{Mode, Overwrite, Verify}; | 9 | pub use teraron::{Mode, Overwrite, Verify}; |
14 | 10 | ||
15 | pub type Result<T> = ::std::result::Result<T, failure::Error>; | 11 | pub type Result<T> = std::result::Result<T, failure::Error>; |
16 | 12 | ||
17 | pub const GRAMMAR: &str = "crates/ra_syntax/src/grammar.ron"; | 13 | pub const GRAMMAR: &str = "crates/ra_syntax/src/grammar.ron"; |
18 | pub const SYNTAX_KINDS: &str = "crates/ra_syntax/src/syntax_kinds/generated.rs.tera"; | 14 | pub const SYNTAX_KINDS: &str = "crates/ra_syntax/src/syntax_kinds/generated.rs.tera"; |
diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs index dc623a464..7bd4a2d09 100644 --- a/crates/tools/src/main.rs +++ b/crates/tools/src/main.rs | |||
@@ -1,16 +1,12 @@ | |||
1 | extern crate clap; | ||
2 | extern crate failure; | ||
3 | extern crate teraron; | ||
4 | extern crate tools; | ||
5 | extern crate walkdir; | ||
6 | |||
7 | use clap::{App, Arg, SubCommand}; | ||
8 | use failure::bail; | ||
9 | use std::{ | 1 | use std::{ |
10 | collections::HashMap, | 2 | collections::HashMap, |
11 | fs, | 3 | fs, |
12 | path::{Path, PathBuf}, | 4 | path::{Path, PathBuf}, |
13 | }; | 5 | }; |
6 | |||
7 | use clap::{App, Arg, SubCommand}; | ||
8 | use failure::bail; | ||
9 | |||
14 | use tools::{collect_tests, generate, run, run_rustfmt, Mode, Overwrite, Result, Test, Verify}; | 10 | use tools::{collect_tests, generate, run, run_rustfmt, Mode, Overwrite, Result, Test, Verify}; |
15 | 11 | ||
16 | const GRAMMAR_DIR: &str = "./crates/ra_syntax/src/grammar"; | 12 | const GRAMMAR_DIR: &str = "./crates/ra_syntax/src/grammar"; |