From 1877c723cd54d415360965f4e9b64b0d46a45755 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 EisaName As this is a DWord and we know that DWord::append_aml_bytes() is implemented we may call it directly. Signed-off-by: Rob Bradford --- acpi_tables/src/aml.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acpi_tables/src/aml.rs b/acpi_tables/src/aml.rs index f4d0205fd..3ec6171a4 100644 --- a/acpi_tables/src/aml.rs +++ b/acpi_tables/src/aml.rs @@ -255,8 +255,8 @@ impl EisaName { } impl Aml for EisaName { - fn to_aml_bytes(&self) -> Vec { - self.value.to_aml_bytes() + fn append_aml_bytes(&self, bytes: &mut Vec) { + self.value.append_aml_bytes(bytes) } }