From edee9dd53d6e44ffcda381121a4e05885f938bb0 Mon Sep 17 00:00:00 2001 From: Greg Colombo Date: Tue, 17 Dec 2024 20:59:14 +0000 Subject: [PATCH] is this the real life? is this just clippy? --- bin/propolis-server/src/lib/stats/virtual_machine.rs | 2 +- phd-tests/framework/src/guest_os/windows.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/propolis-server/src/lib/stats/virtual_machine.rs b/bin/propolis-server/src/lib/stats/virtual_machine.rs index 75c5ba0ac..2574f29e7 100644 --- a/bin/propolis-server/src/lib/stats/virtual_machine.rs +++ b/bin/propolis-server/src/lib/stats/virtual_machine.rs @@ -190,7 +190,7 @@ impl KstatTarget for VirtualMachine { .find_map(|(_, kstat, data)| { kstat_instance_from_instance_id(kstat, data, &self.vm_name) }) - .ok_or_else(|| Error::NoSuchKstat)?; + .ok_or(Error::NoSuchKstat)?; // Armed with the kstat instance, find all relevant metrics related to // this particular VM. For now, we produce only vCPU usage metrics, but diff --git a/phd-tests/framework/src/guest_os/windows.rs b/phd-tests/framework/src/guest_os/windows.rs index bc55724d2..8180550e7 100644 --- a/phd-tests/framework/src/guest_os/windows.rs +++ b/phd-tests/framework/src/guest_os/windows.rs @@ -44,7 +44,7 @@ impl WindowsVm<'_> { } } -impl<'a> std::ops::Deref for WindowsVm<'a> { +impl std::ops::Deref for WindowsVm<'_> { type Target = TestVm; fn deref(&self) -> &Self::Target {