Categorize all the lints!

This commit is contained in:
Oliver Schneider
2018-03-28 15:24:26 +02:00
parent ef9fdbb8a9
commit d6344c47e3
107 changed files with 707 additions and 715 deletions

View File

@@ -22,9 +22,9 @@ use utils::{match_type, paths, span_lint};
/// ```rust
/// let x = Mutex::new(&y);
/// ```
declare_lint! {
declare_clippy_lint! {
pub MUTEX_ATOMIC,
Warn,
perf,
"using a mutex where an atomic value could be used instead"
}
@@ -42,9 +42,9 @@ declare_lint! {
/// ```rust
/// let x = Mutex::new(0usize);
/// ```
declare_lint! {
declare_clippy_lint! {
pub MUTEX_INTEGER,
Allow,
pedantic,
"using a mutex for an integer type"
}