[INFO] cloning repository https://github.com/sofiworker/arkime-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sofiworker/arkime-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsofiworker%2Farkime-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsofiworker%2Farkime-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4dfd7841206c5f752e676c75de1e7d47fbc155f3 [INFO] building sofiworker/arkime-rust against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsofiworker%2Farkime-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sofiworker/arkime-rust [INFO] finished tweaking git repo https://github.com/sofiworker/arkime-rust [INFO] tweaked toml for git repo https://github.com/sofiworker/arkime-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sofiworker/arkime-rust on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sofiworker/arkime-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pnet_transport v0.34.0 [INFO] [stderr] Downloaded pnet_base v0.34.0 [INFO] [stderr] Downloaded smallvec v1.12.0 [INFO] [stderr] Downloaded pnet_macros_support v0.34.0 [INFO] [stderr] Downloaded pnet_sys v0.34.0 [INFO] [stderr] Downloaded pest_generator v2.7.11 [INFO] [stderr] Downloaded rust-ini v0.19.0 [INFO] [stderr] Downloaded pnet_datalink v0.34.0 [INFO] [stderr] Downloaded ordered-multimap v0.6.0 [INFO] [stderr] Downloaded ctrlc v3.4.2 [INFO] [stderr] Downloaded pnet_macros v0.34.0 [INFO] [stderr] Downloaded pnet_packet v0.34.0 [INFO] [stderr] Downloaded pnet v0.34.0 [INFO] [stderr] Downloaded pest_meta v2.7.11 [INFO] [stderr] Downloaded pest_derive v2.7.11 [INFO] [stderr] Downloaded config v0.14.0 [INFO] [stderr] Downloaded serde_json v1.0.111 [INFO] [stderr] Downloaded pest v2.7.11 [INFO] [stderr] Downloaded nix v0.27.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 544964a2fd4bfc1e8a577cddb3ba2bfde43c92b5aadcec688cf64e7e4f0cb6c8 [INFO] running `Command { std: "docker" "start" "-a" "544964a2fd4bfc1e8a577cddb3ba2bfde43c92b5aadcec688cf64e7e4f0cb6c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "544964a2fd4bfc1e8a577cddb3ba2bfde43c92b5aadcec688cf64e7e4f0cb6c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "544964a2fd4bfc1e8a577cddb3ba2bfde43c92b5aadcec688cf64e7e4f0cb6c8", kill_on_drop: false }` [INFO] [stdout] 544964a2fd4bfc1e8a577cddb3ba2bfde43c92b5aadcec688cf64e7e4f0cb6c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 676110748d72cf8318c93bb16ce4fdda2fae8b3024c148007a088f6ca44b62e4 [INFO] running `Command { std: "docker" "start" "-a" "676110748d72cf8318c93bb16ce4fdda2fae8b3024c148007a088f6ca44b62e4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling no-std-net v0.6.0 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling smallvec v1.12.0 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling winnow v0.6.13 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling rustix v0.38.30 [INFO] [stderr] Compiling pnet_base v0.34.0 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling pnet v0.34.0 [INFO] [stderr] Compiling pnet_macros_support v0.34.0 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling clap_builder v4.5.8 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling thread_local v1.1.7 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling pnet_sys v0.34.0 [INFO] [stderr] Compiling mio v0.8.10 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling filetime v0.2.23 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling inotify v0.9.6 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling dlv-list v0.5.2 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling ordered-multimap v0.6.0 [INFO] [stderr] Compiling notify v6.1.1 [INFO] [stderr] Compiling rust-ini v0.19.0 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling clap_derive v4.5.8 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling pnet_macros v0.34.0 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling pest v2.7.11 [INFO] [stderr] Compiling tokio v1.35.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling pnet_packet v0.34.0 [INFO] [stderr] Compiling clap v4.5.8 [INFO] [stderr] Compiling pest_meta v2.7.11 [INFO] [stderr] Compiling pest_generator v2.7.11 [INFO] [stderr] Compiling pest_derive v2.7.11 [INFO] [stderr] Compiling pnet_transport v0.34.0 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling toml_datetime v0.6.6 [INFO] [stderr] Compiling serde_spanned v0.6.6 [INFO] [stderr] Compiling ipnetwork v0.20.0 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling nix v0.27.1 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling pnet_datalink v0.34.0 [INFO] [stderr] Compiling toml_edit v0.22.14 [INFO] [stderr] Compiling ctrlc v3.4.2 [INFO] [stderr] Compiling toml v0.8.14 [INFO] [stderr] Compiling config v0.14.0 [INFO] [stderr] Compiling arkime-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::core::session` [INFO] [stdout] --> src/capture/capture.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::core::session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pnet::packet::Packet` [INFO] [stdout] --> src/capture/capture.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use pnet::packet::Packet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::Borrow` [INFO] [stdout] --> src/capture/capture.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{borrow::Borrow, collections::HashMap, io::Error, sync::Mutex}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArgAction`, `ArgGroup`, `ArgMatches`, `Arg`, `command`, and `value_parser` [INFO] [stdout] --> src/cmd/capture.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use clap::{command, value_parser, Arg, ArgAction, ArgGroup, ArgMatches, Command}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^ ^^^ ^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/capture/capture.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 76 | let (mut tx, mut rx) = match datalink::channel(&interface, Default::default()) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `packet` [INFO] [stdout] --> src/capture/capture.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | ... let packet: EthernetPacket<'_> = EthernetPacket::new(packet).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/capture/capture.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | let (mut tx, mut rx) = match datalink::channel(&interface, Default::default()) { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session_id` [INFO] [stdout] --> src/core/session.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn get_session_by_id(session_id: String) -> () { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capture_cmd` [INFO] [stdout] --> src/main.rs:28:26 [INFO] [stdout] | [INFO] [stdout] 28 | Some(("capture", capture_cmd)) => {}, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capture_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config_cmd` [INFO] [stdout] --> src/main.rs:29:25 [INFO] [stdout] | [INFO] [stdout] 29 | Some(("config", config_cmd)) => {}, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reload_cmd` [INFO] [stdout] --> src/main.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | Some(("reload", reload_cmd)) => {}, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reload_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stop_cmd` [INFO] [stdout] --> src/main.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | Some(("stop", stop_cmd)) => {}, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stop_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `version_cmd` [INFO] [stdout] --> src/main.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | Some(("version", version_cmd)) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Capture` is never constructed [INFO] [stdout] --> src/capture/capture.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Capture { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, and `start_capture` are never used [INFO] [stdout] --> src/capture/capture.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Capture { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn run(&self) -> Result<(), Error> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn start_capture(&self, interface_list: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InterfaceHandler` is never constructed [INFO] [stdout] --> src/capture/interface.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct InterfaceHandler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `listen_interface`, and `get_interfaces` are never used [INFO] [stdout] --> src/capture/interface.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl InterfaceHandler { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn listen_interface(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_interfaces(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_capture` is never used [INFO] [stdout] --> src/cmd/capture.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | async fn start_capture() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_interface` is never used [INFO] [stdout] --> src/conf/conf.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl ArkimeConfig { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn get_interface(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `session_id` is never read [INFO] [stdout] --> src/core/session.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Session { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 4 | session_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `seq`, `ack`, `len`, and `data_offset` are never read [INFO] [stdout] --> src/core/session.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct TcpData { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 17 | seq: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | ack: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 19 | len: u16, [INFO] [stdout] | ^^^ [INFO] [stdout] 20 | data_offset: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/core/session.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Packet { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 24 | writer_file_pos: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | read_file_pos: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | writer_file_num: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | hash: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | pktlen: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 29 | payload_len: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 30 | payload_offset: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 31 | v6: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 32 | capied: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 33 | outer_ip_offset: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | vlan_id: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::sync::RwLockReadGuard` that must be used [INFO] [stdout] --> src/conf/conf.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | SETTINGS.read().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if unused the RwLock will immediately unlock [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 91 | let _ = SETTINGS.read().unwrap(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 53.74s [INFO] running `Command { std: "docker" "inspect" "676110748d72cf8318c93bb16ce4fdda2fae8b3024c148007a088f6ca44b62e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "676110748d72cf8318c93bb16ce4fdda2fae8b3024c148007a088f6ca44b62e4", kill_on_drop: false }` [INFO] [stdout] 676110748d72cf8318c93bb16ce4fdda2fae8b3024c148007a088f6ca44b62e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cd24cf714091a9aef74babce2d69f34d26c4a7f14142cb7ed39adf47a7c1dae2 [INFO] running `Command { std: "docker" "start" "-a" "cd24cf714091a9aef74babce2d69f34d26c4a7f14142cb7ed39adf47a7c1dae2", kill_on_drop: false }` [INFO] [stderr] Compiling arkime-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::core::session` [INFO] [stdout] --> src/capture/capture.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::core::session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pnet::packet::Packet` [INFO] [stdout] --> src/capture/capture.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use pnet::packet::Packet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::Borrow` [INFO] [stdout] --> src/capture/capture.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{borrow::Borrow, collections::HashMap, io::Error, sync::Mutex}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArgAction`, `ArgGroup`, `ArgMatches`, `Arg`, `command`, and `value_parser` [INFO] [stdout] --> src/cmd/capture.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use clap::{command, value_parser, Arg, ArgAction, ArgGroup, ArgMatches, Command}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^ ^^^ ^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/capture/capture.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 76 | let (mut tx, mut rx) = match datalink::channel(&interface, Default::default()) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `packet` [INFO] [stdout] --> src/capture/capture.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | ... let packet: EthernetPacket<'_> = EthernetPacket::new(packet).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/capture/capture.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | let (mut tx, mut rx) = match datalink::channel(&interface, Default::default()) { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session_id` [INFO] [stdout] --> src/core/session.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn get_session_by_id(session_id: String) -> () { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capture_cmd` [INFO] [stdout] --> src/main.rs:28:26 [INFO] [stdout] | [INFO] [stdout] 28 | Some(("capture", capture_cmd)) => {}, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capture_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config_cmd` [INFO] [stdout] --> src/main.rs:29:25 [INFO] [stdout] | [INFO] [stdout] 29 | Some(("config", config_cmd)) => {}, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reload_cmd` [INFO] [stdout] --> src/main.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | Some(("reload", reload_cmd)) => {}, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reload_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stop_cmd` [INFO] [stdout] --> src/main.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | Some(("stop", stop_cmd)) => {}, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stop_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `version_cmd` [INFO] [stdout] --> src/main.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | Some(("version", version_cmd)) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Capture` is never constructed [INFO] [stdout] --> src/capture/capture.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Capture { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, and `start_capture` are never used [INFO] [stdout] --> src/capture/capture.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Capture { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn run(&self) -> Result<(), Error> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn start_capture(&self, interface_list: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InterfaceHandler` is never constructed [INFO] [stdout] --> src/capture/interface.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct InterfaceHandler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `listen_interface`, and `get_interfaces` are never used [INFO] [stdout] --> src/capture/interface.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl InterfaceHandler { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn listen_interface(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_interfaces(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_capture` is never used [INFO] [stdout] --> src/cmd/capture.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | async fn start_capture() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_interface` is never used [INFO] [stdout] --> src/conf/conf.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl ArkimeConfig { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn get_interface(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `session_id` is never read [INFO] [stdout] --> src/core/session.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Session { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 4 | session_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `seq`, `ack`, `len`, and `data_offset` are never read [INFO] [stdout] --> src/core/session.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct TcpData { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 17 | seq: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | ack: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 19 | len: u16, [INFO] [stdout] | ^^^ [INFO] [stdout] 20 | data_offset: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/core/session.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Packet { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 24 | writer_file_pos: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | read_file_pos: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | writer_file_num: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | hash: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | pktlen: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 29 | payload_len: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 30 | payload_offset: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 31 | v6: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 32 | capied: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 33 | outer_ip_offset: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | vlan_id: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::sync::RwLockReadGuard` that must be used [INFO] [stdout] --> src/conf/conf.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | SETTINGS.read().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if unused the RwLock will immediately unlock [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 91 | let _ = SETTINGS.read().unwrap(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.29s [INFO] running `Command { std: "docker" "inspect" "cd24cf714091a9aef74babce2d69f34d26c4a7f14142cb7ed39adf47a7c1dae2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd24cf714091a9aef74babce2d69f34d26c4a7f14142cb7ed39adf47a7c1dae2", kill_on_drop: false }` [INFO] [stdout] cd24cf714091a9aef74babce2d69f34d26c4a7f14142cb7ed39adf47a7c1dae2