summaryrefslogtreecommitdiffstats
path: root/examples/pokedex
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-12-07 16:29:38 +0700
committerLibravatar GitHub <noreply@github.com>2021-12-07 16:29:38 +0700
commit6f3a608717e08330187871516b1ab54a9a2192a3 (patch)
tree23df8c8b42be96940ca7861f4481ccc90c04813b /examples/pokedex
parent3f5ec5b20a48aebd6bd3e22506b01a08feaccdfc (diff)
parentfa9fb65ace74af869513db92e86c64f90f500f59 (diff)
downloadiced-6f3a608717e08330187871516b1ab54a9a2192a3.tar.gz
iced-6f3a608717e08330187871516b1ab54a9a2192a3.tar.bz2
iced-6f3a608717e08330187871516b1ab54a9a2192a3.zip
Merge pull request #1142 from iced-rs/fix/unused-lints
Remove unused fields
Diffstat (limited to 'examples/pokedex')
-rw-r--r--examples/pokedex/src/main.rs5
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>,
}