diff --git a/vhost-device-vsock/src/main.rs b/vhost-device-vsock/src/main.rs index 897112e..a83917a 100644 --- a/vhost-device-vsock/src/main.rs +++ b/vhost-device-vsock/src/main.rs @@ -177,9 +177,9 @@ impl VsockArgs { .add_source(config::File::new(c.as_str(), config::FileFormat::Yaml)) .build(); if let Ok(s) = b { - let mut v = s.get::>("vms").unwrap(); - if !v.is_empty() { - let parsed: Vec = v + let mut vms_param = s.get::>("vms").unwrap(); + if !vms_param.is_empty() { + let parsed: Vec = vms_param .drain(..) .map(|p| { VsockConfig::new(