mirror of https://github.com/ndarilek/tts-rs.git
Eliminate deprecation warning.
This commit is contained in:
parent
1c1f38b55d
commit
36745f9850
|
@ -58,7 +58,7 @@ pub trait Backend {
|
||||||
fn set_volume(&mut self, volume: u8) -> Result<(), Error>;
|
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 {}
|
unsafe impl std::marker::Send for TTS {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue