From 7020167aa23e9125ac1a58fe2e217d1a92140745 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 20 Nov 2019 09:47:14 +0300 Subject: Cleanup imports --- xtask/src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'xtask/src/main.rs') diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 663e28103..4b1f0c887 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -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(); } -- cgit v1.2.3