diff options
| author | Catherine Flores <catherine.3.flores@gmail.com> | 2025-02-07 12:28:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-07 12:28:06 +0000 |
| commit | c6a861615e7d1513854943d4ac14581e5ac70249 (patch) | |
| tree | f576d09224a99809f706c7fe2b106c979b408095 | |
| parent | b5ea2491b38545e175c3d2e9ac5e021b11256235 (diff) | |
| parent | 16781bf29d2da41fd1b67a5dfffbe40dfdf312eb (diff) | |
| download | rust-c6a861615e7d1513854943d4ac14581e5ac70249.tar.gz rust-c6a861615e7d1513854943d4ac14581e5ac70249.zip | |
add `manual_option_as_slice` MSRV to the lint documentation (#14171)
`manual_option_as_slice` takes MSRV into account, but this is not mentioned in the lint documentation. changelog: none
| -rw-r--r-- | book/src/lint_configuration.md | 1 | ||||
| -rw-r--r-- | clippy_config/src/conf.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/book/src/lint_configuration.md b/book/src/lint_configuration.md index 5c6dac00edb..190f4dd1345 100644 --- a/book/src/lint_configuration.md +++ b/book/src/lint_configuration.md @@ -748,6 +748,7 @@ The minimum rust version that the project supports. Defaults to the `rust-versio * [`manual_is_ascii_check`](https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check) * [`manual_let_else`](https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else) * [`manual_non_exhaustive`](https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive) +* [`manual_option_as_slice`](https://rust-lang.github.io/rust-clippy/master/index.html#manual_option_as_slice) * [`manual_pattern_char_comparison`](https://rust-lang.github.io/rust-clippy/master/index.html#manual_pattern_char_comparison) * [`manual_range_contains`](https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains) * [`manual_rem_euclid`](https://rust-lang.github.io/rust-clippy/master/index.html#manual_rem_euclid) diff --git a/clippy_config/src/conf.rs b/clippy_config/src/conf.rs index d23c1718824..1dd53b04940 100644 --- a/clippy_config/src/conf.rs +++ b/clippy_config/src/conf.rs @@ -617,6 +617,7 @@ define_Conf! { manual_is_ascii_check, manual_let_else, manual_non_exhaustive, + manual_option_as_slice, manual_pattern_char_comparison, manual_range_contains, manual_rem_euclid, |
