mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
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 <rbradford@rivosinc.com>
This commit is contained in:
parent
c19c73cb99
commit
8899ebd63c
@ -19,6 +19,7 @@ pub const FOCAL_IMAGE_NAME: &str = "focal-server-cloudimg-amd64-custom-20210609-
|
|||||||
#[cfg(target_arch = "aarch64")]
|
#[cfg(target_arch = "aarch64")]
|
||||||
pub const FOCAL_IMAGE_NAME: &str = "focal-server-cloudimg-arm64-custom-20210929-0-update-tool.raw";
|
pub const FOCAL_IMAGE_NAME: &str = "focal-server-cloudimg-arm64-custom-20210929-0-update-tool.raw";
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
enum Error {
|
enum Error {
|
||||||
BootTimeParse,
|
BootTimeParse,
|
||||||
|
Loading…
Reference in New Issue
Block a user