[INFO] cloning repository https://github.com/Salka1988/client-server-exercise
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Salka1988/client-server-exercise" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSalka1988%2Fclient-server-exercise", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSalka1988%2Fclient-server-exercise'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 722cc2a1f08c1539def4011783ec32d23ea17148
[INFO] checking Salka1988/client-server-exercise against try#2cbf9c3ff35600794d69a7dc7ab399810a067910 for pr-129249-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSalka1988%2Fclient-server-exercise" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Salka1988/client-server-exercise
[INFO] finished tweaking git repo https://github.com/Salka1988/client-server-exercise
[INFO] tweaked toml for git repo https://github.com/Salka1988/client-server-exercise written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Salka1988/client-server-exercise on toolchain 2cbf9c3ff35600794d69a7dc7ab399810a067910
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2cbf9c3ff35600794d69a7dc7ab399810a067910" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Salka1988/client-server-exercise 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" "+2cbf9c3ff35600794d69a7dc7ab399810a067910" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 7bb7e767653e91dfd7df0a4ee808ac1c3a466d6b9cac9aede2a23f21e7160b8d
[INFO] running `Command { std: "docker" "start" "7bb7e767653e91dfd7df0a4ee808ac1c3a466d6b9cac9aede2a23f21e7160b8d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "7bb7e767653e91dfd7df0a4ee808ac1c3a466d6b9cac9aede2a23f21e7160b8d" "/opt/rustwide/cargo-home/bin/cargo" "+2cbf9c3ff35600794d69a7dc7ab399810a067910" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7bb7e767653e91dfd7df0a4ee808ac1c3a466d6b9cac9aede2a23f21e7160b8d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "7bb7e767653e91dfd7df0a4ee808ac1c3a466d6b9cac9aede2a23f21e7160b8d" "/opt/rustwide/cargo-home/bin/cargo" "+2cbf9c3ff35600794d69a7dc7ab399810a067910" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.106
[INFO] [stderr]    Compiling proc-macro2 v1.0.32
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling syn v1.0.81
[INFO] [stderr]    Compiling memchr v2.4.1
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling futures-core v0.3.17
[INFO] [stderr]    Compiling proc-macro-hack v0.5.19
[INFO] [stderr]     Checking slab v0.4.5
[INFO] [stderr]     Checking futures-sink v0.3.17
[INFO] [stderr]     Checking pin-project-lite v0.2.7
[INFO] [stderr]    Compiling version_check v0.9.3
[INFO] [stderr]    Compiling futures-channel v0.3.17
[INFO] [stderr]    Compiling futures-macro v0.3.17
[INFO] [stderr]    Compiling futures-task v0.3.17
[INFO] [stderr]    Compiling proc-macro-nested v0.1.7
[INFO] [stderr]    Compiling futures-util v0.3.17
[INFO] [stderr]     Checking futures-io v0.3.17
[INFO] [stderr]     Checking pin-project-lite v0.1.12
[INFO] [stderr]     Checking smallvec v1.7.0
[INFO] [stderr]    Compiling serde_derive v1.0.130
[INFO] [stderr]    Compiling pin-project-internal v0.4.28
[INFO] [stderr]    Compiling parking_lot_core v0.8.5
[INFO] [stderr]    Compiling serde v1.0.130
[INFO] [stderr]     Checking instant v0.1.12
[INFO] [stderr]    Compiling cc v1.0.71
[INFO] [stderr]     Checking scopeguard v1.1.0
[INFO] [stderr]    Compiling convert_case v0.4.0
[INFO] [stderr]     Checking bytes v1.1.0
[INFO] [stderr]    Compiling standback v0.2.17
[INFO] [stderr]    Compiling miniz_oxide v0.4.4
[INFO] [stderr]     Checking lock_api v0.4.5
[INFO] [stderr]     Checking matches v0.1.9
[INFO] [stderr]     Checking tinyvec v1.5.1
[INFO] [stderr]    Compiling typenum v1.14.0
[INFO] [stderr]     Checking copyless v0.1.5
[INFO] [stderr]     Checking form_urlencoded v1.0.1
[INFO] [stderr]    Compiling generic-array v0.14.4
[INFO] [stderr]    Compiling async-trait v0.1.51
[INFO] [stderr]     Checking unicode-bidi v0.3.7
[INFO] [stderr]     Checking either v1.6.1
[INFO] [stderr]     Checking ppv-lite86 v0.2.15
[INFO] [stderr]    Compiling unicode-segmentation v1.8.0
[INFO] [stderr]     Checking tracing-core v0.1.21
[INFO] [stderr]    Compiling indexmap v1.7.0
[INFO] [stderr]     Checking match_cfg v0.1.0
[INFO] [stderr]    Compiling const_fn v0.4.8
[INFO] [stderr]     Checking aho-corasick v0.7.18
[INFO] [stderr]     Checking http v0.2.5
[INFO] [stderr]    Compiling time v0.2.27
[INFO] [stderr]     Checking net2 v0.2.37
[INFO] [stderr]     Checking iovec v0.1.4
[INFO] [stderr]    Compiling quote v1.0.10
[INFO] [stderr]     Checking signal-hook-registry v1.4.0
[INFO] [stderr]     Checking num_cpus v1.13.0
[INFO] [stderr]     Checking getrandom v0.1.16
[INFO] [stderr]     Checking mio v0.6.23
[INFO] [stderr]    Compiling heck v0.3.3
[INFO] [stderr]     Checking tracing v0.1.29
[INFO] [stderr]     Checking threadpool v1.8.1
[INFO] [stderr]     Checking hostname v0.3.1
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking hashbrown v0.11.2
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]    Compiling httparse v1.5.1
[INFO] [stderr]     Checking linked-hash-map v0.5.4
[INFO] [stderr]     Checking regex-syntax v0.6.25
[INFO] [stderr]    Compiling crc32fast v1.2.2
[INFO] [stderr]     Checking resolv-conf v0.7.0
[INFO] [stderr]     Checking unicode-normalization v0.1.19
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking lru-cache v0.1.2
[INFO] [stderr]    Compiling brotli-sys v0.3.2
[INFO] [stderr]    Compiling backtrace v0.3.63
[INFO] [stderr]    Compiling cookie v0.14.4
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling encoding_rs v0.8.29
[INFO] [stderr]    Compiling serde_json v1.0.69
[INFO] [stderr]     Checking gimli v0.26.0
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking mio-uds v0.6.8
[INFO] [stderr]     Checking socket2 v0.3.19
[INFO] [stderr]     Checking object v0.27.1
[INFO] [stderr]     Checking tokio v0.2.25
[INFO] [stderr]     Checking rustc-demangle v0.1.21
[INFO] [stderr]     Checking cpufeatures v0.2.1
[INFO] [stderr]     Checking byteorder v1.4.3
[INFO] [stderr]     Checking flate2 v1.0.22
[INFO] [stderr]     Checking time v0.1.43
[INFO] [stderr]     Checking base64 v0.13.0
[INFO] [stderr]     Checking idna v0.2.3
[INFO] [stderr]     Checking fxhash v0.2.1
[INFO] [stderr]     Checking language-tags v0.2.2
[INFO] [stderr]     Checking getrandom v0.2.3
[INFO] [stderr]     Checking bytestring v1.0.0
[INFO] [stderr]     Checking nom v4.1.1
[INFO] [stderr]     Checking digest v0.9.0
[INFO] [stderr]     Checking block-buffer v0.9.0
[INFO] [stderr]    Compiling tokio v1.14.0
[INFO] [stderr]     Checking want v0.3.0
[INFO] [stderr]     Checking sha-1 v0.9.8
[INFO] [stderr]     Checking rand_core v0.3.1
[INFO] [stderr]     Checking mio v0.7.14
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking tower-service v0.3.1
[INFO] [stderr]     Checking once_cell v1.8.0
[INFO] [stderr]     Checking rand v0.5.6
[INFO] [stderr]     Checking url v2.2.2
[INFO] [stderr]     Checking http-body v0.3.1
[INFO] [stderr]     Checking regex v1.5.4
[INFO] [stderr]     Checking addr2line v0.17.0
[INFO] [stderr]     Checking env_logger v0.7.1
[INFO] [stderr]     Checking tokio-util v0.3.1
[INFO] [stderr]     Checking tokio-util v0.2.0
[INFO] [stderr]     Checking error-chain v0.10.0
[INFO] [stderr]    Compiling derive_more v0.99.16
[INFO] [stderr]    Compiling actix-macros v0.1.3
[INFO] [stderr]    Compiling thiserror-impl v1.0.30
[INFO] [stderr]    Compiling pin-project-internal v1.0.8
[INFO] [stderr]    Compiling time-macros-impl v0.1.2
[INFO] [stderr]    Compiling enum-as-inner v0.3.3
[INFO] [stderr]    Compiling derivative v2.2.0
[INFO] [stderr]    Compiling actix-web-codegen v0.4.0
[INFO] [stderr]    Compiling tokio-macros v1.6.0
[INFO] [stderr]     Checking time-macros v0.1.1
[INFO] [stderr]     Checking thiserror v1.0.30
[INFO] [stderr]     Checking pin-project v1.0.8
[INFO] [stderr]     Checking tracing-futures v0.2.5
[INFO] [stderr]     Checking pin-project v0.4.28
[INFO] [stderr]     Checking brotli2 v0.3.2
[INFO] [stderr]     Checking actix-codec v0.3.0
[INFO] [stderr]     Checking actix-threadpool v0.3.3
[INFO] [stderr]     Checking actix-service v1.0.6
[INFO] [stderr]     Checking actix-rt v1.1.1
[INFO] [stderr]     Checking futures-executor v0.3.17
[INFO] [stderr]     Checking h2 v0.2.7
[INFO] [stderr]     Checking futures v0.3.17
[INFO] [stderr]     Checking trust-dns-proto v0.19.7
[INFO] [stderr]     Checking actix-utils v2.0.0
[INFO] [stderr]     Checking actix-server v1.0.4
[INFO] [stderr]     Checking actix-tls v2.0.0
[INFO] [stderr]     Checking actix-testing v1.0.1
[INFO] [stderr]     Checking trust-dns-resolver v0.19.7
[INFO] [stderr]     Checking serde_urlencoded v0.7.0
[INFO] [stderr]     Checking chrono v0.4.19
[INFO] [stderr]     Checking uuid v0.8.2
[INFO] [stderr]     Checking actix-router v0.2.7
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking actix-connect v2.0.0
[INFO] [stderr]     Checking tokio-serde v0.6.1
[INFO] [stderr]     Checking cron v0.6.1
[INFO] [stderr]     Checking job_scheduler v1.2.1
[INFO] [stderr]     Checking actix-http v2.2.1
[INFO] [stderr]     Checking hyper v0.13.10
[INFO] [stderr]     Checking awc v2.0.3
[INFO] [stderr]     Checking actix-web v3.3.2
[INFO] [stderr]     Checking server_client v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `AtomicU32` and `AtomicUsize`
[INFO] [stdout]  --> src/types/summary.rs:3:25
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::sync::atomic::{AtomicU32, AtomicUsize};
[INFO] [stdout]   |                         ^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AtomicU32` and `AtomicUsize`
[INFO] [stdout]  --> src/types/summary.rs:3:25
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::sync::atomic::{AtomicU32, AtomicUsize};
[INFO] [stdout]   |                         ^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/types/summary.rs:53:13
[INFO] [stdout]    |
[INFO] [stdout] 53 |         let mut range = rand::thread_rng().gen_range(0.000000, 1.500000) as f32;
[INFO] [stdout]    |             ----^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/types/summary.rs:61:13
[INFO] [stdout]    |
[INFO] [stdout] 61 |         let mut len = self.values.len();
[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/types/summary.rs:53:13
[INFO] [stdout]    |
[INFO] [stdout] 53 |         let mut range = rand::thread_rng().gen_range(0.000000, 1.500000) as f32;
[INFO] [stdout]    |             ----^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/types/summary.rs:61:13
[INFO] [stdout]    |
[INFO] [stdout] 61 |         let mut len = self.values.len();
[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/types/summary.rs:98:13
[INFO] [stdout]    |
[INFO] [stdout] 98 |         let mut currencies: Vec<Arc<RwLock<Currency>>> =
[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/types/summary.rs:98:13
[INFO] [stdout]    |
[INFO] [stdout] 98 |         let mut currencies: Vec<Arc<RwLock<Currency>>> =
[INFO] [stdout]    |             ----^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str::from_utf8`
[INFO] [stdout]  --> src/bin/client.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::str::from_utf8;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde::Serialize`
[INFO] [stdout]  --> src/bin/client.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use serde::Serialize;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `server_client::Currency`
[INFO] [stdout]  --> src/bin/client.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use server_client::Currency;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str::from_utf8`
[INFO] [stdout]  --> src/bin/client.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::str::from_utf8;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde::Serialize`
[INFO] [stdout]  --> src/bin/client.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use serde::Serialize;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `server_client::Currency`
[INFO] [stdout]  --> src/bin/client.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use server_client::Currency;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TcpStream`
[INFO] [stdout]  --> src/bin/server.rs:1:31
[INFO] [stdout]   |
[INFO] [stdout] 1 | use tokio::net::{TcpListener, TcpStream};
[INFO] [stdout]   |                               ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::BorrowMut`
[INFO] [stdout]  --> src/bin/server.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::borrow::BorrowMut;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `server_client::Currency`
[INFO] [stdout]  --> src/bin/server.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use server_client::Currency;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TcpStream`
[INFO] [stdout]  --> src/bin/server.rs:1:31
[INFO] [stdout]   |
[INFO] [stdout] 1 | use tokio::net::{TcpListener, TcpStream};
[INFO] [stdout]   |                               ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::BorrowMut`
[INFO] [stdout]  --> src/bin/server.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::borrow::BorrowMut;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `server_client::Currency`
[INFO] [stdout]  --> src/bin/server.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use server_client::Currency;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]   --> src/bin/client.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | /     loop {
[INFO] [stdout] 15 | |         match TcpStream::connect("localhost:3333") {
[INFO] [stdout] 16 | |             Ok(mut stream) => {
[INFO] [stdout] 17 | |                 println!("Successfully connected to server in port 3333");
[INFO] [stdout] ...  |
[INFO] [stdout] 52 | |     }
[INFO] [stdout]    | |_____- any code following this expression is unreachable
[INFO] [stdout] 53 |       println!("Terminated.");
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]   --> src/bin/client.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | /     loop {
[INFO] [stdout] 15 | |         match TcpStream::connect("localhost:3333") {
[INFO] [stdout] 16 | |             Ok(mut stream) => {
[INFO] [stdout] 17 | |                 println!("Successfully connected to server in port 3333");
[INFO] [stdout] ...  |
[INFO] [stdout] 52 | |     }
[INFO] [stdout]    | |_____- any code following this expression is unreachable
[INFO] [stdout] 53 |       println!("Terminated.");
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `#[macro_use]` import
[INFO] [stdout]  --> src/bin/dbdummy.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Arc`
[INFO] [stdout]  --> src/bin/dbdummy.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::sync::{Arc, RwLock};
[INFO] [stdout]   |                 ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AtomicU32`, `AtomicUsize`, and `Ordering`
[INFO] [stdout]  --> src/bin/dbdummy.rs:8:25
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::sync::atomic::{AtomicU32, AtomicUsize, Ordering};
[INFO] [stdout]   |                         ^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/bin/dbdummy.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `FromRequest`, `HttpRequest`, and `dev`
[INFO] [stdout]   --> src/bin/dbdummy.rs:12:46
[INFO] [stdout]    |
[INFO] [stdout] 12 | use actix_web::{App, HttpServer, middleware, FromRequest, HttpRequest, dev};
[INFO] [stdout]    |                                              ^^^^^^^^^^^  ^^^^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::web::Json`
[INFO] [stdout]   --> src/bin/dbdummy.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use actix_web::web::Json;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]   --> src/bin/dbdummy.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 | use chrono::{DateTime, Utc};
[INFO] [stdout]    |              ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize`
[INFO] [stdout]   --> src/bin/dbdummy.rs:18:13
[INFO] [stdout]    |
[INFO] [stdout] 18 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `server_client::Currency`
[INFO] [stdout]   --> src/bin/dbdummy.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use server_client::Currency;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `CurrencyEnum`
[INFO] [stdout]   --> src/bin/dbdummy.rs:21:37
[INFO] [stdout]    |
[INFO] [stdout] 21 | use server_client::types::summary::{CurrencyEnum, Currencies};
[INFO] [stdout]    |                                     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]   --> src/bin/dbdummy.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use std::error::Error;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::future::Ready`
[INFO] [stdout]   --> src/bin/dbdummy.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | use std::future::Ready;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ErrorBadRequest` and `ErrorUnauthorized`
[INFO] [stdout]   --> src/bin/dbdummy.rs:24:24
[INFO] [stdout]    |
[INFO] [stdout] 24 | use actix_web::error::{ErrorBadRequest, ErrorUnauthorized};
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::dev::Payload`
[INFO] [stdout]   --> src/bin/dbdummy.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | use actix_web::dev::Payload;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Mutex`
[INFO] [stdout]   --> src/bin/dbdummy.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 29 | use std::sync::Mutex;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]   --> src/bin/dbdummy.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 | use std::borrow::Borrow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `#[macro_use]` import
[INFO] [stdout]  --> src/bin/dbdummy.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Arc`
[INFO] [stdout]  --> src/bin/dbdummy.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::sync::{Arc, RwLock};
[INFO] [stdout]   |                 ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AtomicU32`, `AtomicUsize`, and `Ordering`
[INFO] [stdout]  --> src/bin/dbdummy.rs:8:25
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::sync::atomic::{AtomicU32, AtomicUsize, Ordering};
[INFO] [stdout]   |                         ^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/bin/dbdummy.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `FromRequest`, `HttpRequest`, and `dev`
[INFO] [stdout]   --> src/bin/dbdummy.rs:12:46
[INFO] [stdout]    |
[INFO] [stdout] 12 | use actix_web::{App, HttpServer, middleware, FromRequest, HttpRequest, dev};
[INFO] [stdout]    |                                              ^^^^^^^^^^^  ^^^^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::web::Json`
[INFO] [stdout]   --> src/bin/dbdummy.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use actix_web::web::Json;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]   --> src/bin/dbdummy.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 | use chrono::{DateTime, Utc};
[INFO] [stdout]    |              ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize`
[INFO] [stdout]   --> src/bin/dbdummy.rs:18:13
[INFO] [stdout]    |
[INFO] [stdout] 18 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `server_client::Currency`
[INFO] [stdout]   --> src/bin/dbdummy.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use server_client::Currency;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `CurrencyEnum`
[INFO] [stdout]   --> src/bin/dbdummy.rs:21:37
[INFO] [stdout]    |
[INFO] [stdout] 21 | use server_client::types::summary::{CurrencyEnum, Currencies};
[INFO] [stdout]    |                                     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]   --> src/bin/dbdummy.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use std::error::Error;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::future::Ready`
[INFO] [stdout]   --> src/bin/dbdummy.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | use std::future::Ready;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ErrorBadRequest` and `ErrorUnauthorized`
[INFO] [stdout]   --> src/bin/dbdummy.rs:24:24
[INFO] [stdout]    |
[INFO] [stdout] 24 | use actix_web::error::{ErrorBadRequest, ErrorUnauthorized};
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::dev::Payload`
[INFO] [stdout]   --> src/bin/dbdummy.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | use actix_web::dev::Payload;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Mutex`
[INFO] [stdout]   --> src/bin/dbdummy.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 29 | use std::sync::Mutex;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]   --> src/bin/dbdummy.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 | use std::borrow::Borrow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/bin/server.rs:20:20
[INFO] [stdout]    |
[INFO] [stdout] 20 |                 Ok(size) => {
[INFO] [stdout]    |                    ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/bin/server.rs:20:20
[INFO] [stdout]    |
[INFO] [stdout] 20 |                 Ok(size) => {
[INFO] [stdout]    |                    ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/bin/dbdummy.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |     let mut guard = ARRAY.try_read().unwrap();
[INFO] [stdout]    |         ----^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/bin/dbdummy.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |     let mut guard = ARRAY.try_read().unwrap();
[INFO] [stdout]    |         ----^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/bin/dbdummy.rs:77:27
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub async fn get_currency(path: Path<(String,)>) -> HttpResponse {
[INFO] [stdout]    |                           ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/bin/dbdummy.rs:77:27
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub async fn get_currency(path: Path<(String,)>) -> HttpResponse {
[INFO] [stdout]    |                           ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.64s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.1.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] running `Command { std: "docker" "inspect" "7bb7e767653e91dfd7df0a4ee808ac1c3a466d6b9cac9aede2a23f21e7160b8d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7bb7e767653e91dfd7df0a4ee808ac1c3a466d6b9cac9aede2a23f21e7160b8d", kill_on_drop: false }`
[INFO] [stdout] 7bb7e767653e91dfd7df0a4ee808ac1c3a466d6b9cac9aede2a23f21e7160b8d
