[INFO] cloning repository https://github.com/Nanbert/try_webserver_in_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nanbert/try_webserver_in_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNanbert%2Ftry_webserver_in_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNanbert%2Ftry_webserver_in_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5b4f89782b41aa4dfaa36fbc199ba2a6c690947d [INFO] checking Nanbert/try_webserver_in_rust against try#cac44d9528e3bbbdaa1537d187bd489ccc5de18c for pr-91141 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNanbert%2Ftry_webserver_in_rust" "/workspace/builds/worker-18/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-18/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nanbert/try_webserver_in_rust on toolchain cac44d9528e3bbbdaa1537d187bd489ccc5de18c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Nanbert/try_webserver_in_rust [INFO] finished tweaking git repo https://github.com/Nanbert/try_webserver_in_rust [INFO] tweaked toml for git repo https://github.com/Nanbert/try_webserver_in_rust written to /workspace/builds/worker-18/source/Cargo.toml [INFO] crate git repo https://github.com/Nanbert/try_webserver_in_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded frunk_proc_macros_impl v0.1.0 [INFO] [stderr] Downloaded subprocess v0.2.8 [INFO] [stderr] Downloaded rust_decimal v1.17.0 [INFO] [stderr] Downloaded frunk_proc_macros v0.1.0 [INFO] [stderr] Downloaded mysql_common v0.27.5 [INFO] [stderr] Downloaded frunk_core v0.4.0 [INFO] [stderr] Downloaded derive_utils v0.11.2 [INFO] [stderr] Downloaded bigdecimal v0.2.2 [INFO] [stderr] Downloaded funty v1.2.0 [INFO] [stderr] Downloaded frunk v0.4.0 [INFO] [stderr] Downloaded bitvec v0.22.3 [INFO] [stderr] Downloaded openssl-sys v0.9.68 [INFO] [stderr] Downloaded bindgen v0.58.1 [INFO] [stderr] Downloaded openssl v0.10.37 [INFO] [stderr] Downloaded mysql v21.0.2 [INFO] [stderr] Downloaded saturating v0.1.0 [INFO] [stderr] Downloaded wyz v0.4.0 [INFO] [stderr] Downloaded io-enum v1.0.1 [INFO] [stderr] Downloaded frunk_derives v0.4.0 [INFO] [stderr] Downloaded frunk_proc_macro_helpers v0.1.0 [INFO] [stderr] Downloaded lexical v5.2.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9c34a08d94dc4e5f40b5f25e79495ca0f08c30f60a80691f3979a49cc399a294 [INFO] running `Command { std: "docker" "start" "-a" "9c34a08d94dc4e5f40b5f25e79495ca0f08c30f60a80691f3979a49cc399a294", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9c34a08d94dc4e5f40b5f25e79495ca0f08c30f60a80691f3979a49cc399a294", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c34a08d94dc4e5f40b5f25e79495ca0f08c30f60a80691f3979a49cc399a294", kill_on_drop: false }` [INFO] [stdout] 9c34a08d94dc4e5f40b5f25e79495ca0f08c30f60a80691f3979a49cc399a294 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ae2ceb445341251ca3d2723eac4b4b5270427adf0400fca242bf9276b91c8455 [INFO] running `Command { std: "docker" "start" "-a" "ae2ceb445341251ca3d2723eac4b4b5270427adf0400fca242bf9276b91c8455", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.104 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling cc v1.0.71 [INFO] [stderr] Compiling pkg-config v0.3.22 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling frunk_core v0.4.0 [INFO] [stderr] Compiling bitflags v0.9.1 [INFO] [stderr] Compiling ansi_term v0.9.0 [INFO] [stderr] Compiling strsim v0.6.0 [INFO] [stderr] Compiling bindgen v0.58.1 [INFO] [stderr] Compiling shlex v1.1.0 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Compiling openssl v0.10.37 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Checking funty v1.2.0 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Checking saturating v0.1.0 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Compiling mysql v21.0.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking bufstream v0.1.4 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling libloading v0.7.1 [INFO] [stderr] Compiling textwrap v0.9.0 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Checking tinyvec v1.5.0 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking memchr v2.4.1 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Compiling cmake v0.1.46 [INFO] [stderr] Checking wyz v0.4.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-bigint v0.4.2 [INFO] [stderr] Compiling io-enum v1.0.1 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.68 [INFO] [stderr] Compiling libz-sys v1.1.3 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking bitvec v0.22.3 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling clang-sys v1.2.2 [INFO] [stderr] Compiling subprocess v0.2.8 [INFO] [stderr] Compiling clap v2.27.1 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking flate2 v1.0.22 [INFO] [stderr] Checking nix v0.23.0 [INFO] [stderr] Checking socket2 v0.4.2 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking lexical v5.2.2 [INFO] [stderr] Checking sha2 v0.9.8 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking lru v0.6.6 [INFO] [stderr] Checking pem v0.8.3 [INFO] [stderr] Checking rust_decimal v1.17.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking twox-hash v1.6.1 [INFO] [stderr] Checking bigdecimal v0.2.2 [INFO] [stderr] Compiling frunk_proc_macro_helpers v0.1.0 [INFO] [stderr] Compiling derive_utils v0.11.2 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling frunk_proc_macros_impl v0.1.0 [INFO] [stderr] Compiling frunk_derives v0.4.0 [INFO] [stderr] Checking frunk_proc_macros v0.1.0 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking frunk v0.4.0 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Compiling mysql_common v0.27.5 [INFO] [stderr] Checking web_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `MutexGuard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::{Condvar,Mutex,Arc,MutexGuard}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::webserver::log` [INFO] [stdout] --> src/webserver/http_conn.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::webserver::log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `http_conn` should have an upper camel case name [INFO] [stdout] --> src/webserver/http_conn.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct http_conn{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `HttpConn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `useerRecord` should have an upper camel case name [INFO] [stdout] --> src/webserver/http_conn.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct useerRecord{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `UseerRecord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MutexGuard` [INFO] [stdout] --> src/webserver/thread_pool.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::{Condvar,Mutex,Arc,MutexGuard}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `func` should have an upper camel case name [INFO] [stdout] --> src/webserver/thread_pool.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type func = Box; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/webserver/thread_pool.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | type func = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() + Send + Sync` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `thread_pool` should have an upper camel case name [INFO] [stdout] --> src/webserver/thread_pool.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct thread_pool{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ThreadPool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/webserver/thread_pool.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | for i in (0 .. threadCount){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 16 - for i in (0 .. threadCount){ [INFO] [stdout] 16 + for i in 0 .. threadCount { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/webserver/thread_pool.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | while true{ [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/webserver/thread_pool.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | if(!taskQueue.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - if(!taskQueue.is_empty()){ [INFO] [stdout] 23 + if !taskQueue.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/webserver.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/webserver.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/webserver.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex` [INFO] [stdout] --> src/webserver.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc,Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MutexGuard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::{Condvar,Mutex,Arc,MutexGuard}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::webserver::log` [INFO] [stdout] --> src/webserver/http_conn.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::webserver::log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `http_conn` should have an upper camel case name [INFO] [stdout] --> src/webserver/http_conn.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct http_conn{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `HttpConn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `useerRecord` should have an upper camel case name [INFO] [stdout] --> src/webserver/http_conn.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct useerRecord{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `UseerRecord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MutexGuard` [INFO] [stdout] --> src/webserver/thread_pool.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::{Condvar,Mutex,Arc,MutexGuard}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `func` should have an upper camel case name [INFO] [stdout] --> src/webserver/thread_pool.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type func = Box; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/webserver/thread_pool.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | type func = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() + Send + Sync` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `thread_pool` should have an upper camel case name [INFO] [stdout] --> src/webserver/thread_pool.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct thread_pool{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ThreadPool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/webserver/thread_pool.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | for i in (0 .. threadCount){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 16 - for i in (0 .. threadCount){ [INFO] [stdout] 16 + for i in 0 .. threadCount { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/webserver/thread_pool.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | while true{ [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/webserver/thread_pool.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | if(!taskQueue.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - if(!taskQueue.is_empty()){ [INFO] [stdout] 23 + if !taskQueue.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/webserver.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/webserver.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/webserver.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex` [INFO] [stdout] --> src/webserver.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc,Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mysql::prelude` [INFO] [stdout] --> src/webserver.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use mysql::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mysql::prelude` [INFO] [stdout] --> src/webserver.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use mysql::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `taskQueue` [INFO] [stdout] --> src/webserver/thread_pool.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | let taskQueue=tasks.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_taskQueue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/webserver/thread_pool.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | for i in (0 .. threadCount){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/webserver/thread_pool.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let handle = thread::spawn(move||{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/thread_pool.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let guard=self.tasks.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `taskQueue` [INFO] [stdout] --> src/webserver/thread_pool.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | let taskQueue=tasks.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_taskQueue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/webserver/thread_pool.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | for i in (0 .. threadCount){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/webserver/thread_pool.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let handle = thread::spawn(move||{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/thread_pool.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let guard=self.tasks.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let guard=self.mtx_.lock().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `empty` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn empty(&self)->bool{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn clear(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `front` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn front(&mut self)->Option<&String>{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `back` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn back(&mut self)->Option<&String>{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn size(&self)->usize{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `flush` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn flush(&self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `capacity` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn capacity(&self)->usize{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_front` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn push_front(&mut self,item:&str){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `m_close_log` [INFO] [stdout] --> src/webserver/log.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | m_close_log: u32,//关闭日志 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `AddTask` [INFO] [stdout] --> src/webserver/thread_pool.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn AddTask(&mut self,f:func){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `m_port` [INFO] [stdout] --> src/webserver.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | m_port:u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `m_passWord` [INFO] [stdout] --> src/webserver.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | m_passWord:String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `m_passWord` should have a snake case name [INFO] [stdout] --> src/webserver.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | m_passWord:String, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `m_pass_word` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `m_dataBaseName` should have a snake case name [INFO] [stdout] --> src/webserver.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | m_dataBaseName:String, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `m_data_base_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `m_connPool` should have a snake case name [INFO] [stdout] --> src/webserver.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | m_connPool:Option, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `m_conn_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `logObj` should have a snake case name [INFO] [stdout] --> src/webserver.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | logObj:Option, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `log_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `m_CONNTrigmode` should have a snake case name [INFO] [stdout] --> src/webserver.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | m_CONNTrigmode:u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `m_conntrigmode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `m_LISTENTrigmode` should have a snake case name [INFO] [stdout] --> src/webserver.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | m_LISTENTrigmode:u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `m_listentrigmode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `m_TRIGMode` should have a snake case name [INFO] [stdout] --> src/webserver.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | m_TRIGMode:u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `m_trigmode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `empty` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn empty(&self)->bool{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn clear(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `front` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn front(&mut self)->Option<&String>{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `back` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn back(&mut self)->Option<&String>{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn size(&self)->usize{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `flush` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn flush(&self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `capacity` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn capacity(&self)->usize{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_front` [INFO] [stdout] --> src/webserver/log/blockqueue.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn push_front(&mut self,item:&str){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `m_close_log` [INFO] [stdout] --> src/webserver/log.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | m_close_log: u32,//关闭日志 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `AddTask` [INFO] [stdout] --> src/webserver/thread_pool.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn AddTask(&mut self,f:func){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `m_port` [INFO] [stdout] --> src/webserver.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | m_port:u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `m_passWord` [INFO] [stdout] --> src/webserver.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | m_passWord:String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `m_passWord` should have a snake case name [INFO] [stdout] --> src/webserver.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | m_passWord:String, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `m_pass_word` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `m_dataBaseName` should have a snake case name [INFO] [stdout] --> src/webserver.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | m_dataBaseName:String, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `m_data_base_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `m_connPool` should have a snake case name [INFO] [stdout] --> src/webserver.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | m_connPool:Option, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `m_conn_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `logObj` should have a snake case name [INFO] [stdout] --> src/webserver.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | logObj:Option, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `log_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `m_CONNTrigmode` should have a snake case name [INFO] [stdout] --> src/webserver.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | m_CONNTrigmode:u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `m_conntrigmode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `m_LISTENTrigmode` should have a snake case name [INFO] [stdout] --> src/webserver.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | m_LISTENTrigmode:u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `m_listentrigmode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `m_TRIGMode` should have a snake case name [INFO] [stdout] --> src/webserver.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | m_TRIGMode:u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `m_trigmode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/webserver/log.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | (*fp).write(item.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `connPool` should have a snake case name [INFO] [stdout] --> src/webserver/http_conn.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn initmysql_result(&self,connPool:&Pool){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `conn_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `isClosed` should have a snake case name [INFO] [stdout] --> src/webserver/thread_pool.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | isClosed:bool, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_closed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `threadCount` should have a snake case name [INFO] [stdout] --> src/webserver/thread_pool.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(threadCount:usize)->thread_pool{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `thread_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isClosed` should have a snake case name [INFO] [stdout] --> src/webserver/thread_pool.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let isClosed=false; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_closed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `taskQueue` should have a snake case name [INFO] [stdout] --> src/webserver/thread_pool.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | let mut taskQueue=tasks.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `task_queue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `taskQueue` should have a snake case name [INFO] [stdout] --> src/webserver/thread_pool.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | let taskQueue=tasks.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `task_queue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/webserver/thread_pool.rs:33:25 [INFO] [stdout] | [INFO] [stdout] 33 | cond.wait(taskQueue); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/webserver/log.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | (*fp).write(item.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `AddTask` should have a snake case name [INFO] [stdout] --> src/webserver/thread_pool.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn AddTask(&mut self,f:func){ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_task` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `connPool` should have a snake case name [INFO] [stdout] --> src/webserver/http_conn.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn initmysql_result(&self,connPool:&Pool){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `conn_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `isClosed` should have a snake case name [INFO] [stdout] --> src/webserver/thread_pool.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | isClosed:bool, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_closed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `threadCount` should have a snake case name [INFO] [stdout] --> src/webserver/thread_pool.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(threadCount:usize)->thread_pool{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `thread_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isClosed` should have a snake case name [INFO] [stdout] --> src/webserver/thread_pool.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let isClosed=false; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_closed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `taskQueue` should have a snake case name [INFO] [stdout] --> src/webserver/thread_pool.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | let mut taskQueue=tasks.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `task_queue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `taskQueue` should have a snake case name [INFO] [stdout] --> src/webserver/thread_pool.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | let taskQueue=tasks.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `task_queue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/webserver/thread_pool.rs:33:25 [INFO] [stdout] | [INFO] [stdout] 33 | cond.wait(taskQueue); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `AddTask` should have a snake case name [INFO] [stdout] --> src/webserver/thread_pool.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn AddTask(&mut self,f:func){ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_task` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 10s [INFO] running `Command { std: "docker" "inspect" "ae2ceb445341251ca3d2723eac4b4b5270427adf0400fca242bf9276b91c8455", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae2ceb445341251ca3d2723eac4b4b5270427adf0400fca242bf9276b91c8455", kill_on_drop: false }` [INFO] [stdout] ae2ceb445341251ca3d2723eac4b4b5270427adf0400fca242bf9276b91c8455