diff --git a/acpi_tables/src/aml.rs b/acpi_tables/src/aml.rs index 16b9b1bc2..e7869eb08 100644 --- a/acpi_tables/src/aml.rs +++ b/acpi_tables/src/aml.rs @@ -927,11 +927,10 @@ impl Release { } impl Aml for Release { - fn to_aml_bytes(&self) -> Vec { - let mut bytes = vec![0x5b]; /* ExtOpPrefix */ + fn append_aml_bytes(&self, bytes: &mut Vec) { + bytes.push(0x5b); /* ExtOpPrefix */ bytes.push(0x27); /* ReleaseOp */ - bytes.extend_from_slice(&self.mutex.to_aml_bytes()); - bytes + self.mutex.append_aml_bytes(bytes); } }