tracing_assert_core/
debug_fmt_ext.rs

1use std::fmt::Debug;
2
3pub trait DebugFmtExt {
4    fn debug_fmt(&self) -> String;
5}
6
7impl<D: Debug> DebugFmtExt for D {
8    fn debug_fmt(&self) -> String {
9        format!("{:?}", self)
10    }
11}