From ddf96c10aa423c0541a049853a76ea78625dd4cb Mon Sep 17 00:00:00 2001 From: Benjamin Klum Date: Sun, 16 Oct 2022 23:15:52 +0200 Subject: [PATCH] #33 Remove unnecessary unsafe keyword --- src/backends/av_foundation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/av_foundation.rs b/src/backends/av_foundation.rs index 737e90b..06ebe78 100644 --- a/src/backends/av_foundation.rs +++ b/src/backends/av_foundation.rs @@ -296,7 +296,7 @@ impl Backend for AvFoundation { }; let rv = voices .iter() - .map(|v| unsafe { + .map(|v| { let id: CFString = unsafe { CFString::wrap_under_get_rule(msg_send![*v as *const Object, identifier]) };