Clarify the documentation of the unnecessary_mut_passed
lint
This commit is contained in:
parent
ce86f907ef
commit
a709559705
@ -6,7 +6,7 @@ use rustc_middle::ty::{self, Ty};
|
||||
use rustc_session::{declare_lint_pass, declare_tool_lint};
|
||||
|
||||
declare_clippy_lint! {
|
||||
/// **What it does:** Detects giving a mutable reference to a function that only
|
||||
/// **What it does:** Detects passing a mutable reference to a function that only
|
||||
/// requires an immutable reference.
|
||||
///
|
||||
/// **Why is this bad?** The immutable reference rules out all other references
|
||||
|
Loading…
x
Reference in New Issue
Block a user