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

Remove unused variable.

This commit is contained in:
Nolan Darilek 2020-11-03 11:00:20 -06:00
parent 2343523bb6
commit 5a9c96508f

View File

@ -13,17 +13,13 @@ use tts::*;
fn main() -> Result<(), Error> {
env_logger::init();
let mut tts = TTS::default()?;
let Features {
utterance_callbacks,
..
} = tts.supported_features();
let mut bottles = 99;
while bottles > 0 {
tts.speak(format!("{} bottles of beer on the wall,", bottles), false)?;
tts.speak(format!("{} bottles of beer,", bottles), false)?;
tts.speak("Take one down, pass it around", false)?;
tts.speak("Give us a bit to drink this...", false)?;
let time = time::Duration::from_secs(5);
let time = time::Duration::from_secs(10);
thread::sleep(time);
bottles -= 1;
tts.speak(format!("{} bottles of beer on the wall,", bottles), false)?;