summaryrefslogtreecommitdiff
path: root/ext/net/ops_tls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/net/ops_tls.rs')
-rw-r--r--ext/net/ops_tls.rs6
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())
}
}