From 7da69b59f7f6db6fd2925f8d87ce143fbbb18657 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 Local 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 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 } }