From bba6a30c267e6bedd44f3a4127ca5bd2703d65e7 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Sun, 14 May 2017 12:21:03 +0200 Subject: [PATCH] Actually expose Color::parse_hash... --- Cargo.toml | 2 +- src/color.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c6d3153d..0c618cf8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "cssparser" -version = "0.13.4" +version = "0.13.5" authors = [ "Simon Sapin " ] description = "Rust implementation of CSS Syntax Level 3" diff --git a/src/color.rs b/src/color.rs index 0db54a56..e716f5e3 100644 --- a/src/color.rs +++ b/src/color.rs @@ -158,7 +158,7 @@ impl Color { /// Parse a color hash, without the leading '#' character. #[inline] - fn parse_hash(value: &[u8]) -> Result { + pub fn parse_hash(value: &[u8]) -> Result { match value.len() { 8 => rgba( try!(from_hex(value[0])) * 16 + try!(from_hex(value[1])),