diff --git a/clippy_lints/src/if_let_mutex.rs b/clippy_lints/src/if_let_mutex.rs index 21749f8ad09..95b9c2823fe 100644 --- a/clippy_lints/src/if_let_mutex.rs +++ b/clippy_lints/src/if_let_mutex.rs @@ -72,6 +72,7 @@ impl LateLintPass<'_, '_> for IfLetMutex { IF_LET_MUTEX, ex.span, "calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a deadlock", + None, "move the lock call outside of the `if let ...` expression", ); }