From 539003205e378406344a0b107b0fe8184b2259f5 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 10 Mar 2022 14:08:13 -0600 Subject: [PATCH] Appease Clippy. --- src/lib.rs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4e3f47e..af041d8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -157,7 +157,7 @@ unsafe impl Send for UtteranceId {} unsafe impl Sync for UtteranceId {} -#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq, PartialOrd, Ord)] +#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq, PartialOrd, Ord)] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct Features { pub is_speaking: bool, @@ -168,19 +168,6 @@ pub struct Features { pub volume: bool, } -impl Default for Features { - fn default() -> Self { - Self { - stop: false, - rate: false, - pitch: false, - volume: false, - is_speaking: false, - utterance_callbacks: false, - } - } -} - impl fmt::Display for Features { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { writeln!(f, "{:#?}", self)