Skip to content

Commit 394b781

Browse files
author
bors-servo
authored
Auto merge of #228 - servo:unicode-range-repr-c, r=SimonSapin
unicode_range: Make UnicodeRange repr(C). I want to expose it to Gecko via cbindgen without copies to extinguish nsCSSValue. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/228) <!-- Reviewable:end -->
2 parents b484a51 + 25c8814 commit 394b781

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cssparser"
3-
version = "0.24.0"
3+
version = "0.24.1"
44
authors = [ "Simon Sapin <simon.sapin@exyr.org>" ]
55

66
description = "Rust implementation of CSS Syntax Level 3"

src/unicode_range.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use tokenizer::Token;
1313
///
1414
/// Can not be empty. Can represent a single code point when start == end.
1515
#[derive(PartialEq, Eq, Clone, Hash)]
16+
#[repr(C)]
1617
pub struct UnicodeRange {
1718
/// Inclusive start of the range. In [0, end].
1819
pub start: u32,

0 commit comments

Comments
 (0)