From 78a844486750c1dbbb35fb3adf1dc4718cfb23bb Mon Sep 17 00:00:00 2001 From: Dionna Glaze Date: Wed, 24 Jan 2024 01:27:20 +0000 Subject: [PATCH] Keep missing_debug_implementations conditional The debug definitions to satisfy deny(missing_debug_implementation) are behind the enable-stacktrack feature, so the denial should also be behind this feature. Signed-off-by: Dionna Glaze --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index fd0f3adf7..ee623362a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,7 @@ #![no_std] #![deny(missing_copy_implementations)] -#![deny(missing_debug_implementations)] +#![cfg_attr(feature = "enable-stacktrace", deny(missing_debug_implementations))] #![cfg_attr(all(test, test_in_svsm), no_main)] #![cfg_attr(all(test, test_in_svsm), feature(custom_test_frameworks))] #![cfg_attr(all(test, test_in_svsm), test_runner(crate::testing::svsm_test_runner))]