Use declare_clippy_lint and 'complexity' category

This commit is contained in:
Philipp Hansch 2018-04-09 07:54:08 +02:00
parent ca60e8a2a0
commit fbd71f901f
No known key found for this signature in database
GPG key ID: B6FA06A6E0E2665B

View file

@ -32,9 +32,9 @@ pub struct Pass;
/// 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"
}