Skip to content

chore: receiver refactoring using pnet library #37

chore: receiver refactoring using pnet library

chore: receiver refactoring using pnet library #37

Triggered via push September 10, 2024 21:59
Status Failure
Total duration 39s
Artifacts

rust.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

24 errors and 18 warnings
fmt
The process '/home/runner/.cargo/bin/cargo' failed with exit code 1
check
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
called `filter(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(..)` instead: src/receiver.rs#L28
error: called `filter(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(..)` instead --> src/receiver.rs:28:21 | 28 | let interface = interfaces | _____________________^ 29 | | .into_iter() 30 | | .filter(interface_ip_match) 31 | | .next() | |_______________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#filter_next = note: `-D clippy::filter-next` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::filter_next)]` help: try | 28 ~ let interface = interfaces 29 + .into_iter().find(interface_ip_match) |
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead: src/time.rs#L99
error: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead --> src/time.rs:99:28 | 99 | NaiveDateTime::from_timestamp_opt(2584229, 25003600).unwrap(), | ^^^^^^^^^^^^^^^^^^
use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead: src/time.rs#L98
error: use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead --> src/time.rs:98:35 | 98 | sample = DateTime::<Utc>::from_utc( | ^^^^^^^^
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead: src/time.rs#L93
error: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead --> src/time.rs:93:59 | 93 | sample = DateTime::<Utc>::from_utc(NaiveDateTime::from_timestamp_opt(0, 0).unwrap(), Utc); | ^^^^^^^^^^^^^^^^^^
use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead: src/time.rs#L93
error: use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead --> src/time.rs:93:35 | 93 | sample = DateTime::<Utc>::from_utc(NaiveDateTime::from_timestamp_opt(0, 0).unwrap(), Utc); | ^^^^^^^^
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead: src/time.rs#L88
error: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead --> src/time.rs:88:54 | 88 | DateTime::<Utc>::from_utc(NaiveDateTime::from_timestamp_opt(1525987, 0).unwrap(), Utc); | ^^^^^^^^^^^^^^^^^^
use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead: src/time.rs#L88
error: use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead --> src/time.rs:88:30 | 88 | DateTime::<Utc>::from_utc(NaiveDateTime::from_timestamp_opt(1525987, 0).unwrap(), Utc); | ^^^^^^^^
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead: src/time.rs#L71
error: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead --> src/time.rs:71:28 | 71 | NaiveDateTime::from_timestamp_opt(2584229, 151000000).unwrap(), | ^^^^^^^^^^^^^^^^^^
use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead: src/time.rs#L70
error: use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead --> src/time.rs:70:35 | 70 | sample = DateTime::<Utc>::from_utc( | ^^^^^^^^
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead: src/time.rs#L59
error: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead --> src/time.rs:59:59 | 59 | sample = DateTime::<Utc>::from_utc(NaiveDateTime::from_timestamp_opt(0, 0).unwrap(), Utc); | ^^^^^^^^^^^^^^^^^^
use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead: src/time.rs#L59
error: use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead --> src/time.rs:59:35 | 59 | sample = DateTime::<Utc>::from_utc(NaiveDateTime::from_timestamp_opt(0, 0).unwrap(), Utc); | ^^^^^^^^
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead: src/time.rs#L48
error: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead --> src/time.rs:48:54 | 48 | DateTime::<Utc>::from_utc(NaiveDateTime::from_timestamp_opt(1525987, 0).unwrap(), Utc); | ^^^^^^^^^^^^^^^^^^
use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead: src/time.rs#L48
error: use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead --> src/time.rs:48:30 | 48 | DateTime::<Utc>::from_utc(NaiveDateTime::from_timestamp_opt(1525987, 0).unwrap(), Utc); | ^^^^^^^^ | = note: `-D deprecated` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(deprecated)]`
type annotations needed: src/configuration.rs#L106
error[E0284]: type annotations needed --> src/configuration.rs:106:50 | 106 | assert_eq!(conf.remote_addr, "127.0.0.1".parse().unwrap()); | ^^^^^ cannot infer type of the type parameter `F` declared on the method `parse` | = note: cannot satisfy `<_ as std::str::FromStr>::Err == _` help: consider specifying the generic argument | 106 | assert_eq!(conf.remote_addr, "127.0.0.1".parse::<F>().unwrap()); | +++++
unused import: `session::Session`: src/main.rs#L15
error: unused import: `session::Session` --> src/main.rs:15:31 | 15 | use crate::{configuration::*, session::Session}; | ^^^^^^^^^^^^^^^^
unused imports: `net::UdpSocket` and `thread`: src/main.rs#L13
error: unused imports: `net::UdpSocket` and `thread` --> src/main.rs:13:11 | 13 | use std::{net::UdpSocket, thread}; | ^^^^^^^^^^^^^^ ^^^^^^
unused import: `bincode`: src/packets.rs#L83
error: unused import: `bincode` --> src/packets.rs:83:9 | 83 | use bincode; | ^^^^^^^
unused import: `session::Session`: src/main.rs#L15
error: unused import: `session::Session` --> src/main.rs:15:31 | 15 | use crate::{configuration::*, session::Session}; | ^^^^^^^^^^^^^^^^
unused imports: `net::UdpSocket` and `thread`: src/main.rs#L13
error: unused imports: `net::UdpSocket` and `thread` --> src/main.rs:13:11 | 13 | use std::{net::UdpSocket, thread}; | ^^^^^^^^^^^^^^ ^^^^^^
unused imports: `error::Error` and `str::FromStr`: src/configuration.rs#L1
error: unused imports: `error::Error` and `str::FromStr` --> src/configuration.rs:1:11 | 1 | use std::{error::Error, str::FromStr}; | ^^^^^^^^^^^^ ^^^^^^^^^^^^ | = note: `-D unused-imports` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_imports)]`
unused imports: `error::Error` and `str::FromStr`: src/configuration.rs#L1
error: unused imports: `error::Error` and `str::FromStr` --> src/configuration.rs:1:11 | 1 | use std::{error::Error, str::FromStr}; | ^^^^^^^^^^^^ ^^^^^^^^^^^^ | = note: `-D unused-imports` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_imports)]`
clippy
Clippy had exited with the 101 exit code
fmt
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/
fmt
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
fmt
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/
fmt
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/
fmt
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/
fmt
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/
check
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/
check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check
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/
check
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/
check
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/
check
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/
clippy
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/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
clippy
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/
clippy
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/
clippy
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/
clippy
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/