Removes 'size' and 'alignment' as Rust keywords (#8139)

* Adds fields for possibly reserved words to rust_namer_test

* Removes size and alignment as rust reserved words
This commit is contained in:
Cameron Mulhern
2024-11-12 00:13:02 -05:00
committed by GitHub
parent 49061f8c7c
commit 5f453ef738
23 changed files with 268 additions and 25 deletions

View File

@@ -47,7 +47,7 @@ impl<'b> flatbuffers::Push for Vec3 {
type Output = Vec3;
#[inline]
unsafe fn push(&self, dst: &mut [u8], _written_len: usize) {
let src = ::core::slice::from_raw_parts(self as *const Vec3 as *const u8, Self::size());
let src = ::core::slice::from_raw_parts(self as *const Vec3 as *const u8, <Self as flatbuffers::Push>::size());
dst.copy_from_slice(src);
}
#[inline]