From 3320f3996cfb89b4e3ae47da6212a6f470ada1c7 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Wed, 20 Sep 2023 01:03:08 +0200 Subject: [PATCH] Fix AnyProtocol in icrate --- crates/icrate/src/common.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/icrate/src/common.rs b/crates/icrate/src/common.rs index 641f0fd61..7f38a5c92 100644 --- a/crates/icrate/src/common.rs +++ b/crates/icrate/src/common.rs @@ -20,9 +20,9 @@ pub(crate) use objc2::mutability::{ #[cfg(feature = "objective-c")] pub(crate) use objc2::rc::{Allocated, DefaultId, Id}; #[cfg(feature = "objective-c")] -pub(crate) use objc2::runtime::{AnyClass, AnyObject, Bool, Sel}; -#[cfg(feature = "objective-c")] -pub(crate) use objc2::runtime::{NSObject, NSObjectProtocol, ProtocolObject}; +pub(crate) use objc2::runtime::{ + AnyClass, AnyObject, AnyProtocol, Bool, NSObject, NSObjectProtocol, ProtocolObject, Sel, +}; #[cfg(feature = "objective-c")] pub(crate) use objc2::{ __inner_extern_class, extern_class, extern_methods, extern_protocol, ClassType, Message, @@ -33,8 +33,6 @@ pub(crate) use objc2::{ pub(crate) use block2::Block; // TODO -#[cfg(feature = "objective-c")] -pub(crate) type AnyProtocol = AnyObject; pub(crate) type TodoFunction = *const c_void; #[cfg(feature = "objective-c")] pub(crate) type TodoClass = AnyObject;