Skip to content

Fix build errors: socket2 API, rustls trait impl, async field access,…#9

Open
fewensa wants to merge 1 commit intorefactorfrom
vk/5951-main
Open

Fix build errors: socket2 API, rustls trait impl, async field access,…#9
fewensa wants to merge 1 commit intorefactorfrom
vk/5951-main

Conversation

@fewensa
Copy link
Owner

@fewensa fewensa commented Mar 3, 2026

… Alphanumeric type

  • connection/mod.rs: remove incorrect #[cfg(feature = "async")] guard on block_connection
  • connection/connection.rs: replace socket.into_tcp_stream() with std::net::TcpStream::from(socket)
  • connection/connection.rs: implement missing ServerCertVerifier methods and #[derive(Debug)] for NoCertificateVerification
  • connection/connection.rs: call .to_owned() on ServerName to fix lifetime issue
  • connection/connection.rs: use Display instead of Debug for native-tls HandshakeError
  • request/builder/build_body_async.rs: use self.request field directly instead of self.request() method
  • request/builder/form_data.rs: cast u8 to char for Alphanumeric distribution output

… Alphanumeric type

- connection/mod.rs: remove incorrect #[cfg(feature = "async")] guard on block_connection
- connection/connection.rs: replace socket.into_tcp_stream() with std::net::TcpStream::from(socket)
- connection/connection.rs: implement missing ServerCertVerifier methods and #[derive(Debug)] for NoCertificateVerification
- connection/connection.rs: call .to_owned() on ServerName to fix lifetime issue
- connection/connection.rs: use Display instead of Debug for native-tls HandshakeError
- request/builder/build_body_async.rs: use self.request field directly instead of self.request() method
- request/builder/form_data.rs: cast u8 to char for Alphanumeric distribution output

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant