In std::sync::Condvar's docs, it looks like line 39:
let &(ref lock, ref cvar) = &*pair2;
and line 51
let &(ref lock, ref cvar) = &*pair;
were written before the match ergonomics RFC was merged.
Is it reasonable/preferable to change these lines to leverage match ergonomics? They would become:
let (lock, cvar) = &*pair2;
and
let (lock, cvar) = &*pair
respectively.
In
std::sync::Condvar's docs, it looks like line 39:and line 51
were written before the match ergonomics RFC was merged.
Is it reasonable/preferable to change these lines to leverage match ergonomics? They would become:
and
respectively.