From 4275d7b6acc9757de008e61c2dd3d55a9ca113e4 Mon Sep 17 00:00:00 2001 From: Jeremy Stucki Date: Mon, 12 Aug 2019 21:47:12 +0200 Subject: [PATCH] Run 'update_lints' --- clippy_lints/src/lib.rs | 3 ++- src/lintlist/mod.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 4cc750ceb2f..38fa6c9b5bc 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -643,7 +643,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) { methods::FILTER_MAP, methods::FILTER_MAP_NEXT, methods::FIND_MAP, - methods::FLAT_MAP_IDENTITY, methods::MAP_FLATTEN, methods::OPTION_MAP_UNWRAP_OR, methods::OPTION_MAP_UNWRAP_OR_ELSE, @@ -778,6 +777,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) { methods::CLONE_ON_COPY, methods::EXPECT_FUN_CALL, methods::FILTER_NEXT, + methods::FLAT_MAP_IDENTITY, methods::INTO_ITER_ON_ARRAY, methods::INTO_ITER_ON_REF, methods::ITER_CLONED_COLLECT, @@ -1022,6 +1022,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) { methods::CHARS_NEXT_CMP, methods::CLONE_ON_COPY, methods::FILTER_NEXT, + methods::FLAT_MAP_IDENTITY, methods::SEARCH_IS_SOME, methods::UNNECESSARY_FILTER_MAP, methods::USELESS_ASREF, diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs index cfe8dea8837..63d1be8fe0d 100644 --- a/src/lintlist/mod.rs +++ b/src/lintlist/mod.rs @@ -555,7 +555,7 @@ pub const ALL_LINTS: [Lint; 310] = [ }, Lint { name: "flat_map_identity", - group: "pedantic", + group: "complexity", desc: "call to `flat_map` where `flatten` is sufficient", deprecation: None, module: "methods",