From ee4dc4f7b92ebc5879ca7989908fd2884660109a Mon Sep 17 00:00:00 2001 From: electria Date: Sat, 15 Aug 2026 18:52:34 -0700 Subject: [PATCH] refactor: remove app::Message type from Graph I wonder, given the description of canvas::Program, would the graph be better as a true widget? I'll have to learn how to actually implement a widget though. --- src/app/graph.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/graph.rs b/src/app/graph.rs index c16fe56..7f158b8 100644 --- a/src/app/graph.rs +++ b/src/app/graph.rs @@ -2,8 +2,6 @@ use std::collections::VecDeque; use iced::{Color, Point, Renderer, Theme, mouse, widget::canvas}; -use crate::app; - const CYAN: Color = Color::from_rgb8(0, 255, 255); #[derive(Default)] @@ -33,7 +31,7 @@ impl Graph { } } -impl canvas::Program for Graph { +impl canvas::Program<(), Theme, Renderer> for Graph { type State = (); fn draw( &self,