tor-rtcompat: Debug dump type of contained inner runtime

This commit is contained in:
Ian Jackson 2022-03-02 17:22:42 +00:00
parent 42f9b3c186
commit 7fab912f00
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ macro_rules! implement_opaque_runtime {
impl std::fmt::Debug for $t {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct(stringify!($t)).finish_non_exhaustive()
f.debug_struct(stringify!($t))
.field(stringify!($member), &stringify!($ty))
.finish_non_exhaustive()
}
}