From 017aa8863bd28dfdf10cebd2035123e716bf2db4 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 22 Sep 2020 14:29:45 -0500 Subject: [PATCH] Remove unused import and fix i~~OS builds. --- src/backends/av_foundation.rs | 2 -- src/lib.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backends/av_foundation.rs b/src/backends/av_foundation.rs index fdd9cd7..be1eb6d 100644 --- a/src/backends/av_foundation.rs +++ b/src/backends/av_foundation.rs @@ -1,7 +1,5 @@ #[cfg(any(target_os = "macos", target_os = "ios"))] #[link(name = "AVFoundation", kind = "framework")] -use std::sync::Mutex; - use cocoa_foundation::base::{id, nil}; use cocoa_foundation::foundation::NSString; use log::{info, trace}; diff --git a/src/lib.rs b/src/lib.rs index c8166a2..7e8be2e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,7 @@ use std::boxed::Box; #[cfg(target_os = "macos")] use std::ffi::CStr; -#[cfg(target_os = "macos")] +#[cfg(any(target_os = "macos", target_os = "ios"))] use cocoa_foundation::base::id; #[cfg(target_os = "macos")] use libc::c_char;