Auto merge of #12849 - Coder206:gfxWarnings, r=Wafflespeanut

Fix GFX Warnings

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #12624 (github issue number if applicable).

- [ ] There are tests for these changes OR

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12849)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-08-14 12:48:06 -05:00 committed by GitHub
commit 41296d20b9

View file

@ -22,7 +22,7 @@ pub use gfx_traits::ByteIndex;
/// glyph offsets), we pack the glyph count into GlyphEntry, and store the other glyph information /// glyph offsets), we pack the glyph count into GlyphEntry, and store the other glyph information
/// in DetailedGlyphStore. /// in DetailedGlyphStore.
#[derive(Clone, Debug, Copy, Deserialize, Serialize, PartialEq)] #[derive(Clone, Debug, Copy, Deserialize, Serialize, PartialEq)]
struct GlyphEntry { pub struct GlyphEntry {
value: u32, value: u32,
} }
@ -103,7 +103,7 @@ fn is_simple_advance(advance: Au) -> bool {
} }
} }
type DetailedGlyphCount = u16; pub type DetailedGlyphCount = u16;
// Getters and setters for GlyphEntry. Setter methods are functional, // Getters and setters for GlyphEntry. Setter methods are functional,
// because GlyphEntry is immutable and only a u32 in size. // because GlyphEntry is immutable and only a u32 in size.