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 Dec 3, 2023
1 parent e92d67a commit 256b11c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions crates/icrate/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
implementations and methods for `NSPopover` and `NSLayoutAnchor`.
- **BREAKING**: `CKSystemSharingUIObserver` and `CKLocationSortDescriptor` are no longer marked thread safe.
- **BREAKING**: `NSColor::ignoresAlpha` now requires a main thread marker.
- **BREAKING**: Corrected usage of `AnyProtocol`.


## icrate 0.0.4 - 2023-07-31
Expand Down
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 256b11c

Please sign in to comment.