From 50b6ee39478bdbead613b68f1c3542966d618130 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 3 Nov 2021 14:29:05 +0000 Subject: [PATCH] acpi_tables: aml: Implement Aml::append_aml_bytes() for Arg Signed-off-by: Rob Bradford --- acpi_tables/src/aml.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 } }