Skip to content

Commit 37f9d1f

Browse files
committed
Actually expose Color::parse_hash...
1 parent 1c0b3ff commit 37f9d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/color.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl Color {
158158

159159
/// Parse a color hash, without the leading '#' character.
160160
#[inline]
161-
fn parse_hash(value: &[u8]) -> Result<Self, ()> {
161+
pub fn parse_hash(value: &[u8]) -> Result<Self, ()> {
162162
match value.len() {
163163
8 => rgba(
164164
try!(from_hex(value[0])) * 16 + try!(from_hex(value[1])),

0 commit comments

Comments
 (0)