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:
parent
dcbe1571b3
commit
c4e1f47497
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue