aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/global.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-10-15 15:00:00 -0600
committerbors-servo <metajack+bors@gmail.com>2015-10-15 15:00:00 -0600
commit9d5f09e09c64d878e6c2bb273195c3c6ca9fe82c (patch)
treec027369e6a9df652db47366b6bb9da503849f0e5 /components/script/dom/bindings/global.rs
parent6f1db0fcd3ef861f61bed6b75aae63d738e575ba (diff)
parent8819f0d8b86a59acbad9b3127171fce4728b0cdd (diff)
downloadservo-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.rs1
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)),