1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-17 12:49:38 +00:00

Eliminate deprecation warning.

This commit is contained in:
Nolan Darilek 2019-09-30 10:36:20 -05:00
parent 1c1f38b55d
commit 36745f9850

View File

@ -58,7 +58,7 @@ pub trait Backend {
fn set_volume(&mut self, volume: u8) -> Result<(), Error>;
}
pub struct TTS(Box<Backend>);
pub struct TTS(Box<dyn Backend>);
unsafe impl std::marker::Send for TTS {}