]> git.lizzy.rs Git - rust.git/commitdiff
Use declare_clippy_lint and 'complexity' category
authorPhilipp Hansch <dev@phansch.net>
Mon, 9 Apr 2018 05:54:08 +0000 (07:54 +0200)
committerPhilipp Hansch <dev@phansch.net>
Sun, 15 Apr 2018 11:01:09 +0000 (13:01 +0200)
clippy_lints/src/map_nil_fn.rs

index 13ac1fe2294606eb960a9f0309ebf8beffe50382..b72c0a01eda13f10825d96634f54070010ca904c 100644 (file)
@@ -32,9 +32,9 @@
 ///     log_err_msg(format_msg(msg))
 /// }
 /// ```
-declare_lint! {
+declare_clippy_lint! {
     pub OPTION_MAP_NIL_FN,
-    Allow,
+    complexity,
     "using `Option.map(f)`, where f is a nil function or closure"
 }