diff options
Diffstat (limited to 'xtask/src/lib.rs')
-rw-r--r-- | xtask/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index 7332a4072..40a6682be 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs | |||
@@ -79,7 +79,7 @@ pub fn run_rustfmt(mode: Mode) -> Result<()> { | |||
79 | } | 79 | } |
80 | 80 | ||
81 | pub fn install_rustfmt() -> Result<()> { | 81 | pub fn install_rustfmt() -> Result<()> { |
82 | run(&format!("rustup install {}", TOOLCHAIN), ".")?; | 82 | run(&format!("rustup toolchain install {}", TOOLCHAIN), ".")?; |
83 | run(&format!("rustup component add rustfmt --toolchain {}", TOOLCHAIN), ".") | 83 | run(&format!("rustup component add rustfmt --toolchain {}", TOOLCHAIN), ".") |
84 | } | 84 | } |
85 | 85 | ||
@@ -125,7 +125,7 @@ pub fn run_clippy() -> Result<()> { | |||
125 | } | 125 | } |
126 | 126 | ||
127 | pub fn install_clippy() -> Result<()> { | 127 | pub fn install_clippy() -> Result<()> { |
128 | run(&format!("rustup install {}", TOOLCHAIN), ".")?; | 128 | run(&format!("rustup toolchain install {}", TOOLCHAIN), ".")?; |
129 | run(&format!("rustup component add clippy --toolchain {}", TOOLCHAIN), ".") | 129 | run(&format!("rustup component add clippy --toolchain {}", TOOLCHAIN), ".") |
130 | } | 130 | } |
131 | 131 | ||
@@ -144,6 +144,7 @@ pub fn run_fuzzer() -> Result<()> { | |||
144 | } | 144 | } |
145 | 145 | ||
146 | pub fn reformat_staged_files() -> Result<()> { | 146 | pub fn reformat_staged_files() -> Result<()> { |
147 | run_rustfmt(Mode::Overwrite)?; | ||
147 | let root = project_root(); | 148 | let root = project_root(); |
148 | let output = Command::new("git") | 149 | let output = Command::new("git") |
149 | .arg("diff") | 150 | .arg("diff") |