Remove Default implementation in custom_shader example

This commit is contained in:
Héctor Ramón Jiménez 2023-11-14 14:43:02 +01:00
parent 9ddfaf3ee7
commit 34b5cb75ef
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -28,15 +28,6 @@ struct IcedCubes {
scene: Scene,
}
impl Default for IcedCubes {
fn default() -> Self {
Self {
start: Instant::now(),
scene: Scene::new(),
}
}
}
#[derive(Debug, Clone)]
enum Message {
CubeAmountChanged(u32),
@ -53,7 +44,13 @@ impl Application for IcedCubes {
type Flags = ();
fn new(_flags: Self::Flags) -> (Self, Command<Self::Message>) {
(IcedCubes::default(), Command::none())
(
Self {
start: Instant::now(),
scene: Scene::new(),
},
Command::none(),
)
}
fn title(&self) -> String {