@@ -55,13 +55,13 @@ pub(crate) struct DisplayList<'a> {
5555 pub ( crate ) anonymized_line_numbers : bool ,
5656}
5757
58- impl < ' a > PartialEq for DisplayList < ' a > {
58+ impl PartialEq for DisplayList < ' _ > {
5959 fn eq ( & self , other : & Self ) -> bool {
6060 self . body == other. body && self . anonymized_line_numbers == other. anonymized_line_numbers
6161 }
6262}
6363
64- impl < ' a > fmt:: Debug for DisplayList < ' a > {
64+ impl fmt:: Debug for DisplayList < ' _ > {
6565 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
6666 f. debug_struct ( "DisplayList" )
6767 . field ( "body" , & self . body )
@@ -70,7 +70,7 @@ impl<'a> fmt::Debug for DisplayList<'a> {
7070 }
7171}
7272
73- impl < ' a > Display for DisplayList < ' a > {
73+ impl Display for DisplayList < ' _ > {
7474 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
7575 let lineno_width = self . body . iter ( ) . fold ( 0 , |max, set| {
7676 set. display_lines . iter ( ) . fold ( max, |max, line| match line {
@@ -156,7 +156,7 @@ pub(crate) struct DisplaySet<'a> {
156156 pub ( crate ) margin : Margin ,
157157}
158158
159- impl < ' a > DisplaySet < ' a > {
159+ impl DisplaySet < ' _ > {
160160 fn format_label (
161161 & self ,
162162 line_offset : usize ,
@@ -791,7 +791,7 @@ pub(crate) struct DisplaySourceAnnotation<'a> {
791791 pub ( crate ) annotation_part : DisplayAnnotationPart ,
792792}
793793
794- impl < ' a > DisplaySourceAnnotation < ' a > {
794+ impl DisplaySourceAnnotation < ' _ > {
795795 fn has_label ( & self ) -> bool {
796796 !self
797797 . annotation
@@ -932,7 +932,7 @@ pub(crate) enum DisplayHeaderType {
932932
933933struct CursorLines < ' a > ( & ' a str ) ;
934934
935- impl < ' a > CursorLines < ' a > {
935+ impl CursorLines < ' _ > {
936936 fn new ( src : & str ) -> CursorLines < ' _ > {
937937 CursorLines ( src)
938938 }
0 commit comments