diff options
author | Aleksey Kladov <[email protected]> | 2019-10-17 21:01:53 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-10-17 21:14:05 +0100 |
commit | 5376c769f0cb6076c4862e728af042bb563a5051 (patch) | |
tree | 890a88741ef83c5ca0a57006c1972d0870fd86a4 /xtask/src | |
parent | 7b15c4f7ae95e2e855cb783871906fa7bf364c4c (diff) |
rename tools -> xtask
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/bin/pre-commit.rs | 2 | ||||
-rw-r--r-- | xtask/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/bin/pre-commit.rs b/xtask/src/bin/pre-commit.rs index 16bbf9cb2..4ee864756 100644 --- a/xtask/src/bin/pre-commit.rs +++ b/xtask/src/bin/pre-commit.rs | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | use std::process::Command; | 3 | use std::process::Command; |
4 | 4 | ||
5 | use ra_tools::{project_root, run, run_rustfmt, Overwrite, Result}; | 5 | use xtask::{project_root, run, run_rustfmt, Overwrite, Result}; |
6 | 6 | ||
7 | fn main() -> Result<()> { | 7 | fn main() -> Result<()> { |
8 | run_rustfmt(Overwrite)?; | 8 | run_rustfmt(Overwrite)?; |
diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index 761592e85..a8685f567 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs | |||
@@ -146,7 +146,7 @@ pub fn install_format_hook() -> Result<()> { | |||
146 | "./.git/hooks/pre-commit" | 146 | "./.git/hooks/pre-commit" |
147 | }); | 147 | }); |
148 | if !result_path.exists() { | 148 | if !result_path.exists() { |
149 | run("cargo build --package ra_tools --bin pre-commit", ".")?; | 149 | run("cargo build --package xtask --bin pre-commit", ".")?; |
150 | if cfg!(windows) { | 150 | if cfg!(windows) { |
151 | fs::copy("./target/debug/pre-commit.exe", result_path)?; | 151 | fs::copy("./target/debug/pre-commit.exe", result_path)?; |
152 | } else { | 152 | } else { |