cargo fmt

This commit is contained in:
Nolan Darilek 2019-01-03 16:16:54 +00:00
parent 103a0c043d
commit e82a10ba16
3 changed files with 11 additions and 14 deletions

View File

@ -1,5 +1,4 @@
#[cfg(target_os = "linux")]
use std::u8;
use log::{info, trace};
@ -18,7 +17,7 @@ impl SpeechDispatcher {
}
fn u8_to_i32(v: u8) -> i32 {
let ratio: f32 = v as f32/u8::MAX as f32;
let ratio: f32 = v as f32 / u8::MAX as f32;
(ratio * 200. - 100.) as i32
}

View File

@ -1,5 +1,4 @@
#[cfg(target_arch = "wasm32")]
use std::u8;
use log::{info, trace};

View File

@ -51,7 +51,6 @@ trait Backend {
pub struct TTS(Box<Backend>);
impl TTS {
/**
* Create a new `TTS` instance with the specified backend.
*/
@ -63,7 +62,7 @@ impl TTS {
Backends::Web => {
let tts = backends::Web::new()?;
Ok(TTS(Box::new(tts)))
},
}
}
}