diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,9 @@ +#![cfg_attr(feature = "cargo-clippy", feature(tool_lints))] +// we use empty enums to represent opaque c pointers, but we don't have a way +// to indicate that those pointers do actually have additional alignment +// restrictions, so casting them to their prefixes is actually safe +#![cfg_attr(feature = "cargo-clippy", allow(clippy::cast_ptr_alignment))] + extern crate libc; mod cell; |