Skip to content

Commit

Permalink
Add warning for NEEDLESS_PASS_BY_REF_MUT lint about the fact that i…
Browse files Browse the repository at this point in the history
…t changes API
  • Loading branch information
GuillaumeGomez committed Jul 3, 2023
1 parent dd3e00f commit 33adfcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clippy_lints/src/needless_pass_by_ref_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 33adfcd

Please sign in to comment.