From 25c88146932eef908166353a05de42b4fdc1a6b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 3 Oct 2018 23:36:07 +0200 Subject: [PATCH] unicode_range: Make UnicodeRange repr(C). I want to expose it to Gecko via cbindgen without copies to extinguish nsCSSValue. --- Cargo.toml | 2 +- src/unicode_range.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 559b8618..d7a96a78 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cssparser" -version = "0.24.0" +version = "0.24.1" authors = [ "Simon Sapin " ] description = "Rust implementation of CSS Syntax Level 3" diff --git a/src/unicode_range.rs b/src/unicode_range.rs index 5cdb665c..7b24d696 100644 --- a/src/unicode_range.rs +++ b/src/unicode_range.rs @@ -13,6 +13,7 @@ use tokenizer::Token; /// /// Can not be empty. Can represent a single code point when start == end. #[derive(PartialEq, Eq, Clone, Hash)] +#[repr(C)] pub struct UnicodeRange { /// Inclusive start of the range. In [0, end]. pub start: u32,