Add warning for NEEDLESS_PASS_BY_REF_MUT
lint about the fact that it changes API
This commit is contained in:
parent
dd3e00f102
commit
33adfcd327
@ -22,6 +22,9 @@ declare_clippy_lint! {
|
||||
/// ### What it does
|
||||
/// Check if a `&mut` function argument is actually used mutably.
|
||||
///
|
||||
/// Be careful if the function is publically reexported as it would break compatibility with
|
||||
/// users of this function.
|
||||
///
|
||||
/// ### Why is this bad?
|
||||
/// Less `mut` means less fights with the borrow checker. It can also lead to more
|
||||
/// opportunities for parallelization.
|
||||
|
Loading…
x
Reference in New Issue
Block a user