Skip to content

Commit 979c26e

Browse files
committed
Axe pre-commit
1 parent 5efb7f8 commit 979c26e

File tree

3 files changed

+0
-55
lines changed

3 files changed

+0
-55
lines changed

docs/dev/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ Use `env RUN_SLOW_TESTS=1 cargo test` to run the full suite.
5858

5959
We use bors-ng to enforce the [not rocket science](https://graydon2.dreamwidth.org/1597.html) rule.
6060

61-
You can run `cargo xtask install-pre-commit-hook` to install git-hook to run rustfmt on commit.
62-
6361
# Launching rust-analyzer
6462

6563
Debugging the language server can be tricky.

xtask/src/main.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ mod tidy;
1515
mod install;
1616
mod release;
1717
mod dist;
18-
mod pre_commit;
1918
mod metrics;
2019
mod pre_cache;
2120

@@ -39,10 +38,6 @@ use crate::{
3938
};
4039

4140
fn main() -> Result<()> {
42-
if env::args().next().map(|it| it.contains("pre-commit")) == Some(true) {
43-
return pre_commit::run_hook();
44-
}
45-
4641
let _d = pushd(project_root())?;
4742

4843
let mut args = Arguments::from_env();
@@ -103,14 +98,6 @@ FLAGS:
10398
finish_args(args)?;
10499
CodegenCmd { features }.run()
105100
}
106-
"format" => {
107-
finish_args(args)?;
108-
run_rustfmt(Mode::Overwrite)
109-
}
110-
"install-pre-commit-hook" => {
111-
finish_args(args)?;
112-
pre_commit::install_hook()
113-
}
114101
"lint" => {
115102
finish_args(args)?;
116103
run_clippy()
@@ -164,8 +151,6 @@ USAGE:
164151
cargo xtask <SUBCOMMAND>
165152
166153
SUBCOMMANDS:
167-
format
168-
install-pre-commit-hook
169154
fuzz-tests
170155
codegen
171156
install

xtask/src/pre_commit.rs

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)