Skip to content

Commit d79922d

Browse files
committed
docs: Fix rustfmt install steps.
Fixes #2080
1 parent 9a9438f commit d79922d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ compared. Make sure you have `rustfmt` up to date:
100100

101101
```
102102
$ rustup update nightly
103-
$ rustup run nightly cargo install -f rustfmt-nightly
103+
$ rustup component add rustfmt --toolchain nightly
104104
```
105105

106106
Note: running `cargo test` from the root directory of `bindgen`'s repository does not

tests/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The latest `rustfmt` is required to run the `bindgen` test suite. Install
4949
`rustfmt` with:
5050
5151
$ rustup update nightly
52-
$ rustup run nightly cargo install -f rustfmt-nightly
52+
$ rustup component add rustfmt --toolchain nightly
5353
"
5454
);
5555
}

0 commit comments

Comments
 (0)