From 20f68eaa600917db1ab45850037434874f30c8d4 Mon Sep 17 00:00:00 2001 From: electria Date: Sat, 15 Aug 2026 18:18:43 -0700 Subject: [PATCH] refactor: use new fn over raw struct initialization --- src/app/cpu_graph.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/cpu_graph.rs b/src/app/cpu_graph.rs index 6b901ca..42a4a22 100644 --- a/src/app/cpu_graph.rs +++ b/src/app/cpu_graph.rs @@ -37,7 +37,7 @@ impl canvas::Program for CpuGraph { for (index, value) in self.timeline.iter().enumerate() { let x = index as f32 / self.timeline.len() as f32 * bounds.width; let y = bounds.height - value / 100. * bounds.height; - builder.line_to(Point { x, y }) + builder.line_to(Point::new(x, y)) } }), canvas::Stroke::default().with_color(CYAN),