File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,8 @@ fn main() {
29
29
. on_default ( )
30
30
. effects ( Effects :: BOLD ) ;
31
31
let message = format ! (
32
- "expected fn pointer `{}for<'a>{} fn(Box<{}(dyn Any + Send + 'a){}>) -> Pin<_>`
33
- found fn item `fn(Box<{}(dyn Any + Send + 'static){}>) -> Pin<_> {}{{wrapped_fn}}{}`" ,
34
- magenta. render( ) ,
35
- magenta. render_reset( ) ,
36
- magenta. render( ) ,
37
- magenta. render_reset( ) ,
38
- magenta. render( ) ,
39
- magenta. render_reset( ) ,
40
- magenta. render( ) ,
41
- magenta. render_reset( )
32
+ "expected fn pointer `{magenta}for<'a>{magenta:#} fn(Box<{magenta}(dyn Any + Send + 'a){magenta:#}>) -> Pin<_>`
33
+ found fn item `fn(Box<{magenta}(dyn Any + Send + 'static){magenta:#}>) -> Pin<_> {magenta}{{wrapped_fn}}{magenta:#}`" ,
42
34
) ;
43
35
44
36
let message = & [
Original file line number Diff line number Diff line change @@ -51,14 +51,14 @@ impl StyledBuffer {
51
51
let ch_style = style. color_spec ( level, stylesheet) ;
52
52
if ch_style != current_style {
53
53
if !line. is_empty ( ) {
54
- write ! ( str , "{}" , current_style . render_reset ( ) ) ?;
54
+ write ! ( str , "{current_style:#}" ) ?;
55
55
}
56
56
current_style = ch_style;
57
- write ! ( str , "{}" , current_style . render ( ) ) ?;
57
+ write ! ( str , "{current_style}" ) ?;
58
58
}
59
59
write ! ( str , "{ch}" ) ?;
60
60
}
61
- write ! ( str , "{}" , current_style . render_reset ( ) ) ?;
61
+ write ! ( str , "{current_style:#}" ) ?;
62
62
if i != self . lines . len ( ) - 1 {
63
63
writeln ! ( str ) ?;
64
64
}
You can’t perform that action at this time.
0 commit comments