Remove unused fields in pokedex example
This commit is contained in:
parent
37c72793d0
commit
fa9fb65ace
1 changed files with 1 additions and 4 deletions
|
|
@ -15,7 +15,6 @@ enum Pokedex {
|
||||||
search: button::State,
|
search: button::State,
|
||||||
},
|
},
|
||||||
Errored {
|
Errored {
|
||||||
error: Error,
|
|
||||||
try_again: button::State,
|
try_again: button::State,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
@ -58,9 +57,8 @@ impl Application for Pokedex {
|
||||||
|
|
||||||
Command::none()
|
Command::none()
|
||||||
}
|
}
|
||||||
Message::PokemonFound(Err(error)) => {
|
Message::PokemonFound(Err(_error)) => {
|
||||||
*self = Pokedex::Errored {
|
*self = Pokedex::Errored {
|
||||||
error,
|
|
||||||
try_again: button::State::new(),
|
try_again: button::State::new(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -155,7 +153,6 @@ impl Pokemon {
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
struct Entry {
|
struct Entry {
|
||||||
id: u32,
|
|
||||||
name: String,
|
name: String,
|
||||||
flavor_text_entries: Vec<FlavorText>,
|
flavor_text_entries: Vec<FlavorText>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue