src: connection: Fix panic when DNS lookup fails #406
Annotations
6 errors
Run actions-rs-plus/clippy-check@v2:
src/connection/tcp.rs#L30
error[E0308]: mismatched types
--> src/connection/tcp.rs:30:16
|
30 | return io::Error::new(io::ErrorKind::Other, "Host address lookup failed");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<TcpConnection, Error>`, found `Error`
|
= note: expected enum `std::result::Result<connection::tcp::TcpConnection, std::io::Error>`
found struct `std::io::Error`
help: try wrapping the expression in `Err`
|
30 | return Err(io::Error::new(io::ErrorKind::Other, "Host address lookup failed"));
| ++++ +
|
Run actions-rs-plus/clippy-check@v2:
src/connection/tcp.rs#L48
error[E0308]: mismatched types
--> src/connection/tcp.rs:48:16
|
48 | return io::Error::new(io::ErrorKind::Other, "Host address lookup failed");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<TcpConnection, Error>`, found `Error`
|
= note: expected enum `std::result::Result<connection::tcp::TcpConnection, std::io::Error>`
found struct `std::io::Error`
help: try wrapping the expression in `Err`
|
48 | return Err(io::Error::new(io::ErrorKind::Other, "Host address lookup failed"));
| ++++ +
|
Run actions-rs-plus/clippy-check@v2:
src/connection/udp.rs#L32
error[E0308]: mismatched types
--> src/connection/udp.rs:32:16
|
32 | return io::Error::new(io::ErrorKind::Other, "Host address lookup failed");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<UdpConnection, Error>`, found `Error`
|
= note: expected enum `std::result::Result<connection::udp::UdpConnection, std::io::Error>`
found struct `std::io::Error`
help: try wrapping the expression in `Err`
|
32 | return Err(io::Error::new(io::ErrorKind::Other, "Host address lookup failed"));
| ++++ +
|
Run actions-rs-plus/clippy-check@v2:
src/connection/udp.rs#L43
error[E0308]: mismatched types
--> src/connection/udp.rs:43:16
|
43 | return io::Error::new(io::ErrorKind::Other, "Host address lookup failed");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<UdpConnection, Error>`, found `Error`
|
= note: expected enum `std::result::Result<connection::udp::UdpConnection, std::io::Error>`
found struct `std::io::Error`
help: try wrapping the expression in `Err`
|
43 | return Err(io::Error::new(io::ErrorKind::Other, "Host address lookup failed"));
| ++++ +
|
Run actions-rs-plus/clippy-check@v2:
src/connection/udp.rs#L51
error[E0308]: mismatched types
--> src/connection/udp.rs:51:16
|
51 | return io::Error::new(io::ErrorKind::Other, "Host address lookup failed");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<UdpConnection, Error>`, found `Error`
|
= note: expected enum `std::result::Result<connection::udp::UdpConnection, std::io::Error>`
found struct `std::io::Error`
help: try wrapping the expression in `Err`
|
51 | return Err(io::Error::new(io::ErrorKind::Other, "Host address lookup failed"));
| ++++ +
|
Run actions-rs-plus/clippy-check@v2
Clippy had exited with the 101 exit code
|
The logs for this run have expired and are no longer available.
Loading