mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: clippy: add unnecessary_semicolon
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Rob Bradford
parent
06390342a6
commit
7cb73e9e56
@@ -779,7 +779,7 @@ fn create_acpi_tables_internal(
|
||||
|
||||
prev_tbl_len = slit.len() as u64;
|
||||
prev_tbl_addr = slit_addr;
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
{
|
||||
@@ -957,7 +957,7 @@ pub fn create_acpi_tables_tdx(
|
||||
|
||||
// SLIT
|
||||
tables.push(create_slit_table(numa_nodes));
|
||||
};
|
||||
}
|
||||
|
||||
// VIOT
|
||||
if let Some((iommu_bdf, devices_bdf)) = device_manager.lock().unwrap().iommu_attached_devices()
|
||||
|
||||
@@ -2514,10 +2514,10 @@ impl VmConfig {
|
||||
let mut tty_consoles = Vec::new();
|
||||
if self.console.mode == ConsoleOutputMode::Tty {
|
||||
tty_consoles.push("virtio-console");
|
||||
};
|
||||
}
|
||||
if self.serial.mode == ConsoleOutputMode::Tty {
|
||||
tty_consoles.push("serial-console");
|
||||
};
|
||||
}
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
if self.debug_console.mode == ConsoleOutputMode::Tty {
|
||||
tty_consoles.push("debug-console");
|
||||
|
||||
@@ -61,7 +61,7 @@ impl TryFrom<&str> for LandlockAccess {
|
||||
format!("Invalid access: {c}").to_string(),
|
||||
));
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Ok(LandlockAccess { access })
|
||||
}
|
||||
|
||||
@@ -748,7 +748,7 @@ impl Vmm {
|
||||
error!("Error creating Landlock object: {e:?}");
|
||||
exit_evt.write(1).ok();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
std::panic::catch_unwind(AssertUnwindSafe(|| {
|
||||
@@ -1513,7 +1513,7 @@ impl RequestHandler for Vmm {
|
||||
// If we don't have a config, we cannot boot a VM.
|
||||
if self.vm_config.is_none() {
|
||||
return Err(VmError::VmMissingConfig);
|
||||
};
|
||||
}
|
||||
|
||||
// console_info is set to None in vm_shutdown. re-populate here if empty
|
||||
if self.console_info.is_none() {
|
||||
|
||||
@@ -507,7 +507,7 @@ impl BusDevice for MemoryManager {
|
||||
_ => {
|
||||
warn!("Unexpected offset for accessing memory manager device: {offset:#}");
|
||||
}
|
||||
};
|
||||
}
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
@@ -464,7 +464,7 @@ impl VmOps for VmOpsHandler {
|
||||
info!("Barrier released");
|
||||
}
|
||||
_ => {}
|
||||
};
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -488,7 +488,7 @@ impl VmOps for VmOpsHandler {
|
||||
info!("Barrier released");
|
||||
}
|
||||
_ => {}
|
||||
};
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user