Skip to content

Commit 33adfcd

Browse files
Add warning for NEEDLESS_PASS_BY_REF_MUT lint about the fact that it changes API
1 parent dd3e00f commit 33adfcd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clippy_lints/src/needless_pass_by_ref_mut.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ declare_clippy_lint! {
2222
/// ### What it does
2323
/// Check if a `&mut` function argument is actually used mutably.
2424
///
25+
/// Be careful if the function is publically reexported as it would break compatibility with
26+
/// users of this function.
27+
///
2528
/// ### Why is this bad?
2629
/// Less `mut` means less fights with the borrow checker. It can also lead to more
2730
/// opportunities for parallelization.

0 commit comments

Comments
 (0)