From 4bbdb758ec2f4f1552a76b8bce424fa7d0b2fdc7 Mon Sep 17 00:00:00 2001 From: Erik Grinaker Date: Tue, 4 Mar 2025 17:39:32 +0100 Subject: [PATCH] compute_tools: appease unused lint on macOS (#11074) ## Problem On macOS, the `unused` lint complains about two variables not used in `!linux` builds. These were introduced in #11007. ## Summary of changes Appease the linter by explicitly using the variables in `!linux` branches. --- compute_tools/src/compute.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compute_tools/src/compute.rs b/compute_tools/src/compute.rs index a89d3345c1..e4d5a6aaba 100644 --- a/compute_tools/src/compute.rs +++ b/compute_tools/src/compute.rs @@ -468,6 +468,8 @@ impl ComputeNode { // Kills the actual task running the monitor handle.abort(); } + } else { + _ = vm_monitor; // appease unused lint on macOS } } } @@ -791,6 +793,7 @@ impl ComputeNode { }; StartVmMonitorResult { token, vm_monitor } } else { + _ = disable_lfc_resizing; // appease unused lint on macOS StartVmMonitorResult { } } }