about summary refs log tree commit diff
path: root/clippy_lints/src/declared_lints.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-16 23:29:07 +0000
committerbors <bors@rust-lang.org>2023-12-16 23:29:07 +0000
commitf9b5def2aea47b456422df10650ff4e51b5de7cd (patch)
tree7499dc3efe9a99a9c0c86c5fef86368b1b36db2d /clippy_lints/src/declared_lints.rs
parentfff484d18e4a020ed2387256f13201e948d3d84e (diff)
parent8892420aa742e1f8e2ae80edd694aba59ac60e87 (diff)
downloadrust-f9b5def2aea47b456422df10650ff4e51b5de7cd.tar.gz
rust-f9b5def2aea47b456422df10650ff4e51b5de7cd.zip
Auto merge of #11869 - PartiallyTyped:result-filter-map, r=Alexendoo
New Lint: `result_filter_map` / Mirror of `option_filter_map`

Added the `Result` mirror of `option_filter_map`.

changelog: New Lint: [`result_filter_map`]

I had to move around some code because the function def was too long 🙃.

I have also added some pattern checks on `option_filter_map`
Diffstat (limited to 'clippy_lints/src/declared_lints.rs')
-rw-r--r--clippy_lints/src/declared_lints.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/declared_lints.rs b/clippy_lints/src/declared_lints.rs
index 546a100f9a4..38fda36c58a 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,