]> git.lizzy.rs Git - rust.git/commitdiff
Run 'update_lints'
authorJeremy Stucki <jeremy@myelin.ch>
Mon, 12 Aug 2019 19:47:12 +0000 (21:47 +0200)
committerJeremy Stucki <jeremy@myelin.ch>
Mon, 12 Aug 2019 19:47:12 +0000 (21:47 +0200)
clippy_lints/src/lib.rs
src/lintlist/mod.rs

index 4cc750ceb2f6011cf28f4b69a306c07a8c5021eb..38fa6c9b5bcd154b124ab83bc4062dab66394367 100644 (file)
@@ -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,
index cfe8dea8837fc13c03df916d3d47ad915c123113..63d1be8fe0df242d6f85c098dd14a2e942c5e966 100644 (file)
     },
     Lint {
         name: "flat_map_identity",
-        group: "pedantic",
+        group: "complexity",
         desc: "call to `flat_map` where `flatten` is sufficient",
         deprecation: None,
         module: "methods",