aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/main.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-11-20 06:47:14 +0000
committerAleksey Kladov <[email protected]>2019-11-20 06:47:14 +0000
commit7020167aa23e9125ac1a58fe2e217d1a92140745 (patch)
treeea16c683f1e4c803dec946516c5f40ff848c66aa /xtask/src/main.rs
parent36e3fc9d5413f7e6e17e82867aae1318645880a3 (diff)
Cleanup imports
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r--xtask/src/main.rs7
1 files changed, 3 insertions, 4 deletions
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 @@
9//! `.cargo/config`. 9//! `.cargo/config`.
10mod help; 10mod help;
11 11
12use std::{env, fmt::Write, path::PathBuf, str};
13
12use anyhow::Context; 14use anyhow::Context;
13use core::fmt::Write;
14use core::str;
15use pico_args::Arguments; 15use pico_args::Arguments;
16use std::{env, path::PathBuf};
17use xtask::{ 16use xtask::{
18 codegen::{self, Mode}, 17 codegen::{self, Mode},
19 install_pre_commit_hook, reformat_staged_files, run, run_clippy, run_fuzzer, run_rustfmt, 18 install_pre_commit_hook, reformat_staged_files, run, run_clippy, run_fuzzer, run_rustfmt,
@@ -37,7 +36,7 @@ struct ServerOpt {
37} 36}
38 37
39fn main() -> Result<()> { 38fn main() -> Result<()> {
40 if std::env::args().next().map(|it| it.contains("pre-commit")) == Some(true) { 39 if env::args().next().map(|it| it.contains("pre-commit")) == Some(true) {
41 return reformat_staged_files(); 40 return reformat_staged_files();
42 } 41 }
43 42