mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: Fix beta clippy issues
Fixed with 'cargo clippy --fix' mostly. Signed-off-by: Bo Chen <bchen@crusoe.ai>
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user