Skip to content

Commit

Permalink
fix(gstd): make sure dbg! macro always expand to valid expression (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
btwiuse authored Jul 5, 2024
1 parent 244b870 commit 36cfb5d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions gstd/src/macros/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ macro_rules! debug {
///
/// Similar to the standard library's
/// [`dbg!`](https://doc.rust-lang.org/std/macro.dbg.html) macro.
#[cfg(any(feature = "debug", debug_assertions))]
#[macro_export]
macro_rules! dbg {
() => {
Expand All @@ -89,10 +88,3 @@ macro_rules! dbg {
($($crate::dbg!($val)),+,)
};
}

#[cfg(not(any(feature = "debug", debug_assertions)))]
#[allow(missing_docs)]
#[macro_export]
macro_rules! dbg {
($($arg:tt)*) => {};
}

0 comments on commit 36cfb5d

Please sign in to comment.