Fix util/update_wiki.py warnings and be consistent in declare_lint! invocations
This commit is contained in:
@@ -18,8 +18,10 @@ use utils::{in_macro, LimitStack, span_help_and_lint};
|
||||
/// **Known problems:** Sometimes it's hard to find a way to reduce the complexity
|
||||
///
|
||||
/// **Example:** No. You'll see it when you get the warning.
|
||||
declare_lint! { pub CYCLOMATIC_COMPLEXITY, Warn,
|
||||
"finds functions that should be split up into multiple functions" }
|
||||
declare_lint! {
|
||||
pub CYCLOMATIC_COMPLEXITY, Warn,
|
||||
"finds functions that should be split up into multiple functions"
|
||||
}
|
||||
|
||||
pub struct CyclomaticComplexity {
|
||||
limit: LimitStack,
|
||||
|
||||
Reference in New Issue
Block a user