We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c0b3ff commit bba6a30Copy full SHA for bba6a30
Cargo.toml
@@ -1,7 +1,7 @@
1
[package]
2
3
name = "cssparser"
4
-version = "0.13.4"
+version = "0.13.5"
5
authors = [ "Simon Sapin <[email protected]>" ]
6
7
description = "Rust implementation of CSS Syntax Level 3"
src/color.rs
@@ -158,7 +158,7 @@ impl Color {
158
159
/// Parse a color hash, without the leading '#' character.
160
#[inline]
161
- fn parse_hash(value: &[u8]) -> Result<Self, ()> {
+ pub fn parse_hash(value: &[u8]) -> Result<Self, ()> {
162
match value.len() {
163
8 => rgba(
164
try!(from_hex(value[0])) * 16 + try!(from_hex(value[1])),
0 commit comments