Skip to content

Commit 28de37e

Browse files
author
bors-servo
authored
Auto merge of #945 - glyn:code-formatting-not-enforced, r=emilio
Delete automatic code formatting guidelines These are currently inaccurate as `cargo fmt` is not enforced for bindgen. This section can be re-instated if and when code formatting is enforced.
2 parents e841f6f + 24f2683 commit 28de37e

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

CONTRIBUTING.md

-24
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ out to us in a GitHub issue, or stop by
1919
- [Testing a Single Header's Bindings Generation and Compiling its Bindings](#testing-a-single-headers-bindings-generation-and-compiling-its-bindings)
2020
- [Authoring New Tests](#authoring-new-tests)
2121
- [Test Expectations and `libclang` Versions](#test-expectations-and-libclang-versions)
22-
- [Automatic code formatting](#automatic-code-formatting)
2322
- [Pull Requests and Code Reviews](#pull-requests-and-code-reviews)
2423
- [Generating Graphviz Dot Files](#generating-graphviz-dot-files)
2524
- [Debug Logging](#debug-logging)
@@ -192,29 +191,6 @@ Where `$VERSION` is one of:
192191

193192
depending on which version of `libclang` you have installed.
194193

195-
## Automatic code formatting
196-
197-
We use [`rustfmt`](https://github.com/rust-lang-nursery/rustfmt) to enforce a
198-
consistent code style across the whole `bindgen` code base. This is enforced in
199-
CI, and your pull requests will get automatically rejected if you don't
200-
re-format with the latest `rustfmt` before pushing.
201-
202-
You can install the latest version of `rustfmt` with this command:
203-
204-
```
205-
$ cargo install -f rustfmt
206-
```
207-
208-
Ensure that `~/.cargo/bin` is on your path.
209-
210-
Once that is taken care of, you can (re)format all code by running this command:
211-
212-
```
213-
$ cargo fmt
214-
```
215-
216-
The code style is described in the `rustfmt.toml` file in top level of the repo.
217-
218194
## Pull Requests and Code Reviews
219195

220196
Ensure that each commit stands alone, and passes tests. This enables better `git

0 commit comments

Comments
 (0)