From 7756b23a0f56cea518298bf191cfbc23f3a19194 Mon Sep 17 00:00:00 2001 From: Urgau Date: Sun, 10 Nov 2024 14:33:32 +0100 Subject: [PATCH] Avoid using non-existant cfg to not trigger lint --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9a7ccda..aaf8ac0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -345,7 +345,7 @@ pub use xshell_macros::__cmd; #[macro_export] macro_rules! cmd { ($sh:expr, $cmd:literal) => {{ - #[cfg(trick_rust_analyzer_into_highlighting_interpolated_bits)] + #[cfg(any())] // Trick rust analyzer into highlighting interpolated bits format_args!($cmd); let f = |prog| $sh.cmd(prog); let cmd: $crate::Cmd = $crate::__cmd!(f $cmd);