diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-25 22:01:04 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-25 22:01:04 +0100 |
commit | 238f3e2d9189238145151be84b3e3496fabf6853 (patch) | |
tree | 0ad8daa867b4bac56b1bf5dc4c5536d2209d9373 | |
parent | 1cf7441c614fa989313ec5b6b20d6a2b6cd009a6 (diff) | |
download | servo-238f3e2d9189238145151be84b3e3496fabf6853.tar.gz servo-238f3e2d9189238145151be84b3e3496fabf6853.zip |
Require documentation for all code in dom::bindings (excluding dom::bindings::codegen).
-rw-r--r-- | components/script/dom/bindings/callback.rs | 2 | ||||
-rw-r--r-- | components/script/dom/bindings/cell.rs | 2 | ||||
-rw-r--r-- | components/script/dom/bindings/conversions.rs | 2 | ||||
-rw-r--r-- | components/script/dom/bindings/error.rs | 2 | ||||
-rw-r--r-- | components/script/dom/bindings/global.rs | 2 | ||||
-rw-r--r-- | components/script/dom/bindings/js.rs | 2 | ||||
-rw-r--r-- | components/script/dom/bindings/refcounted.rs | 2 | ||||
-rw-r--r-- | components/script/dom/bindings/str.rs | 2 | ||||
-rw-r--r-- | components/script/dom/bindings/structuredclone.rs | 2 | ||||
-rw-r--r-- | components/script/dom/bindings/trace.rs | 2 | ||||
-rw-r--r-- | components/script/dom/bindings/utils.rs | 2 | ||||
-rw-r--r-- | components/script/lib.rs | 2 |
12 files changed, 2 insertions, 22 deletions
diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs index 6b8fcc09e34..b3a6e70aa2d 100644 --- a/components/script/dom/bindings/callback.rs +++ b/components/script/dom/bindings/callback.rs @@ -2,8 +2,6 @@ * 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_docs)] - //! Base classes to work with IDL callbacks. use dom::bindings::global::global_object_for_js_object; diff --git a/components/script/dom/bindings/cell.rs b/components/script/dom/bindings/cell.rs index 9df1e448cc6..e064bf25bea 100644 --- a/components/script/dom/bindings/cell.rs +++ b/components/script/dom/bindings/cell.rs @@ -2,8 +2,6 @@ * 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_docs)] - //! A shareable mutable container for the DOM. use dom::bindings::trace::JSTraceable; diff --git a/components/script/dom/bindings/conversions.rs b/components/script/dom/bindings/conversions.rs index 8447b9e9554..71d23852fa2 100644 --- a/components/script/dom/bindings/conversions.rs +++ b/components/script/dom/bindings/conversions.rs @@ -2,8 +2,6 @@ * 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_docs)] - //! Conversions of Rust values to and from `JSVal`. use dom::bindings::codegen::PrototypeList; diff --git a/components/script/dom/bindings/error.rs b/components/script/dom/bindings/error.rs index 2d02dc08ee9..eca694ae8f0 100644 --- a/components/script/dom/bindings/error.rs +++ b/components/script/dom/bindings/error.rs @@ -4,8 +4,6 @@ //! Utilities to throw exceptions from Rust bindings. -#![deny(missing_docs)] - use dom::bindings::conversions::ToJSValConvertible; use dom::bindings::global::GlobalRef; use dom::domexception::DOMException; diff --git a/components/script/dom/bindings/global.rs b/components/script/dom/bindings/global.rs index 94a9fdf0cd4..52e2f8c3aae 100644 --- a/components/script/dom/bindings/global.rs +++ b/components/script/dom/bindings/global.rs @@ -7,8 +7,6 @@ //! This module contains smart pointers to global scopes, to simplify writing //! code that works in workers as well as window scopes. -#[deny(missing_docs)] - use dom::bindings::conversions::FromJSValConvertible; use dom::bindings::js::{JS, JSRef, Root}; use dom::bindings::utils::{Reflectable, Reflector}; diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index bc2d52a24bd..b68c82efb4c 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -44,8 +44,6 @@ //! - `TemporaryPushable`: allows mutating vectors of `JS<T>` with new elements of `JSRef`/`Temporary` //! - `RootedReference`: makes obtaining an `Option<JSRef<T>>` from an `Option<Root<T>>` easy -#![deny(missing_docs)] - use dom::bindings::trace::JSTraceable; use dom::bindings::utils::{Reflector, Reflectable}; use dom::node::Node; diff --git a/components/script/dom/bindings/refcounted.rs b/components/script/dom/bindings/refcounted.rs index 05dd4fb43ad..33d2c61a9a8 100644 --- a/components/script/dom/bindings/refcounted.rs +++ b/components/script/dom/bindings/refcounted.rs @@ -2,8 +2,6 @@ * 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_docs)] - //! A generic, safe mechnanism by which DOM objects can be pinned and transferred //! between tasks (or intra-task for asynchronous events). Akin to Gecko's //! nsMainThreadPtrHandle, this uses thread-safe reference counting and ensures diff --git a/components/script/dom/bindings/str.rs b/components/script/dom/bindings/str.rs index e67c8ac7d6a..6e9b2f50f9d 100644 --- a/components/script/dom/bindings/str.rs +++ b/components/script/dom/bindings/str.rs @@ -2,8 +2,6 @@ * 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_docs)] - //! The `ByteString` struct. use std::borrow::ToOwned; diff --git a/components/script/dom/bindings/structuredclone.rs b/components/script/dom/bindings/structuredclone.rs index 85f813cda8b..40226e49c90 100644 --- a/components/script/dom/bindings/structuredclone.rs +++ b/components/script/dom/bindings/structuredclone.rs @@ -5,8 +5,6 @@ //! This module implements structured cloning, as defined by [HTML] //! (https://html.spec.whatwg.org/multipage/#safe-passing-of-structured-data). -#![deny(missing_docs)] - use dom::bindings::error::Fallible; use dom::bindings::error::Error::DataClone; use dom::bindings::global::GlobalRef; diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs index ff730ea1e12..1b210382db0 100644 --- a/components/script/dom/bindings/trace.rs +++ b/components/script/dom/bindings/trace.rs @@ -2,8 +2,6 @@ * 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_docs)] - //! Utilities for tracing JS-managed values. //! //! The lifetime of DOM objects is managed by the SpiderMonkey Garbage diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index 13d662ae5f7..6edd5d9219c 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -2,8 +2,6 @@ * 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_docs)] - //! Various utilities to glue JavaScript and the DOM implementation together. use dom::bindings::codegen::PrototypeList; diff --git a/components/script/lib.rs b/components/script/lib.rs index a3c528df29c..5c1f6a16d8f 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -54,6 +54,7 @@ pub mod dom { /// The code to expose the DOM to JavaScript through IDL bindings. #[allow(unsafe_blocks)] + #[deny(missing_docs)] pub mod bindings { pub mod cell; pub mod global; @@ -69,6 +70,7 @@ pub mod dom { pub mod trace; /// Generated JS-Rust bindings. + #[allow(missing_docs)] pub mod codegen { #[allow(unrooted_must_root)] pub mod Bindings; |