-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Merged by Bors] - Slight perf improvements and tidy for contributors example #3764
Conversation
Signed-off-by: Alex Saveau <[email protected]>
I generally really like these changes! They clean things up a bit, and are well-motivated. In real code, I would probably prefer the |
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
@alice-i-cecile Is there anything I need to do after the approval? |
Nope, you're all good. If you'd like, you can ask around and wrangle up another approval from the community. Once that's in place, I can merge this in. (I have merge rights for docs and examples). |
Makes sense, thanks! |
Signed-off-by: Alex Saveau <[email protected]>
While we're at it, it would be a bit more idiomatic for that timer to be a resource rather than a component. |
Signed-off-by: Alex Saveau <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the further changes! A bit iffy on the clippy ignore, but I agree that it's a clippy bug.
# Conflicts: # examples/2d/contributors.rs
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
# Conflicts: # examples/2d/contributors.rs
Signed-off-by: Alex Saveau <[email protected]>
@alice-i-cecile @rparrett Looks like this should finally be ready for a merge. Any outstanding concerns? |
Just a nit, but a few other examples (plugin, font_atlas_debug) use a naming scheme that would look like struct SelectionState {
timer: Timer,
has_triggered: bool,
} When combining a timer with some other state in a resource. |
Signed-off-by: Alex Saveau <[email protected]>
Sounds good, done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changeset seems like an improvement to me. I tested with an artificially shortened contributor list to ensure that the wrapping still works.
bors r+ |
Woohoo, thanks! |
No description provided.