mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Replace the Str implementation for AttrValue by a Deref implementation.
This commit is contained in:
parent
4108af0c11
commit
41cc0a939e
16 changed files with 43 additions and 41 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue