style: Document the bindings module, allow missing docs in autogenerated files.

This commit is contained in:
Emilio Cobos Álvarez 2017-01-02 03:04:44 +01:00
parent 1fc48dc730
commit 3a75545629
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -2,7 +2,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#[allow(dead_code, improper_ctypes, non_camel_case_types)] //! Gecko's C++ bindings, along with some rust helpers to ease its use.
#[allow(dead_code, improper_ctypes, non_camel_case_types, missing_docs)]
pub mod bindings { pub mod bindings {
include!(concat!(env!("OUT_DIR"), "/gecko/bindings.rs")); include!(concat!(env!("OUT_DIR"), "/gecko/bindings.rs"));
} }
@ -11,7 +13,7 @@ pub mod bindings {
// foreign structs to have `PhantomData`. We should remove this once the lint // foreign structs to have `PhantomData`. We should remove this once the lint
// ignores this case. // ignores this case.
#[allow(dead_code, improper_ctypes, non_camel_case_types, non_snake_case, non_upper_case_globals)] #[allow(dead_code, improper_ctypes, non_camel_case_types, non_snake_case, non_upper_case_globals, missing_docs)]
pub mod structs { pub mod structs {
cfg_if! { cfg_if! {
if #[cfg(debug_assertions)] { if #[cfg(debug_assertions)] {