Implement `Pod` for `bool`

Without this change, it's impossible to use `bool` as a map element type
or overriding `bool` global variables.

Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
pull/491/head
Michal Rostecki 2 years ago
parent 405c6a8533
commit 48fdec7bc5

@ -57,7 +57,7 @@ macro_rules! unsafe_impl_pod {
}
}
unsafe_impl_pod!(i8, u8, i16, u16, i32, u32, i64, u64, u128, i128);
unsafe_impl_pod!(i8, u8, i16, u16, i32, u32, i64, u64, u128, i128, bool);
// It only makes sense that an array of POD types is itself POD
unsafe impl<T: Pod, const N: usize> Pod for [T; N] {}

Loading…
Cancel
Save