diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-04-25 15:24:27 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-04-25 15:24:27 +0200 |
commit | 41cc0a939e552f0898ab4cdeb7c4ebddb6378090 (patch) | |
tree | aea6fdde87c438b62a10c9a4e57a40f914925a44 /components/script/parse/html.rs | |
parent | 4108af0c113fcbd64abf2a1cf71026c2f7a653d3 (diff) | |
download | servo-41cc0a939e552f0898ab4cdeb7c4ebddb6378090.tar.gz servo-41cc0a939e552f0898ab4cdeb7c4ebddb6378090.zip |
Replace the Str implementation for AttrValue by a Deref implementation.
Diffstat (limited to 'components/script/parse/html.rs')
-rw-r--r-- | components/script/parse/html.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs index 73501809300..e67624441fe 100644 --- a/components/script/parse/html.rs +++ b/components/script/parse/html.rs @@ -215,7 +215,7 @@ impl<'a> Serializable for JSRef<'a, Node> { (qname, value) }).collect::<Vec<_>>(); let attr_refs = attrs.iter().map(|&(ref qname, ref value)| { - let ar: AttrRef = (&qname, value.as_slice()); + let ar: AttrRef = (&qname, &**value); ar }); try!(serializer.start_elem(name.clone(), attr_refs)); |