Skip to content

Commit

Permalink
Avoid using non-existant cfg to not trigger lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Nov 10, 2024
1 parent 7242531 commit 7756b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7756b23

Please sign in to comment.