Explorar o código

Change repr of ExtendedField to transparent

I'm not sure why this was ever repr(C, packed) tbh
Isaac Woods %!s(int64=3) %!d(string=hai) anos
pai
achega
685502cc81
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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> {