Open
Description
openedon Apr 10, 2016
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment