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`.
This commit is contained in:
Oliver Gould 2021-11-04 17:16:08 +00:00 committed by Joshua Nelson
parent dcbe1571b3
commit c4e1f47497
1 changed files with 1 additions and 4 deletions

View File

@ -318,10 +318,7 @@ where
}
}
impl<S> fmt::Display for HandshakeError<S>
where
S: fmt::Debug,
{
impl<S> fmt::Display for HandshakeError<S> {
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Display::fmt(&self.0, fmt)
}