Skip to content

Commit 5e7995e

Browse files
committed
Cleanup
1 parent 64f0510 commit 5e7995e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

xtask/src/install.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
//! Installs rust-analyzer langauge server and/or editor plugin.
1+
//! Installs rust-analyzer language server and/or editor plugin.
22
33
use std::{env, path::PathBuf, str};
44

55
use anyhow::{Context, Result};
66

7-
use crate::{run, run_with_output, Cmd};
7+
use crate::cmd::{run, run_with_output, Cmd};
88

99
// Latest stable, feel free to send a PR if this lags behind.
1010
const REQUIRED_RUST_VERSION: u32 = 40;

xtask/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
//! FIXME: write short doc here
22
33
mod cmd;
4-
pub mod codegen;
54
pub mod install;
65
pub mod pre_commit;
6+
7+
pub mod codegen;
78
mod ast_src;
89

910
use anyhow::Context;
@@ -13,10 +14,9 @@ use std::{
1314
process::{Command, Stdio},
1415
};
1516

16-
use crate::codegen::Mode;
17+
use crate::{cmd::run, codegen::Mode};
1718

1819
pub use anyhow::Result;
19-
pub use cmd::{run, run_with_output, Cmd};
2020

2121
const TOOLCHAIN: &str = "stable";
2222

@@ -83,7 +83,7 @@ pub fn run_clippy() -> Result<()> {
8383
Ok(())
8484
}
8585

86-
pub fn install_clippy() -> Result<()> {
86+
fn install_clippy() -> Result<()> {
8787
run(&format!("rustup toolchain install {}", TOOLCHAIN), ".")?;
8888
run(&format!("rustup component add clippy --toolchain {}", TOOLCHAIN), ".")
8989
}

xtask/src/pre_commit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::{fs, path::PathBuf};
44

55
use anyhow::{bail, Result};
66

7-
use crate::{project_root, run, run_rustfmt, run_with_output, Mode};
7+
use crate::{cmd::run_with_output, project_root, run, run_rustfmt, Mode};
88

99
// FIXME: if there are changed `.ts` files, also reformat TypeScript (by
1010
// shelling out to `npm fmt`).

0 commit comments

Comments
 (0)