From 6738e45b37968ffaddd6a338021db953325fd5da Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Thu, 6 Jan 2022 15:59:50 -0800 Subject: [PATCH] tests: Add crate-level attribute to silence "dead-code" warnings When enabling the `mshv` feature, we skip quite some tests and hence have known dead-code. This annotation silences dead-code related warnings for our quality workflow to pass. Signed-off-by: Bo Chen --- tests/integration.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/integration.rs b/tests/integration.rs index df21434aa..2c91a4eee 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -3,6 +3,11 @@ // SPDX-License-Identifier: Apache-2.0 // +// When enabling the `mshv` feature, we skip quite some tests and +// hence have known dead-code. This annotation silences dead-code +// related warnings for our quality workflow to pass. +#![allow(dead_code)] + #[macro_use] extern crate lazy_static;