svlog: ty: Make debug less verbose
@@ -96,7 +96,7 @@ use std::{
};
/// A packed type.
-#[derive(Debug, Clone)]
+#[derive(Clone)]
pub struct PackedType<'a> {
/// The core packed type.
pub core: PackedCore<'a>,
@@ -223,7 +223,7 @@ pub enum RangeDir {
}
/// An unpacked type.
-#[derive(Debug, Clone)]
+#[derive(Clone)]
pub struct UnpackedType<'a> {
/// The core unpacked type.
pub core: UnpackedCore<'a>,
@@ -877,6 +877,12 @@ impl Display for PackedType<'_> {
}
}
+impl Debug for PackedType<'_> {
+ fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
+ Display::fmt(self.resolve_full(), f)
+ }
+}
+
impl<'a> PackedCore<'a> {
/// Check if this is a tombstone.
pub fn is_error(&self) -> bool {
@@ -1592,6 +1598,12 @@ impl Display for UnpackedType<'_> {
}
}
+impl Debug for UnpackedType<'_> {
+ fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
+ Display::fmt(self.resolve_full(), f)
+ }
+}
+
impl<'a> UnpackedCore<'a> {
/// Check if this is a tombstone.
pub fn is_error(&self) -> bool {
