We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 601129a commit ced8cdaCopy full SHA for ced8cda
src/report.rs
@@ -159,7 +159,7 @@ impl Debug for Report {
159
mod flamegraph {
160
use super::*;
161
use inferno::flamegraph;
162
- use std::io::Write;
+ use std::{fmt::Write as _, io::Write};
163
164
impl Report {
165
/// `flamegraph` will write an svg flamegraph into `writer` **only available with `flamegraph` feature**
@@ -188,13 +188,13 @@ mod flamegraph {
188
189
for frame in key.frames.iter().rev() {
190
for symbol in frame.iter().rev() {
191
- line.push_str(&format!("{}", symbol));
+ write!(line, "{}", symbol).unwrap();
192
line.push(';');
193
}
194
195
196
line.pop().unwrap_or_default();
197
- line.push_str(&format!(" {}", value));
+ write!(line, " {}", value).unwrap();
198
199
line
200
})
0 commit comments