From 3a75545629a2f29754581841ec8c4fe3999802cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 2 Jan 2017 03:04:44 +0100 Subject: [PATCH] style: Document the bindings module, allow missing docs in autogenerated files. --- components/style/gecko_bindings/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/style/gecko_bindings/mod.rs b/components/style/gecko_bindings/mod.rs index d86bfb60484..fa874c7ca42 100644 --- a/components/style/gecko_bindings/mod.rs +++ b/components/style/gecko_bindings/mod.rs @@ -2,7 +2,9 @@ * 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/. */ -#[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 { 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 // 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 { cfg_if! { if #[cfg(debug_assertions)] {