From c4e1f474973744b32579797c1ff51335002a4491 Mon Sep 17 00:00:00 2001 From: Oliver Gould Date: Thu, 4 Nov 2021 17:16:08 +0000 Subject: [PATCH] Relax constraints on `Display for tokio-boring::HandshakeError` `tokio_boring::HandshakeError` currently requires that the inner stream implements `Debug` for its `Display` implementation. This constraint is unnecessary. This change removes this `Debug` constraint so `HandshakeError` always implements `Display`. --- tokio-boring/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tokio-boring/src/lib.rs b/tokio-boring/src/lib.rs index c5c25044..0de479c3 100644 --- a/tokio-boring/src/lib.rs +++ b/tokio-boring/src/lib.rs @@ -318,10 +318,7 @@ where } } -impl fmt::Display for HandshakeError -where - S: fmt::Debug, -{ +impl fmt::Display for HandshakeError { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { fmt::Display::fmt(&self.0, fmt) }