Skip to content

Commit

Permalink
Change the name of the debug macro to debug_macro
Browse files Browse the repository at this point in the history
By convention, debug! is used for logging.

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Feb 19, 2019
1 parent 0ca223d commit d7a70d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/range_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ macro_rules! range {
NewtypeSub! { () pub struct $T(u64); }
NewtypeSubAssign! { () pub struct $T(u64); }

debug!($T);
debug_macro!($T);
serde!($T);
sum!($T);

Expand All @@ -41,7 +41,7 @@ macro_rules! self_div {
};
}

macro_rules! debug {
macro_rules! debug_macro {
($T:ident) => {
impl fmt::Debug for $T {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
Expand Down

0 comments on commit d7a70d0

Please sign in to comment.