Fix further clippy lints

... and explicitly annotate crates as well.
This commit is contained in:
Héctor Ramón Jiménez 2022-07-09 18:03:59 +02:00
parent 33a24b5821
commit 2f76a10a1d
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
33 changed files with 197 additions and 85 deletions

View file

@ -6,13 +6,7 @@ pub trait StyleSheet {
fn appearance(&self, style: Self::Style) -> Appearance;
}
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, Default)]
pub struct Appearance {
pub color: Option<Color>,
}
impl Default for Appearance {
fn default() -> Self {
Self { color: None }
}
}