From b433a5b47ac093332fa92f0a86d0c3fb1f4c4d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Mon, 23 Feb 2026 08:47:14 +0100 Subject: [PATCH] Add channel message type to Debug format of SendError --- CHANGELOG.md | 4 ++++ src/errors.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6711190..d2d1955 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. user explicitly enables. This is a breaking change. - Upgrade to Rust 2024 edition. This also bumps the MSRV to 1.85.0 +### Fixed +- Make Debug impl on SendError include the channel message type, instead of just saying + `"SendError(_)"`. + ## [0.1.12] - 2026-01-25 ### Fixed diff --git a/src/errors.rs b/src/errors.rs index a8fb24d..67ea13c 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -85,7 +85,7 @@ impl fmt::Display for SendError { impl fmt::Debug for SendError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "SendError<{}>(_)", stringify!(T)) + write!(f, "SendError<{}>(_)", core::any::type_name::()) } }