From 2f76a10a1d3617e414fb33c0c6cd5cb7782197ad Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 9 Jul 2022 18:03:59 +0200 Subject: Fix further `clippy` lints ... and explicitly annotate crates as well. --- style/src/text.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'style/src/text.rs') diff --git a/style/src/text.rs b/style/src/text.rs index 69a4ed85..6e3aeef8 100644 --- a/style/src/text.rs +++ b/style/src/text.rs @@ -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, } - -impl Default for Appearance { - fn default() -> Self { - Self { color: None } - } -} -- cgit