Skip to content

Commit c2e9cf1

Browse files
committed
Minor clippy fixes
Signed-off-by: Sergio Lopez <slp@redhat.com>
1 parent e3d930a commit c2e9cf1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/commands/changevm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl ChangeVmCmd {
6060

6161
let mut vmcfg = match cfg.vmconfig_map.remove(&self.name) {
6262
None => {
63-
println!("No VM found with name {}", &self.name);
63+
println!("No VM found with name {}", self.name);
6464
std::process::exit(-1);
6565
}
6666
Some(vmcfg) => vmcfg,

src/commands/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl ListCmd {
1717
if cfg.vmconfig_map.is_empty() {
1818
println!("No microVMs found");
1919
} else {
20-
for (_name, vm) in cfg.vmconfig_map.iter() {
20+
for vm in cfg.vmconfig_map.values() {
2121
println!();
2222
printvm(vm);
2323
}

0 commit comments

Comments
 (0)