diff --git a/acpi_tables/src/aml.rs b/acpi_tables/src/aml.rs index cf93fb30b..b573f11f1 100644 --- a/acpi_tables/src/aml.rs +++ b/acpi_tables/src/aml.rs @@ -136,8 +136,10 @@ pub struct Name { } impl Aml for Name { - fn to_aml_bytes(&self) -> Vec { - self.bytes.clone() + fn append_aml_bytes(&self, bytes: &mut Vec) { + // TODO: Refactor this to make more efficient but there are + // lifetime/ownership challenges. + bytes.append(&mut self.bytes.clone()) } }