diff --git a/Cargo.toml b/Cargo.toml index 3196442..0fadb2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,4 +13,4 @@ tolk = ["tts/tolk"] [dependencies] bevy = { git = "https://github.com/bevyengine/bevy", branch = "main" } crossbeam-channel = "0.5" -tts = { version = "0.14" } \ No newline at end of file +tts = "0.15" \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 9a90dda..3379172 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,7 @@ pub enum TtsEvent { struct TtsChannel(Receiver); -fn poll_callbacks(channel: Res, mut events: ResMut>) { +fn poll_callbacks(channel: Res, mut events: EventWriter) { if let Ok(msg) = channel.0.try_recv() { events.send(msg); }