Remove Default implementation in custom_shader example
This commit is contained in:
parent
9ddfaf3ee7
commit
34b5cb75ef
1 changed files with 7 additions and 10 deletions
|
|
@ -28,15 +28,6 @@ struct IcedCubes {
|
||||||
scene: Scene,
|
scene: Scene,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for IcedCubes {
|
|
||||||
fn default() -> Self {
|
|
||||||
Self {
|
|
||||||
start: Instant::now(),
|
|
||||||
scene: Scene::new(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
enum Message {
|
enum Message {
|
||||||
CubeAmountChanged(u32),
|
CubeAmountChanged(u32),
|
||||||
|
|
@ -53,7 +44,13 @@ impl Application for IcedCubes {
|
||||||
type Flags = ();
|
type Flags = ();
|
||||||
|
|
||||||
fn new(_flags: Self::Flags) -> (Self, Command<Self::Message>) {
|
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 {
|
fn title(&self) -> String {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue