-
Notifications
You must be signed in to change notification settings - Fork 85
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
Feature/ordered float #399
Conversation
…trait No tests have been run on this yet
This includes adding a couple of unsafe blocks that, for _some_ reason are not required (or, at least not FLAGGED) when my new feature is activated... I'll look into that later. For now, though, stuff appears to build correctly
This is a draft PR at the moment. However, at the time of this comment all existing tests pass with and without the new feature, and all my clippy lints have been addressed. |
value-trait is updated to .10.1 with your ordered-float |
can we add the feature to the test matrix so we have the ordered float path covered? |
All tests pass with and without - as an intellectual exercise I'm looking at LazyValue too :)
Your wish is my command (which I was actually doing when you posted that :) ) |
great minds think alike :) |
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.
Awesome improvement!
The goal of solving the Eq issue in my main project has been achieved - still a couple of issues that will likely be best dealt with in that project rather than hear (the necessary unsafe and mutability differences and a couple of missing methods only used in tests) Once I get those tweaked away, I'll see if my full "droppin" goal is achieved. |
Awesome, I think this needs a cargo fmt to make the CI happy; otherwise good to merge :) if I can help with some thoughts on other problems feel free to ping |
This PR addresses issue #398 by implementing a feature named
ordered-float
that activates the same-named feature invalue-trait
which itself activates the wrapping of floats withOrderedFloat
and thus allowsStaticValue
to bestd::cmp::Eq
. Various feature-related "tweaks" are also implemented, while trying to use as few#cfg[feature...]
annotations as possible.Obvious the PR is dependent upon the
value-trait
PR, but while that is pendingCargo.toml
in this PR's source branch patches thevalue-trait
crate source to be the source repo and branch of thevalue-trait
PR.