Skip to content

Commit

Permalink
Do not use object_impl! in object_struct! and don't export it
Browse files Browse the repository at this point in the history
  • Loading branch information
codesmythe committed Oct 29, 2015
1 parent 54a15a3 commit 0b09819
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ macro_rules! object_struct {
_private: (),
}

object_impl!($name);
unsafe impl ::objc::Message for $name { }

impl $crate::INSObject for $name {
fn class() -> &'static ::objc::runtime::Class {
Expand Down Expand Up @@ -42,7 +42,6 @@ macro_rules! object_struct {
);
}

#[macro_export]
macro_rules! object_impl {
($name:ident) => (
object_impl!($name,);
Expand Down

0 comments on commit 0b09819

Please sign in to comment.