mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Document the bindings module, allow missing docs in autogenerated files.
This commit is contained in:
parent
1fc48dc730
commit
3a75545629
1 changed files with 4 additions and 2 deletions
|
@ -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)] {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue