Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.

add simple deref macro #7

Merged
merged 4 commits into from
May 29, 2018
Merged

add simple deref macro #7

merged 4 commits into from
May 29, 2018

Conversation

vhdirk
Copy link
Collaborator

@vhdirk vhdirk commented May 27, 2018

This adds a really simple macro for the deref impl


#[macro_export]
macro_rules! gobject_subclass_deref(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An empty line to remove :)

@sdroege
Copy link
Member

sdroege commented May 27, 2018

Looks generally good, thanks!

@sdroege
Copy link
Member

sdroege commented May 27, 2018

error[E0599]: no method named `starts_with` found for type `std::ffi::OsString` in the current scope
  --> gio-subclass/tests/simple_application.rs:95:30
   |
95 |                 assert!(!arg.starts_with("--local-"))
   |                              ^^^^^^^^^^^

This one is weird. Also you can get rid of the std::ops imports now

@vhdirk
Copy link
Collaborator Author

vhdirk commented May 27, 2018

That error is odd indeed. I didn't even touch that part.

@vhdirk
Copy link
Collaborator Author

vhdirk commented May 27, 2018

That error seems to stem from this:
gtk-rs/gio@efc6c90

@vhdirk
Copy link
Collaborator Author

vhdirk commented May 27, 2018

#8 fixes the tests

@@ -0,0 +1,26 @@
#[macro_export]
macro_rules! gobject_subclass_deref(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary empty line

@sdroege
Copy link
Member

sdroege commented May 29, 2018

Except for the empty line, this seems good to go :) Remove that and merge, thanks!

@vhdirk vhdirk merged commit f2aedc0 into gtk-rs:master May 29, 2018
@vhdirk vhdirk deleted the deref-macro branch May 29, 2018 07:32
vhdirk added a commit to vhdirk/gobject-subclass that referenced this pull request Jun 7, 2018
* add simple deref macro

* remove newline

* remove unused import

* Remove extra newline
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants