Skip to content

Commit 395e492

Browse files
committed
Suggest right toolchain when running clippy
Signed-off-by: hi-rustin <[email protected]>
1 parent 1a5cebd commit 395e492

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
2. Create your feature branch: `git checkout -b my-new-feature`
55
3. Test it: `cargo test`
66
4. Lint it: `cargo +beta clippy --all --all-targets -- -D warnings`
7+
78
> We use `cargo clippy` to ensure high-quality code and to enforce a set of best practices for Rust programming. However, not all lints provided by `cargo clippy` are relevant or applicable to our project.
89
> We may choose to ignore some lints if they are unstable, experimental, or specific to our project.
910
> If you are unsure about a lint, please ask us in the [rustup Discord channel](https://discord.com/channels/442252698964721669/463480252723888159).
10-
5. Commit your changes: `git commit -am 'Add some feature'`
11-
6. Push to the branch: `git push origin my-new-feature`
12-
7. Submit a pull request :D
11+
12+
1. Commit your changes: `git commit -am 'Add some feature'`
13+
2. Push to the branch: `git push origin my-new-feature`
14+
3. Submit a pull request :D
1315

1416
For developing on `rustup` itself, you may want to install into a temporary
1517
directory, with a series of commands similar to this:
@@ -72,7 +74,7 @@ clippy is a moving target that can make it hard to merge for little benefit.
7274

7375
We do ask that contributors keep the clippy status clean themselves.
7476

75-
Minimally, run `cargo +nightly clippy --all --all-targets -- -D warnings` before
77+
Minimally, run `cargo +beta clippy --all --all-targets -- -D warnings` before
7678
submitting code.
7779

7880
If possible, adding `--all-features` to the command is useful, but will require

0 commit comments

Comments
 (0)