From 5e7995eeb7b7ab4cf0d80ddfa2d20e506216f895 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 7 Jan 2020 15:33:51 +0100 Subject: Cleanup --- xtask/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xtask/src/lib.rs') diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index 7bfc4a285..b76278635 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs @@ -1,9 +1,10 @@ //! FIXME: write short doc here mod cmd; -pub mod codegen; pub mod install; pub mod pre_commit; + +pub mod codegen; mod ast_src; use anyhow::Context; @@ -13,10 +14,9 @@ use std::{ process::{Command, Stdio}, }; -use crate::codegen::Mode; +use crate::{cmd::run, codegen::Mode}; pub use anyhow::Result; -pub use cmd::{run, run_with_output, Cmd}; const TOOLCHAIN: &str = "stable"; @@ -83,7 +83,7 @@ pub fn run_clippy() -> Result<()> { Ok(()) } -pub fn install_clippy() -> Result<()> { +fn install_clippy() -> Result<()> { run(&format!("rustup toolchain install {}", TOOLCHAIN), ".")?; run(&format!("rustup component add clippy --toolchain {}", TOOLCHAIN), ".") } -- cgit v1.2.3