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

Modernization and cleanup #69

Merged
merged 8 commits into from Sep 5, 2015
Merged

Modernization and cleanup #69

merged 8 commits into from Sep 5, 2015

Conversation

@sfackler
Copy link
Contributor

sfackler commented Aug 30, 2015

Changes are split up into a set of separate commits.

Review on Reviewable

sfackler added 7 commits Aug 29, 2015
* Implement IntoIterator for &CFArray
* Abstract from_CFTypes over TCFTypes
* Implement Deref for CFData
* Use slice::from_raw_parts instead of transmuting a tuple
* Abstract from_CFType_pairs over TCFTypes
* Abstract from_slice over TCFType
* Add CFString::new, deprecate FromStr impl
* Implement Display for CFString
* Add wrapping `"`s for Debug impl
All of the manually implemented methods are identical, but can't be made
default implementations unfortunately.
@sfackler sfackler force-pushed the sfackler:modernization branch from af20337 to 0fe7b85 Aug 30, 2015
@pcwalton

This comment has been minimized.

Copy link

pcwalton commented on src/array.rs in 0d216f2 Sep 1, 2015

nit: Could you use a where clause here?

@pcwalton

This comment has been minimized.

Copy link

pcwalton commented on src/set.rs in edaea4d Sep 1, 2015

nit: Could you use a where clause here?

@pcwalton

This comment has been minimized.

Copy link

pcwalton commented on src/string.rs in 6d5a95c Sep 1, 2015

Why is this deprecated? A FromStr impl could still be useful...

This comment has been minimized.

Copy link
Owner Author

sfackler replied Sep 1, 2015

I'm fine leaving it around if you prefer, it just seemed a bit weird to have a FromStr impl that can never fail, but you still have to unwrap.

@pcwalton
Copy link
Contributor

pcwalton commented Sep 1, 2015

Looks good, just had a couple of nits.

@sfackler
Copy link
Contributor Author

sfackler commented Sep 1, 2015

Updated, thanks for taking a look!

@sfackler
Copy link
Contributor Author

sfackler commented Sep 1, 2015

There's also some breaking updates I'd like to make (e.g. making the parameter to TCFType into an associated type) - not sure how you want to schedule that stuff.

@pcwalton
Copy link
Contributor

pcwalton commented Sep 5, 2015

pcwalton added a commit that referenced this pull request Sep 5, 2015
Modernization and cleanup
@pcwalton pcwalton merged commit cae12b4 into servo:master Sep 5, 2015
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
jdm pushed a commit that referenced this pull request Feb 1, 2018
Fix NSOpenGLContext init methods
jdm pushed a commit that referenced this pull request Feb 1, 2018
jdm pushed a commit that referenced this pull request Feb 1, 2018
Revert previous dependency upgrades.

<!-- 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-text-rs/69)
<!-- Reviewable:end -->
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

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