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

Avoid allocate on spatial queries. ray_hits_callback, shape_hits_callback, intersections_callback #133

Merged
merged 1 commit into from
Aug 26, 2023

Conversation

bnyu
Copy link
Contributor

@bnyu bnyu commented Aug 26, 2023

When users only want do callback on spatial queries, avoid unnecessary allocate. (ray_hits,shape_hits,point_intersections still return results)

@Jondolf Jondolf added C-Enhancement New feature or request A-Spatial-Query Relates to spatial queries, such as ray casting, shape casting, and intersection tests labels Aug 26, 2023
@Jondolf
Copy link
Owner

Jondolf commented Aug 26, 2023

Ah, I think lint is failing because Rust 1.72.0 added support for let else formatting

@bnyu
Copy link
Contributor Author

bnyu commented Aug 26, 2023

Ah, I haven't upgraded to 1.72.0 yet. I just run cargo fmt at 1.71.1 and force pushed.

@Jondolf
Copy link
Owner

Jondolf commented Aug 26, 2023

I fixed the formatting on main now

@Jondolf
Copy link
Owner

Jondolf commented Aug 26, 2023

The changes look good to me, I'll rebase and merge

@Jondolf Jondolf merged commit 76dca59 into Jondolf:main Aug 26, 2023
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Spatial-Query Relates to spatial queries, such as ray casting, shape casting, and intersection tests C-Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants