From ff0992401eacdc6a1eca638e2bf7f61642c95c13 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 18 Jan 2016 09:52:23 +0100 Subject: [PATCH] Remove remaining reference to the long-disappeared JSRef type. --- components/script/dom/bindings/js.rs | 2 +- components/script/dom/bindings/mod.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index 5fb452883f3..6abf5f9b4e5 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -431,7 +431,7 @@ impl LayoutJS { } } -/// Get an `Option>` out of an `Option>` +/// Get an `Option<&T>` out of an `Option>` pub trait RootedReference { /// Obtain a safe optional reference to the wrapped JS owned-value that /// cannot outlive the lifetime of this root. diff --git a/components/script/dom/bindings/mod.rs b/components/script/dom/bindings/mod.rs index 8bef928034c..602e24fe2e0 100644 --- a/components/script/dom/bindings/mod.rs +++ b/components/script/dom/bindings/mod.rs @@ -33,7 +33,8 @@ //! //! The instance methods for an interface `Foo` are defined on a //! `dom::bindings::codegen::Bindings::FooBindings::FooMethods` trait. This -//! trait is then implemented for `JSRef<'a, Foo>`. +//! trait is then implemented for `Foo`. (All methods take an `&self` +//! parameter, as pointers to DOM objects can be freely aliased.) //! //! The return type and argument types are determined [as described below] //! (#rust-reflections-of-webidl-types).