From 4bd0ac662380bb12f84ef4ff9691ab8b654aca66 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 Path Signed-off-by: Rob Bradford --- acpi_tables/src/aml.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/acpi_tables/src/aml.rs b/acpi_tables/src/aml.rs index 63c2e274f..6076f444d 100644 --- a/acpi_tables/src/aml.rs +++ b/acpi_tables/src/aml.rs @@ -50,9 +50,7 @@ pub struct Path { } impl Aml for Path { - fn to_aml_bytes(&self) -> Vec { - let mut bytes = Vec::new(); - + fn append_aml_bytes(&self, bytes: &mut Vec) { if self.root { bytes.push(b'\\'); } @@ -72,8 +70,6 @@ impl Aml for Path { for part in self.name_parts.clone().iter_mut() { bytes.append(&mut part.to_vec()); } - - bytes } }