mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-23 06:05:21 +00:00
acpi_tables: aml: Implement Aml::append_aml_bytes() for Path
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
f917198f27
commit
4bd0ac6623
@ -50,9 +50,7 @@ pub struct Path {
|
||||
}
|
||||
|
||||
impl Aml for Path {
|
||||
fn to_aml_bytes(&self) -> Vec<u8> {
|
||||
let mut bytes = Vec::new();
|
||||
|
||||
fn append_aml_bytes(&self, bytes: &mut Vec<u8>) {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user