From 94885bc2932fa0e40feee877f7f68fc5e68f76c8 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Sat, 2 Apr 2022 14:37:11 +0200 Subject: experiment(serde_v8): derive_more enabled opaque wrappers (#14096) --- ext/net/ops_tls.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ext/net/ops_tls.rs') diff --git a/ext/net/ops_tls.rs b/ext/net/ops_tls.rs index 74301292b..d6b83e6e8 100644 --- a/ext/net/ops_tls.rs +++ b/ext/net/ops_tls.rs @@ -156,11 +156,7 @@ impl TlsStream { } fn get_alpn_protocol(&mut self) -> Option { - self - .inner_mut() - .tls - .alpn_protocol() - .map(|s| ByteString(s.to_owned())) + self.inner_mut().tls.alpn_protocol().map(|s| s.into()) } } -- cgit v1.2.3