You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found via clippy::needless_borrow. In some cases I removed needless
`[..]` too. See also:
needless_borrow suggestion doesn't go far enough
rust-lang/rust-clippy#8389
Description
In this code:
clippy suggests as follows:
This is correct as far as it goes. But a better suggestion would be just
w
, implyingwhich also DTRT.
FTR, stable doesn't issue this lint in this situation at all. #8367 and #8355 may be relevant.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: