소스 검색

Change repr of ExtendedField to transparent

I'm not sure why this was ever repr(C, packed) tbh
Isaac Woods 3 년 전
부모
커밋
685502cc81
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      acpi/src/sdt.rs

+ 1 - 1
acpi/src/sdt.rs

@@ -3,7 +3,7 @@ use core::{fmt, mem, mem::MaybeUninit, str};
 
 /// Represents a field which may or may not be present within an ACPI structure, depending on the version of ACPI
 /// that a system supports. If the field is not present, it is not safe to treat the data as initialised.
-#[repr(C, packed)]
+#[repr(transparent)]
 pub struct ExtendedField<T: Copy, const MIN_REVISION: u8>(MaybeUninit<T>);
 
 impl<T: Copy, const MIN_REVISION: u8> ExtendedField<T, MIN_REVISION> {