Use declare_clippy_lint and 'complexity' category
This commit is contained in:
parent
ca60e8a2a0
commit
fbd71f901f
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue