aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 58d9b2c..5134d43 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;