File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ impl Debug for Report {
159
159
mod flamegraph {
160
160
use super :: * ;
161
161
use inferno:: flamegraph;
162
- use std:: io:: Write ;
162
+ use std:: { fmt :: Write as _ , io:: Write } ;
163
163
164
164
impl Report {
165
165
/// `flamegraph` will write an svg flamegraph into `writer` **only available with `flamegraph` feature**
@@ -188,13 +188,13 @@ mod flamegraph {
188
188
189
189
for frame in key. frames . iter ( ) . rev ( ) {
190
190
for symbol in frame. iter ( ) . rev ( ) {
191
- line . push_str ( & format ! ( "{}" , symbol) ) ;
191
+ write ! ( line , "{}" , symbol) . unwrap ( ) ;
192
192
line. push ( ';' ) ;
193
193
}
194
194
}
195
195
196
196
line. pop ( ) . unwrap_or_default ( ) ;
197
- line . push_str ( & format ! ( " {}" , value) ) ;
197
+ write ! ( line , " {}" , value) . unwrap ( ) ;
198
198
199
199
line
200
200
} )
You can’t perform that action at this time.
0 commit comments