diff options
| author | Quinn Sinclair <me@partiallytyped.dev> | 2023-12-04 02:20:47 +0100 |
|---|---|---|
| committer | PartiallyTyped <me@partiallytyped.dev> | 2023-12-16 00:43:52 +0100 |
| commit | 8892420aa742e1f8e2ae80edd694aba59ac60e87 (patch) | |
| tree | ddb12ec361d7e066b6891d9d138abc37e1b797b5 /clippy_lints/src/declared_lints.rs | |
| parent | 29bdc8b2bc58247e3a2bdd0052a18ea46b8b5c24 (diff) | |
| download | rust-8892420aa742e1f8e2ae80edd694aba59ac60e87.tar.gz rust-8892420aa742e1f8e2ae80edd694aba59ac60e87.zip | |
New Lint: `Result_filter_map`
Added the `Result` mirror of `option_filter_map` to catch ``` .into_iter().filter(Result::is_ok).map(Result::unwrap) ``` changelog: New Lint: [`result_filter_map`] Co-authored-by: Alex Macleod <alex@macleod.io>
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 2ce938fbe92..8ae68da3e9f 100644 --- a/clippy_lints/src/declared_lints.rs +++ b/clippy_lints/src/declared_lints.rs @@ -419,6 +419,7 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[ crate::methods::READ_LINE_WITHOUT_TRIM_INFO, crate::methods::REDUNDANT_AS_STR_INFO, crate::methods::REPEAT_ONCE_INFO, + crate::methods::RESULT_FILTER_MAP_INFO, crate::methods::RESULT_MAP_OR_INTO_OPTION_INFO, crate::methods::SEARCH_IS_SOME_INFO, crate::methods::SEEK_FROM_CURRENT_INFO, |
