Skip to content

Commit 25c8814

Browse files
committed
unicode_range: Make UnicodeRange repr(C).
I want to expose it to Gecko via cbindgen without copies to extinguish nsCSSValue.
1 parent b484a51 commit 25c8814

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 <[email protected]>" ]
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)