error: there is no argument named `min_ft` solved

macos-click-through
huncut2016 3 years ago
parent 9e3500501d
commit 8384cd00ca

@ -114,19 +114,19 @@ impl Profiler {
// Show min, max, avg // Show min, max, avg
root_canvas.draw_str( root_canvas.draw_str(
format!("min: {min_ft:.1}ms"), format!("min: {}ms", min_ft),
(rect.left, rect.bottom), (rect.left, rect.bottom),
&self.font.skia_font, &self.font.skia_font,
&paint, &paint,
); );
root_canvas.draw_str( root_canvas.draw_str(
format!("avg: {avg:.1}ms"), format!("avg: {}ms", avg),
(rect.left, rect.bottom - graph_height * 0.5), (rect.left, rect.bottom - graph_height * 0.5),
&self.font.skia_font, &self.font.skia_font,
&paint, &paint,
); );
root_canvas.draw_str( root_canvas.draw_str(
format!("max: {max_ft:.1}ms"), format!("max: {}ms", max_ft),
(rect.left, rect.bottom - graph_height), (rect.left, rect.bottom - graph_height),
&self.font.skia_font, &self.font.skia_font,
&paint, &paint,

Loading…
Cancel
Save