mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Make RootedVec/RootCollection #[no_move]; improve code (fixes #5737)
This commit is contained in:
parent
dcb0a0eab6
commit
369a568264
7 changed files with 8 additions and 8 deletions
|
@ -728,7 +728,7 @@ impl<'a> AttributeHandlers for JSRef<'a, Element> {
|
|||
fn get_attributes(self, local_name: &Atom, attributes: &mut RootedVec<JS<Attr>>) {
|
||||
// FIXME(https://github.com/rust-lang/rust/issues/23338)
|
||||
let attrs = self.attrs.borrow();
|
||||
for attr in attrs.iter().map(|attr| attr.root()) {
|
||||
for ref attr in attrs.iter().map(|attr| attr.root()) {
|
||||
// FIXME(https://github.com/rust-lang/rust/issues/23338)
|
||||
let attr = attr.r();
|
||||
let attr_local_name = attr.local_name();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue