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
This commit is contained in:
Aleksey Kladov
2019-07-04 23:05:17 +03:00
parent 2b2cd829b0
commit 1834bae5b8
166 changed files with 798 additions and 814 deletions

View File

@@ -1,6 +1,6 @@
use std::process::Command;
use ra_tools::{Result, run_rustfmt, run, project_root, Overwrite};
use ra_tools::{project_root, run, run_rustfmt, Overwrite, Result};
fn main() -> Result<()> {
run_rustfmt(Overwrite)?;

View File

@@ -1,10 +1,10 @@
use std::{
fs,
collections::HashMap,
error::Error,
fs,
io::{Error as IoError, ErrorKind},
path::{Path, PathBuf},
process::{Command, Output, Stdio},
io::{Error as IoError, ErrorKind},
error::Error
};
use itertools::Itertools;

View File

@@ -1,10 +1,10 @@
use clap::{App, SubCommand};
use core::str;
use ra_tools::{
generate, gen_tests, install_format_hook, run, run_with_output, run_rustfmt,
Overwrite, Result, run_fuzzer, run_clippy,
gen_tests, generate, install_format_hook, run, run_clippy, run_fuzzer, run_rustfmt,
run_with_output, Overwrite, Result,
};
use std::{path::{PathBuf}, env};
use std::{env, path::PathBuf};
fn main() -> Result<()> {
let matches = App::new("tasks")