[INFO] cloning repository https://github.com/endepointe/log-analysis [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/endepointe/log-analysis" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fendepointe%2Flog-analysis", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fendepointe%2Flog-analysis'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c9ba3111dd54d4812c3d5e6e085140d22c81c115 [INFO] building endepointe/log-analysis against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fendepointe%2Flog-analysis" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/endepointe/log-analysis [INFO] finished tweaking git repo https://github.com/endepointe/log-analysis [INFO] tweaked toml for git repo https://github.com/endepointe/log-analysis written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/endepointe/log-analysis on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 230 packages to latest compatible versions [INFO] [stderr] Adding crossterm v0.28.1 (available: v0.29.0) [INFO] [stderr] Adding ratatui v0.28.1 (available: v0.29.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded indenter v0.3.4 [INFO] [stderr] Downloaded schannel v0.1.28 [INFO] [stderr] Downloaded security-framework-sys v2.15.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7b9eae830b5d02cd38b537e0516aebe1949a6698ed3b2746d667bc7e2de3d769 [INFO] running `Command { std: "docker" "start" "-a" "7b9eae830b5d02cd38b537e0516aebe1949a6698ed3b2746d667bc7e2de3d769", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b9eae830b5d02cd38b537e0516aebe1949a6698ed3b2746d667bc7e2de3d769", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b9eae830b5d02cd38b537e0516aebe1949a6698ed3b2746d667bc7e2de3d769", kill_on_drop: false }` [INFO] [stdout] 7b9eae830b5d02cd38b537e0516aebe1949a6698ed3b2746d667bc7e2de3d769 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6c4cbb5db0265581dbae97fea4fa7327edcfe28f4dd727c48f7bfcc28a0e40d5 [INFO] running `Command { std: "docker" "start" "-a" "6c4cbb5db0265581dbae97fea4fa7327edcfe28f4dd727c48f7bfcc28a0e40d5", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling find-msvc-tools v0.1.2 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling owo-colors v4.2.2 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling color-spantrace v0.3.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling gimli v0.32.3 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling instability v0.3.9 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tracing-error v0.2.1 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling castaway v0.2.4 [INFO] [stderr] Compiling rustc-demangle v0.1.26 [INFO] [stderr] Compiling indenter v0.3.4 [INFO] [stderr] Compiling indoc v2.0.6 [INFO] [stderr] Compiling unicode-truncate v1.1.0 [INFO] [stderr] Compiling addr2line v0.25.1 [INFO] [stderr] Compiling compact_str v0.8.1 [INFO] [stderr] Compiling crossterm v0.28.1 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling backtrace v0.3.76 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling derive_builder v0.20.2 [INFO] [stderr] Compiling color-eyre v0.6.5 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling ratatui v0.28.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling log-analysis v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::types::helpers::print_type_of` [INFO] [stdout] --> src/zeek/zeek_log.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::types::helpers::print_type_of; [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: `Write` [INFO] [stdout] --> src/zeek/zeek_log.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::{Read, Write, BufReader, BufRead}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/zeek/zeek_log.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | use std::collections::{HashMap,HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/zeek/zeek_log.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/zeek/zeek_log.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::error::Error` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::zeek::zeek_log_proto::ZeekProtocol` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::zeek::zeek_log_proto::ZeekProtocol; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/ip2location.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/ip2location.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc,Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::zeek::zeek_log_proto::ZeekProtocol` [INFO] [stdout] --> src/ip2location.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::zeek::zeek_log_proto::ZeekProtocol; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::zeek::zeek_log::SummaryData` [INFO] [stdout] --> src/ip2location.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::zeek::zeek_log::SummaryData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::helpers::print_type_of` [INFO] [stdout] --> src/ip2location.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::types::helpers::print_type_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/zeek/zeek_log.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::{Read, Write, BufReader, BufRead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proto_type_set` is assigned to, but never used [INFO] [stdout] --> src/zeek/zeek_log.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | let mut proto_type_set = false; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proto_type_set` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fields_set` is assigned to, but never used [INFO] [stdout] --> src/zeek/zeek_log.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let mut fields_set = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_fields_set` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/zeek/zeek_log.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let mut count: usize = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/zeek/zeek_log.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proto_type_set` is never read [INFO] [stdout] --> src/zeek/zeek_log.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | proto_type_set = true; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fields_set` is never read [INFO] [stdout] --> src/zeek/zeek_log.rs:140:25 [INFO] [stdout] | [INFO] [stdout] 140 | fields_set = true; // enables the data insertions [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `data` is never read [INFO] [stdout] --> src/zeek/zeek_log.rs:173:33 [INFO] [stdout] | [INFO] [stdout] 173 | let mut data: Vec<&str> = Vec::<&str>::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `data` is never read [INFO] [stdout] --> src/zeek/zeek_log.rs:200:33 [INFO] [stdout] | [INFO] [stdout] 200 | let mut data: Vec<&str> = Vec::<&str>::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut count: usize = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let mut d = GzDecoder::new(file); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let mut d = GzDecoder::new(file); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:181:29 [INFO] [stdout] | [INFO] [stdout] 181 | let mut iter = std::iter::zip(&fields,&data); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:208:29 [INFO] [stdout] | [INFO] [stdout] 208 | let mut iter = std::iter::zip(&fields,&data); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proto` [INFO] [stdout] --> src/zeek/zeek_log.rs:336:14 [INFO] [stdout] | [INFO] [stdout] 336 | for (proto, protovalue) in &self.raw [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timefield` [INFO] [stdout] --> src/zeek/zeek_log.rs:338:18 [INFO] [stdout] | [INFO] [stdout] 338 | for (timefield, timevalue) in protovalue.iter() [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timefield` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:334:13 [INFO] [stdout] | [INFO] [stdout] 334 | let mut map: HashMap = HashMap::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/zeek/zeek_log.rs:418:21 [INFO] [stdout] | [INFO] [stdout] 418 | let mut count = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/zeek/zeek_log.rs:422:21 [INFO] [stdout] | [INFO] [stdout] 422 | for (ip,val) in arc_data.lock().unwrap().iter_mut() [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:433:25 [INFO] [stdout] | [INFO] [stdout] 433 | let mut arc_ip2locresponse = Arc::new(Mutex::new(IP2LocationResponse::new())); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:418:17 [INFO] [stdout] | [INFO] [stdout] 418 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/zeek/zeek_search_params.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | _ => return 8 // value should not be greater than 7. [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/zeek/zeek_search_params.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 46 | (None, None, None) => return 0, [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 47 | (None, None, Some(_end)) => return 1, [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 48 | (None, Some(_log), None) => return 2, [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 49 | (None, Some(_log), Some(_end)) => return 3, [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 54 | _ => return 8 // value should not be greater than 7. [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | (Some(src_ip), None, None) => return 4, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | (Some(src_ip), None, Some(_end)) => return 5, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | (Some(src_ip), Some(_log), None) => return 6, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | (Some(src_ip), Some(_log), Some(_end)) => return 7, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_date_format` is never used [INFO] [stdout] --> src/zeek/zeek_search_params.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl<'a> ZeekSearchParams<'a> [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | fn check_date_format(p: &'a Path) -> bool [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/zeek/zeek_log.rs:455:17 [INFO] [stdout] | [INFO] [stdout] 455 | handle.join(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [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] 455 | let _ = handle.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `types::error::Error`, `types::helpers::print_type_of`, and `zeek::zeek_log_proto::ZeekProtocol` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | zeek::zeek_log_proto::ZeekProtocol, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | types::error::Error, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | types::helpers::print_type_of, [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: `prelude::*` [INFO] [stdout] --> src/main.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use ratatui::{prelude::*, widgets::canvas::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ratatui::symbols::scrollbar` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use ratatui::symbols::scrollbar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyEvent` [INFO] [stdout] --> src/main.rs:19:39 [INFO] [stdout] | [INFO] [stdout] 19 | crossterm::event::{self, KeyCode, KeyEvent, KeyEventKind}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/main.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | use std::sync::{Arc,Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Tab_0_Focus` should have an upper camel case name [INFO] [stdout] --> src/main.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 42 | enum Tab_0_Focus [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `Tab0Focus` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Tab_0_InfoState` should have an upper camel case name [INFO] [stdout] --> src/main.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | struct Tab_0_InfoState [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Tab0InfoState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::set_cursor`: the method set_cursor_position indicates more clearly what about the cursor to set [INFO] [stdout] --> src/main.rs:765:19 [INFO] [stdout] | [INFO] [stdout] 765 | frame.set_cursor(cursor_x,cursor_y); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::set_cursor`: the method set_cursor_position indicates more clearly what about the cursor to set [INFO] [stdout] --> src/main.rs:770:19 [INFO] [stdout] | [INFO] [stdout] 770 | frame.set_cursor(cursor_x,cursor_y); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::set_cursor`: the method set_cursor_position indicates more clearly what about the cursor to set [INFO] [stdout] --> src/main.rs:775:19 [INFO] [stdout] | [INFO] [stdout] 775 | frame.set_cursor(cursor_x,cursor_y); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::set_cursor`: the method set_cursor_position indicates more clearly what about the cursor to set [INFO] [stdout] --> src/main.rs:780:19 [INFO] [stdout] | [INFO] [stdout] 780 | frame.set_cursor(cursor_x,cursor_y); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:395:29 [INFO] [stdout] | [INFO] [stdout] 395 | ... _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:395:29 [INFO] [stdout] | [INFO] [stdout] 383 | ... MenuFocus::IpInput => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 386 | ... MenuFocus::StartInput => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 389 | ... MenuFocus::EndInput => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 392 | ... MenuFocus::BaseDirInput => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 395 | ... _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:406:29 [INFO] [stdout] | [INFO] [stdout] 406 | ... _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:406:29 [INFO] [stdout] | [INFO] [stdout] 402 | ... MenuFocus::IpInput => state.ip.push(c), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 403 | ... MenuFocus::StartInput => state.start_date.push(c), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 404 | ... MenuFocus::EndInput => state.end_date.push(c), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] 405 | ... MenuFocus::BaseDirInput => state.base_dir.push(c), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 406 | ... _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip_input` [INFO] [stdout] --> src/main.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | let mut ip_input = String::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end_date` [INFO] [stdout] --> src/main.rs:282:37 [INFO] [stdout] | [INFO] [stdout] 282 | ... let end_date: &str = &end.format("%Y-%m-%d").to_string(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_end_date` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:292:37 [INFO] [stdout] | [INFO] [stdout] 292 | ... let res = main_log.search(¶ms); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from_log_data` [INFO] [stdout] --> src/main.rs:320:49 [INFO] [stdout] | [INFO] [stdout] 320 | ... let mut from_log_data = curr_log.summary.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_from_log_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut ip_input = String::new(); [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let mut list_state = ListState::default(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:320:45 [INFO] [stdout] | [INFO] [stdout] 320 | ... let mut from_log_data = curr_log.summary.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_state` [INFO] [stdout] --> src/main.rs:439:36 [INFO] [stdout] | [INFO] [stdout] 439 | app_mode: &AppMode, list_state: &ListState) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip2location_data` [INFO] [stdout] --> src/main.rs:511:17 [INFO] [stdout] | [INFO] [stdout] 511 | let ip2location_data = match data.get_ip2location_data() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip2location_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_para` [INFO] [stdout] --> src/main.rs:543:17 [INFO] [stdout] | [INFO] [stdout] 543 | let some_para = Paragraph::new(String::from("placeholder")) [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_para` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:782:9 [INFO] [stdout] | [INFO] [stdout] 782 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:782:9 [INFO] [stdout] | [INFO] [stdout] 762 | MenuFocus::IpInput => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 767 | MenuFocus::StartInput => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 772 | MenuFocus::EndInput => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 777 | MenuFocus::BaseDirInput => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 782 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `input_text` and `ip2loc_info` are never read [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 61 | struct AppState<'a> [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 66 | input_text: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | ip2loc_info: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 48s [INFO] running `Command { std: "docker" "inspect" "6c4cbb5db0265581dbae97fea4fa7327edcfe28f4dd727c48f7bfcc28a0e40d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c4cbb5db0265581dbae97fea4fa7327edcfe28f4dd727c48f7bfcc28a0e40d5", kill_on_drop: false }` [INFO] [stdout] 6c4cbb5db0265581dbae97fea4fa7327edcfe28f4dd727c48f7bfcc28a0e40d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 29a843c1d6f3ffb92cdffc4e7a2a8a63b3a15299eaaf06c4b6f755c2854b2298 [INFO] running `Command { std: "docker" "start" "-a" "29a843c1d6f3ffb92cdffc4e7a2a8a63b3a15299eaaf06c4b6f755c2854b2298", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `crate::types::helpers::print_type_of` [INFO] [stdout] --> src/zeek/zeek_log.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::types::helpers::print_type_of; [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: `Write` [INFO] [stdout] --> src/zeek/zeek_log.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::{Read, Write, BufReader, BufRead}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/zeek/zeek_log.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | use std::collections::{HashMap,HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/zeek/zeek_log.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/zeek/zeek_log.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::error::Error` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::zeek::zeek_log_proto::ZeekProtocol` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::zeek::zeek_log_proto::ZeekProtocol; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/ip2location.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/ip2location.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc,Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::zeek::zeek_log_proto::ZeekProtocol` [INFO] [stdout] --> src/ip2location.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::zeek::zeek_log_proto::ZeekProtocol; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::zeek::zeek_log::SummaryData` [INFO] [stdout] --> src/ip2location.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::zeek::zeek_log::SummaryData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::helpers::print_type_of` [INFO] [stdout] --> src/ip2location.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::types::helpers::print_type_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/zeek/zeek_log.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::{Read, Write, BufReader, BufRead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proto_type_set` is assigned to, but never used [INFO] [stdout] --> src/zeek/zeek_log.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | let mut proto_type_set = false; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proto_type_set` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fields_set` is assigned to, but never used [INFO] [stdout] --> src/zeek/zeek_log.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let mut fields_set = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_fields_set` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/zeek/zeek_log.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let mut count: usize = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/zeek/zeek_log.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proto_type_set` is never read [INFO] [stdout] --> src/zeek/zeek_log.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | proto_type_set = true; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fields_set` is never read [INFO] [stdout] --> src/zeek/zeek_log.rs:140:25 [INFO] [stdout] | [INFO] [stdout] 140 | fields_set = true; // enables the data insertions [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `data` is never read [INFO] [stdout] --> src/zeek/zeek_log.rs:173:33 [INFO] [stdout] | [INFO] [stdout] 173 | let mut data: Vec<&str> = Vec::<&str>::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `data` is never read [INFO] [stdout] --> src/zeek/zeek_log.rs:200:33 [INFO] [stdout] | [INFO] [stdout] 200 | let mut data: Vec<&str> = Vec::<&str>::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut count: usize = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let mut d = GzDecoder::new(file); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let mut d = GzDecoder::new(file); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:181:29 [INFO] [stdout] | [INFO] [stdout] 181 | let mut iter = std::iter::zip(&fields,&data); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:208:29 [INFO] [stdout] | [INFO] [stdout] 208 | let mut iter = std::iter::zip(&fields,&data); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proto` [INFO] [stdout] --> src/zeek/zeek_log.rs:336:14 [INFO] [stdout] | [INFO] [stdout] 336 | for (proto, protovalue) in &self.raw [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timefield` [INFO] [stdout] --> src/zeek/zeek_log.rs:338:18 [INFO] [stdout] | [INFO] [stdout] 338 | for (timefield, timevalue) in protovalue.iter() [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timefield` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:334:13 [INFO] [stdout] | [INFO] [stdout] 334 | let mut map: HashMap = HashMap::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/zeek/zeek_log.rs:418:21 [INFO] [stdout] | [INFO] [stdout] 418 | let mut count = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/zeek/zeek_log.rs:422:21 [INFO] [stdout] | [INFO] [stdout] 422 | for (ip,val) in arc_data.lock().unwrap().iter_mut() [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:433:25 [INFO] [stdout] | [INFO] [stdout] 433 | let mut arc_ip2locresponse = Arc::new(Mutex::new(IP2LocationResponse::new())); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:418:17 [INFO] [stdout] | [INFO] [stdout] 418 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/zeek/zeek_search_params.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | _ => return 8 // value should not be greater than 7. [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/zeek/zeek_search_params.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 46 | (None, None, None) => return 0, [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 47 | (None, None, Some(_end)) => return 1, [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 48 | (None, Some(_log), None) => return 2, [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 49 | (None, Some(_log), Some(_end)) => return 3, [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 54 | _ => return 8 // value should not be greater than 7. [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | (Some(src_ip), None, None) => return 4, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | (Some(src_ip), None, Some(_end)) => return 5, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | (Some(src_ip), Some(_log), None) => return 6, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | (Some(src_ip), Some(_log), Some(_end)) => return 7, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_date_format` is never used [INFO] [stdout] --> src/zeek/zeek_search_params.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl<'a> ZeekSearchParams<'a> [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | fn check_date_format(p: &'a Path) -> bool [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/zeek/zeek_log.rs:455:17 [INFO] [stdout] | [INFO] [stdout] 455 | handle.join(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [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] 455 | let _ = handle.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling log-analysis v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `types::error::Error`, `types::helpers::print_type_of`, and `zeek::zeek_log_proto::ZeekProtocol` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | zeek::zeek_log_proto::ZeekProtocol, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | types::error::Error, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | types::helpers::print_type_of, [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: `prelude::*` [INFO] [stdout] --> src/main.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use ratatui::{prelude::*, widgets::canvas::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ratatui::symbols::scrollbar` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use ratatui::symbols::scrollbar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyEvent` [INFO] [stdout] --> src/main.rs:19:39 [INFO] [stdout] | [INFO] [stdout] 19 | crossterm::event::{self, KeyCode, KeyEvent, KeyEventKind}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/main.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | use std::sync::{Arc,Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Tab_0_Focus` should have an upper camel case name [INFO] [stdout] --> src/main.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 42 | enum Tab_0_Focus [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `Tab0Focus` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Tab_0_InfoState` should have an upper camel case name [INFO] [stdout] --> src/main.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | struct Tab_0_InfoState [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Tab0InfoState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::set_cursor`: the method set_cursor_position indicates more clearly what about the cursor to set [INFO] [stdout] --> src/main.rs:765:19 [INFO] [stdout] | [INFO] [stdout] 765 | frame.set_cursor(cursor_x,cursor_y); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::set_cursor`: the method set_cursor_position indicates more clearly what about the cursor to set [INFO] [stdout] --> src/main.rs:770:19 [INFO] [stdout] | [INFO] [stdout] 770 | frame.set_cursor(cursor_x,cursor_y); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::set_cursor`: the method set_cursor_position indicates more clearly what about the cursor to set [INFO] [stdout] --> src/main.rs:775:19 [INFO] [stdout] | [INFO] [stdout] 775 | frame.set_cursor(cursor_x,cursor_y); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::set_cursor`: the method set_cursor_position indicates more clearly what about the cursor to set [INFO] [stdout] --> src/main.rs:780:19 [INFO] [stdout] | [INFO] [stdout] 780 | frame.set_cursor(cursor_x,cursor_y); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:395:29 [INFO] [stdout] | [INFO] [stdout] 395 | ... _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:395:29 [INFO] [stdout] | [INFO] [stdout] 383 | ... MenuFocus::IpInput => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 386 | ... MenuFocus::StartInput => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 389 | ... MenuFocus::EndInput => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 392 | ... MenuFocus::BaseDirInput => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 395 | ... _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:406:29 [INFO] [stdout] | [INFO] [stdout] 406 | ... _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:406:29 [INFO] [stdout] | [INFO] [stdout] 402 | ... MenuFocus::IpInput => state.ip.push(c), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 403 | ... MenuFocus::StartInput => state.start_date.push(c), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 404 | ... MenuFocus::EndInput => state.end_date.push(c), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] 405 | ... MenuFocus::BaseDirInput => state.base_dir.push(c), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 406 | ... _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip_input` [INFO] [stdout] --> src/main.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | let mut ip_input = String::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end_date` [INFO] [stdout] --> src/main.rs:282:37 [INFO] [stdout] | [INFO] [stdout] 282 | ... let end_date: &str = &end.format("%Y-%m-%d").to_string(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_end_date` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:292:37 [INFO] [stdout] | [INFO] [stdout] 292 | ... let res = main_log.search(¶ms); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from_log_data` [INFO] [stdout] --> src/main.rs:320:49 [INFO] [stdout] | [INFO] [stdout] 320 | ... let mut from_log_data = curr_log.summary.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_from_log_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut ip_input = String::new(); [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let mut list_state = ListState::default(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:320:45 [INFO] [stdout] | [INFO] [stdout] 320 | ... let mut from_log_data = curr_log.summary.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_state` [INFO] [stdout] --> src/main.rs:439:36 [INFO] [stdout] | [INFO] [stdout] 439 | app_mode: &AppMode, list_state: &ListState) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip2location_data` [INFO] [stdout] --> src/main.rs:511:17 [INFO] [stdout] | [INFO] [stdout] 511 | let ip2location_data = match data.get_ip2location_data() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip2location_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_para` [INFO] [stdout] --> src/main.rs:543:17 [INFO] [stdout] | [INFO] [stdout] 543 | let some_para = Paragraph::new(String::from("placeholder")) [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_para` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:782:9 [INFO] [stdout] | [INFO] [stdout] 782 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:782:9 [INFO] [stdout] | [INFO] [stdout] 762 | MenuFocus::IpInput => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 767 | MenuFocus::StartInput => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 772 | MenuFocus::EndInput => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 777 | MenuFocus::BaseDirInput => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 782 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `input_text` and `ip2loc_info` are never read [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 61 | struct AppState<'a> [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 66 | input_text: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | ip2loc_info: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `types::error::Error`, `types::helpers::print_type_of`, and `zeek::zeek_log_proto::ZeekProtocol` [INFO] [stdout] --> tests/zeek_search.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | zeek::zeek_log_proto::ZeekProtocol, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | types::error::Error, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | types::helpers::print_type_of, [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: `std::path::Path` [INFO] [stdout] --> tests/zeek_search.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> tests/zeek_search.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let res = log.search(¶ms); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `types::error::Error`, `types::helpers::print_type_of`, and `zeek::zeek_log_proto::ZeekProtocol` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | zeek::zeek_log_proto::ZeekProtocol, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | types::error::Error, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | types::helpers::print_type_of, [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: `prelude::*` [INFO] [stdout] --> src/main.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use ratatui::{prelude::*, widgets::canvas::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ratatui::symbols::scrollbar` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use ratatui::symbols::scrollbar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyEvent` [INFO] [stdout] --> src/main.rs:19:39 [INFO] [stdout] | [INFO] [stdout] 19 | crossterm::event::{self, KeyCode, KeyEvent, KeyEventKind}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/main.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | use std::sync::{Arc,Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Tab_0_Focus` should have an upper camel case name [INFO] [stdout] --> src/main.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 42 | enum Tab_0_Focus [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `Tab0Focus` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Tab_0_InfoState` should have an upper camel case name [INFO] [stdout] --> src/main.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | struct Tab_0_InfoState [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Tab0InfoState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::helpers::print_type_of` [INFO] [stdout] --> src/zeek/zeek_log.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::types::helpers::print_type_of; [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: `Write` [INFO] [stdout] --> src/zeek/zeek_log.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::{Read, Write, BufReader, BufRead}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/zeek/zeek_log.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | use std::collections::{HashMap,HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/zeek/zeek_log.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/zeek/zeek_log.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::error::Error` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::zeek::zeek_log_proto::ZeekProtocol` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::zeek::zeek_log_proto::ZeekProtocol; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/ip2location.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/ip2location.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc,Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::zeek::zeek_log_proto::ZeekProtocol` [INFO] [stdout] --> src/ip2location.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::zeek::zeek_log_proto::ZeekProtocol; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::zeek::zeek_log::SummaryData` [INFO] [stdout] --> src/ip2location.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::zeek::zeek_log::SummaryData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::helpers::print_type_of` [INFO] [stdout] --> src/ip2location.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::types::helpers::print_type_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::set_cursor`: the method set_cursor_position indicates more clearly what about the cursor to set [INFO] [stdout] --> src/main.rs:765:19 [INFO] [stdout] | [INFO] [stdout] 765 | frame.set_cursor(cursor_x,cursor_y); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::set_cursor`: the method set_cursor_position indicates more clearly what about the cursor to set [INFO] [stdout] --> src/main.rs:770:19 [INFO] [stdout] | [INFO] [stdout] 770 | frame.set_cursor(cursor_x,cursor_y); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::set_cursor`: the method set_cursor_position indicates more clearly what about the cursor to set [INFO] [stdout] --> src/main.rs:775:19 [INFO] [stdout] | [INFO] [stdout] 775 | frame.set_cursor(cursor_x,cursor_y); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::set_cursor`: the method set_cursor_position indicates more clearly what about the cursor to set [INFO] [stdout] --> src/main.rs:780:19 [INFO] [stdout] | [INFO] [stdout] 780 | frame.set_cursor(cursor_x,cursor_y); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:395:29 [INFO] [stdout] | [INFO] [stdout] 395 | ... _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:395:29 [INFO] [stdout] | [INFO] [stdout] 383 | ... MenuFocus::IpInput => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 386 | ... MenuFocus::StartInput => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 389 | ... MenuFocus::EndInput => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 392 | ... MenuFocus::BaseDirInput => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 395 | ... _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:406:29 [INFO] [stdout] | [INFO] [stdout] 406 | ... _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:406:29 [INFO] [stdout] | [INFO] [stdout] 402 | ... MenuFocus::IpInput => state.ip.push(c), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 403 | ... MenuFocus::StartInput => state.start_date.push(c), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 404 | ... MenuFocus::EndInput => state.end_date.push(c), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] 405 | ... MenuFocus::BaseDirInput => state.base_dir.push(c), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 406 | ... _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip_input` [INFO] [stdout] --> src/main.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | let mut ip_input = String::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end_date` [INFO] [stdout] --> src/main.rs:282:37 [INFO] [stdout] | [INFO] [stdout] 282 | ... let end_date: &str = &end.format("%Y-%m-%d").to_string(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_end_date` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:292:37 [INFO] [stdout] | [INFO] [stdout] 292 | ... let res = main_log.search(¶ms); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from_log_data` [INFO] [stdout] --> src/main.rs:320:49 [INFO] [stdout] | [INFO] [stdout] 320 | ... let mut from_log_data = curr_log.summary.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_from_log_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut ip_input = String::new(); [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let mut list_state = ListState::default(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:320:45 [INFO] [stdout] | [INFO] [stdout] 320 | ... let mut from_log_data = curr_log.summary.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_state` [INFO] [stdout] --> src/main.rs:439:36 [INFO] [stdout] | [INFO] [stdout] 439 | app_mode: &AppMode, list_state: &ListState) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip2location_data` [INFO] [stdout] --> src/main.rs:511:17 [INFO] [stdout] | [INFO] [stdout] 511 | let ip2location_data = match data.get_ip2location_data() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip2location_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_para` [INFO] [stdout] --> src/main.rs:543:17 [INFO] [stdout] | [INFO] [stdout] 543 | let some_para = Paragraph::new(String::from("placeholder")) [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_para` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:782:9 [INFO] [stdout] | [INFO] [stdout] 782 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:782:9 [INFO] [stdout] | [INFO] [stdout] 762 | MenuFocus::IpInput => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 767 | MenuFocus::StartInput => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 772 | MenuFocus::EndInput => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 777 | MenuFocus::BaseDirInput => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 782 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `input_text` and `ip2loc_info` are never read [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 61 | struct AppState<'a> [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 66 | input_text: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | ip2loc_info: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/zeek/zeek_log.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::{Read, Write, BufReader, BufRead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proto_type_set` is assigned to, but never used [INFO] [stdout] --> src/zeek/zeek_log.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | let mut proto_type_set = false; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proto_type_set` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fields_set` is assigned to, but never used [INFO] [stdout] --> src/zeek/zeek_log.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let mut fields_set = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_fields_set` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/zeek/zeek_log.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let mut count: usize = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/zeek/zeek_log.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proto_type_set` is never read [INFO] [stdout] --> src/zeek/zeek_log.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | proto_type_set = true; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fields_set` is never read [INFO] [stdout] --> src/zeek/zeek_log.rs:140:25 [INFO] [stdout] | [INFO] [stdout] 140 | fields_set = true; // enables the data insertions [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `data` is never read [INFO] [stdout] --> src/zeek/zeek_log.rs:173:33 [INFO] [stdout] | [INFO] [stdout] 173 | let mut data: Vec<&str> = Vec::<&str>::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `data` is never read [INFO] [stdout] --> src/zeek/zeek_log.rs:200:33 [INFO] [stdout] | [INFO] [stdout] 200 | let mut data: Vec<&str> = Vec::<&str>::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut count: usize = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let mut d = GzDecoder::new(file); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let mut d = GzDecoder::new(file); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:181:29 [INFO] [stdout] | [INFO] [stdout] 181 | let mut iter = std::iter::zip(&fields,&data); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:208:29 [INFO] [stdout] | [INFO] [stdout] 208 | let mut iter = std::iter::zip(&fields,&data); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proto` [INFO] [stdout] --> src/zeek/zeek_log.rs:336:14 [INFO] [stdout] | [INFO] [stdout] 336 | for (proto, protovalue) in &self.raw [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timefield` [INFO] [stdout] --> src/zeek/zeek_log.rs:338:18 [INFO] [stdout] | [INFO] [stdout] 338 | for (timefield, timevalue) in protovalue.iter() [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timefield` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:334:13 [INFO] [stdout] | [INFO] [stdout] 334 | let mut map: HashMap = HashMap::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/zeek/zeek_log.rs:418:21 [INFO] [stdout] | [INFO] [stdout] 418 | let mut count = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/zeek/zeek_log.rs:422:21 [INFO] [stdout] | [INFO] [stdout] 422 | for (ip,val) in arc_data.lock().unwrap().iter_mut() [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:433:25 [INFO] [stdout] | [INFO] [stdout] 433 | let mut arc_ip2locresponse = Arc::new(Mutex::new(IP2LocationResponse::new())); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zeek/zeek_log.rs:418:17 [INFO] [stdout] | [INFO] [stdout] 418 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/zeek/zeek_search_params.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | _ => return 8 // value should not be greater than 7. [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/zeek/zeek_search_params.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 46 | (None, None, None) => return 0, [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 47 | (None, None, Some(_end)) => return 1, [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 48 | (None, Some(_log), None) => return 2, [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 49 | (None, Some(_log), Some(_end)) => return 3, [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 54 | _ => return 8 // value should not be greater than 7. [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | (Some(src_ip), None, None) => return 4, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | (Some(src_ip), None, Some(_end)) => return 5, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | (Some(src_ip), Some(_log), None) => return 6, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/zeek/zeek_search_params.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | (Some(src_ip), Some(_log), Some(_end)) => return 7, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_date_format` is never used [INFO] [stdout] --> src/zeek/zeek_search_params.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl<'a> ZeekSearchParams<'a> [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | fn check_date_format(p: &'a Path) -> bool [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/zeek/zeek_log.rs:455:17 [INFO] [stdout] | [INFO] [stdout] 455 | handle.join(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [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] 455 | let _ = handle.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.91s [INFO] running `Command { std: "docker" "inspect" "29a843c1d6f3ffb92cdffc4e7a2a8a63b3a15299eaaf06c4b6f755c2854b2298", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29a843c1d6f3ffb92cdffc4e7a2a8a63b3a15299eaaf06c4b6f755c2854b2298", kill_on_drop: false }` [INFO] [stdout] 29a843c1d6f3ffb92cdffc4e7a2a8a63b3a15299eaaf06c4b6f755c2854b2298