Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

#[must_use] for gtk::init? #554

Closed
GuillaumeGomez opened this issue Aug 16, 2017 · 7 comments
Closed

#[must_use] for gtk::init? #554

GuillaumeGomez opened this issue Aug 16, 2017 · 7 comments

Comments

@GuillaumeGomez
Copy link
Member

#[must_use] for functions has been added. Should we add it for gtk::init?

@EPashkin
Copy link
Member

Interesting, 👍 for using it after it go to stable.

@GuillaumeGomez
Copy link
Member Author

I'll add a must_use=true parameter for gir then.

@EPashkin
Copy link
Member

gtk::init is manual function.

@GuillaumeGomez
Copy link
Member Author

Then no need for it (less work! \o/).

@sdroege
Copy link
Member

sdroege commented Oct 10, 2018

What should the attribute do here? :)

@EPashkin
Copy link
Member

As Result already have must_use IMHO this attribute add nothing to gtk::init

@GuillaumeGomez
Copy link
Member Author

It made sense to me at the time. Not much now. :p

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

No branches or pull requests

3 participants