There was an error while loading. Please reload this page.
1 parent e3d930a commit c2e9cf1Copy full SHA for c2e9cf1
2 files changed
src/commands/changevm.rs
@@ -60,7 +60,7 @@ impl ChangeVmCmd {
60
61
let mut vmcfg = match cfg.vmconfig_map.remove(&self.name) {
62
None => {
63
- println!("No VM found with name {}", &self.name);
+ println!("No VM found with name {}", self.name);
64
std::process::exit(-1);
65
}
66
Some(vmcfg) => vmcfg,
src/commands/list.rs
@@ -17,7 +17,7 @@ impl ListCmd {
17
if cfg.vmconfig_map.is_empty() {
18
println!("No microVMs found");
19
} else {
20
- for (_name, vm) in cfg.vmconfig_map.iter() {
+ for vm in cfg.vmconfig_map.values() {
21
println!();
22
printvm(vm);
23
0 commit comments