Skip to content

Commit

Permalink
cut the pointer values from the Debug implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
droundy committed Apr 11, 2024
1 parent 75c63d9 commit af50206
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "internment"
version = "0.8.0"
version = "0.8.1"
authors = ["David Roundy <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 0 additions & 2 deletions src/arc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,6 @@ fn test_arcintern_nested_drop() {

impl<T: ?Sized + Eq + Hash + Send + Sync + Debug> Debug for ArcIntern<T> {
fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
Pointer::fmt(&self.pointer, f)?;
f.write_str(" : ")?;
self.deref().fmt(f)
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/intern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,6 @@ mod intern_tests {

impl<T: Debug + ?Sized> Debug for Intern<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)
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/typearena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,6 @@ mod intern_tests {

impl<T: Debug + ?Sized> Debug for Intern<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)
}
}
Expand Down

0 comments on commit af50206

Please sign in to comment.