diff --git a/acpi_tables/src/aml.rs b/acpi_tables/src/aml.rs index 8576af87b..c868ab781 100644 --- a/acpi_tables/src/aml.rs +++ b/acpi_tables/src/aml.rs @@ -851,11 +851,9 @@ impl Aml for Arg { pub struct Local(pub u8); impl Aml for Local { - fn to_aml_bytes(&self) -> Vec { - let mut bytes = Vec::new(); + fn append_aml_bytes(&self, bytes: &mut Vec) { assert!(self.0 <= 7); bytes.push(0x60 + self.0); /* Local0Op */ - bytes } }