This commit is contained in:
Aleksey Kladov 2020-01-07 15:33:51 +01:00
parent 64f0510d18
commit 5e7995eeb7
3 changed files with 7 additions and 7 deletions

View file

@ -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), ".")
}