Skip to content

Commit

Permalink
use {:?} not {:#?}
Browse files Browse the repository at this point in the history
Since the same feature has been added to gstd (gear-tech/gear#3610)
this crate should've been deprecated

However, the compact version of dbg! proposed in rust-lang/rust#82778
does look better

So let me repurpose this crate as the compact implementation of dbg! for gear smart contracts
  • Loading branch information
navigaid committed Jan 16, 2024
1 parent 7c960a3 commit 66b025b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ macro_rules! dbg {
// of temporaries - https://stackoverflow.com/a/48732525/1063961
match $val {
tmp => {
gstd::debug!("[{}:{}] {} = {:#?}",
gstd::debug!("[{}:{}] {} = {:?}",
gstd::prelude::file!(),
gstd::prelude::line!(),
gstd::prelude::stringify!($val),
Expand Down

0 comments on commit 66b025b

Please sign in to comment.