[INFO] cloning repository https://github.com/laonger/chatbot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/laonger/chatbot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flaonger%2Fchatbot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flaonger%2Fchatbot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3d38282f825a25919e5f3867ec2e4a0ec3f1d9be [INFO] checking laonger/chatbot against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flaonger%2Fchatbot" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/laonger/chatbot on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/laonger/chatbot [INFO] finished tweaking git repo https://github.com/laonger/chatbot [INFO] tweaked toml for git repo https://github.com/laonger/chatbot written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/laonger/chatbot 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/laonger/simple_openai.git` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 80e07014c032b8d085bf37a96d03186bcef8f848c609420f8c57897016ede560 [INFO] running `Command { std: "docker" "start" "-a" "80e07014c032b8d085bf37a96d03186bcef8f848c609420f8c57897016ede560", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "80e07014c032b8d085bf37a96d03186bcef8f848c609420f8c57897016ede560", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80e07014c032b8d085bf37a96d03186bcef8f848c609420f8c57897016ede560", kill_on_drop: false }` [INFO] [stdout] 80e07014c032b8d085bf37a96d03186bcef8f848c609420f8c57897016ede560 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] caf590e3e64bef76bfbb8e4c04faaeecc73e2871f1fdaf86c7e5b3fa37029db7 [INFO] running `Command { std: "docker" "start" "-a" "caf590e3e64bef76bfbb8e4c04faaeecc73e2871f1fdaf86c7e5b3fa37029db7", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling openssl v0.10.55 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling tokio v1.29.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling serde_json v1.0.99 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Compiling openssl-sys v0.9.90 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling syn v2.0.22 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.20 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking simple_openai v0.1.0 (https://github.com/laonger/simple_openai.git#68b0184a) [INFO] [stderr] Checking chatbot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `stdout` [INFO] [stdout] --> src/client/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{stdin,stdout,Write, BufReader}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/client/main.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::prelude::*; [INFO] [stdout] | ------------------- the item `Write` is already imported here [INFO] [stdout] 2 | use std::net::TcpStream; [INFO] [stdout] 3 | use std::io::{stdin,stdout,Write, BufReader}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stdout` [INFO] [stdout] --> src/client/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{stdin,stdout,Write, BufReader}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/client/main.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::prelude::*; [INFO] [stdout] | ------------------- the item `Write` is already imported here [INFO] [stdout] 2 | use std::net::TcpStream; [INFO] [stdout] 3 | use std::io::{stdin,stdout,Write, BufReader}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/server/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | debug, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`, `self` [INFO] [stdout] --> src/server/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | AsyncReadExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 16 | AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/server/handler.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `time::sleep` [INFO] [stdout] --> src/server/handler.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | time::sleep, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | AsyncReadExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `simple_openai::RoleType` [INFO] [stdout] --> src/server/handler.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use simple_openai::RoleType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `BufReader`, `prelude::*` [INFO] [stdout] --> src/server/commands.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::{ [INFO] [stdout] //time::sleep, [INFO] [stdout] //io::{ [INFO] [stdout] // self, [INFO] [stdout] // AsyncReadExt, [INFO] [stdout] // AsyncWriteExt, [INFO] [stdout] //}, [INFO] [stdout] //sync::Mutex, [INFO] [stdout] //net::{ [INFO] [stdout] // TcpListener, [INFO] [stdout] // TcpStream, [INFO] [stdout] //}, [INFO] [stdout] }` [INFO] [stdout] --> src/server/commands.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tokio::{ [INFO] [stdout] | _____^ [INFO] [stdout] 16 | | //time::sleep, [INFO] [stdout] 17 | | //io::{ [INFO] [stdout] 18 | | // self, [INFO] [stdout] ... | [INFO] [stdout] 26 | | //}, [INFO] [stdout] 27 | | }; [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net::TcpStream` [INFO] [stdout] --> src/server/commands.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | net::TcpStream, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/server/commands.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | result::Result, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/server/cache.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/client/main.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let mut res = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/server/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | debug, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/client/main.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let mut res = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`, `self` [INFO] [stdout] --> src/server/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | AsyncReadExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 16 | AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/server/handler.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `time::sleep` [INFO] [stdout] --> src/server/handler.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | time::sleep, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | AsyncReadExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut res = String::new(); [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 import: `simple_openai::RoleType` [INFO] [stdout] --> src/server/handler.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use simple_openai::RoleType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `BufReader`, `prelude::*` [INFO] [stdout] --> src/server/commands.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::{ [INFO] [stdout] //time::sleep, [INFO] [stdout] //io::{ [INFO] [stdout] // self, [INFO] [stdout] // AsyncReadExt, [INFO] [stdout] // AsyncWriteExt, [INFO] [stdout] //}, [INFO] [stdout] //sync::Mutex, [INFO] [stdout] //net::{ [INFO] [stdout] // TcpListener, [INFO] [stdout] // TcpStream, [INFO] [stdout] //}, [INFO] [stdout] }` [INFO] [stdout] --> src/server/commands.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tokio::{ [INFO] [stdout] | _____^ [INFO] [stdout] 16 | | //time::sleep, [INFO] [stdout] 17 | | //io::{ [INFO] [stdout] 18 | | // self, [INFO] [stdout] ... | [INFO] [stdout] 26 | | //}, [INFO] [stdout] 27 | | }; [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net::TcpStream` [INFO] [stdout] --> src/server/commands.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | net::TcpStream, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/server/commands.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | result::Result, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/server/cache.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut res = String::new(); [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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/handler.rs:120:27 [INFO] [stdout] | [INFO] [stdout] 120 | Err(e) => match e.description() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/handler.rs:120:27 [INFO] [stdout] | [INFO] [stdout] 120 | Err(e) => match e.description() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `messages` is never read [INFO] [stdout] --> src/server/handler.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut messages: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `messages` is never read [INFO] [stdout] --> src/server/handler.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut messages: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/main.rs:68:39 [INFO] [stdout] | [INFO] [stdout] 68 | Err(e) => match e.description() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::Error` [INFO] [stdout] --> src/server/handler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | error::Error as STDError, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/server/handler.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/server/main.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | let (mut tcpstream, address) = match listener.accept().await { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [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/server/main.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | Ok((mut tcpstream, address)) => { [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: type alias `ShareCLientList` is never used [INFO] [stdout] --> src/server/main.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | type ShareCLientList = Arc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `addr` is never read [INFO] [stdout] --> src/server/cache.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ClientUnit { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 10 | addr: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClientUnit` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/main.rs:68:39 [INFO] [stdout] | [INFO] [stdout] 68 | Err(e) => match e.description() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/server/handler.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | drop(client); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut ClientUnit` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/server/handler.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | drop(client); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut ClientUnit` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/handler.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | stream.write_all(res.as_bytes()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 197 | let _ = stream.write_all(res.as_bytes()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/handler.rs:198:17 [INFO] [stdout] | [INFO] [stdout] 198 | stream.flush().await; [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] 198 | let _ = stream.flush().await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/server/commands.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | match s.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: unused import: `error::Error` [INFO] [stdout] --> src/server/handler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | error::Error as STDError, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/server/handler.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/server/cache.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | for i in 0..30 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/server/main.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | let (mut tcpstream, address) = match listener.accept().await { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/main.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | Ok((mut tcpstream, address)) => { [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: type alias `ShareCLientList` is never used [INFO] [stdout] --> src/server/main.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | type ShareCLientList = Arc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `addr` is never read [INFO] [stdout] --> src/server/cache.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ClientUnit { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 10 | addr: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClientUnit` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/server/handler.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | drop(client); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut cache::ClientUnit` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/server/handler.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | drop(client); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut cache::ClientUnit` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/handler.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | stream.write_all(res.as_bytes()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 197 | let _ = stream.write_all(res.as_bytes()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/handler.rs:198:17 [INFO] [stdout] | [INFO] [stdout] 198 | stream.flush().await; [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] 198 | let _ = stream.flush().await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/server/commands.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | match s.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: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.22s [INFO] running `Command { std: "docker" "inspect" "caf590e3e64bef76bfbb8e4c04faaeecc73e2871f1fdaf86c7e5b3fa37029db7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "caf590e3e64bef76bfbb8e4c04faaeecc73e2871f1fdaf86c7e5b3fa37029db7", kill_on_drop: false }` [INFO] [stdout] caf590e3e64bef76bfbb8e4c04faaeecc73e2871f1fdaf86c7e5b3fa37029db7 [INFO] checking laonger/chatbot against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flaonger%2Fchatbot" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/laonger/chatbot on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/laonger/chatbot [INFO] finished tweaking git repo https://github.com/laonger/chatbot [INFO] tweaked toml for git repo https://github.com/laonger/chatbot written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/laonger/chatbot 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 75de9bab542d1d48b3db480c0f919022c22658765e5a7c5fae2e9ba15be06cb7 [INFO] running `Command { std: "docker" "start" "-a" "75de9bab542d1d48b3db480c0f919022c22658765e5a7c5fae2e9ba15be06cb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "75de9bab542d1d48b3db480c0f919022c22658765e5a7c5fae2e9ba15be06cb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75de9bab542d1d48b3db480c0f919022c22658765e5a7c5fae2e9ba15be06cb7", kill_on_drop: false }` [INFO] [stdout] 75de9bab542d1d48b3db480c0f919022c22658765e5a7c5fae2e9ba15be06cb7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f2ca2dd52867845c29c713ddf00b19eb8ec0bf16fd6361b1f652f432d9cf3e45 [INFO] running `Command { std: "docker" "start" "-a" "f2ca2dd52867845c29c713ddf00b19eb8ec0bf16fd6361b1f652f432d9cf3e45", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling openssl v0.10.55 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling tokio v1.29.0 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling serde_json v1.0.99 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Compiling syn v2.0.22 [INFO] [stderr] Compiling openssl-sys v0.9.90 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.20 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking simple_openai v0.1.0 (https://github.com/laonger/simple_openai.git#68b0184a) [INFO] [stderr] Checking chatbot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `stdout` [INFO] [stdout] --> src/client/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{stdin,stdout,Write, BufReader}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/client/main.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::prelude::*; [INFO] [stdout] | ------------------- the item `Write` is already imported here [INFO] [stdout] 2 | use std::net::TcpStream; [INFO] [stdout] 3 | use std::io::{stdin,stdout,Write, BufReader}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/client/main.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let mut res = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/server/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | debug, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`, `self` [INFO] [stdout] --> src/server/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | AsyncReadExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 16 | AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/server/handler.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `time::sleep` [INFO] [stdout] --> src/server/handler.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | time::sleep, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | AsyncReadExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `simple_openai::RoleType` [INFO] [stdout] --> src/server/handler.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use simple_openai::RoleType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `BufReader`, `prelude::*` [INFO] [stdout] --> src/server/commands.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::{ [INFO] [stdout] //time::sleep, [INFO] [stdout] //io::{ [INFO] [stdout] // self, [INFO] [stdout] // AsyncReadExt, [INFO] [stdout] // AsyncWriteExt, [INFO] [stdout] //}, [INFO] [stdout] //sync::Mutex, [INFO] [stdout] //net::{ [INFO] [stdout] // TcpListener, [INFO] [stdout] // TcpStream, [INFO] [stdout] //}, [INFO] [stdout] }` [INFO] [stdout] --> src/server/commands.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tokio::{ [INFO] [stdout] | _____^ [INFO] [stdout] 16 | | //time::sleep, [INFO] [stdout] 17 | | //io::{ [INFO] [stdout] 18 | | // self, [INFO] [stdout] ... | [INFO] [stdout] 26 | | //}, [INFO] [stdout] 27 | | }; [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net::TcpStream` [INFO] [stdout] --> src/server/commands.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | net::TcpStream, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/server/commands.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | result::Result, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/server/cache.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stdout` [INFO] [stdout] --> src/client/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{stdin,stdout,Write, BufReader}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/client/main.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::prelude::*; [INFO] [stdout] | ------------------- the item `Write` is already imported here [INFO] [stdout] 2 | use std::net::TcpStream; [INFO] [stdout] 3 | use std::io::{stdin,stdout,Write, BufReader}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/client/main.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let mut res = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [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/client/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut res = String::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut res = String::new(); [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 import: `debug` [INFO] [stdout] --> src/server/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | debug, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`, `self` [INFO] [stdout] --> src/server/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | AsyncReadExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 16 | AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/server/handler.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `time::sleep` [INFO] [stdout] --> src/server/handler.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | time::sleep, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | AsyncReadExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `simple_openai::RoleType` [INFO] [stdout] --> src/server/handler.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use simple_openai::RoleType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `BufReader`, `prelude::*` [INFO] [stdout] --> src/server/commands.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::{ [INFO] [stdout] //time::sleep, [INFO] [stdout] //io::{ [INFO] [stdout] // self, [INFO] [stdout] // AsyncReadExt, [INFO] [stdout] // AsyncWriteExt, [INFO] [stdout] //}, [INFO] [stdout] //sync::Mutex, [INFO] [stdout] //net::{ [INFO] [stdout] // TcpListener, [INFO] [stdout] // TcpStream, [INFO] [stdout] //}, [INFO] [stdout] }` [INFO] [stdout] --> src/server/commands.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tokio::{ [INFO] [stdout] | _____^ [INFO] [stdout] 16 | | //time::sleep, [INFO] [stdout] 17 | | //io::{ [INFO] [stdout] 18 | | // self, [INFO] [stdout] ... | [INFO] [stdout] 26 | | //}, [INFO] [stdout] 27 | | }; [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net::TcpStream` [INFO] [stdout] --> src/server/commands.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | net::TcpStream, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/server/commands.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | result::Result, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/server/cache.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/handler.rs:120:27 [INFO] [stdout] | [INFO] [stdout] 120 | Err(e) => match e.description() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/handler.rs:120:27 [INFO] [stdout] | [INFO] [stdout] 120 | Err(e) => match e.description() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `messages` is never read [INFO] [stdout] --> src/server/handler.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut messages: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `messages` is never read [INFO] [stdout] --> src/server/handler.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut messages: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/main.rs:68:39 [INFO] [stdout] | [INFO] [stdout] 68 | Err(e) => match e.description() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/main.rs:68:39 [INFO] [stdout] | [INFO] [stdout] 68 | Err(e) => match e.description() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::Error` [INFO] [stdout] --> src/server/handler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | error::Error as STDError, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/server/handler.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::Error` [INFO] [stdout] --> src/server/handler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | error::Error as STDError, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/server/cache.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | for i in 0..30 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/server/handler.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/server/main.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | let (mut tcpstream, address) = match listener.accept().await { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/server/main.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | let (mut tcpstream, address) = match listener.accept().await { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/main.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | Ok((mut tcpstream, address)) => { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/main.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | Ok((mut tcpstream, address)) => { [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: type alias `ShareCLientList` is never used [INFO] [stdout] --> src/server/main.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | type ShareCLientList = Arc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ShareCLientList` is never used [INFO] [stdout] --> src/server/main.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | type ShareCLientList = Arc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `addr` is never read [INFO] [stdout] --> src/server/cache.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ClientUnit { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 10 | addr: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClientUnit` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/server/handler.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | drop(client); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut ClientUnit` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `addr` is never read [INFO] [stdout] --> src/server/cache.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ClientUnit { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 10 | addr: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClientUnit` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/server/handler.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | drop(client); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut cache::ClientUnit` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/server/handler.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | drop(client); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut ClientUnit` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/handler.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | stream.write_all(res.as_bytes()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 197 | let _ = stream.write_all(res.as_bytes()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/handler.rs:198:17 [INFO] [stdout] | [INFO] [stdout] 198 | stream.flush().await; [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] 198 | let _ = stream.flush().await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/server/commands.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | match s.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: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/server/handler.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | drop(client); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut cache::ClientUnit` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/handler.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | stream.write_all(res.as_bytes()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 197 | let _ = stream.write_all(res.as_bytes()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/handler.rs:198:17 [INFO] [stdout] | [INFO] [stdout] 198 | stream.flush().await; [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] 198 | let _ = stream.flush().await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/server/commands.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | match s.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: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.76s [INFO] running `Command { std: "docker" "inspect" "f2ca2dd52867845c29c713ddf00b19eb8ec0bf16fd6361b1f652f432d9cf3e45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2ca2dd52867845c29c713ddf00b19eb8ec0bf16fd6361b1f652f432d9cf3e45", kill_on_drop: false }` [INFO] [stdout] f2ca2dd52867845c29c713ddf00b19eb8ec0bf16fd6361b1f652f432d9cf3e45