diff options
Diffstat (limited to 'ext/net')
-rw-r--r-- | ext/net/ops_tls.rs | 6 |
1 files changed, 1 insertions, 5 deletions
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<ByteString> { - self - .inner_mut() - .tls - .alpn_protocol() - .map(|s| ByteString(s.to_owned())) + self.inner_mut().tls.alpn_protocol().map(|s| s.into()) } } |