mirror of https://github.com/ndarilek/tts-rs.git
Appease Clippy.
This commit is contained in:
parent
5c9c649505
commit
539003205e
15
src/lib.rs
15
src/lib.rs
|
@ -157,7 +157,7 @@ unsafe impl Send for UtteranceId {}
|
||||||
|
|
||||||
unsafe impl Sync 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))]
|
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||||
pub struct Features {
|
pub struct Features {
|
||||||
pub is_speaking: bool,
|
pub is_speaking: bool,
|
||||||
|
@ -168,19 +168,6 @@ pub struct Features {
|
||||||
pub volume: bool,
|
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 {
|
impl fmt::Display for Features {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
|
||||||
writeln!(f, "{:#?}", self)
|
writeln!(f, "{:#?}", self)
|
||||||
|
|
Loading…
Reference in New Issue