[INFO] fetching crate ngxav 0.6.3... [INFO] checking ngxav-0.6.3 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate ngxav 0.6.3 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate ngxav 0.6.3 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ngxav 0.6.3 [INFO] finished tweaking crates.io crate ngxav 0.6.3 [INFO] tweaked toml for crates.io crate ngxav 0.6.3 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate crates.io crate ngxav 0.6.3 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded woothee v0.13.0 [INFO] [stderr] Downloaded isbot v0.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 347dba2a0a24bc1f50962b9778b2bdd33ca1cca171794b24a9a278532c4f0c14 [INFO] running `Command { std: "docker" "start" "-a" "347dba2a0a24bc1f50962b9778b2bdd33ca1cca171794b24a9a278532c4f0c14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "347dba2a0a24bc1f50962b9778b2bdd33ca1cca171794b24a9a278532c4f0c14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "347dba2a0a24bc1f50962b9778b2bdd33ca1cca171794b24a9a278532c4f0c14", kill_on_drop: false }` [INFO] [stdout] 347dba2a0a24bc1f50962b9778b2bdd33ca1cca171794b24a9a278532c4f0c14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57c376328127bce1cabb408f439c404a0f7ef6e7691cbe588aadcf01a14d8c3f [INFO] running `Command { std: "docker" "start" "-a" "57c376328127bce1cabb408f439c404a0f7ef6e7691cbe588aadcf01a14d8c3f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle v1.0.5 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Compiling woothee v0.13.0 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking shlex v1.3.0 [INFO] [stderr] Checking rayon v1.8.1 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking anstream v0.6.11 [INFO] [stderr] Checking clap_builder v4.4.18 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking chrono v0.4.33 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking fancy-regex v0.13.0 [INFO] [stderr] Checking clap v4.4.18 [INFO] [stderr] Checking isbot v0.1.3 [INFO] [stderr] Checking ngxav v0.6.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `atty::Stream` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use atty::Stream; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::read_folder::read_folder` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use utils::read_folder::read_folder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::structs::UserAgentParseResult` [INFO] [stdout] --> src/utils/keep_line.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::structs::UserAgentParseResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parse_line` [INFO] [stdout] --> src/utils/session_analytics.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::utils::{parse_line, parse_nginx_time_format, sessionize::sessionize}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> src/utils/unique_ips_only.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | if (!args.unique.is_none() && args.unique == Some(true)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 107 - if (!args.unique.is_none() && args.unique == Some(true)) { [INFO] [stdout] 107 + if !args.unique.is_none() && args.unique == Some(true) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `atty::Stream` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use atty::Stream; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::read_folder::read_folder` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use utils::read_folder::read_folder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::structs::UserAgentParseResult` [INFO] [stdout] --> src/utils/keep_line.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::structs::UserAgentParseResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parse_line` [INFO] [stdout] --> src/utils/session_analytics.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::utils::{parse_line, parse_nginx_time_format, sessionize::sessionize}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> src/utils/unique_ips_only.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | if (!args.unique.is_none() && args.unique == Some(true)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 107 - if (!args.unique.is_none() && args.unique == Some(true)) { [INFO] [stdout] 107 + if !args.unique.is_none() && args.unique == Some(true) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/parse_line.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut fields = line.split(" ").collect::>(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/parse_line.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut fields = line.split(" ").collect::>(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `key` is never read [INFO] [stdout] --> src/utils/sessionize.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | let mut key: String = "".to_string(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `key` is never read [INFO] [stdout] --> src/utils/sessionize.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | let mut key: String = "".to_string(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/sort_by_body_size.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut parsed_lines = log_selection.clone(); [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/utils/sort_by_body_size.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut parsed_lines = log_selection.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/utils/unique_ips_only.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let mut u: String = "".to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/unique_ips_only.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut u: String = "".to_string(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/utils/unique_ips_only.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let mut u: String = "".to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/unique_ips_only.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut u: String = "".to_string(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnalyticsResult` is never constructed [INFO] [stdout] --> src/./structs/AnalyticsResult.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct AnalyticsResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnalyticsResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TopResult` is never constructed [INFO] [stdout] --> src/./structs/AnalyticsResult.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TopResult<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `request_time` is never read [INFO] [stdout] --> src/./structs/LineParseResult.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct LineParseResult<'a> { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub request_time: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LineParseResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineParseResult` is never constructed [INFO] [stdout] --> src/utils/../structs/LineParseResult.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct LineParseResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LineParseResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserAgentParseResult` is never constructed [INFO] [stdout] --> src/utils/../structs/UserAgentParseResult.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct UserAgentParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnalyticsResult` is never constructed [INFO] [stdout] --> src/utils/../structs/AnalyticsResult.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct AnalyticsResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnalyticsResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TopResult` is never constructed [INFO] [stdout] --> src/utils/../structs/AnalyticsResult.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TopResult<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_folder` is never used [INFO] [stdout] --> src/utils/read_folder.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn read_folder(file_path: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `average_request_count` and `average_request_length` are never read [INFO] [stdout] --> src/utils/session_analytics.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct SessionAnalysisStats { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | average_request_count: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | average_request_length: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnalyticsResult` is never constructed [INFO] [stdout] --> src/./structs/AnalyticsResult.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct AnalyticsResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnalyticsResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TopResult` is never constructed [INFO] [stdout] --> src/./structs/AnalyticsResult.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TopResult<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `request_time` is never read [INFO] [stdout] --> src/./structs/LineParseResult.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct LineParseResult<'a> { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub request_time: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LineParseResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineParseResult` is never constructed [INFO] [stdout] --> src/utils/../structs/LineParseResult.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct LineParseResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LineParseResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserAgentParseResult` is never constructed [INFO] [stdout] --> src/utils/../structs/UserAgentParseResult.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct UserAgentParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnalyticsResult` is never constructed [INFO] [stdout] --> src/utils/../structs/AnalyticsResult.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct AnalyticsResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnalyticsResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TopResult` is never constructed [INFO] [stdout] --> src/utils/../structs/AnalyticsResult.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TopResult<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_folder` is never used [INFO] [stdout] --> src/utils/read_folder.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn read_folder(file_path: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | stdout.write_all(line.full_text.as_bytes()); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 123 | let _ = stdout.write_all(line.full_text.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `average_request_count` and `average_request_length` are never read [INFO] [stdout] --> src/utils/session_analytics.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct SessionAnalysisStats { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | average_request_count: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | average_request_length: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | stdout.write_all(b"\n\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 124 | let _ = stdout.write_all(b"\n\n"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `AnalyticsResult` should have a snake case name [INFO] [stdout] --> src/./structs/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod AnalyticsResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `analytics_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Args` should have a snake case name [INFO] [stdout] --> src/./structs/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod Args; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `LineParseResult` should have a snake case name [INFO] [stdout] --> src/./structs/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod LineParseResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `line_parse_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `UserAgentParseResult` should have a snake case name [INFO] [stdout] --> src/./structs/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod UserAgentParseResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_agent_parse_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `isBot` should have a snake case name [INFO] [stdout] --> src/./structs/UserAgentParseResult.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub isBot: bool, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `is_bot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/generate_analytics.rs:16:42 [INFO] [stdout] | [INFO] [stdout] 16 | let request = parsed_line.request.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/generate_analytics.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | let host = parsed_line.host.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/generate_analytics.rs:18:40 [INFO] [stdout] | [INFO] [stdout] 18 | let ip = parsed_line.ip_address.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/generate_analytics.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | text: ip.clone(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `AnalyticsResult` should have a snake case name [INFO] [stdout] --> src/utils/../structs/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod AnalyticsResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `analytics_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Args` should have a snake case name [INFO] [stdout] --> src/utils/../structs/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod Args; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `LineParseResult` should have a snake case name [INFO] [stdout] --> src/utils/../structs/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod LineParseResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `line_parse_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `UserAgentParseResult` should have a snake case name [INFO] [stdout] --> src/utils/../structs/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod UserAgentParseResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_agent_parse_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `isBot` should have a snake case name [INFO] [stdout] --> src/utils/../structs/UserAgentParseResult.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub isBot: bool, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `is_bot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `parser` should have an upper case name [INFO] [stdout] --> src/utils/parse_user_agent.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | static ref parser: woothee::parser::Parser = Parser::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `PARSER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `bots` should have an upper case name [INFO] [stdout] --> src/utils/parse_user_agent.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | static ref bots: Bots = Bots::default(); [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `BOTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isUnique` should have a snake case name [INFO] [stdout] --> src/utils/read_folder_conserve_memory.rs:11:55 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn read_folder_conserve_memory(file_path: String, isUnique: Option) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_unique` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `StringVecToKey` should have a snake case name [INFO] [stdout] --> src/utils/session_analytics.rs:137:4 [INFO] [stdout] | [INFO] [stdout] 137 | fn StringVecToKey(sv: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `string_vec_to_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `StringVecToKey` should have a snake case name [INFO] [stdout] --> src/utils/sessions_from_ip.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn StringVecToKey(sv: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `string_vec_to_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | stdout.write_all(line.full_text.as_bytes()); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 123 | let _ = stdout.write_all(line.full_text.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | stdout.write_all(b"\n\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 124 | let _ = stdout.write_all(b"\n\n"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `AnalyticsResult` should have a snake case name [INFO] [stdout] --> src/./structs/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod AnalyticsResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `analytics_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Args` should have a snake case name [INFO] [stdout] --> src/./structs/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod Args; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `LineParseResult` should have a snake case name [INFO] [stdout] --> src/./structs/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod LineParseResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `line_parse_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `UserAgentParseResult` should have a snake case name [INFO] [stdout] --> src/./structs/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod UserAgentParseResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_agent_parse_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `isBot` should have a snake case name [INFO] [stdout] --> src/./structs/UserAgentParseResult.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub isBot: bool, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `is_bot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/generate_analytics.rs:16:42 [INFO] [stdout] | [INFO] [stdout] 16 | let request = parsed_line.request.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/generate_analytics.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | let host = parsed_line.host.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/generate_analytics.rs:18:40 [INFO] [stdout] | [INFO] [stdout] 18 | let ip = parsed_line.ip_address.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/generate_analytics.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | text: ip.clone(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `AnalyticsResult` should have a snake case name [INFO] [stdout] --> src/utils/../structs/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod AnalyticsResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `analytics_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Args` should have a snake case name [INFO] [stdout] --> src/utils/../structs/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod Args; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `LineParseResult` should have a snake case name [INFO] [stdout] --> src/utils/../structs/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod LineParseResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `line_parse_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `UserAgentParseResult` should have a snake case name [INFO] [stdout] --> src/utils/../structs/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod UserAgentParseResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_agent_parse_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `isBot` should have a snake case name [INFO] [stdout] --> src/utils/../structs/UserAgentParseResult.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub isBot: bool, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `is_bot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `parser` should have an upper case name [INFO] [stdout] --> src/utils/parse_user_agent.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | static ref parser: woothee::parser::Parser = Parser::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `PARSER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `bots` should have an upper case name [INFO] [stdout] --> src/utils/parse_user_agent.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | static ref bots: Bots = Bots::default(); [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `BOTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isUnique` should have a snake case name [INFO] [stdout] --> src/utils/read_folder_conserve_memory.rs:11:55 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn read_folder_conserve_memory(file_path: String, isUnique: Option) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_unique` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `StringVecToKey` should have a snake case name [INFO] [stdout] --> src/utils/session_analytics.rs:137:4 [INFO] [stdout] | [INFO] [stdout] 137 | fn StringVecToKey(sv: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `string_vec_to_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `StringVecToKey` should have a snake case name [INFO] [stdout] --> src/utils/sessions_from_ip.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn StringVecToKey(sv: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `string_vec_to_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.67s [INFO] running `Command { std: "docker" "inspect" "57c376328127bce1cabb408f439c404a0f7ef6e7691cbe588aadcf01a14d8c3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57c376328127bce1cabb408f439c404a0f7ef6e7691cbe588aadcf01a14d8c3f", kill_on_drop: false }` [INFO] [stdout] 57c376328127bce1cabb408f439c404a0f7ef6e7691cbe588aadcf01a14d8c3f