aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-09-23 19:17:16 -0400
committerJesse Luehrs <doy@tozt.net>2018-09-23 19:17:16 -0400
commit0cd015222e80497c823fc0eadc8f55c45860bade (patch)
treefaf7f729454b299783b4b62733d84eabf32bfb3e /src/lib.rs
parent055e326906a7d5519cf28f37b6ec17ecbac8bdad (diff)
downloadvt100-rust-0cd015222e80497c823fc0eadc8f55c45860bade.tar.gz
vt100-rust-0cd015222e80497c823fc0eadc8f55c45860bade.zip
clippy
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;