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 implicit panics in NotNan<T> x T operators #167

Merged
merged 3 commits into from
Feb 17, 2025

Conversation

Ten0
Copy link
Contributor

@Ten0 Ten0 commented Feb 17, 2025

Resolves #166 as discussed there.

Tests that disappear are those that relate to not_nan += maybe_nan panicking which now doesn't compile.

Apologies for the small amount of extra auto-formatting, please let me know if that is an issue and I'll remove it.

@Ten0 Ten0 force-pushed the less_implicit_panic_on_binary_operations branch from a24e711 to 86f0b79 Compare February 17, 2025 13:58
@mbrubeck mbrubeck merged commit 428ab8c into reem:master Feb 17, 2025
2 checks passed
@mbrubeck
Copy link
Collaborator

Thanks! I am going to fix #142 as well before publishing this in a new major version of ordered-float.

@Ten0 Ten0 deleted the less_implicit_panic_on_binary_operations branch February 18, 2025 20:20
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.

NotNan<f64> + f64 should return f64 instead of being an inexplicit potential panic
2 participants