diff --git a/acpi_tables/src/aml.rs b/acpi_tables/src/aml.rs index f1773969b..8576af87b 100644 --- a/acpi_tables/src/aml.rs +++ b/acpi_tables/src/aml.rs @@ -842,11 +842,9 @@ impl<'a> Aml for LessThan<'a> { pub struct Arg(pub u8); impl Aml for Arg { - fn to_aml_bytes(&self) -> Vec { - let mut bytes = Vec::new(); + fn append_aml_bytes(&self, bytes: &mut Vec) { assert!(self.0 <= 6); bytes.push(0x68 + self.0); /* Arg0Op */ - bytes } }