Possible suggestion improvements on match_ref_pats #849
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
good-first-issue
These issues are a good way to get started with Clippy
T-AST
Type: Requires working with the AST
Another example from Carboxyl:
Our lint suggests using
match *&mut *current.borrow_mut() { .. }
while actuallymatch *current.borrow_mut() { .. }
(and removing&mut
in the arm) will suffice.The text was updated successfully, but these errors were encountered: