We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
NEEDLESS_PASS_BY_REF_MUT
1 parent dd3e00f commit 33adfcdCopy full SHA for 33adfcd
clippy_lints/src/needless_pass_by_ref_mut.rs
@@ -22,6 +22,9 @@ declare_clippy_lint! {
22
/// ### What it does
23
/// Check if a `&mut` function argument is actually used mutably.
24
///
25
+ /// Be careful if the function is publically reexported as it would break compatibility with
26
+ /// users of this function.
27
+ ///
28
/// ### Why is this bad?
29
/// Less `mut` means less fights with the borrow checker. It can also lead to more
30
/// opportunities for parallelization.
0 commit comments