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) {
643
643
methods:: FILTER_MAP ,
644
644
methods:: FILTER_MAP_NEXT ,
645
645
methods:: FIND_MAP ,
646
- methods:: FLAT_MAP_IDENTITY ,
647
646
methods:: MAP_FLATTEN ,
648
647
methods:: OPTION_MAP_UNWRAP_OR ,
649
648
methods:: OPTION_MAP_UNWRAP_OR_ELSE ,
@@ -778,6 +777,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
778
777
methods:: CLONE_ON_COPY ,
779
778
methods:: EXPECT_FUN_CALL ,
780
779
methods:: FILTER_NEXT ,
780
+ methods:: FLAT_MAP_IDENTITY ,
781
781
methods:: INTO_ITER_ON_ARRAY ,
782
782
methods:: INTO_ITER_ON_REF ,
783
783
methods:: ITER_CLONED_COLLECT ,
@@ -1022,6 +1022,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
1022
1022
methods:: CHARS_NEXT_CMP ,
1023
1023
methods:: CLONE_ON_COPY ,
1024
1024
methods:: FILTER_NEXT ,
1025
+ methods:: FLAT_MAP_IDENTITY ,
1025
1026
methods:: SEARCH_IS_SOME ,
1026
1027
methods:: UNNECESSARY_FILTER_MAP ,
1027
1028
methods:: USELESS_ASREF ,
Original file line number Diff line number Diff line change @@ -555,7 +555,7 @@ pub const ALL_LINTS: [Lint; 310] = [
555
555
} ,
556
556
Lint {
557
557
name : "flat_map_identity" ,
558
- group : "pedantic " ,
558
+ group : "complexity " ,
559
559
desc : "call to `flat_map` where `flatten` is sufficient" ,
560
560
deprecation : None ,
561
561
module : "methods" ,
You can’t perform that action at this time.
0 commit comments