diff --git a/packable/packable-derive-test/Cargo.toml b/packable/packable-derive-test/Cargo.toml index ec9175f..de593f8 100644 --- a/packable/packable-derive-test/Cargo.toml +++ b/packable/packable-derive-test/Cargo.toml @@ -16,7 +16,7 @@ name = "tests" path = "tests/lib.rs" [dev-dependencies] -packable = { version = "=0.7.0", path = "../packable", default-features = false } +packable = { version = "=0.8.0", path = "../packable", default-features = false } rustversion = { version = "1.0.9", default-features = false } trybuild = { version = "1.0.71", default-features = false, features = [ "diff" ] } diff --git a/packable/packable/CHANGELOG.md b/packable/packable/CHANGELOG.md index e3b7bcc..82a5f5b 100644 --- a/packable/packable/CHANGELOG.md +++ b/packable/packable/CHANGELOG.md @@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Security --> +## 0.8.0 - 2023-03-30 + +### Changed + +- `Debug` impl of `StringPrefix`, `BoxedSlicePrefix` and `VecPrefix` don't print the wrapper anymore; + ## 0.7.0 - 2022-10-10 ### Changed diff --git a/packable/packable/Cargo.toml b/packable/packable/Cargo.toml index 074f7d1..6b21e46 100644 --- a/packable/packable/Cargo.toml +++ b/packable/packable/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "packable" -version = "0.7.0" +version = "0.8.0" authors = [ "IOTA Stiftung" ] edition = "2021" description = "A crate for packing and unpacking binary representations." diff --git a/packable/packable/src/packable/prefix/boxed.rs b/packable/packable/src/packable/prefix/boxed.rs index ea97e87..070d07c 100644 --- a/packable/packable/src/packable/prefix/boxed.rs +++ b/packable/packable/src/packable/prefix/boxed.rs @@ -30,9 +30,9 @@ pub struct BoxedSlicePrefix { impl fmt::Debug for BoxedSlicePrefix { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { if f.alternate() { - write!(f, "BoxedSlicePrefix({:#?})", self.inner) + write!(f, "{:#?}", self.inner) } else { - write!(f, "BoxedSlicePrefix({:?})", self.inner) + write!(f, "{:?}", self.inner) } } } diff --git a/packable/packable/src/packable/prefix/string.rs b/packable/packable/src/packable/prefix/string.rs index 7eb523f..4bf5377 100644 --- a/packable/packable/src/packable/prefix/string.rs +++ b/packable/packable/src/packable/prefix/string.rs @@ -33,9 +33,9 @@ pub struct StringPrefix { impl fmt::Debug for StringPrefix { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { if f.alternate() { - write!(f, "StringPrefix({:#?})", self.inner) + write!(f, "{:#?}", self.inner) } else { - write!(f, "StringPrefix({:?})", self.inner) + write!(f, "{:?}", self.inner) } } } diff --git a/packable/packable/src/packable/prefix/vec.rs b/packable/packable/src/packable/prefix/vec.rs index 3bf6fd5..5884d87 100644 --- a/packable/packable/src/packable/prefix/vec.rs +++ b/packable/packable/src/packable/prefix/vec.rs @@ -34,9 +34,9 @@ pub struct VecPrefix { impl fmt::Debug for VecPrefix { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { if f.alternate() { - write!(f, "VecPrefix({:#?})", self.inner) + write!(f, "{:#?}", self.inner) } else { - write!(f, "VecPrefix({:?})", self.inner) + write!(f, "{:?}", self.inner) } } }