summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/custom_shader/src/main.rs17
1 files changed, 7 insertions, 10 deletions
diff --git a/examples/custom_shader/src/main.rs b/examples/custom_shader/src/main.rs
index f90061d7..f4853507 100644
--- a/examples/custom_shader/src/main.rs
+++ b/examples/custom_shader/src/main.rs
@@ -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 {