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

Remove unnecessary bounds on EntityClonerBuilder::without_required_components #17969

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JaySpruce
Copy link
Contributor

Objective

The closure argument for EntityClonerBuilder::without_required_components has Send + Sync + 'static bounds, but the closure immediately gets called and never needs to be sent anywhere. (This was my fault :P )

Solution

Remove the bounds so that users aren't unnecessarily restricted.

I also took the opportunity to expand the tests a little.

@JaySpruce JaySpruce changed the title remove bounds, expand tests Remove unnecessary bounds on EntityClonerBuilder::without_required_components Feb 21, 2025
@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-ECS Entities, components, systems, and events D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Feb 23, 2025
@alice-i-cecile alice-i-cecile added this to the 0.16 milestone Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Bug An unexpected or incorrect behavior D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants