Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add derive macros for Message and Resource marker type #1

Open
tynberry opened this issue Jun 20, 2023 · 0 comments
Open

Add derive macros for Message and Resource marker type #1

tynberry opened this issue Jun 20, 2023 · 0 comments

Comments

@tynberry
Copy link

While, in terms of length, there isn't much of a difference between
#[derive(Resource)]
and
impl Resource for CoolType {}
it would produce cleaner code as impl blocks are usually bordered by empty lines and you could put it together with other derived traits.
Also, you can see if the trait is a resource/message at first glance instead of looking for a impl block somewhere.

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

No branches or pull requests

1 participant