more better working debug

This commit is contained in:
nora 2022-04-24 12:50:12 +02:00
parent 08d1f01802
commit 01e6d7802e
5 changed files with 34 additions and 6 deletions

View file

@ -11,7 +11,7 @@ use std::fmt::Display;
#[cfg(feature = "_debug")]
pub fn dbg(prefix: impl Display, x: impl dbg_pls::DebugPls) {
eprintln!("{prefix}{}", dbg_pls::pretty(&x))
eprintln!("{prefix}{}", dbg_pls::color(&x))
}
#[cfg(not(feature = "_debug"))]