This commit is contained in:
Simon Sapin 2015-11-23 16:16:35 +01:00
parent 8408891ec5
commit 18ecf54d10

View file

@ -441,7 +441,7 @@ impl CanvasRenderingContext2D {
Size2D::new(w as f32, h as f32)))
}
fn parse_color(&self, string: &str) -> Result<RGBA,()> {
fn parse_color(&self, string: &str) -> Result<RGBA, ()> {
let mut parser = Parser::new(&string);
let color = CSSColor::parse(&mut parser);
if parser.is_exhausted() {