From 58ee6d87ecbfdc28760e8d866ebcb8be1d34f5b5 Mon Sep 17 00:00:00 2001 From: emilis Date: Sat, 1 Jul 2023 12:11:12 +0100 Subject: [PATCH] cleanup err convert for ssl --- salut/src/error.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/salut/src/error.rs b/salut/src/error.rs index a292890..3c88549 100644 --- a/salut/src/error.rs +++ b/salut/src/error.rs @@ -131,12 +131,12 @@ impl From 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,