diff options
author | 2021-12-07 16:13:53 +0700 | |
---|---|---|
committer | 2021-12-07 16:13:53 +0700 | |
commit | fa9fb65ace74af869513db92e86c64f90f500f59 (patch) | |
tree | 23df8c8b42be96940ca7861f4481ccc90c04813b /examples | |
parent | 37c72793d0af4bca73458f188b8b519394c2e17f (diff) | |
download | iced-fa9fb65ace74af869513db92e86c64f90f500f59.tar.gz iced-fa9fb65ace74af869513db92e86c64f90f500f59.tar.bz2 iced-fa9fb65ace74af869513db92e86c64f90f500f59.zip |
Remove unused fields in `pokedex` example
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pokedex/src/main.rs | 5 |
1 files changed, 1 insertions, 4 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>, } |