aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlstyleelement.rs
diff options
context:
space:
mode:
authorMichael Wu <mwu@mozilla.com>2015-06-19 22:07:08 -0400
committerMichael Wu <mwu@mozilla.com>2015-06-19 22:07:08 -0400
commitb7301ca06c892da4d38247b86e81edaa5181a969 (patch)
tree02fb4fc9b4f33987fd356507f761cfe14e721a2b /components/script/dom/htmlstyleelement.rs
parente7808c526c348fea5e3b48af70b7f1a066652097 (diff)
downloadservo-b7301ca06c892da4d38247b86e81edaa5181a969.tar.gz
servo-b7301ca06c892da4d38247b86e81edaa5181a969.zip
Fix some warnings caused by the SM upgrade
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);