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

core-foundation: Remove 2 transmutes in macros. #229

Merged
merged 1 commit into from Jul 20, 2018

Conversation

@waywardmonkeys
Copy link
Contributor

waywardmonkeys commented Jul 19, 2018

These transmutes were going from one type of pointer to another,
and so can be done as casts instead.

Doing so also means that one unsafe block can be removed.

This was found via clippy.


This change is Reviewable

These transmutes were going from one type of pointer to another,
and so can be done as casts instead.

Doing so also means that one unsafe block can be removed.

This was found via clippy.
@jdm
Copy link
Member

jdm commented Jul 19, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Jul 19, 2018

📌 Commit 2c7ecae has been approved by jdm

@jrmuizel
Copy link
Collaborator

jrmuizel commented Jul 20, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Jul 20, 2018

📌 Commit 2c7ecae has been approved by jrmuizel

@jrmuizel
Copy link
Collaborator

jrmuizel commented Jul 20, 2018

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Jul 20, 2018

Testing commit 2c7ecae with merge 0d5cc0f...

bors-servo added a commit that referenced this pull request Jul 20, 2018
core-foundation: Remove 2 transmutes in macros.

These transmutes were going from one type of pointer to another,
and so can be done as casts instead.

Doing so also means that one unsafe block can be removed.

This was found via clippy.

<!-- 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/229)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 20, 2018

☀️ Test successful - status-travis
Approved by: jrmuizel
Pushing 0d5cc0f to master...

@bors-servo bors-servo merged commit 2c7ecae into servo:master Jul 20, 2018
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@waywardmonkeys waywardmonkeys deleted the waywardmonkeys:remove-2-transmutes branch Mar 14, 2019
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

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