mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Use anonymous lifetimes
This commit is contained in:
parent
ecc32c2f85
commit
c38aa5f4f0
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ fn missing_match_arms<'p>(
|
|||
arms: &[MatchArm],
|
||||
) -> String {
|
||||
struct DisplayWitness<'a, 'p>(&'a DeconstructedPat<'p>, &'a MatchCheckCtx<'a, 'p>);
|
||||
impl<'a, 'p> fmt::Display for DisplayWitness<'a, 'p> {
|
||||
impl fmt::Display for DisplayWitness<'_, '_> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let DisplayWitness(witness, cx) = *self;
|
||||
let pat = witness.to_pat(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue