[INFO] fetching crate swsv2 0.1.0... [INFO] checking swsv2-0.1.0 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate swsv2 0.1.0 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate swsv2 0.1.0 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate swsv2 0.1.0 [INFO] finished tweaking crates.io crate swsv2 0.1.0 [INFO] tweaked toml for crates.io crate swsv2 0.1.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 15 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a36146f317fafa3a7e272e359c9aecfa523b8c13bc07694b66e3e7f22958ee11 [INFO] running `Command { std: "docker" "start" "-a" "a36146f317fafa3a7e272e359c9aecfa523b8c13bc07694b66e3e7f22958ee11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a36146f317fafa3a7e272e359c9aecfa523b8c13bc07694b66e3e7f22958ee11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a36146f317fafa3a7e272e359c9aecfa523b8c13bc07694b66e3e7f22958ee11", kill_on_drop: false }` [INFO] [stdout] a36146f317fafa3a7e272e359c9aecfa523b8c13bc07694b66e3e7f22958ee11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52f439715bcd61e65c4d367586a2fbe7c3f8d424c7ed76b809b76fde5d003f58 [INFO] running `Command { std: "docker" "start" "-a" "52f439715bcd61e65c4d367586a2fbe7c3f8d424c7ed76b809b76fde5d003f58", kill_on_drop: false }` [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking serde v1.0.209 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking serde_json v1.0.127 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking swsv2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/middlewares/routing.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{any::{self, Any}, collections::HashMap, net::TcpStream, sync::{Arc, Mutex}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/middlewares/routing.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{any::{self, Any}, collections::HashMap, net::TcpStream, sync::{Arc, Mutex}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `init::*` [INFO] [stdout] --> src/middlewares/routing.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use super::{controller::*, init::*}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/middlewares/controller.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{any::{self, Any}, net::TcpStream, sync::{Arc, Mutex}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `init::*` [INFO] [stdout] --> src/middlewares/routing.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use super::{controller::*, init::*}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::init::Initializer` [INFO] [stdout] --> src/middlewares/controller.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::init::Initializer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/middlewares/controller.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{any::{self, Any}, net::TcpStream, sync::{Arc, Mutex}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `boxedAnyType` should have an upper camel case name [INFO] [stdout] --> src/middlewares/controller.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type boxedAnyType = Box; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BoxedAnyType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::init::Initializer` [INFO] [stdout] --> src/middlewares/controller.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::init::Initializer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `boxedAnyType` should have an upper camel case name [INFO] [stdout] --> src/middlewares/controller.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type boxedAnyType = Box; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BoxedAnyType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow`, `Error`, `Write`, `cell::RefCell`, and `rc::Rc` [INFO] [stdout] --> src/network_adaptor/transport.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::{Borrow, BorrowMut}, cell::RefCell, io::{Error, Write}, net::{TcpListener, TcpStream}, rc::Rc, sync::{Arc, Mutex}}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^ ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ControllerResult` and `self` [INFO] [stdout] --> src/network_adaptor/transport.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{middlewares::controller::{self, ControllerResult}, parser::http::parse, pool::thread::ThreadPool}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow`, `Error`, `Write`, `cell::RefCell`, and `rc::Rc` [INFO] [stdout] --> src/network_adaptor/transport.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::{Borrow, BorrowMut}, cell::RefCell, io::{Error, Write}, net::{TcpListener, TcpStream}, rc::Rc, sync::{Arc, Mutex}}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^ ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `handle_request` should have an upper camel case name [INFO] [stdout] --> src/network_adaptor/transport.rs:105:6 [INFO] [stdout] | [INFO] [stdout] 105 | type handle_request = fn(TcpStream ); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HandleRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ControllerResult` and `self` [INFO] [stdout] --> src/network_adaptor/transport.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{middlewares::controller::{self, ControllerResult}, parser::http::parse, pool::thread::ThreadPool}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net::TcpStream` [INFO] [stdout] --> src/pool/thread.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{net::TcpStream, sync::{mpsc, Arc, Mutex}, thread::{self, JoinHandle}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `handle_request` should have an upper camel case name [INFO] [stdout] --> src/network_adaptor/transport.rs:105:6 [INFO] [stdout] | [INFO] [stdout] 105 | type handle_request = fn(TcpStream ); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HandleRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `json_value` should have an upper camel case name [INFO] [stdout] --> src/serializer_deserializer/lib.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum json_value { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `JsonValue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net::TcpStream` [INFO] [stdout] --> src/pool/thread.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{net::TcpStream, sync::{mpsc, Arc, Mutex}, thread::{self, JoinHandle}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/types/custom.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/pool/pool_test.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, and `mpsc` [INFO] [stdout] --> src/pool/pool_test.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{mpsc, Arc, Mutex}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Thread` and `self` [INFO] [stdout] --> src/pool/pool_test.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use std::thread::{self, Thread}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `self` [INFO] [stdout] --> src/pool/pool_test.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::{self, Duration}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::middlewares::controller::*` [INFO] [stdout] --> src/pool/pool_test.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::middlewares::controller::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::middlewares::init::Initializer` [INFO] [stdout] --> src/pool/pool_test.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::middlewares::init::Initializer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::middlewares::routing::*` [INFO] [stdout] --> src/pool/pool_test.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::middlewares::routing::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pool::thread::ThreadPool` [INFO] [stdout] --> src/pool/pool_test.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::pool::thread::ThreadPool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `json_value` should have an upper camel case name [INFO] [stdout] --> src/serializer_deserializer/lib.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum json_value { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `JsonValue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/serializer_deserializer/test.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::serializer_deserializer::lib::*` [INFO] [stdout] --> src/serializer_deserializer/test.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | use crate::serializer_deserializer::lib::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::thread::ThreadPool` [INFO] [stdout] --> src/serializer_deserializer/test.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | use self::thread::ThreadPool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/serializer_deserializer/test.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread::sleep` and `time::Duration` [INFO] [stdout] --> src/serializer_deserializer/test.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | use std::{thread::sleep, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/types/custom.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/network_adaptor/transport.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/network_adaptor/transport.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network_adaptor/transport.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | if let Ok(mut s) = stream { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream_clone` [INFO] [stdout] --> src/network_adaptor/transport.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let stream_clone = Arc::clone(&stream); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream_clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network_adaptor/transport.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | if let Ok(mut s) = stream { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream_clone` [INFO] [stdout] --> src/network_adaptor/transport.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let stream_clone = Arc::clone(&stream); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream_clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/network_adaptor/transport.rs:107:22 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn handle_stream(stream : TcpStream) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/network_adaptor/transport.rs:107:22 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn handle_stream(stream : TcpStream) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/http.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut header_str = format!("\r\n{}:{}", k.to_string(), v.to_string()); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/http.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut header_str = format!("\r\n{}:{}", k.to_string(), v.to_string()); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `handle_request` is never used [INFO] [stdout] --> src/network_adaptor/transport.rs:105:6 [INFO] [stdout] | [INFO] [stdout] 105 | type handle_request = fn(TcpStream ); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `thread` are never read [INFO] [stdout] --> src/pool/thread.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Worker { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | id : usize, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | thread : JoinHandle<()>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `workers` is never read [INFO] [stdout] --> src/pool/thread.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct ThreadPool { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 23 | workers : Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `doSomething` should have a snake case name [INFO] [stdout] --> src/http/server.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn doSomething(&self) -> String{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `do_something` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tcpStream` should have a snake case name [INFO] [stdout] --> src/network_adaptor/transport.rs:77:50 [INFO] [stdout] | [INFO] [stdout] 77 | self.pool.lock().unwrap().execute( move |tcpStream| { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `tcp_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `StatusCode` should have a snake case name [INFO] [stdout] --> src/parser/http.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub StatusCode : u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `status_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `statusMessage` should have a snake case name [INFO] [stdout] --> src/parser/http.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub statusMessage: String, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `status_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `StatusCode` should have a snake case name [INFO] [stdout] --> src/parser/http.rs:42:32 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(version:String, StatusCode : u32, statusMessage: String, body : Option, headers : HashMap) -> Se... [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `status_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `handle_request` is never used [INFO] [stdout] --> src/network_adaptor/transport.rs:105:6 [INFO] [stdout] | [INFO] [stdout] 105 | type handle_request = fn(TcpStream ); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `statusMessage` should have a snake case name [INFO] [stdout] --> src/parser/http.rs:42:50 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(version:String, StatusCode : u32, statusMessage: String, body : Option, headers : HashMap) -> Se... [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `status_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `thread` are never read [INFO] [stdout] --> src/pool/thread.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Worker { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | id : usize, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | thread : JoinHandle<()>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `workers` is never read [INFO] [stdout] --> src/pool/thread.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct ThreadPool { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 23 | workers : Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_Bool` should have a snake case name [INFO] [stdout] --> src/serializer_deserializer/lib.rs:194:4 [INFO] [stdout] | [INFO] [stdout] 194 | fn parse_Bool(first_char: char, chars: &mut std::str::Chars) -> Result { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `parse_bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `doSomething` should have a snake case name [INFO] [stdout] --> src/http/server.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn doSomething(&self) -> String{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `do_something` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `getAll` should have a snake case name [INFO] [stdout] --> src/storage/store.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | fn getAll(&self) -> Vec; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_all` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tcpStream` should have a snake case name [INFO] [stdout] --> src/network_adaptor/transport.rs:77:50 [INFO] [stdout] | [INFO] [stdout] 77 | self.pool.lock().unwrap().execute( move |tcpStream| { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `tcp_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `StatusCode` should have a snake case name [INFO] [stdout] --> src/parser/http.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub StatusCode : u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `status_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `statusMessage` should have a snake case name [INFO] [stdout] --> src/parser/http.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub statusMessage: String, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `status_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `StatusCode` should have a snake case name [INFO] [stdout] --> src/parser/http.rs:42:32 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(version:String, StatusCode : u32, statusMessage: String, body : Option, headers : HashMap) -> Se... [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `status_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `statusMessage` should have a snake case name [INFO] [stdout] --> src/parser/http.rs:42:50 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(version:String, StatusCode : u32, statusMessage: String, body : Option, headers : HashMap) -> Se... [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `status_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_Bool` should have a snake case name [INFO] [stdout] --> src/serializer_deserializer/lib.rs:194:4 [INFO] [stdout] | [INFO] [stdout] 194 | fn parse_Bool(first_char: char, chars: &mut std::str::Chars) -> Result { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `parse_bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `getAll` should have a snake case name [INFO] [stdout] --> src/storage/store.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | fn getAll(&self) -> Vec; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_all` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.68s [INFO] running `Command { std: "docker" "inspect" "52f439715bcd61e65c4d367586a2fbe7c3f8d424c7ed76b809b76fde5d003f58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52f439715bcd61e65c4d367586a2fbe7c3f8d424c7ed76b809b76fde5d003f58", kill_on_drop: false }` [INFO] [stdout] 52f439715bcd61e65c4d367586a2fbe7c3f8d424c7ed76b809b76fde5d003f58