Fix clippy lint in the_matrix example

This commit is contained in:
Héctor Ramón Jiménez 2024-04-30 08:10:22 +02:00
parent 3c7b43d031
commit cfe4ddb866
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -15,6 +15,7 @@ pub fn main() -> iced::Result {
.run()
}
#[derive(Default)]
struct TheMatrix {
tick: usize,
}
@ -45,12 +46,6 @@ impl TheMatrix {
}
}
impl Default for TheMatrix {
fn default() -> Self {
Self { tick: 0 }
}
}
impl<Message> canvas::Program<Message> for TheMatrix {
type State = RefCell<Vec<canvas::Cache>>;