misc: Fix beta clippy issues

Fixed with 'cargo clippy --fix' mostly.

Signed-off-by: Bo Chen <bchen@crusoe.ai>
This commit is contained in:
Bo Chen
2025-09-17 00:01:47 +00:00
parent 10fb713218
commit f122398262
3 changed files with 10 additions and 26 deletions

View File

@@ -1094,8 +1094,7 @@ mod unit_tests {
#[test]
fn test_valid_vm_config_memory() {
vec![
(
[(
vec!["cloud-hypervisor", "--kernel", "/path/to/kernel", "--memory", "size=1073741824"],
r#"{
"payload": {"kernel": "/path/to/kernel"},
@@ -1150,8 +1149,7 @@ mod unit_tests {
"memory": {"size": 1073741824, "hotplug_method": "VirtioMem", "hotplug_size": 1073741824}
}"#,
true,
),
]
)]
.iter()
.for_each(|(cli, openapi, equal)| {
compare_vm_config_cli_vs_json(cli, openapi, *equal);
@@ -1302,7 +1300,7 @@ mod unit_tests {
#[test]
fn test_valid_vm_config_net() {
vec![
[
// This test is expected to fail because the default MAC address is
// randomly generated. There's no way we can have twice the same
// default value.
@@ -1780,7 +1778,7 @@ mod unit_tests {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_valid_vm_config_devices() {
vec![
[
(
vec![
"cloud-hypervisor",