2320: Cleanup imports r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2019-11-20 06:51:40 +00:00 committed by GitHub
commit 4340d9b0e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -5,6 +5,9 @@ version = "0.1.0"
authors = ["rust-analyzer developers"]
publish = false
[lib]
doctest = false
[dependencies]
walkdir = "2.1.3"
pico-args = "0.3.0"

View file

@ -9,11 +9,10 @@
//! `.cargo/config`.
mod help;
use std::{env, fmt::Write, path::PathBuf, str};
use anyhow::Context;
use core::fmt::Write;
use core::str;
use pico_args::Arguments;
use std::{env, path::PathBuf};
use xtask::{
codegen::{self, Mode},
install_pre_commit_hook, reformat_staged_files, run, run_clippy, run_fuzzer, run_rustfmt,
@ -37,7 +36,7 @@ struct ServerOpt {
}
fn main() -> Result<()> {
if std::env::args().next().map(|it| it.contains("pre-commit")) == Some(true) {
if env::args().next().map(|it| it.contains("pre-commit")) == Some(true) {
return reformat_staged_files();
}