Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Remove warnings for zero-sized structs #90

Merged
merged 4 commits into from
Jul 27, 2017
Merged

Conversation

rthomas
Copy link
Contributor

@rthomas rthomas commented Jul 27, 2017

This change removes a bunch of warnings from the crate.

The only remaining warnings are due to the bitflags macro usage.

This will help fix servo/core-text-rs#62 when it upgrades to core-graphics = 0.9.

@jdm


This change is Reviewable

rthomas added 2 commits July 27, 2017 19:46
This follows the servo pattern mentioned in
rust-lang/rust#27303 to replace the zero-sized
structs with an `enum`.
Changes zero-sized structs to an `enum` and removed unused macro use statement.
@rthomas
Copy link
Contributor Author

rthomas commented Jul 27, 2017

I've left them as two commits, one to fix the issue with servo/core-text-rs#62 and the other to remove the warnings that I can. Let me know if you'd like me to squash them.

@jdm
Copy link
Member

jdm commented Jul 27, 2017

Want to increase the version number in Cargo.toml so we can publish after merging?

@rthomas
Copy link
Contributor Author

rthomas commented Jul 27, 2017

I've bumped the version number.

Cargo.toml Outdated
@@ -13,5 +13,5 @@ elcapitan = []

[dependencies]
bitflags = "0.9"
core-foundation = "0.4"
core-foundation = { path = "../core-foundation-rs/core-foundation" } #"0.4"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will need to be reverted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes ack, from my testing.

@rthomas
Copy link
Contributor Author

rthomas commented Jul 27, 2017

Sorry about that - Done.

@jdm
Copy link
Member

jdm commented Jul 27, 2017

@bors-servo: r+

@bors-servo
Copy link

📌 Commit 4e29474 has been approved by jdm

@bors-servo
Copy link

⌛ Testing commit 4e29474 with merge 6db694d...

bors-servo pushed a commit that referenced this pull request Jul 27, 2017
Remove warnings for zero-sized structs

This change removes a bunch of warnings from the crate.

The only remaining warnings are due to the bitflags macro usage.

This will help fix servo/core-text-rs#62 when it upgrades to `core-graphics = 0.9`.

@jdm

<!-- 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-graphics-rs/90)
<!-- Reviewable:end -->
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: jdm
Pushing 6db694d to master...

@bors-servo bors-servo merged commit 4e29474 into servo:master Jul 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

So many warnings that need fixing
3 participants