aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlstyleelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlstyleelement.rs')
-rw-r--r--components/script/dom/htmlstyleelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlstyleelement.rs b/components/script/dom/htmlstyleelement.rs
index 66ee4f79836..7c1c06412ef 100644
--- a/components/script/dom/htmlstyleelement.rs
+++ b/components/script/dom/htmlstyleelement.rs
@@ -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);