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])),