Skip to content

Commit

Permalink
Fix AnyProtocol in icrate
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Sep 20, 2023
1 parent 3e86981 commit 3320f39
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/icrate/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
Expand Down

0 comments on commit 3320f39

Please sign in to comment.