From 527b4cd61e8050eb445bb4b7c1741454836aedee Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 2 Dec 2022 12:57:34 -0600 Subject: [PATCH] Small tweaks. --- src/backends/av_foundation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/av_foundation.rs b/src/backends/av_foundation.rs index 051a5fa..d6bc8f7 100644 --- a/src/backends/av_foundation.rs +++ b/src/backends/av_foundation.rs @@ -1,5 +1,5 @@ #[cfg(any(target_os = "macos", target_os = "ios"))] -use std::{str::FromStr, sync::Mutex}; +use std::sync::Mutex; use cocoa_foundation::base::{id, nil, NO}; use cocoa_foundation::foundation::NSString; @@ -312,7 +312,7 @@ impl Backend for AvFoundation { CFString::wrap_under_get_rule(msg_send![*v as *const Object, language]) }; let language = language.to_string(); - let language = LanguageIdentifier::from_str(&language).unwrap(); + let language = LanguageTag::from_str(&language).unwrap(); Voice { id: id.to_string(), name: name.to_string(),