aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/attr.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-02-24 17:28:24 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2016-02-24 17:52:17 +0100
commit0adfb080899104d4b51f6de3012ecf0558199b73 (patch)
tree60a23222f06c60f0f755158617d6256a23a1f5e2 /components/style/attr.rs
parentf7fb03518836ba45b0883aaaf3b8d38a6ff5eae1 (diff)
downloadservo-0adfb080899104d4b51f6de3012ecf0558199b73.tar.gz
servo-0adfb080899104d4b51f6de3012ecf0558199b73.zip
Implement From<DOMString> for Atom
Diffstat (limited to 'components/style/attr.rs')
-rw-r--r--components/style/attr.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/style/attr.rs b/components/style/attr.rs
index 7c85975ee83..76918f0c410 100644
--- a/components/style/attr.rs
+++ b/components/style/attr.rs
@@ -129,8 +129,7 @@ impl AttrValue {
}
pub fn from_atomic(string: DOMString) -> AttrValue {
- // FIXME(ajeffrey): convert directly from DOMString to Atom
- let value = Atom::from(&*string);
+ let value = Atom::from(string);
AttrValue::Atom(value)
}