diff --git a/src/offset_of.rs b/src/offset_of.rs index f5a7ba6..dbd0991 100644 --- a/src/offset_of.rs +++ b/src/offset_of.rs @@ -200,6 +200,8 @@ macro_rules! offset_of_union { #[cfg(test)] mod tests { + #![cfg_attr(allow_clippy, allow(clippy::identity_op))] // For `... + 0` constructs below. + #[test] fn offset_simple() { #[repr(C)]