diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-04-02 14:37:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-02 14:37:11 +0200 |
commit | 94885bc2932fa0e40feee877f7f68fc5e68f76c8 (patch) | |
tree | 0178f893eb9ac65c624943c1a58abbf5266b0cdd /ext/net/ops_tls.rs | |
parent | 13b9fc93048baf66c51a83a8201d3af9034b5ba3 (diff) |
experiment(serde_v8): derive_more enabled opaque wrappers (#14096)
Diffstat (limited to 'ext/net/ops_tls.rs')
-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()) } } |