summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2021-07-26 00:27:07 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2021-07-26 00:27:07 +0200
commitd79922d763fa048fbc903beacf7dbf25aaad1f75 (patch)
tree7b7a5c4c7b18da018c26827d3b6bf3ca3150c8a2
parent9a9438f3d6a3523c69d7bc890e8608b63dbe38a5 (diff)
docs: Fix rustfmt install steps.
Fixes #2080
-rw-r--r--CONTRIBUTING.md2
-rw-r--r--tests/tests.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d533b064..8a9f8688 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -100,7 +100,7 @@ compared. Make sure you have `rustfmt` up to date:
```
$ rustup update nightly
-$ rustup run nightly cargo install -f rustfmt-nightly
+$ rustup component add rustfmt --toolchain nightly
```
Note: running `cargo test` from the root directory of `bindgen`'s repository does not
diff --git a/tests/tests.rs b/tests/tests.rs
index ced48540..323cf16d 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -49,7 +49,7 @@ The latest `rustfmt` is required to run the `bindgen` test suite. Install
`rustfmt` with:
$ rustup update nightly
- $ rustup run nightly cargo install -f rustfmt-nightly
+ $ rustup component add rustfmt --toolchain nightly
"
);
}