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 approxeq trait bounds. #253

Merged
merged 2 commits into from Dec 30, 2017
Merged

Conversation

@nical
Copy link
Collaborator

nical commented Dec 30, 2017

I might be able to remove the ApproxEq trait entirely or implement it in terms of the Float trait that is already implemented by implementers of ApproxEq, but in the mean time this already makes life easier for downstream crates that try to be generic over floats without haing to depend on many traits.


This change is Reviewable

@nical
Copy link
Collaborator Author

nical commented Dec 30, 2017

r? @kvark or @nox

@nical
Copy link
Collaborator Author

nical commented Dec 30, 2017

I had to remove two tests that check that the number 10.0 is formatted as "10" when printed, since this behavior apparently changed in rustc nightly. Honestly, I don't think these tests are very useful anyway.

@kvark
kvark approved these changes Dec 30, 2017
Copy link
Member

kvark left a comment

LGTM

@nical
Copy link
Collaborator Author

nical commented Dec 30, 2017

@bors-servo r=kvark

@bors-servo
Copy link
Contributor

bors-servo commented Dec 30, 2017

📌 Commit 08f34b9 has been approved by kvark

@bors-servo
Copy link
Contributor

bors-servo commented Dec 30, 2017

Testing commit 08f34b9 with merge d2a1b9f...

bors-servo added a commit that referenced this pull request Dec 30, 2017
Remove unnecessary approxeq trait bounds.

I might be able to remove the ApproxEq trait entirely or implement it in terms of the Float trait that is already implemented by implementers of ApproxEq, but in the mean time this already makes life easier for downstream crates that try to be generic over floats without haing to depend on many traits.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/euclid/253)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Dec 30, 2017

☀️ Test successful - status-travis
Approved by: kvark
Pushing d2a1b9f to master...

@bors-servo bors-servo merged commit 08f34b9 into servo:master Dec 30, 2017
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.