cleanup err convert for ssl

This commit is contained in:
emilis 2023-07-01 12:11:12 +01:00
parent 7723d1223a
commit 58ee6d87ec
1 changed files with 4 additions and 4 deletions

View File

@ -131,12 +131,12 @@ impl From<rustls::Error> for StreamError {
fn from(value: rustls::Error) -> Self {
match value {
rustls::Error::InappropriateMessage {
expect_types,
got_type,
expect_types: _,
got_type: _,
} => Self::BadFormat,
rustls::Error::InappropriateHandshakeMessage {
expect_types,
got_type,
expect_types: _,
got_type: _,
} => Self::BadFormat,
rustls::Error::InvalidMessage(_) => Self::BadFormat,
rustls::Error::NoCertificatesPresented => Self::InternalServerError,