From bdb379745e6301e3cde7afca7fc120397ca3a1c8 Mon Sep 17 00:00:00 2001 From: Inkvisto Date: Wed, 17 Jul 2024 13:56:53 +0300 Subject: [PATCH] fix: macro_tools warnings fixes --- module/core/macro_tools/examples/macro_tools_attr_prop.rs | 4 ++-- module/core/macro_tools/examples/macro_tools_trivial.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/core/macro_tools/examples/macro_tools_attr_prop.rs b/module/core/macro_tools/examples/macro_tools_attr_prop.rs index 3c18928fd1..b5369750d5 100644 --- a/module/core/macro_tools/examples/macro_tools_attr_prop.rs +++ b/module/core/macro_tools/examples/macro_tools_attr_prop.rs @@ -26,9 +26,9 @@ //! defined in other crates. //! -#[ cfg( not( all( feature = "enabled", debug_assertions ) ) ) ] +#[ cfg( not( all( feature = "enabled", feature = "attr_prop", debug_assertions ) ) ) ] fn main(){} -#[ cfg( all( feature = "enabled", debug_assertions ) ) ] +#[ cfg( all( feature = "enabled", feature = "attr_prop", debug_assertions ) ) ] fn main() { diff --git a/module/core/macro_tools/examples/macro_tools_trivial.rs b/module/core/macro_tools/examples/macro_tools_trivial.rs index e92559b193..c0a1e27982 100644 --- a/module/core/macro_tools/examples/macro_tools_trivial.rs +++ b/module/core/macro_tools/examples/macro_tools_trivial.rs @@ -6,9 +6,9 @@ //! In this example, we generate a type `core::option::Option` and extract its type parameters. //! -#[ cfg( not( feature = "enabled" ) ) ] +#[ cfg( not( all( feature = "enabled", feature = "typ" ) ) ) ] fn main(){} -#[ cfg( feature = "enabled" ) ] +#[ cfg( all( feature = "enabled", feature = "typ" ) ) ] fn main() { // Import necessary macros and modules from the `macro_tools` crate.