api: adjust Handshake::return_stream #196
Annotations
4 errors and 5 warnings
mismatched types:
examples/tls.rs#L89
error[E0308]: mismatched types
--> examples/tls.rs:89:39
|
89 | self.return_stream(&mut conn, tls_stream);
| ------------- ^^^^^^^^^^ expected `TcpStream`, found `TlsStream<TcpStream>`
| |
| arguments to this method are incorrect
|
= note: expected struct `tokio::net::TcpStream`
found struct `tokio_native_tls::TlsStream<tokio::net::TcpStream>`
note: method defined here
--> /home/runner/work/pea2pea/pea2pea/src/protocols/handshake.rs:117:8
|
117 | fn return_stream(&self, conn: &mut Connection, stream: TcpStream) {
| ^^^^^^^^^^^^^
|
cargo test:
examples/tls.rs#L89
mismatched types
|
cargo test
could not compile `pea2pea` (example "tls") due to previous error
|
cargo test
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
|
cargo test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
cargo test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
cargo test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
cargo test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
cargo test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|