From 8c2aae7afd6fe4497e628389d8af235d56ab9c10 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 15 Mar 2021 13:46:22 -0500 Subject: [PATCH] Try another initialization fix. --- src/backends/av_foundation.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backends/av_foundation.rs b/src/backends/av_foundation.rs index 566bc66..b9a8888 100644 --- a/src/backends/av_foundation.rs +++ b/src/backends/av_foundation.rs @@ -173,7 +173,8 @@ impl Backend for AvFoundation { let mut utterance: id; unsafe { trace!("Allocating utterance string"); - let str = NSString::alloc(nil).init_str(text); + let mut str = NSString::alloc(nil); + str = str.init_str(text); trace!("Allocating utterance"); utterance = msg_send![class!(AVSpeechUtterance), alloc]; trace!("Initializing utterance");