You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: