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

Implement From<_> for CFNumber #137

Merged
merged 1 commit into from Nov 27, 2017
Merged

Conversation

@faern
Copy link
Contributor

faern commented Nov 27, 2017

All the from_ methods on CFNumber can be expressed with implementing the From trait and thus enable it to be used a bit more ergonomic in some cases. And feels more idiomatic IMO.


This change is Reviewable

@faern faern force-pushed the faern:impl-from-for-cfnumber branch from b4701bd to 27a0d0a Nov 27, 2017
@faern faern force-pushed the faern:impl-from-for-cfnumber branch from 27a0d0a to 3ef9e77 Nov 27, 2017
@jdm
Copy link
Member

jdm commented Nov 27, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Nov 27, 2017

📌 Commit 3ef9e77 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Nov 27, 2017

Testing commit 3ef9e77 with merge 94d48c2...

bors-servo added a commit that referenced this pull request Nov 27, 2017
Implement From<_> for CFNumber

All the `from_` methods on `CFNumber` can be expressed with implementing the `From` trait and thus enable it to be used a bit more ergonomic in some cases. And feels more idiomatic IMO.

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

bors-servo commented Nov 27, 2017

☀️ Test successful - status-travis
Approved by: jdm
Pushing 94d48c2 to master...

@bors-servo bors-servo merged commit 3ef9e77 into servo:master Nov 27, 2017
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@faern faern deleted the faern:impl-from-for-cfnumber branch Nov 27, 2017
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.