about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTim Nielens <tim.nielens@gmail.com>2020-10-11 22:55:05 +0200
committerTim Nielens <tim.nielens@gmail.com>2020-10-14 22:16:48 +0200
commit6d4eeeabcda6d6d25738e1e8e2b64580daefc4b9 (patch)
treedcfa35d33906dab81e4749518ded48228c187f2c /src
parent9c9327980becadc15a68307705b3a06c28116ae1 (diff)
downloadrust-6d4eeeabcda6d6d25738e1e8e2b64580daefc4b9.tar.gz
rust-6d4eeeabcda6d6d25738e1e8e2b64580daefc4b9.zip
manual-unwrap-or / pr remarks
Diffstat (limited to 'src')
-rw-r--r--src/lintlist/mod.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index 6dc95fcfdb2..debd3c31d8b 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -1076,13 +1076,6 @@ vec![
         module: "len_zero",
     },
     Lint {
-        name: "less_concise_than_option_unwrap_or",
-        group: "pedantic",
-        desc: "finds patterns that can be encoded more concisely with `Option::unwrap_or`",
-        deprecation: None,
-        module: "less_concise_than",
-    },
-    Lint {
         name: "let_and_return",
         group: "style",
         desc: "creating a let-binding and then immediately returning it like `let x = expr; x` at the end of a block",
@@ -1188,6 +1181,13 @@ vec![
         module: "swap",
     },
     Lint {
+        name: "manual_unwrap_or",
+        group: "complexity",
+        desc: "finds patterns that can be encoded more concisely with `Option::unwrap_or(_else)`",
+        deprecation: None,
+        module: "manual_unwrap_or",
+    },
+    Lint {
         name: "many_single_char_names",
         group: "style",
         desc: "too many single character bindings",