Skip to content

Commit 0856ccb

Browse files
committed
Use a more traditional Debug impl for IntoStackFutureError
1 parent 4c3b42a commit 0856ccb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,11 @@ impl<F> Display for IntoStackFutureError<F> {
403403

404404
impl<F> Debug for IntoStackFutureError<F> {
405405
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
406-
// Forward to the Display implementation
407-
write!(f, "{self}")
406+
f.debug_struct("IntoStackFutureError")
407+
.field("maximum_size", &self.maximum_size)
408+
.field("maximum_alignment", &self.maximum_alignment)
409+
.field("future", &core::any::type_name::<F>())
410+
.finish()
408411
}
409412
}
410413

0 commit comments

Comments
 (0)