diff options
Diffstat (limited to 'src/util/mod.rs')
| -rw-r--r-- | src/util/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/mod.rs b/src/util/mod.rs index c6809d23..0b681223 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -161,9 +161,13 @@ impl ReadableTypeId { impl Debug for ReadableTypeId { fn fmt(&self, f: &mut Formatter) -> fmt::Result { #[cfg(debug_assertions)] - f.pad(self.name)?; + if let Some(part) = self.name.split("::").last() { + f.pad(part)?; + } + #[cfg(not(debug_assertions))] f.pad("ReadableTypeId")?; + Ok(()) } } |
