Skip to content

Commit 4275d7b

Browse files
committed
Run 'update_lints'
1 parent d51136d commit 4275d7b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clippy_lints/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
643643
methods::FILTER_MAP,
644644
methods::FILTER_MAP_NEXT,
645645
methods::FIND_MAP,
646-
methods::FLAT_MAP_IDENTITY,
647646
methods::MAP_FLATTEN,
648647
methods::OPTION_MAP_UNWRAP_OR,
649648
methods::OPTION_MAP_UNWRAP_OR_ELSE,
@@ -778,6 +777,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
778777
methods::CLONE_ON_COPY,
779778
methods::EXPECT_FUN_CALL,
780779
methods::FILTER_NEXT,
780+
methods::FLAT_MAP_IDENTITY,
781781
methods::INTO_ITER_ON_ARRAY,
782782
methods::INTO_ITER_ON_REF,
783783
methods::ITER_CLONED_COLLECT,
@@ -1022,6 +1022,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
10221022
methods::CHARS_NEXT_CMP,
10231023
methods::CLONE_ON_COPY,
10241024
methods::FILTER_NEXT,
1025+
methods::FLAT_MAP_IDENTITY,
10251026
methods::SEARCH_IS_SOME,
10261027
methods::UNNECESSARY_FILTER_MAP,
10271028
methods::USELESS_ASREF,

src/lintlist/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ pub const ALL_LINTS: [Lint; 310] = [
555555
},
556556
Lint {
557557
name: "flat_map_identity",
558-
group: "pedantic",
558+
group: "complexity",
559559
desc: "call to `flat_map` where `flatten` is sufficient",
560560
deprecation: None,
561561
module: "methods",

0 commit comments

Comments
 (0)