diff options
| author | bors <bors@rust-lang.org> | 2022-04-17 18:34:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-17 18:34:16 +0000 |
| commit | e5ebece910f8bfcc2361bddd847a7ae623debd57 (patch) | |
| tree | 6adff9abfd2d1cd896d2b8678160998d406ebe77 /clippy_lints/src/lib.register_complexity.rs | |
| parent | 0f4f9ecdb3d4db785b5d96ef5c61454e079b12c4 (diff) | |
| parent | 2903b56f177b2b23db62d6bf2d500837d704fb4e (diff) | |
Auto merge of #8665 - InfRandomness:option_take_on_temporary, r=llogiq
Introduce needless_option_take lint - \[x] Followed [lint naming conventions][lint_naming] - \[x] Added passing UI tests (including committed `.stderr` file) - \[x] `cargo test` passes locally - \[x] Executed `cargo dev update_lints` - \[x] Added lint documentation - \[x] Run `cargo dev fmt` Fixes #8618 changelog: Introduce [`needless_option_take`] lint
Diffstat (limited to 'clippy_lints/src/lib.register_complexity.rs')
| -rw-r--r-- | clippy_lints/src/lib.register_complexity.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/lib.register_complexity.rs b/clippy_lints/src/lib.register_complexity.rs index 10369a855ae..2f6ebd445eb 100644 --- a/clippy_lints/src/lib.register_complexity.rs +++ b/clippy_lints/src/lib.register_complexity.rs @@ -45,6 +45,7 @@ store.register_group(true, "clippy::complexity", Some("clippy_complexity"), vec! LintId::of(methods::MAP_FLATTEN), LintId::of(methods::MAP_IDENTITY), LintId::of(methods::NEEDLESS_OPTION_AS_DEREF), + LintId::of(methods::NEEDLESS_OPTION_TAKE), LintId::of(methods::NEEDLESS_SPLITN), LintId::of(methods::OPTION_AS_REF_DEREF), LintId::of(methods::OPTION_FILTER_MAP), |
