diff --git a/acpi_tables/src/aml.rs b/acpi_tables/src/aml.rs index fcf903df5..666115c9f 100644 --- a/acpi_tables/src/aml.rs +++ b/acpi_tables/src/aml.rs @@ -354,15 +354,13 @@ impl Memory32Fixed { } impl Aml for Memory32Fixed { - fn to_aml_bytes(&self) -> Vec { - let mut bytes = vec![0x86]; /* Memory32Fixed */ + fn append_aml_bytes(&self, bytes: &mut Vec) { + bytes.push(0x86); /* Memory32Fixed */ bytes.append(&mut 9u16.to_le_bytes().to_vec()); - // 9 bytes of payload bytes.push(self.read_write as u8); bytes.append(&mut self.base.to_le_bytes().to_vec()); bytes.append(&mut self.length.to_le_bytes().to_vec()); - bytes } }