[INFO] cloning repository https://github.com/QpxDesign/ngxav-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/QpxDesign/ngxav-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQpxDesign%2Fngxav-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQpxDesign%2Fngxav-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e72c698ec5d1778177fbbc7341da4814a3963bc6 [INFO] testing QpxDesign/ngxav-rs against master#160e7623e8cbbf1feab2b6e2a24733a98c7bde9c for pr-145628-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQpxDesign%2Fngxav-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/QpxDesign/ngxav-rs [INFO] finished tweaking git repo https://github.com/QpxDesign/ngxav-rs [INFO] tweaked toml for git repo https://github.com/QpxDesign/ngxav-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/QpxDesign/ngxav-rs on toolchain 160e7623e8cbbf1feab2b6e2a24733a98c7bde9c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/QpxDesign/ngxav-rs 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" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded winnow v0.6.1 [INFO] [stderr] Downloaded event-listener v5.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ea8283048aec7ea3188c8f2a75a7c5738427ab96a684ef6fc83b258698ad2d5 [INFO] running `Command { std: "docker" "start" "-a" "9ea8283048aec7ea3188c8f2a75a7c5738427ab96a684ef6fc83b258698ad2d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ea8283048aec7ea3188c8f2a75a7c5738427ab96a684ef6fc83b258698ad2d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ea8283048aec7ea3188c8f2a75a7c5738427ab96a684ef6fc83b258698ad2d5", kill_on_drop: false }` [INFO] [stdout] 9ea8283048aec7ea3188c8f2a75a7c5738427ab96a684ef6fc83b258698ad2d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a90680cf21ad4ea94084b159b833ba38432463ce971f00b9dbe948be027c181f [INFO] running `Command { std: "docker" "start" "-a" "a90680cf21ad4ea94084b159b833ba38432463ce971f00b9dbe948be027c181f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling anstyle-query v1.0.2 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling anstyle v1.0.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling anstyle-parse v0.2.3 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling clap_lex v0.6.0 [INFO] [stderr] Compiling woothee v0.13.0 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling anstream v0.6.11 [INFO] [stderr] Compiling miniz_oxide v0.7.2 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling clap_builder v4.4.18 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling flate2 v1.0.28 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling chrono v0.4.33 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rayon v1.8.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex-automata v0.4.5 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Compiling clap v4.4.18 [INFO] [stderr] Compiling regex v1.10.3 [INFO] [stderr] Compiling fancy-regex v0.13.0 [INFO] [stderr] Compiling isbot v0.1.3 [INFO] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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] [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] [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] [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] [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: 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(nonstandard_style)]`) 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/parse_line.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_line(line: &str) -> crate::structs::LineParseResult::LineParseResult { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_line(line: &str) -> crate::structs::LineParseResult::LineParseResult<'_> { [INFO] [stdout] | ++++ [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] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 9 - static ref parser: woothee::parser::Parser = Parser::new(); [INFO] [stdout] 9 + static ref PARSER: woothee::parser::Parser = Parser::new(); [INFO] [stdout] | [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] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 10 - static ref bots: Bots = Bots::default(); [INFO] [stdout] 10 + static ref BOTS: Bots = Bots::default(); [INFO] [stdout] | [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.44s [INFO] running `Command { std: "docker" "inspect" "a90680cf21ad4ea94084b159b833ba38432463ce971f00b9dbe948be027c181f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a90680cf21ad4ea94084b159b833ba38432463ce971f00b9dbe948be027c181f", kill_on_drop: false }` [INFO] [stdout] a90680cf21ad4ea94084b159b833ba38432463ce971f00b9dbe948be027c181f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ab4c9ef314421c6a277ddab2c53eaf5e86a778ea2a884ff0fc89224d17819bcf [INFO] running `Command { std: "docker" "start" "-a" "ab4c9ef314421c6a277ddab2c53eaf5e86a778ea2a884ff0fc89224d17819bcf", kill_on_drop: false }` [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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] [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] [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] [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] [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: 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(nonstandard_style)]`) 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] [stderr] Compiling ngxav v0.6.3 (/opt/rustwide/workdir) [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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/parse_line.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_line(line: &str) -> crate::structs::LineParseResult::LineParseResult { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_line(line: &str) -> crate::structs::LineParseResult::LineParseResult<'_> { [INFO] [stdout] | ++++ [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] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 9 - static ref parser: woothee::parser::Parser = Parser::new(); [INFO] [stdout] 9 + static ref PARSER: woothee::parser::Parser = Parser::new(); [INFO] [stdout] | [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] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 10 - static ref bots: Bots = Bots::default(); [INFO] [stdout] 10 + static ref BOTS: Bots = Bots::default(); [INFO] [stdout] | [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] error[E0463]: can't find crate for `tokio` [INFO] [stdout] --> tests/src/main.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | extern crate tokio; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `md5` [INFO] [stdout] --> tests/src/main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | extern crate md5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_process` [INFO] [stdout] --> tests/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `async_process` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_process`, use `cargo add async_process` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_derive` [INFO] [stdout] --> tests/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_derive::Deserialize; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_derive`, use `cargo add serde_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `colored` [INFO] [stdout] --> tests/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use colored::Colorize; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `colored` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `colored`, use `cargo add colored` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `toml` [INFO] [stdout] --> tests/src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use toml::from_str; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `toml` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `toml`, use `cargo add toml` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> tests/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `green` found for reference `&'static str` in the current scope [INFO] [stdout] --> tests/src/main.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | r = "Passed! ✓".green().bold() [INFO] [stdout] | ^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `red` found for reference `&'static str` in the current scope [INFO] [stdout] --> tests/src/main.rs:57:33 [INFO] [stdout] | [INFO] [stdout] 57 | r = "Failed! 𝕏".red().bold() [INFO] [stdout] | ^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> tests/src/main.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 69 | panic!("test failed"); [INFO] [stdout] | --------------------- any code following this expression is unreachable [INFO] [stdout] 70 | [INFO] [stdout] 71 | return; [INFO] [stdout] | ^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ngxav` (test "src") due to 8 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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] [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] [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] [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] [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: 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(nonstandard_style)]`) 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/parse_line.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_line(line: &str) -> crate::structs::LineParseResult::LineParseResult { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_line(line: &str) -> crate::structs::LineParseResult::LineParseResult<'_> { [INFO] [stdout] | ++++ [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] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 9 - static ref parser: woothee::parser::Parser = Parser::new(); [INFO] [stdout] 9 + static ref PARSER: woothee::parser::Parser = Parser::new(); [INFO] [stdout] | [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] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 10 - static ref bots: Bots = Bots::default(); [INFO] [stdout] 10 + static ref BOTS: Bots = Bots::default(); [INFO] [stdout] | [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] running `Command { std: "docker" "inspect" "ab4c9ef314421c6a277ddab2c53eaf5e86a778ea2a884ff0fc89224d17819bcf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab4c9ef314421c6a277ddab2c53eaf5e86a778ea2a884ff0fc89224d17819bcf", kill_on_drop: false }` [INFO] [stdout] ab4c9ef314421c6a277ddab2c53eaf5e86a778ea2a884ff0fc89224d17819bcf