diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-10-15 15:00:00 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-10-15 15:00:00 -0600 |
commit | 9d5f09e09c64d878e6c2bb273195c3c6ca9fe82c (patch) | |
tree | c027369e6a9df652db47366b6bb9da503849f0e5 /components/script/dom/bindings/global.rs | |
parent | 6f1db0fcd3ef861f61bed6b75aae63d738e575ba (diff) | |
parent | 8819f0d8b86a59acbad9b3127171fce4728b0cdd (diff) | |
download | servo-9d5f09e09c64d878e6c2bb273195c3c6ca9fe82c.tar.gz servo-9d5f09e09c64d878e6c2bb273195c3c6ca9fe82c.zip |
Auto merge of #8030 - Manishearth:fix-lint-fn, r=frewsxcv
Fix unrooted_must_root lint to handle arguments/return types properly
r? @jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8030)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bindings/global.rs')
-rw-r--r-- | components/script/dom/bindings/global.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/bindings/global.rs b/components/script/dom/bindings/global.rs index ea170ab2463..bc5987ae7f7 100644 --- a/components/script/dom/bindings/global.rs +++ b/components/script/dom/bindings/global.rs @@ -210,6 +210,7 @@ impl GlobalRoot { impl GlobalField { /// Create a new `GlobalField` from a rooted reference. + #[allow(unrooted_must_root)] pub fn from_rooted(global: &GlobalRef) -> GlobalField { match *global { GlobalRef::Window(window) => GlobalField::Window(JS::from_ref(window)), |