Open
Description
Another example from Carboxyl:
match &mut *current.borrow_mut() {
&mut Some(ref mut trans) => action(trans),
_ => panic!("there is no active transaction to register a callback"),
}
Our lint suggests using match *&mut *current.borrow_mut() { .. }
while actually match *current.borrow_mut() { .. }
(and removing &mut
in the arm) will suffice.