From af502065b1e271cbe75fd76905eaf1fbfb198710 Mon Sep 17 00:00:00 2001 From: David Roundy Date: Thu, 11 Apr 2024 13:52:20 -0700 Subject: [PATCH] cut the pointer values from the Debug implementation --- Cargo.toml | 2 +- src/arc.rs | 2 -- src/arena.rs | 2 -- src/intern.rs | 2 -- src/typearena.rs | 2 -- 5 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d2691c1..05cf028 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "internment" -version = "0.8.0" +version = "0.8.1" authors = ["David Roundy "] edition = "2018" diff --git a/src/arc.rs b/src/arc.rs index 6a0f7bd..c1c28ef 100644 --- a/src/arc.rs +++ b/src/arc.rs @@ -459,8 +459,6 @@ fn test_arcintern_nested_drop() { impl Debug for ArcIntern { fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { - Pointer::fmt(&self.pointer, f)?; - f.write_str(" : ")?; self.deref().fmt(f) } } diff --git a/src/arena.rs b/src/arena.rs index 90552ce..7d53f41 100644 --- a/src/arena.rs +++ b/src/arena.rs @@ -387,8 +387,6 @@ impl<'a, T: ?Sized> Eq for ArenaIntern<'a, T> {} impl<'a, T: std::fmt::Debug + ?Sized> std::fmt::Debug for ArenaIntern<'a, T> { fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { - std::fmt::Debug::fmt(&self.get_pointer(), f)?; - f.write_str(" : ")?; self.as_ref().fmt(f) } } diff --git a/src/intern.rs b/src/intern.rs index 8daf2cc..d38c991 100644 --- a/src/intern.rs +++ b/src/intern.rs @@ -494,8 +494,6 @@ mod intern_tests { impl Debug for Intern { fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { - std::fmt::Debug::fmt(&self.get_pointer(), f)?; - f.write_str(" : ")?; self.as_ref().fmt(f) } } diff --git a/src/typearena.rs b/src/typearena.rs index cb25026..24475a2 100644 --- a/src/typearena.rs +++ b/src/typearena.rs @@ -504,8 +504,6 @@ mod intern_tests { impl Debug for Intern { fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { - std::fmt::Debug::fmt(&self.get_pointer(), f)?; - f.write_str(" : ")?; self.as_ref().fmt(f) } }