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:
Philipp Schuster
2025-11-18 12:23:48 +01:00
committed by Rob Bradford
parent 06390342a6
commit 7cb73e9e56
36 changed files with 72 additions and 73 deletions

View File

@@ -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()

View File

@@ -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");

View File

@@ -61,7 +61,7 @@ impl TryFrom<&str> for LandlockAccess {
format!("Invalid access: {c}").to_string(),
));
}
};
}
}
Ok(LandlockAccess { access })
}

View File

@@ -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() {

View File

@@ -507,7 +507,7 @@ impl BusDevice for MemoryManager {
_ => {
warn!("Unexpected offset for accessing memory manager device: {offset:#}");
}
};
}
None
}
}

View File

@@ -464,7 +464,7 @@ impl VmOps for VmOpsHandler {
info!("Barrier released");
}
_ => {}
};
}
Ok(())
}
@@ -488,7 +488,7 @@ impl VmOps for VmOpsHandler {
info!("Barrier released");
}
_ => {}
};
}
Ok(())
}
}