mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2026-01-10 23:57:44 +00:00
vsock: rename variable for clarity
in order to improve code readability, rename variable to be more descriptive Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
This commit is contained in:
parent
38151e08ae
commit
b7f15e31e7
@ -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::<Vec<ConfigFileVsockParam>>("vms").unwrap();
|
||||
if !v.is_empty() {
|
||||
let parsed: Vec<VsockConfig> = v
|
||||
let mut vms_param = s.get::<Vec<ConfigFileVsockParam>>("vms").unwrap();
|
||||
if !vms_param.is_empty() {
|
||||
let parsed: Vec<VsockConfig> = vms_param
|
||||
.drain(..)
|
||||
.map(|p| {
|
||||
VsockConfig::new(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user