diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2022-03-02 17:22:42 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2022-03-02 18:02:03 +0000 |
commit | 7fab912f000901d39bb81b81bbd9747b64a7301d (patch) | |
tree | 4984f4836ceb41fb26ae437e656d4f0c363bde6e | |
parent | 42f9b3c18670211855e1c4aff86c832c79f0203b (diff) | |
download | arti-derive-traits.tar.gz arti-derive-traits.zip |
tor-rtcompat: Debug dump type of contained inner runtimederive-traits
-rw-r--r-- | crates/tor-rtcompat/src/opaque.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/tor-rtcompat/src/opaque.rs b/crates/tor-rtcompat/src/opaque.rs index 3326e10f9..feb1c177e 100644 --- a/crates/tor-rtcompat/src/opaque.rs +++ b/crates/tor-rtcompat/src/opaque.rs @@ -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() } } |