diff options
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)), |