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 <chen.bo@intel.com>
This commit is contained in:
Bo Chen 2022-01-06 15:59:50 -08:00 committed by Sebastien Boeuf
parent c2f133990d
commit 6738e45b37

View File

@ -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;