@@ -348,7 +348,7 @@ enum OutputFormat<'a> {
348
348
}
349
349
350
350
impl < ' a > OutputFormat < ' a > {
351
- fn lock ( & ' a self , max_severity : Severity ) -> OutputLock < ' a , ' _ > {
351
+ fn lock ( & ' a self , max_severity : Severity ) -> OutputLock < ' a , ' a > {
352
352
match self {
353
353
Self :: Human ( human) => OutputLock :: Human (
354
354
human,
@@ -366,7 +366,7 @@ pub enum StdLock<'a> {
366
366
//Out(std::io::StdoutLock<'a>),
367
367
}
368
368
369
- impl < ' a > Write for StdLock < ' a > {
369
+ impl Write for StdLock < ' _ > {
370
370
fn write ( & mut self , d : & [ u8 ] ) -> std:: io:: Result < usize > {
371
371
match self {
372
372
Self :: Err ( stderr) => stderr. write ( d) ,
@@ -392,7 +392,7 @@ pub enum OutputLock<'a, 'b> {
392
392
Json ( & ' a Json < ' a > , Severity , StdLock < ' b > ) ,
393
393
}
394
394
395
- impl < ' a , ' b > OutputLock < ' a , ' b > {
395
+ impl OutputLock < ' _ , ' _ > {
396
396
pub fn print ( & mut self , diag : CsDiag , files : & Files ) {
397
397
match self {
398
398
Self :: Human ( cfg, max, l, _) => {
@@ -525,7 +525,7 @@ impl<'a> DiagPrinter<'a> {
525
525
}
526
526
527
527
#[ inline]
528
- pub fn lock ( & ' a self ) -> OutputLock < ' a , ' _ > {
528
+ pub fn lock ( & ' a self ) -> OutputLock < ' a , ' a > {
529
529
self . which . lock ( self . max_severity )
530
530
}
531
531
}
0 commit comments