From 8dee8cd22ebf31de2022076170b6c5140fa39719 Mon Sep 17 00:00:00 2001 From: Greg Colombo Date: Thu, 17 Oct 2024 23:04:36 +0000 Subject: [PATCH] clippy fixes for 1.82 --- 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); } } }