mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix some warnings caused by the SM upgrade
This commit is contained in:
parent
e7808c526c
commit
b7301ca06c
13 changed files with 16 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue