1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-18 21:29:37 +00:00

Appease Clippy.

This commit is contained in:
Nolan Darilek 2022-03-10 14:08:13 -06:00
parent 5c9c649505
commit 539003205e

View File

@ -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)