Skip to content

Commit 0b09819

Browse files
committed
Do not use object_impl! in object_struct! and don't export it
1 parent 54a15a3 commit 0b09819

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/macros.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ macro_rules! object_struct {
55
_private: (),
66
}
77

8-
object_impl!($name);
8+
unsafe impl ::objc::Message for $name { }
99

1010
impl $crate::INSObject for $name {
1111
fn class() -> &'static ::objc::runtime::Class {
@@ -42,7 +42,6 @@ macro_rules! object_struct {
4242
);
4343
}
4444

45-
#[macro_export]
4645
macro_rules! object_impl {
4746
($name:ident) => (
4847
object_impl!($name,);

0 commit comments

Comments
 (0)