Skip to content

Commit 796afe1

Browse files
rushilmehrakornelski
authored andcommitted
Allow dead_code instead of disabling clippy entirely for bindgen
1 parent baede6c commit 796afe1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

boring-sys/src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ use std::convert::TryInto;
1616
use std::ffi::c_void;
1717
use std::os::raw::{c_char, c_int, c_uint, c_ulong};
1818

19-
#[allow(dead_code)]
20-
#[allow(clippy::all)]
21-
#[rustfmt::skip]
19+
#[allow(
20+
clippy::useless_transmute,
21+
clippy::derive_partial_eq_without_eq,
22+
dead_code
23+
)]
2224
mod generated {
2325
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
2426
}

0 commit comments

Comments
 (0)