File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments