Closed
Description
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.
Metadata
Metadata
Assignees
Labels
Area: Documentation for any part of the project, including the compiler, standard library, and toolsCategory: An issue proposing an enhancement or a PR with one.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Relevant to the library API team, which will review and decide on the PR/issue.