diff options
author | bors-servo <metajack+bors@gmail.com> | 2014-11-07 10:57:30 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2014-11-07 10:57:30 -0700 |
commit | fe11a75f794db47a66426456e1e904cf107cc41d (patch) | |
tree | 8e874d4fea095e64935ea9294c4ab6156aeba764 /components/script/dom/bindings/callback.rs | |
parent | c311ceea8c875df074b1dc6386a3430c01c48e5c (diff) | |
parent | 3ed3c9a978036281662b4dd15a6d119dadf765f0 (diff) | |
download | servo-fe11a75f794db47a66426456e1e904cf107cc41d.tar.gz servo-fe11a75f794db47a66426456e1e904cf107cc41d.zip |
auto merge of #3937 : Ms2ger/servo/docs-bindings, r=jdm
Diffstat (limited to 'components/script/dom/bindings/callback.rs')
-rw-r--r-- | components/script/dom/bindings/callback.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs index 9b8dfb30718..85421f3f6ad 100644 --- a/components/script/dom/bindings/callback.rs +++ b/components/script/dom/bindings/callback.rs @@ -2,6 +2,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(missing_doc)] + //! Base classes to work with IDL callbacks. use dom::bindings::global::global_object_for_js_object; @@ -33,6 +35,7 @@ pub struct CallbackFunction { } impl CallbackFunction { + /// Create a new `CallbackFunction` for this object. pub fn new(callback: *mut JSObject) -> CallbackFunction { CallbackFunction { object: CallbackObject { |