-
Notifications
You must be signed in to change notification settings - Fork 38
Conversation
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.
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. |
Want to increase the version number in Cargo.toml so we can publish after merging? |
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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Sorry about that - Done. |
@bors-servo: r+ |
📌 Commit 4e29474 has been approved by |
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 -->
☀️ Test successful - status-travis |
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