diff options
| author | bors <bors@rust-lang.org> | 2024-01-27 12:42:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-27 12:42:18 +0000 |
| commit | 85e08cd3b9c97dc8cd7efe6cba2e4015dfa74e28 (patch) | |
| tree | 23d78ebd7a3383d9ae1b0565a0df5a17feac72f9 /clippy_lints/src/declared_lints.rs | |
| parent | 79f10cf36419a8cc965a52b997600dadbe65f8d2 (diff) | |
| parent | e86da9eca3ddd3abe3a96b0af2b9a0fb1cf0470c (diff) | |
| download | rust-85e08cd3b9c97dc8cd7efe6cba2e4015dfa74e28.tar.gz rust-85e08cd3b9c97dc8cd7efe6cba2e4015dfa74e28.zip | |
Auto merge of #12169 - GuillaumeGomez:unnecessary_result_map_or_else, r=llogiq
Add new `unnecessary_result_map_or_else` lint Fixes https://github.com/rust-lang/rust-clippy/issues/7328. r? `@llogiq` changelog: Add new `unnecessary_result_map_or_else` lint
Diffstat (limited to 'clippy_lints/src/declared_lints.rs')
| -rw-r--r-- | clippy_lints/src/declared_lints.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/declared_lints.rs b/clippy_lints/src/declared_lints.rs index 7d6f3f3458e..23d0983151a 100644 --- a/clippy_lints/src/declared_lints.rs +++ b/clippy_lints/src/declared_lints.rs @@ -453,6 +453,7 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[ crate::methods::UNNECESSARY_JOIN_INFO, crate::methods::UNNECESSARY_LAZY_EVALUATIONS_INFO, crate::methods::UNNECESSARY_LITERAL_UNWRAP_INFO, + crate::methods::UNNECESSARY_RESULT_MAP_OR_ELSE_INFO, crate::methods::UNNECESSARY_SORT_BY_INFO, crate::methods::UNNECESSARY_TO_OWNED_INFO, crate::methods::UNWRAP_OR_DEFAULT_INFO, |
