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 {
159159mod flamegraph {
160160 use super :: * ;
161161 use inferno:: flamegraph;
162- use std:: io:: Write ;
162+ use std:: { fmt :: Write as _ , io:: Write } ;
163163
164164 impl Report {
165165 /// `flamegraph` will write an svg flamegraph into `writer` **only available with `flamegraph` feature**
@@ -188,13 +188,13 @@ mod flamegraph {
188188
189189 for frame in key. frames . iter ( ) . rev ( ) {
190190 for symbol in frame. iter ( ) . rev ( ) {
191- line . push_str ( & format ! ( "{}" , symbol) ) ;
191+ write ! ( line , "{}" , symbol) . unwrap ( ) ;
192192 line. push ( ';' ) ;
193193 }
194194 }
195195
196196 line. pop ( ) . unwrap_or_default ( ) ;
197- line . push_str ( & format ! ( " {}" , value) ) ;
197+ write ! ( line , " {}" , value) . unwrap ( ) ;
198198
199199 line
200200 } )
You can’t perform that action at this time.
0 commit comments