Fix some warnings caused by the SM upgrade

This commit is contained in:
Michael Wu 2015-06-19 22:07:08 -04:00
parent e7808c526c
commit b7301ca06c
13 changed files with 16 additions and 19 deletions

View file

@ -67,7 +67,7 @@ impl<'a> StyleElementHelpers for &'a HTMLStyleElement {
let mq_attribute = element.get_attribute(&ns!(""), &atom!("media"));
let mq_str = match mq_attribute {
Some(a) => String::from_str(&**a.r().value()),
Some(a) => String::from(&**a.r().value()),
None => String::new(),
};
let mut css_parser = CssParser::new(&mq_str);