|
4 | 4 |
|
5 | 5 | A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code. |
6 | 6 |
|
7 | | -[There are over 800 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html) |
| 7 | +[There are over 800 lints included in this crate!](https://rust-lang.github.io/rust-clippy/main/index.html) |
8 | 8 |
|
9 | 9 | Lints are divided into categories, each with a default [lint level](https://doc.rust-lang.org/rustc/lints/levels.html). |
10 | 10 | You can choose how much Clippy is supposed to ~~annoy~~ help you by changing the lint level by category. |
@@ -35,9 +35,9 @@ on a case-by-case basis before enabling. |
35 | 35 | - Preventing panicking in certain functions (e.g. [`clippy::unwrap_used`]). |
36 | 36 | - Running a lint only on a subset of code (e.g. `#[forbid(clippy::float_arithmetic)]` on a module). |
37 | 37 |
|
38 | | -[`clippy::else_if_without_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#else_if_without_else |
39 | | -[`clippy::todo`]: https://rust-lang.github.io/rust-clippy/master/index.html#todo |
40 | | -[`clippy::unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used |
| 38 | +[`clippy::else_if_without_else`]: https://rust-lang.github.io/rust-clippy/main/index.html#else_if_without_else |
| 39 | +[`clippy::todo`]: https://rust-lang.github.io/rust-clippy/main/index.html#todo |
| 40 | +[`clippy::unwrap_used`]: https://rust-lang.github.io/rust-clippy/main/index.html#unwrap_used |
41 | 41 |
|
42 | 42 | --- |
43 | 43 |
|
@@ -224,11 +224,11 @@ disallowed-names = ["toto", "tata", "titi"] |
224 | 224 |
|
225 | 225 | The [table of configurations](https://doc.rust-lang.org/nightly/clippy/lint_configuration.html) |
226 | 226 | contains all config values, their default, and a list of lints they affect. |
227 | | -Each [configurable lint](https://rust-lang.github.io/rust-clippy/master/index.html#Configuration) |
| 227 | +Each [configurable lint](https://rust-lang.github.io/rust-clippy/main/index.html#Configuration) |
228 | 228 | , also contains information about these values. |
229 | 229 |
|
230 | 230 | For configurations that are a list type with default values such as |
231 | | -[disallowed-names](https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names), |
| 231 | +[disallowed-names](https://rust-lang.github.io/rust-clippy/main/index.html#disallowed_names), |
232 | 232 | you can use the unique value `".."` to extend the default values instead of replacing them. |
233 | 233 |
|
234 | 234 | ```toml |
@@ -276,11 +276,11 @@ is equivalent to `msrv = 1.30.0`. |
276 | 276 |
|
277 | 277 | Note: `custom_inner_attributes` is an unstable feature, so it has to be enabled explicitly. |
278 | 278 |
|
279 | | -Lints that recognize this configuration option can be found [here](https://rust-lang.github.io/rust-clippy/master/index.html#msrv) |
| 279 | +Lints that recognize this configuration option can be found [here](https://rust-lang.github.io/rust-clippy/main/index.html#msrv) |
280 | 280 |
|
281 | 281 | ## Contributing |
282 | 282 |
|
283 | | -If you want to contribute to Clippy, you can find more information in [CONTRIBUTING.md](https://github.com/rust-lang/rust-clippy/blob/master/CONTRIBUTING.md). |
| 283 | +If you want to contribute to Clippy, you can find more information in [CONTRIBUTING.md](https://github.com/rust-lang/rust-clippy/blob/main/CONTRIBUTING.md). |
284 | 284 |
|
285 | 285 | ## License |
286 | 286 |
|
|
0 commit comments