suppress nullptr warnings on auto-generated bindgen unit tests

Hopefully, this will be addressed upstream before too long; see
rust-bindgen issue #1651.
This commit is contained in:
Eric Seppanen
2021-07-06 16:26:47 -07:00
committed by Dmitry Ivanov
parent 325dd41277
commit ad79ca05e9

View File

@@ -1,6 +1,9 @@
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
// suppress warnings on rust 1.53 due to bindgen unit tests.
// https://github.com/rust-lang/rust-bindgen/issues/1651
#![allow(deref_nullptr)]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
pub mod controlfile_utils;