Skip to content

Commit

Permalink
clippy fixes for 1.82 (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcolombo authored Oct 18, 2024
1 parent 93ed767 commit ea01303
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions phd-tests/framework/src/test_vm/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ impl VmSpec {
let backend_spec = disk.backend_spec();
let backend_name =
disk.device_name().clone().into_backend_name().into_string();
match self.instance_spec.components.get(&backend_name) {
Some(ComponentV0::CrucibleStorageBackend(_)) => {
self.instance_spec
.components
.insert(backend_name, backend_spec);
}
Some(_) | None => {}
if let Some(ComponentV0::CrucibleStorageBackend(_)) =
self.instance_spec.components.get(&backend_name)
{
self.instance_spec
.components
.insert(backend_name, backend_spec);
}
}
}
Expand Down

0 comments on commit ea01303

Please sign in to comment.