diff --git a/aya/src/bpf.rs b/aya/src/bpf.rs index afedf3ed..318fc03e 100644 --- a/aya/src/bpf.rs +++ b/aya/src/bpf.rs @@ -54,6 +54,9 @@ macro_rules! unsafe_impl_pod { unsafe_impl_pod!(i8, u8, i16, u16, i32, u32, i64, u64, u128, i128); +// It only makes sense that an array of POD types is itself POD +unsafe impl Pod for [T; N] {} + #[allow(non_camel_case_types)] #[repr(C)] #[derive(Copy, Clone, Debug, Default, PartialEq)]