summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
"
);
}