silence transmute warning lints

This commit is contained in:
auronandace
2026-03-17 08:11:42 +00:00
parent e6f6e7078d
commit 01ea72ecc7
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -77,6 +77,7 @@ macro_rules! assert_equal_size(
// Fail at compile-time if alignments differ.
let a = [0_u8; core::mem::align_of::<$export>()];
#[allow(clippy::useless_transmute)]
let b: [u8; core::mem::align_of::<Wrapped>()] = core::mem::transmute(a);
};
// TODO: Turn into a macro?