about summary refs log tree commit diff
path: root/clippy_lints/src/declared_lints.rs
diff options
context:
space:
mode:
authorJacherr <jwc2002@outlook.com>2023-11-09 23:00:20 +0000
committerJacherr <jwc2002@outlook.com>2024-11-12 23:00:26 +0000
commit89210d7c5afb0e42b0b1e092b388c912761671e5 (patch)
tree73b9239dc286ba0238205a3aa7004ac3deb853a1 /clippy_lints/src/declared_lints.rs
parentf58088b23eee1cb1afefc3207adbd184ee8d8346 (diff)
downloadrust-89210d7c5afb0e42b0b1e092b388c912761671e5.tar.gz
rust-89210d7c5afb0e42b0b1e092b388c912761671e5.zip
new lint `unnecessary_map_or`
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 edb52851e0c..dff60f76b74 100644
--- a/clippy_lints/src/declared_lints.rs
+++ b/clippy_lints/src/declared_lints.rs
@@ -481,6 +481,7 @@ pub static LINTS: &[&crate::LintInfo] = &[
     crate::methods::UNNECESSARY_JOIN_INFO,
     crate::methods::UNNECESSARY_LAZY_EVALUATIONS_INFO,
     crate::methods::UNNECESSARY_LITERAL_UNWRAP_INFO,
+    crate::methods::UNNECESSARY_MAP_OR_INFO,
     crate::methods::UNNECESSARY_MIN_OR_MAX_INFO,
     crate::methods::UNNECESSARY_RESULT_MAP_OR_ELSE_INFO,
     crate::methods::UNNECESSARY_SORT_BY_INFO,