Skip to content

src: connection: Fix panic when DNS lookup fails #406

src: connection: Fix panic when DNS lookup fails

src: connection: Fix panic when DNS lookup fails #406

Triggered via pull request January 10, 2024 19:18
Status Failure
Total duration 2m 34s
Artifacts

test.yml

on: pull_request
Matrix: internal-tests
test-embedded-size
0s
test-embedded-size
Fit to window
Zoom out
Zoom in

Annotations

33 errors and 1 warning
internal-tests (standard)
Process completed with exit code 101.
internal-tests (common)
The job was canceled because "standard" failed.
internal-tests (common)
Process completed with exit code 101.
internal-tests (uavionix)
The job was canceled because "standard" failed.
internal-tests (uavionix)
Process completed with exit code 101.
internal-tests (paparazzi)
The job was canceled because "standard" failed.
internal-tests (paparazzi)
The operation was canceled.
internal-tests (test)
The job was canceled because "standard" failed.
internal-tests (test)
The operation was canceled.
internal-tests (slugs)
The job was canceled because "standard" failed.
internal-tests (slugs)
The operation was canceled.
internal-tests (icarous)
The job was canceled because "standard" failed.
internal-tests (icarous)
The operation was canceled.
internal-tests (minimal)
The job was canceled because "standard" failed.
internal-tests (minimal)
The operation was canceled.
internal-tests (ualberta)
The job was canceled because "standard" failed.
internal-tests (ualberta)
The operation was canceled.
internal-tests (asluav)
The job was canceled because "standard" failed.
internal-tests (asluav)
The operation was canceled.
internal-tests (python_array_test)
The job was canceled because "standard" failed.
internal-tests (python_array_test)
The operation was canceled.
internal-tests (ardupilotmega)
The job was canceled because "standard" failed.
internal-tests (ardupilotmega)
The operation was canceled.
internal-tests (matrixpilot)
The job was canceled because "standard" failed.
internal-tests (matrixpilot)
The operation was canceled.
mismatched types: 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")); | ++++ +
mismatched types: 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")); | ++++ +
mismatched types: 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")); | ++++ +
mismatched types: 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")); | ++++ +
mismatched types: 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")); | ++++ +
linting
Clippy had exited with the 101 exit code
mavlink-dump
Process completed with exit code 101.
msrv
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
msrv
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/