Skip to content

Commit c38aa5f

Browse files
committed
Use anonymous lifetimes
1 parent ecc32c2 commit c38aa5f

File tree

1 file changed

+1
-1
lines changed
  • crates/hir-ty/src/diagnostics

1 file changed

+1
-1
lines changed

crates/hir-ty/src/diagnostics/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ fn missing_match_arms<'p>(
379379
arms: &[MatchArm],
380380
) -> String {
381381
struct DisplayWitness<'a, 'p>(&'a DeconstructedPat<'p>, &'a MatchCheckCtx<'a, 'p>);
382-
impl<'a, 'p> fmt::Display for DisplayWitness<'a, 'p> {
382+
impl fmt::Display for DisplayWitness<'_, '_> {
383383
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
384384
let DisplayWitness(witness, cx) = *self;
385385
let pat = witness.to_pat(cx);

0 commit comments

Comments
 (0)