2 Checks for functions taking arguments by value, but not
7 Taking arguments by reference is more flexible and can
9 unnecessary allocations.
12 * This lint suggests taking an argument by reference,
13 however sometimes it is better to let users decide the argument type
14 (by using `Borrow` trait, for example), depending on how the function is used.
19 assert_eq!(v.len(), 42);
25 assert_eq!(v.len(), 42);