[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] checking endepointe/log-analysis against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fendepointe%2Flog-analysis" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/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-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/endepointe/log-analysis on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 238 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 93b24951a0af7403ff14e547cf771645a466cacdfd92d040df5a92b3c5e72b78 [INFO] running `Command { std: "docker" "start" "-a" "93b24951a0af7403ff14e547cf771645a466cacdfd92d040df5a92b3c5e72b78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93b24951a0af7403ff14e547cf771645a466cacdfd92d040df5a92b3c5e72b78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93b24951a0af7403ff14e547cf771645a466cacdfd92d040df5a92b3c5e72b78", kill_on_drop: false }` [INFO] [stdout] 93b24951a0af7403ff14e547cf771645a466cacdfd92d040df5a92b3c5e72b78 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a544047f6b816cd20a2f055bfc1d2e85a2962cfc6989e667bebdc1ae519c4bde [INFO] running `Command { std: "docker" "start" "-a" "a544047f6b816cd20a2f055bfc1d2e85a2962cfc6989e667bebdc1ae519c4bde", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling find-msvc-tools v0.1.4 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking mio v1.1.0 [INFO] [stderr] Compiling cc v1.2.45 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Checking litemap v0.8.1 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking writeable v0.6.2 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling icu_properties_data v2.1.1 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Compiling owo-colors v4.2.3 [INFO] [stderr] Checking adler2 v2.0.1 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking lock_api v0.4.14 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Compiling instability v0.3.9 [INFO] [stderr] Checking gimli v0.32.3 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling color-spantrace v0.3.0 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking allocator-api2 v0.2.21 [INFO] [stderr] Checking tracing-error v0.2.1 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking signal-hook-mio v0.2.5 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking castaway v0.2.4 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking tokio-util v0.7.17 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking addr2line v0.25.1 [INFO] [stderr] Compiling indoc v2.0.7 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking iri-string v0.7.9 [INFO] [stderr] Checking rustc-demangle v0.1.26 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking indenter v0.3.4 [INFO] [stderr] Checking compact_str v0.8.1 [INFO] [stderr] Checking unicode-truncate v1.1.0 [INFO] [stderr] Checking rustls-pki-types v1.13.0 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking crossterm v0.28.1 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Checking flate2 v1.1.5 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [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] Checking zerofrom v0.1.6 [INFO] [stderr] Checking hyper v1.8.0 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Checking backtrace v0.3.76 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking color-eyre v0.6.5 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking ratatui v0.28.1 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Checking derive_builder v0.20.2 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking reqwest v0.12.24 [INFO] [stderr] Checking 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: `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: 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 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: variable `proto_type_set` is assigned to, but never used [INFO] [stdout] --> src/zeek/zeek_log.rs:89:13 [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:13 [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:13 [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:13 [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: 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: `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: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: unused variable: `count` [INFO] [stdout] --> src/zeek/zeek_log.rs:418:17 [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: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: variable `proto_type_set` is assigned to, but never used [INFO] [stdout] --> src/zeek/zeek_log.rs:89:13 [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:13 [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:13 [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:13 [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: 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: 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: `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: 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: 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: unused variable: `count` [INFO] [stdout] --> src/zeek/zeek_log.rs:418:17 [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: 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: 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: 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 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 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: 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: 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: `ip_input` [INFO] [stdout] --> src/main.rs:131:9 [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:45 [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: 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] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:809:16 [INFO] [stdout] | [INFO] [stdout] 809 | return input.parse().ok(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `log-analysis` (bin "log-analysis" test) due to 1 previous error; 26 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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: 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: `ip_input` [INFO] [stdout] --> src/main.rs:131:9 [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:45 [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: 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] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:809:16 [INFO] [stdout] | [INFO] [stdout] 809 | return input.parse().ok(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `log-analysis` (bin "log-analysis") due to 1 previous error; 26 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a544047f6b816cd20a2f055bfc1d2e85a2962cfc6989e667bebdc1ae519c4bde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a544047f6b816cd20a2f055bfc1d2e85a2962cfc6989e667bebdc1ae519c4bde", kill_on_drop: false }` [INFO] [stdout] a544047f6b816cd20a2f055bfc1d2e85a2962cfc6989e667bebdc1ae519c4bde