aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_tools
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_tools')
-rw-r--r--crates/ra_tools/src/bin/pre-commit.rs2
-rw-r--r--crates/ra_tools/src/lib.rs6
-rw-r--r--crates/ra_tools/src/main.rs6
-rw-r--r--crates/ra_tools/tests/cli.rs2
4 files changed, 8 insertions, 8 deletions
diff --git a/crates/ra_tools/src/bin/pre-commit.rs b/crates/ra_tools/src/bin/pre-commit.rs
index 95bb55cae..a628f64b2 100644
--- a/crates/ra_tools/src/bin/pre-commit.rs
+++ b/crates/ra_tools/src/bin/pre-commit.rs
@@ -1,6 +1,6 @@
1use std::process::Command; 1use std::process::Command;
2 2
3use ra_tools::{Result, run_rustfmt, run, project_root, Overwrite}; 3use ra_tools::{project_root, run, run_rustfmt, Overwrite, Result};
4 4
5fn main() -> Result<()> { 5fn main() -> Result<()> {
6 run_rustfmt(Overwrite)?; 6 run_rustfmt(Overwrite)?;
diff --git a/crates/ra_tools/src/lib.rs b/crates/ra_tools/src/lib.rs
index 821209567..d56e0d2ef 100644
--- a/crates/ra_tools/src/lib.rs
+++ b/crates/ra_tools/src/lib.rs
@@ -1,10 +1,10 @@
1use std::{ 1use std::{
2 fs,
3 collections::HashMap, 2 collections::HashMap,
3 error::Error,
4 fs,
5 io::{Error as IoError, ErrorKind},
4 path::{Path, PathBuf}, 6 path::{Path, PathBuf},
5 process::{Command, Output, Stdio}, 7 process::{Command, Output, Stdio},
6 io::{Error as IoError, ErrorKind},
7 error::Error
8}; 8};
9 9
10use itertools::Itertools; 10use itertools::Itertools;
diff --git a/crates/ra_tools/src/main.rs b/crates/ra_tools/src/main.rs
index 846e0223e..7ed592f71 100644
--- a/crates/ra_tools/src/main.rs
+++ b/crates/ra_tools/src/main.rs
@@ -1,10 +1,10 @@
1use clap::{App, SubCommand}; 1use clap::{App, SubCommand};
2use core::str; 2use core::str;
3use ra_tools::{ 3use ra_tools::{
4 generate, gen_tests, install_format_hook, run, run_with_output, run_rustfmt, 4 gen_tests, generate, install_format_hook, run, run_clippy, run_fuzzer, run_rustfmt,
5 Overwrite, Result, run_fuzzer, run_clippy, 5 run_with_output, Overwrite, Result,
6}; 6};
7use std::{path::{PathBuf}, env}; 7use std::{env, path::PathBuf};
8 8
9fn main() -> Result<()> { 9fn main() -> Result<()> {
10 let matches = App::new("tasks") 10 let matches = App::new("tasks")
diff --git a/crates/ra_tools/tests/cli.rs b/crates/ra_tools/tests/cli.rs
index 83640218f..ae0eb337d 100644
--- a/crates/ra_tools/tests/cli.rs
+++ b/crates/ra_tools/tests/cli.rs
@@ -1,6 +1,6 @@
1use walkdir::WalkDir; 1use walkdir::WalkDir;
2 2
3use ra_tools::{generate, gen_tests, run_rustfmt, Verify, project_root}; 3use ra_tools::{gen_tests, generate, project_root, run_rustfmt, Verify};
4 4
5#[test] 5#[test]
6fn generated_grammar_is_fresh() { 6fn generated_grammar_is_fresh() {