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)