Merge pull request #1142 from iced-rs/fix/unused-lints
Remove unused fields
This commit is contained in:
commit
6f3a608717
4 changed files with 1 additions and 12 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>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,6 @@ impl Application for SolarSystem {
|
||||||
struct State {
|
struct State {
|
||||||
space_cache: canvas::Cache,
|
space_cache: canvas::Cache,
|
||||||
system_cache: canvas::Cache,
|
system_cache: canvas::Cache,
|
||||||
cursor_position: Point,
|
|
||||||
start: Instant,
|
start: Instant,
|
||||||
now: Instant,
|
now: Instant,
|
||||||
stars: Vec<(Point, f32)>,
|
stars: Vec<(Point, f32)>,
|
||||||
|
|
@ -95,7 +94,6 @@ impl State {
|
||||||
State {
|
State {
|
||||||
space_cache: Default::default(),
|
space_cache: Default::default(),
|
||||||
system_cache: Default::default(),
|
system_cache: Default::default(),
|
||||||
cursor_position: Point::ORIGIN,
|
|
||||||
start: now,
|
start: now,
|
||||||
now,
|
now,
|
||||||
stars: Self::generate_stars(width, height),
|
stars: Self::generate_stars(width, height),
|
||||||
|
|
|
||||||
|
|
@ -199,7 +199,6 @@ impl<'a, Message, Renderer: crate::Renderer> Scrollable<'a, Message, Renderer> {
|
||||||
Some(Scrollbar {
|
Some(Scrollbar {
|
||||||
outer_bounds,
|
outer_bounds,
|
||||||
bounds: scrollbar_bounds,
|
bounds: scrollbar_bounds,
|
||||||
margin: self.scrollbar_margin,
|
|
||||||
scroller: Scroller {
|
scroller: Scroller {
|
||||||
bounds: scroller_bounds,
|
bounds: scroller_bounds,
|
||||||
},
|
},
|
||||||
|
|
@ -720,9 +719,6 @@ struct Scrollbar {
|
||||||
/// The bounds of the [`Scrollbar`].
|
/// The bounds of the [`Scrollbar`].
|
||||||
bounds: Rectangle,
|
bounds: Rectangle,
|
||||||
|
|
||||||
/// The margin within the [`Scrollbar`].
|
|
||||||
margin: u16,
|
|
||||||
|
|
||||||
/// The bounds of the [`Scroller`].
|
/// The bounds of the [`Scroller`].
|
||||||
scroller: Scroller,
|
scroller: Scroller,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ pub struct Backend {
|
||||||
image_pipeline: image::Pipeline,
|
image_pipeline: image::Pipeline,
|
||||||
|
|
||||||
default_text_size: u16,
|
default_text_size: u16,
|
||||||
primitive: Primitive,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Backend {
|
impl Backend {
|
||||||
|
|
@ -60,7 +59,6 @@ impl Backend {
|
||||||
image_pipeline,
|
image_pipeline,
|
||||||
|
|
||||||
default_text_size: settings.default_text_size,
|
default_text_size: settings.default_text_size,
|
||||||
primitive: Primitive::None,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue