diff options
Diffstat (limited to '')
-rw-r--r-- | examples/pokedex/src/main.rs | 5 | ||||
-rw-r--r-- | examples/solar_system/src/main.rs | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/examples/pokedex/src/main.rs b/examples/pokedex/src/main.rs index c99240a1..85c26987 100644 --- a/examples/pokedex/src/main.rs +++ b/examples/pokedex/src/main.rs @@ -15,7 +15,6 @@ enum Pokedex { search: button::State, }, Errored { - error: Error, try_again: button::State, }, } @@ -58,9 +57,8 @@ impl Application for Pokedex { Command::none() } - Message::PokemonFound(Err(error)) => { + Message::PokemonFound(Err(_error)) => { *self = Pokedex::Errored { - error, try_again: button::State::new(), }; @@ -155,7 +153,6 @@ impl Pokemon { #[derive(Debug, Deserialize)] struct Entry { - id: u32, name: String, flavor_text_entries: Vec<FlavorText>, } diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs index c8f74978..5f9724f3 100644 --- a/examples/solar_system/src/main.rs +++ b/examples/solar_system/src/main.rs @@ -75,7 +75,6 @@ impl Application for SolarSystem { struct State { space_cache: canvas::Cache, system_cache: canvas::Cache, - cursor_position: Point, start: Instant, now: Instant, stars: Vec<(Point, f32)>, @@ -95,7 +94,6 @@ impl State { State { space_cache: Default::default(), system_cache: Default::default(), - cursor_position: Point::ORIGIN, start: now, now, stars: Self::generate_stars(width, height), |