Skip to content

make all Rect methods const, fix a small bug in Rect::contains #919

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
merged 1 commit into from
Mar 23, 2025

Conversation

cyrgani
Copy link
Contributor

@cyrgani cyrgani commented Mar 23, 2025

Thanks to rust-lang/rust#129195, all methods on Rect can become const now, including those with &mut self.
Also fixes a small bug where points on the border of a rect where not recognized to be in it, and adds a simple test for that.

@not-fl3 not-fl3 merged commit 960d948 into not-fl3:master Mar 23, 2025
6 checks passed
@not-fl3
Copy link
Owner

not-fl3 commented Mar 23, 2025

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants