From ea0130328328c057b648c56c7b7f6b5b8c07710f Mon Sep 17 00:00:00 2001 From: Greg Colombo Date: Thu, 17 Oct 2024 17:37:02 -0700 Subject: [PATCH] clippy fixes for 1.82 (#796) --- phd-tests/framework/src/test_vm/spec.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/phd-tests/framework/src/test_vm/spec.rs b/phd-tests/framework/src/test_vm/spec.rs index 92814f7f2..97899c025 100644 --- a/phd-tests/framework/src/test_vm/spec.rs +++ b/phd-tests/framework/src/test_vm/spec.rs @@ -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); } } }