From 8899ebd63cb82b0eb21f4efa5e3f9fd6fe3d6db4 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 6 Feb 2024 21:18:50 +0000 Subject: [PATCH] performance-metrics: Allow dead_code for embedded error The embedded error in the enum will be read on debug output of the error. Fixes beta clippy issue: warning: field `0` is never read --> performance-metrics/src/performance_tests.rs:25:11 | 25 | Infra(InfraError), | ----- ^^^^^^^^^^ | | | field in this variant | = note: `#[warn(dead_code)]` on by default help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 25 | Infra(()), | ~~ Signed-off-by: Rob Bradford --- performance-metrics/src/performance_tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/performance-metrics/src/performance_tests.rs b/performance-metrics/src/performance_tests.rs index 91507a388..92db54907 100644 --- a/performance-metrics/src/performance_tests.rs +++ b/performance-metrics/src/performance_tests.rs @@ -19,6 +19,7 @@ pub const FOCAL_IMAGE_NAME: &str = "focal-server-cloudimg-amd64-custom-20210609- #[cfg(target_arch = "aarch64")] pub const FOCAL_IMAGE_NAME: &str = "focal-server-cloudimg-arm64-custom-20210929-0-update-tool.raw"; +#[allow(dead_code)] #[derive(Debug)] enum Error { BootTimeParse,