diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-04 11:03:54 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-04 11:03:54 +0530 |
commit | 4b9fa13f2f6a1aa38d180367426498f01f6414c9 (patch) | |
tree | 504c728f28548747b16a6b7e4e569ae809983aeb /components/script/dom/bindings/js.rs | |
parent | 488459f80196a9d080dff9a57bfe0899c4c4ee68 (diff) | |
parent | 722aa86c895b42798d60bcada41b0175dbafba52 (diff) | |
download | servo-4b9fa13f2f6a1aa38d180367426498f01f6414c9.tar.gz servo-4b9fa13f2f6a1aa38d180367426498f01f6414c9.zip |
Auto merge of #8305 - dzbarsky:roots, r=Ms2ger,
Get rid of a bunch of explicit derefs
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8305)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r-- | components/script/dom/bindings/js.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index 55491d5d624..8cae3f82618 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -491,7 +491,7 @@ impl RootCollection { debug_assert!(task_state::get().is_script()); unsafe { let mut roots = &mut *self.roots.get(); - let old_reflector = &*rooted.r().reflector(); + let old_reflector = &*rooted.reflector(); match roots.iter().rposition(|r| *r == old_reflector) { Some(idx) => { roots.remove(idx); |