File tree Expand file tree Collapse file tree 3 files changed +0
-55
lines changed Expand file tree Collapse file tree 3 files changed +0
-55
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,6 @@ Use `env RUN_SLOW_TESTS=1 cargo test` to run the full suite.
58
58
59
59
We use bors-ng to enforce the [ not rocket science] ( https://graydon2.dreamwidth.org/1597.html ) rule.
60
60
61
- You can run ` cargo xtask install-pre-commit-hook ` to install git-hook to run rustfmt on commit.
62
-
63
61
# Launching rust-analyzer
64
62
65
63
Debugging the language server can be tricky.
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ mod tidy;
15
15
mod install;
16
16
mod release;
17
17
mod dist;
18
- mod pre_commit;
19
18
mod metrics;
20
19
mod pre_cache;
21
20
@@ -39,10 +38,6 @@ use crate::{
39
38
} ;
40
39
41
40
fn main ( ) -> Result < ( ) > {
42
- if env:: args ( ) . next ( ) . map ( |it| it. contains ( "pre-commit" ) ) == Some ( true ) {
43
- return pre_commit:: run_hook ( ) ;
44
- }
45
-
46
41
let _d = pushd ( project_root ( ) ) ?;
47
42
48
43
let mut args = Arguments :: from_env ( ) ;
@@ -103,14 +98,6 @@ FLAGS:
103
98
finish_args ( args) ?;
104
99
CodegenCmd { features } . run ( )
105
100
}
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
- }
114
101
"lint" => {
115
102
finish_args ( args) ?;
116
103
run_clippy ( )
@@ -164,8 +151,6 @@ USAGE:
164
151
cargo xtask <SUBCOMMAND>
165
152
166
153
SUBCOMMANDS:
167
- format
168
- install-pre-commit-hook
169
154
fuzz-tests
170
155
codegen
171
156
install
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments