Skip to content

Commit

Permalink
Merge pull request #53 from ids1024/debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix authored Jul 6, 2023
2 parents 2033b71 + 55c1c53 commit 6e953cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ macro_rules! ffi_event_struct {

impl std::fmt::Debug for $struct_name {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
write!(f, "$struct_name @{:p}", self.as_raw())
write!(f, "{} @{:p}", stringify!($struct_name), self.as_raw())
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ macro_rules! ffi_ref_struct {

impl ::std::fmt::Debug for $struct_name {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "$struct_name @{:p}", self.as_raw())
write!(f, "{} @{:p}", stringify!($struct_name), self.as_raw())
}
}

Expand Down

0 comments on commit 6e953cf

Please sign in to comment.