diff options
Diffstat (limited to 'xtask/src/lib.rs')
-rw-r--r-- | xtask/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ | |||
1 | //! FIXME: write short doc here | 1 | //! FIXME: write short doc here |
2 | 2 | ||
3 | mod cmd; | 3 | mod cmd; |
4 | pub mod codegen; | ||
5 | pub mod install; | 4 | pub mod install; |
6 | pub mod pre_commit; | 5 | pub mod pre_commit; |
6 | |||
7 | pub mod codegen; | ||
7 | mod ast_src; | 8 | mod ast_src; |
8 | 9 | ||
9 | use anyhow::Context; | 10 | use anyhow::Context; |
@@ -13,10 +14,9 @@ use std::{ | |||
13 | process::{Command, Stdio}, | 14 | process::{Command, Stdio}, |
14 | }; | 15 | }; |
15 | 16 | ||
16 | use crate::codegen::Mode; | 17 | use crate::{cmd::run, codegen::Mode}; |
17 | 18 | ||
18 | pub use anyhow::Result; | 19 | pub use anyhow::Result; |
19 | pub use cmd::{run, run_with_output, Cmd}; | ||
20 | 20 | ||
21 | const TOOLCHAIN: &str = "stable"; | 21 | const TOOLCHAIN: &str = "stable"; |
22 | 22 | ||
@@ -83,7 +83,7 @@ pub fn run_clippy() -> Result<()> { | |||
83 | Ok(()) | 83 | Ok(()) |
84 | } | 84 | } |
85 | 85 | ||
86 | pub fn install_clippy() -> Result<()> { | 86 | fn install_clippy() -> Result<()> { |
87 | run(&format!("rustup toolchain install {}", TOOLCHAIN), ".")?; | 87 | run(&format!("rustup toolchain install {}", TOOLCHAIN), ".")?; |
88 | run(&format!("rustup component add clippy --toolchain {}", TOOLCHAIN), ".") | 88 | run(&format!("rustup component add clippy --toolchain {}", TOOLCHAIN), ".") |
89 | } | 89 | } |