Repository: actix/actix (language: rust)

Issue:
Recipient does not implement Debug
It's helpful for users if all public types implement Debug.


Discussion / hints:

Fix patch:
diff --git a/src/address/mod.rs b/src/address/mod.rs
index 17fb25f5b..0afc42374 100644
--- a/src/address/mod.rs
+++ b/src/address/mod.rs
@@ -310,6 +310,16 @@ where
     }
 }
 
+impl<M> fmt::Debug for Recipient<M>
+where
+    M: Message + Send,
+    M::Result: Send,
+{
+    fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
+        write!(fmt, "Recipient {{ /* omitted */ }}")
+    }
+}
+
 #[cfg(test)]
 mod tests {
     use crate::prelude::*;


Test patch: