mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Add explanation
This commit is contained in:
parent
d81d961ba7
commit
d2f73e7818
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@ use std::collections::HashSet;
|
|||
/// **What it does:** Checks for functions taking arguments by value, but only using them by
|
||||
/// reference.
|
||||
///
|
||||
/// **Why is this bad?**
|
||||
/// **Why is this bad?** In such cases, taking arguments by reference is more flexible and
|
||||
/// can sometimes avoid unnecessary allocations.
|
||||
///
|
||||
/// **Known problems:** Hopefully none.
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue