File tree Expand file tree Collapse file tree 8 files changed +11
-11
lines changed Expand file tree Collapse file tree 8 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ struct LoadingBar<'a> {
26
26
iteration : usize ,
27
27
}
28
28
29
- impl < ' a > Component for LoadingBar < ' a > {
29
+ impl Component for LoadingBar < ' _ > {
30
30
fn draw_unchecked (
31
31
& self ,
32
32
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ struct StoreName(String);
32
32
#[ derive( Display ) ]
33
33
struct CustomerName ( String ) ;
34
34
35
- impl < ' a > Component for Greeter < ' a > {
35
+ impl Component for Greeter < ' _ > {
36
36
fn draw_unchecked ( & self , _dimensions : Dimensions , mode : DrawMode ) -> anyhow:: Result < Lines > {
37
37
Ok ( match mode {
38
38
DrawMode :: Normal => {
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ struct StoreName(String);
37
37
#[ derive( Display ) ]
38
38
struct CustomerName ( String ) ;
39
39
40
- impl < ' a > Component for Greeter < ' a > {
40
+ impl Component for Greeter < ' _ > {
41
41
/// Prints a greeting to the current customer.
42
42
fn draw_unchecked ( & self , _dimensions : Dimensions , _mode : DrawMode ) -> anyhow:: Result < Lines > {
43
43
let store_name = self . store_name ;
Original file line number Diff line number Diff line change @@ -77,19 +77,19 @@ impl<C: Component> Component for Box<C> {
77
77
}
78
78
}
79
79
80
- impl < ' a > Component for & ' a dyn Component {
80
+ impl Component for & dyn Component {
81
81
fn draw_unchecked ( & self , dimensions : Dimensions , mode : DrawMode ) -> anyhow:: Result < Lines > {
82
82
( * * self ) . draw_unchecked ( dimensions, mode)
83
83
}
84
84
}
85
85
86
- impl < ' a > Component for & ' a ( dyn Component + Send ) {
86
+ impl Component for & ( dyn Component + Send ) {
87
87
fn draw_unchecked ( & self , dimensions : Dimensions , mode : DrawMode ) -> anyhow:: Result < Lines > {
88
88
( * * self ) . draw_unchecked ( dimensions, mode)
89
89
}
90
90
}
91
91
92
- impl < ' a , C : Component > Component for & ' a C {
92
+ impl < C : Component > Component for & C {
93
93
fn draw_unchecked ( & self , dimensions : Dimensions , mode : DrawMode ) -> anyhow:: Result < Lines > {
94
94
( * * self ) . draw_unchecked ( dimensions, mode)
95
95
}
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ impl Line {
210
210
211
211
pub fn fmt_for_test ( & self ) -> impl Display + ' _ {
212
212
struct Impl < ' a > ( & ' a Line ) ;
213
- impl < ' a > Display for Impl < ' a > {
213
+ impl Display for Impl < ' _ > {
214
214
fn fmt ( & self , f : & mut Formatter < ' _ > ) -> fmt:: Result {
215
215
for span in & self . 0 . 0 {
216
216
write ! ( f, "{}" , span. fmt_for_test( ) ) ?;
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ impl Lines {
364
364
365
365
pub fn fmt_for_test ( & self ) -> impl Display + ' _ {
366
366
struct Impl < ' a > ( & ' a Lines ) ;
367
- impl < ' a > Display for Impl < ' a > {
367
+ impl Display for Impl < ' _ > {
368
368
fn fmt ( & self , f : & mut Formatter < ' _ > ) -> fmt:: Result {
369
369
for line in self . 0 . iter ( ) {
370
370
writeln ! ( f, "{}" , line. fmt_for_test( ) ) ?;
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ impl Span {
288
288
}
289
289
290
290
struct Impl < ' a > ( & ' a Span ) ;
291
- impl < ' a > Display for Impl < ' a > {
291
+ impl Display for Impl < ' _ > {
292
292
fn fmt ( & self , f : & mut Formatter < ' _ > ) -> fmt:: Result {
293
293
let style_is_default = self . 0 . style . foreground_color . is_none ( )
294
294
&& self . 0 . style . background_color . is_none ( )
@@ -353,7 +353,7 @@ impl TryFrom<StyledContent<String>> for Span {
353
353
354
354
pub ( crate ) struct SpanIterator < ' a > ( & ' a ContentStyle , Graphemes < ' a > , & ' a Option < Hyperlink > ) ;
355
355
356
- impl < ' a > Iterator for SpanIterator < ' a > {
356
+ impl Iterator for SpanIterator < ' _ > {
357
357
type Item = Span ;
358
358
359
359
fn next ( & mut self ) -> Option < Self :: Item > {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use std::fmt;
11
11
12
12
pub ( crate ) struct VecAsFmtWrite < ' a > ( pub ( crate ) & ' a mut Vec < u8 > ) ;
13
13
14
- impl < ' a > fmt:: Write for VecAsFmtWrite < ' a > {
14
+ impl fmt:: Write for VecAsFmtWrite < ' _ > {
15
15
fn write_str ( & mut self , s : & str ) -> fmt:: Result {
16
16
self . 0 . extend_from_slice ( s. as_bytes ( ) ) ;
17
17
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments