[INFO] cloning repository https://github.com/jayendramadaram/Raft-consensus-in-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jayendramadaram/Raft-consensus-in-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjayendramadaram%2FRaft-consensus-in-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjayendramadaram%2FRaft-consensus-in-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 467e84926dc9ccf5d70be545b0d78705772d187c
[INFO] testing jayendramadaram/Raft-consensus-in-rust against 1.98.0-beta.6+cargoflags=--release for beta-1.98-release-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjayendramadaram%2FRaft-consensus-in-rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/jayendramadaram/Raft-consensus-in-rust
[INFO] finished tweaking git repo https://github.com/jayendramadaram/Raft-consensus-in-rust
[INFO] tweaked toml for git repo https://github.com/jayendramadaram/Raft-consensus-in-rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/jayendramadaram/Raft-consensus-in-rust on toolchain 1.98.0-beta.6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/jayendramadaram/Raft-consensus-in-rust 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" "+1.98.0-beta.6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 5f89d79e808dddedafd5420c0ec6bd029639eaab8a5c7c71a178554db2f49026
[INFO] running `Command { std: "docker" "start" "5f89d79e808dddedafd5420c0ec6bd029639eaab8a5c7c71a178554db2f49026", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5f89d79e808dddedafd5420c0ec6bd029639eaab8a5c7c71a178554db2f49026", 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" "5f89d79e808dddedafd5420c0ec6bd029639eaab8a5c7c71a178554db2f49026" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5f89d79e808dddedafd5420c0ec6bd029639eaab8a5c7c71a178554db2f49026", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5f89d79e808dddedafd5420c0ec6bd029639eaab8a5c7c71a178554db2f49026" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.6" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.56
[INFO] [stderr]    Compiling quote v1.0.26
[INFO] [stderr]    Compiling unicode-ident v1.0.8
[INFO] [stderr]    Compiling libc v0.2.141
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling log v0.4.17
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]    Compiling futures-core v0.3.28
[INFO] [stderr]    Compiling pin-project-lite v0.2.9
[INFO] [stderr]    Compiling futures-sink v0.3.28
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling futures-channel v0.3.28
[INFO] [stderr]    Compiling smallvec v1.10.0
[INFO] [stderr]    Compiling slab v0.4.8
[INFO] [stderr]    Compiling futures-task v0.3.28
[INFO] [stderr]    Compiling lock_api v0.4.9
[INFO] [stderr]    Compiling futures-util v0.3.28
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]    Compiling futures-io v0.3.28
[INFO] [stderr]    Compiling cfg-if v0.1.10
[INFO] [stderr]    Compiling signal-hook-registry v1.4.1
[INFO] [stderr]    Compiling num_cpus v1.15.0
[INFO] [stderr]    Compiling net2 v0.2.38
[INFO] [stderr]    Compiling iovec v0.1.4
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling syn v2.0.13
[INFO] [stderr]    Compiling bytes v1.4.0
[INFO] [stderr]    Compiling once_cell v1.17.1
[INFO] [stderr]    Compiling bytes v0.5.6
[INFO] [stderr]    Compiling mio v0.6.23
[INFO] [stderr]    Compiling pin-project-lite v0.1.12
[INFO] [stderr]    Compiling itoa v1.0.6
[INFO] [stderr]    Compiling pin-project-internal v0.4.30
[INFO] [stderr]    Compiling parking_lot_core v0.8.6
[INFO] [stderr]    Compiling instant v0.1.12
[INFO] [stderr]    Compiling tinyvec v1.6.0
[INFO] [stderr]    Compiling http v0.2.9
[INFO] [stderr]    Compiling tracing-core v0.1.30
[INFO] [stderr]    Compiling typenum v1.16.0
[INFO] [stderr]    Compiling percent-encoding v2.2.0
[INFO] [stderr]    Compiling mio-uds v0.6.8
[INFO] [stderr]    Compiling convert_case v0.4.0
[INFO] [stderr]    Compiling tokio v0.2.25
[INFO] [stderr]    Compiling tracing v0.1.37
[INFO] [stderr]    Compiling unicode-normalization v0.1.22
[INFO] [stderr]    Compiling parking_lot v0.11.2
[INFO] [stderr]    Compiling threadpool v1.8.1
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling parking_lot_core v0.9.7
[INFO] [stderr]    Compiling serde_derive v1.0.159
[INFO] [stderr]    Compiling cc v1.0.79
[INFO] [stderr]    Compiling unicode-bidi v0.3.13
[INFO] [stderr]    Compiling pkg-config v0.3.26
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling form_urlencoded v1.1.0
[INFO] [stderr]    Compiling standback v0.2.17
[INFO] [stderr]    Compiling copyless v0.1.5
[INFO] [stderr]    Compiling serde v1.0.159
[INFO] [stderr]    Compiling proc-macro-hack v0.5.20+deprecated
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling openssl-sys v0.9.84
[INFO] [stderr]    Compiling idna v0.3.0
[INFO] [stderr]    Compiling tokio-util v0.3.1
[INFO] [stderr]    Compiling tokio v1.27.0
[INFO] [stderr]    Compiling either v1.8.1
[INFO] [stderr]    Compiling futures-macro v0.3.28
[INFO] [stderr]    Compiling thiserror v1.0.40
[INFO] [stderr]    Compiling async-trait v0.1.68
[INFO] [stderr]    Compiling httparse v1.8.0
[INFO] [stderr]    Compiling url v2.3.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.40
[INFO] [stderr]    Compiling tokio-macros v2.0.0
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling derive_more v0.99.17
[INFO] [stderr]    Compiling actix-macros v0.1.3
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling pin-project v0.4.30
[INFO] [stderr]    Compiling socket2 v0.4.9
[INFO] [stderr]    Compiling actix-codec v0.3.0
[INFO] [stderr]    Compiling mio v0.8.6
[INFO] [stderr]    Compiling const_fn v0.4.9
[INFO] [stderr]    Compiling match_cfg v0.1.0
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]    Compiling matches v0.1.10
[INFO] [stderr]    Compiling idna v0.2.3
[INFO] [stderr]    Compiling enum-as-inner v0.3.4
[INFO] [stderr]    Compiling hostname v0.3.1
[INFO] [stderr]    Compiling time-macros-impl v0.1.2
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling pin-project-internal v1.0.12
[INFO] [stderr]    Compiling actix-threadpool v0.3.3
[INFO] [stderr]    Compiling actix-service v1.0.6
[INFO] [stderr]    Compiling actix-rt v1.1.1
[INFO] [stderr]    Compiling futures-executor v0.3.28
[INFO] [stderr]    Compiling futures v0.3.28
[INFO] [stderr]    Compiling actix-utils v2.0.0
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]    Compiling block-buffer v0.9.0
[INFO] [stderr]    Compiling time v0.2.27
[INFO] [stderr]    Compiling cpufeatures v0.2.6
[INFO] [stderr]    Compiling crc32fast v1.3.2
[INFO] [stderr]    Compiling openssl v0.10.49
[INFO] [stderr]    Compiling ryu v1.0.13
[INFO] [stderr]    Compiling opaque-debug v0.3.0
[INFO] [stderr]    Compiling alloc-no-stdlib v2.0.4
[INFO] [stderr]    Compiling linked-hash-map v0.5.6
[INFO] [stderr]    Compiling serde_json v1.0.95
[INFO] [stderr]    Compiling quick-error v1.2.3
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling resolv-conf v0.7.0
[INFO] [stderr]    Compiling lru-cache v0.1.2
[INFO] [stderr]    Compiling trust-dns-proto v0.19.7
[INFO] [stderr]    Compiling alloc-stdlib v0.2.2
[INFO] [stderr]    Compiling pin-project v1.0.12
[INFO] [stderr]    Compiling time-macros v0.1.1
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling aho-corasick v0.7.20
[INFO] [stderr]    Compiling cookie v0.14.4
[INFO] [stderr]    Compiling adler v1.0.2
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling regex-syntax v0.6.29
[INFO] [stderr]    Compiling miniz_oxide v0.6.2
[INFO] [stderr]    Compiling trust-dns-resolver v0.19.7
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling regex v1.7.3
[INFO] [stderr]    Compiling tokio-util v0.7.7
[INFO] [stderr]    Compiling tracing-futures v0.2.5
[INFO] [stderr]    Compiling brotli-decompressor v2.3.4
[INFO] [stderr]    Compiling encoding_rs v0.8.32
[INFO] [stderr]    Compiling openssl-probe v0.1.5
[INFO] [stderr]    Compiling try-lock v0.2.4
[INFO] [stderr]    Compiling byteorder v1.4.3
[INFO] [stderr]    Compiling want v0.3.0
[INFO] [stderr]    Compiling fxhash v0.2.1
[INFO] [stderr]    Compiling brotli v3.3.4
[INFO] [stderr]    Compiling flate2 v1.0.25
[INFO] [stderr]    Compiling h2 v0.2.7
[INFO] [stderr]    Compiling h2 v0.3.16
[INFO] [stderr]    Compiling actix-connect v2.0.0
[INFO] [stderr]    Compiling sha-1 v0.9.8
[INFO] [stderr]    Compiling http-body v0.4.5
[INFO] [stderr]    Compiling getrandom v0.2.8
[INFO] [stderr]    Compiling socket2 v0.3.19
[INFO] [stderr]    Compiling language-tags v0.2.2
[INFO] [stderr]    Compiling base64 v0.13.1
[INFO] [stderr]    Compiling itoa v0.4.8
[INFO] [stderr]    Compiling tower-service v0.3.2
[INFO] [stderr]    Compiling httpdate v1.0.2
[INFO] [stderr]    Compiling actix-server v1.0.4
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling bytestring v1.3.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling actix-router v0.2.7
[INFO] [stderr]    Compiling actix-http v2.2.2
[INFO] [stderr]    Compiling actix-testing v1.0.1
[INFO] [stderr]    Compiling sha2 v0.9.9
[INFO] [stderr]    Compiling hyper v0.14.25
[INFO] [stderr]    Compiling actix-tls v2.0.0
[INFO] [stderr]    Compiling actix-web-codegen v0.4.0
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling ipnet v2.7.2
[INFO] [stderr]    Compiling base64 v0.21.0
[INFO] [stderr]    Compiling sha256 v1.1.2
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling awc v2.0.3
[INFO] [stderr]    Compiling async-recursion v1.0.4
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.16
[INFO] [stderr]    Compiling actix-web v3.3.3
[INFO] [stderr]    Compiling pantherchain v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `LittleEndian` and `WriteBytesExt`
[INFO] [stdout]  --> src/Helpers.rs:4:17
[INFO] [stdout]   |
[INFO] [stdout] 4 | use byteorder::{WriteBytesExt, LittleEndian};
[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::io::Cursor`
[INFO] [stdout]  --> src/Helpers.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::Cursor;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ErrorKind` and `Read`
[INFO] [stdout]  --> src/Senders.rs:1:15
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io::{Read, ErrorKind}; // IO Read and Error handling 
[INFO] [stdout]   |               ^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::Value`
[INFO] [stdout]  --> src/Senders.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::Value;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/Senders.rs:4:18
[INFO] [stdout]   |
[INFO] [stdout] 4 | use serde_json::{json};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Body`, `Client`, `Error`, and `Response`
[INFO] [stdout]  --> src/Senders.rs:5:15
[INFO] [stdout]   |
[INFO] [stdout] 5 | use reqwest::{Client, Error, Response, Body};
[INFO] [stdout]   |               ^^^^^^  ^^^^^  ^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/Senders.rs:6:19
[INFO] [stdout]   |
[INFO] [stdout] 6 | use tokio::time::{self,timeout, Duration};
[INFO] [stdout]   |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `state` should have an upper camel case name
[INFO] [stdout]   --> src/Senders.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub struct state {
[INFO] [stdout]    |            ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `State`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `sendEntries` should have an upper camel case name
[INFO] [stdout]   --> src/Senders.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub struct sendEntries {
[INFO] [stdout]    |            ^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `SendEntries`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `askPayload` should have an upper camel case name
[INFO] [stdout]   --> src/Senders.rs:58:13
[INFO] [stdout]    |
[INFO] [stdout] 58 | pub struct  askPayload {
[INFO] [stdout]    |             ^^^^^^^^^^ help: convert the identifier to upper camel case: `AskPayload`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `askVoteResp` should have an upper camel case name
[INFO] [stdout]   --> src/Senders.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 66 | pub struct askVoteResp {
[INFO] [stdout]    |            ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AskVoteResp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Write`
[INFO] [stdout]  --> src/Helpers.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::Write; // import the Write trait
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `resp` is never read
[INFO] [stdout]    --> src/Senders.rs:88:32
[INFO] [stdout]     |
[INFO] [stdout]  88 |         let mut resp :String = String::new();
[INFO] [stdout]     |                                ^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 106 |                     resp = String::from("Error: not enough arguments provided for Set command");
[INFO] [stdout]     |                     ---- `resp` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/Senders.rs:246:37
[INFO] [stdout]     |
[INFO] [stdout] 246 | ...                   Err(e) => {},
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/Senders.rs:249:29
[INFO] [stdout]     |
[INFO] [stdout] 249 |                         Err(e) => {
[INFO] [stdout]     |                             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/Senders.rs:290:13
[INFO] [stdout]     |
[INFO] [stdout] 290 |         let mut current_term = self.currentterm;
[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: `leaderId`
[INFO] [stdout]    --> src/Senders.rs:281:9
[INFO] [stdout]     |
[INFO] [stdout] 281 |         leaderId : Option<u64>,
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaderId`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/Senders.rs:370:33
[INFO] [stdout]     |
[INFO] [stdout] 370 | ...                   Err(e) => {}
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/Senders.rs:373:25
[INFO] [stdout]     |
[INFO] [stdout] 373 |                     Err(e) => {}
[INFO] [stdout]     |                         ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `totCount` is never read
[INFO] [stdout]    --> src/Senders.rs:361:25
[INFO] [stdout]     |
[INFO] [stdout] 361 |                         totCount += 1;
[INFO] [stdout]     |                         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: did you mean to capture by reference instead?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `totCount` is never read
[INFO] [stdout]    --> src/Senders.rs:361:25
[INFO] [stdout]     |
[INFO] [stdout] 361 |                         totCount += 1;
[INFO] [stdout]     |                         ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `total_positve` is never read
[INFO] [stdout]    --> src/Senders.rs:367:37
[INFO] [stdout]     |
[INFO] [stdout] 367 | ...                   total_positve += 1;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: did you mean to capture by reference instead?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `total_positve` is never read
[INFO] [stdout]    --> src/Senders.rs:367:37
[INFO] [stdout]     |
[INFO] [stdout] 367 | ...                   total_positve += 1;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/Senders.rs:395:13
[INFO] [stdout]     |
[INFO] [stdout] 395 |         let mut current_term = self.currentterm;
[INFO] [stdout]     |             ----^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `lastLogTerm`
[INFO] [stdout]    --> src/Senders.rs:391:9
[INFO] [stdout]     |
[INFO] [stdout] 391 |         lastLogTerm : u32
[INFO] [stdout]     |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lastLogTerm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ip` is never constructed
[INFO] [stdout]   --> src/Senders.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | struct Ip {
[INFO] [stdout]    |        ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Helpers` should have a snake case name
[INFO] [stdout]  --> src/lib.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | mod Helpers;
[INFO] [stdout]   |     ^^^^^^^ help: convert the identifier to snake case: `helpers`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Senders` should have a snake case name
[INFO] [stdout]  --> src/lib.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | mod Senders;
[INFO] [stdout]   |     ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `senders`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Operation` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 |     Operation: String,
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `operation`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `leaderId` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 47 |     pub leaderId : Option<u64>,
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `leader_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `prevLogIndex` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:48:9
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub prevLogIndex : usize,
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `prevLogTerm` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:49:9
[INFO] [stdout]    |
[INFO] [stdout] 49 |     pub prevLogTerm : u32,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `leaderCommit` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:51:9
[INFO] [stdout]    |
[INFO] [stdout] 51 |     pub leaderCommit : u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `leader_commit`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `candidateId` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:60:9
[INFO] [stdout]    |
[INFO] [stdout] 60 |     pub candidateId : u32,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `candidate_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `lastLogIndex` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:61:9
[INFO] [stdout]    |
[INFO] [stdout] 61 |     pub lastLogIndex : usize,
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `lastLogTerm` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:62:9
[INFO] [stdout]    |
[INFO] [stdout] 62 |     pub lastLogTerm : u32
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/Senders.rs:273:13
[INFO] [stdout]     |
[INFO] [stdout] 273 |             &self.send_entries(player as usize).await;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 273 |             let _ = &self.send_entries(player as usize).await;
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `leaderId` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:281:9
[INFO] [stdout]     |
[INFO] [stdout] 281 |         leaderId : Option<u64>,
[INFO] [stdout]     |         ^^^^^^^^ help: convert the identifier to snake case: `leader_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `prevLogIndex` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:282:9
[INFO] [stdout]     |
[INFO] [stdout] 282 |         prevLogIndex : usize,
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `prevLogTerm` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:283:9
[INFO] [stdout]     |
[INFO] [stdout] 283 |         prevLogTerm : u32,
[INFO] [stdout]     |         ^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `leaderCommit` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:285:9
[INFO] [stdout]     |
[INFO] [stdout] 285 |         leaderCommit : u64,
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `leader_commit`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `totCount` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:344:17
[INFO] [stdout]     |
[INFO] [stdout] 344 |         let mut totCount = 0;
[INFO] [stdout]     |                 ^^^^^^^^ help: convert the identifier to snake case: `tot_count`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `grantVote` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:388:12
[INFO] [stdout]     |
[INFO] [stdout] 388 |     pub fn grantVote(&mut self,term : u32,
[INFO] [stdout]     |            ^^^^^^^^^ help: convert the identifier to snake case: `grant_vote`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `candidateId` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:389:9
[INFO] [stdout]     |
[INFO] [stdout] 389 |         candidateId : u32,
[INFO] [stdout]     |         ^^^^^^^^^^^ help: convert the identifier to snake case: `candidate_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `lastLogIndex` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:390:9
[INFO] [stdout]     |
[INFO] [stdout] 390 |         lastLogIndex : usize,
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `lastLogTerm` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:391:9
[INFO] [stdout]     |
[INFO] [stdout] 391 |         lastLogTerm : u32
[INFO] [stdout]     |         ^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `term`
[INFO] [stdout]   --> src/main.rs:50:10
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let (term , success) = locked_data.recive_entries(data.term, data.leaderId, data.prevLogIndex, data.prevLogTerm, data.entries.cl...
[INFO] [stdout]    |          ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `term`
[INFO] [stdout]   --> src/main.rs:96:10
[INFO] [stdout]    |
[INFO] [stdout] 96 |     let (term , success) = locked_data.grantVote(data.term, data.candidateId, data.lastLogIndex, data.lastLogTerm);
[INFO] [stdout]    |          ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:143:13
[INFO] [stdout]     |
[INFO] [stdout] 143 |         let mut rt = tokio::runtime::Runtime::new().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: struct `AskPayload` is never constructed
[INFO] [stdout]   --> src/main.rs:24:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | struct AskPayload {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 4m 56s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: openssl v0.10.49
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] running `Command { std: "docker" "inspect" "5f89d79e808dddedafd5420c0ec6bd029639eaab8a5c7c71a178554db2f49026", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5f89d79e808dddedafd5420c0ec6bd029639eaab8a5c7c71a178554db2f49026" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stdout] warning: unused imports: `LittleEndian` and `WriteBytesExt`
[INFO] [stdout]  --> src/Helpers.rs:4:17
[INFO] [stdout]   |
[INFO] [stdout] 4 | use byteorder::{WriteBytesExt, LittleEndian};
[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::io::Cursor`
[INFO] [stdout]  --> src/Helpers.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::Cursor;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ErrorKind` and `Read`
[INFO] [stdout]  --> src/Senders.rs:1:15
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io::{Read, ErrorKind}; // IO Read and Error handling 
[INFO] [stdout]   |               ^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::Value`
[INFO] [stdout]  --> src/Senders.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::Value;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/Senders.rs:4:18
[INFO] [stdout]   |
[INFO] [stdout] 4 | use serde_json::{json};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Body`, `Client`, `Error`, and `Response`
[INFO] [stdout]  --> src/Senders.rs:5:15
[INFO] [stdout]   |
[INFO] [stdout] 5 | use reqwest::{Client, Error, Response, Body};
[INFO] [stdout]   |               ^^^^^^  ^^^^^  ^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/Senders.rs:6:19
[INFO] [stdout]   |
[INFO] [stdout] 6 | use tokio::time::{self,timeout, Duration};
[INFO] [stdout]   |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `state` should have an upper camel case name
[INFO] [stdout]   --> src/Senders.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub struct state {
[INFO] [stdout]    |            ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `State`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `sendEntries` should have an upper camel case name
[INFO] [stdout]   --> src/Senders.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub struct sendEntries {
[INFO] [stdout]    |            ^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `SendEntries`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `askPayload` should have an upper camel case name
[INFO] [stdout]   --> src/Senders.rs:58:13
[INFO] [stdout]    |
[INFO] [stdout] 58 | pub struct  askPayload {
[INFO] [stdout]    |             ^^^^^^^^^^ help: convert the identifier to upper camel case: `AskPayload`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `askVoteResp` should have an upper camel case name
[INFO] [stdout]   --> src/Senders.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 66 | pub struct askVoteResp {
[INFO] [stdout]    |            ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AskVoteResp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Write`
[INFO] [stdout]  --> src/Helpers.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::Write; // import the Write trait
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `resp` is never read
[INFO] [stdout]    --> src/Senders.rs:88:32
[INFO] [stdout]     |
[INFO] [stdout]  88 |         let mut resp :String = String::new();
[INFO] [stdout]     |                                ^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 106 |                     resp = String::from("Error: not enough arguments provided for Set command");
[INFO] [stdout]     |                     ---- `resp` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/Senders.rs:246:37
[INFO] [stdout]     |
[INFO] [stdout] 246 | ...                   Err(e) => {},
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/Senders.rs:249:29
[INFO] [stdout]     |
[INFO] [stdout] 249 |                         Err(e) => {
[INFO] [stdout]     |                             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/Senders.rs:290:13
[INFO] [stdout]     |
[INFO] [stdout] 290 |         let mut current_term = self.currentterm;
[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: `leaderId`
[INFO] [stdout]    --> src/Senders.rs:281:9
[INFO] [stdout]     |
[INFO] [stdout] 281 |         leaderId : Option<u64>,
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaderId`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/Senders.rs:370:33
[INFO] [stdout]     |
[INFO] [stdout] 370 | ...                   Err(e) => {}
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/Senders.rs:373:25
[INFO] [stdout]     |
[INFO] [stdout] 373 |                     Err(e) => {}
[INFO] [stdout]     |                         ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `totCount` is never read
[INFO] [stdout]    --> src/Senders.rs:361:25
[INFO] [stdout]     |
[INFO] [stdout] 361 |                         totCount += 1;
[INFO] [stdout]     |                         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: did you mean to capture by reference instead?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `totCount` is never read
[INFO] [stdout]    --> src/Senders.rs:361:25
[INFO] [stdout]     |
[INFO] [stdout] 361 |                         totCount += 1;
[INFO] [stdout]     |                         ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `total_positve` is never read
[INFO] [stdout]    --> src/Senders.rs:367:37
[INFO] [stdout]     |
[INFO] [stdout] 367 | ...                   total_positve += 1;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: did you mean to capture by reference instead?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `total_positve` is never read
[INFO] [stdout]    --> src/Senders.rs:367:37
[INFO] [stdout]     |
[INFO] [stdout] 367 | ...                   total_positve += 1;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/Senders.rs:395:13
[INFO] [stdout]     |
[INFO] [stdout] 395 |         let mut current_term = self.currentterm;
[INFO] [stdout]     |             ----^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `lastLogTerm`
[INFO] [stdout]    --> src/Senders.rs:391:9
[INFO] [stdout]     |
[INFO] [stdout] 391 |         lastLogTerm : u32
[INFO] [stdout]     |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lastLogTerm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ip` is never constructed
[INFO] [stdout]   --> src/Senders.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | struct Ip {
[INFO] [stdout]    |        ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Helpers` should have a snake case name
[INFO] [stdout]  --> src/lib.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | mod Helpers;
[INFO] [stdout]   |     ^^^^^^^ help: convert the identifier to snake case: `helpers`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Senders` should have a snake case name
[INFO] [stdout]  --> src/lib.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | mod Senders;
[INFO] [stdout]   |     ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `senders`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Operation` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 |     Operation: String,
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `operation`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `leaderId` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 47 |     pub leaderId : Option<u64>,
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `leader_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `prevLogIndex` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:48:9
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub prevLogIndex : usize,
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `prevLogTerm` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:49:9
[INFO] [stdout]    |
[INFO] [stdout] 49 |     pub prevLogTerm : u32,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `leaderCommit` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:51:9
[INFO] [stdout]    |
[INFO] [stdout] 51 |     pub leaderCommit : u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `leader_commit`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `candidateId` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:60:9
[INFO] [stdout]    |
[INFO] [stdout] 60 |     pub candidateId : u32,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `candidate_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `lastLogIndex` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:61:9
[INFO] [stdout]    |
[INFO] [stdout] 61 |     pub lastLogIndex : usize,
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `lastLogTerm` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:62:9
[INFO] [stdout]    |
[INFO] [stdout] 62 |     pub lastLogTerm : u32
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/Senders.rs:273:13
[INFO] [stdout]     |
[INFO] [stdout] 273 |             &self.send_entries(player as usize).await;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 273 |             let _ = &self.send_entries(player as usize).await;
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `leaderId` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:281:9
[INFO] [stdout]     |
[INFO] [stdout] 281 |         leaderId : Option<u64>,
[INFO] [stdout]     |         ^^^^^^^^ help: convert the identifier to snake case: `leader_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `prevLogIndex` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:282:9
[INFO] [stdout]     |
[INFO] [stdout] 282 |         prevLogIndex : usize,
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `prevLogTerm` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:283:9
[INFO] [stdout]     |
[INFO] [stdout] 283 |         prevLogTerm : u32,
[INFO] [stdout]     |         ^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `leaderCommit` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:285:9
[INFO] [stdout]     |
[INFO] [stdout] 285 |         leaderCommit : u64,
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `leader_commit`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `totCount` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:344:17
[INFO] [stdout]     |
[INFO] [stdout] 344 |         let mut totCount = 0;
[INFO] [stdout]     |                 ^^^^^^^^ help: convert the identifier to snake case: `tot_count`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling pantherchain v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: method `grantVote` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:388:12
[INFO] [stdout]     |
[INFO] [stdout] 388 |     pub fn grantVote(&mut self,term : u32,
[INFO] [stdout]     |            ^^^^^^^^^ help: convert the identifier to snake case: `grant_vote`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `candidateId` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:389:9
[INFO] [stdout]     |
[INFO] [stdout] 389 |         candidateId : u32,
[INFO] [stdout]     |         ^^^^^^^^^^^ help: convert the identifier to snake case: `candidate_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `lastLogIndex` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:390:9
[INFO] [stdout]     |
[INFO] [stdout] 390 |         lastLogIndex : usize,
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `lastLogTerm` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:391:9
[INFO] [stdout]     |
[INFO] [stdout] 391 |         lastLogTerm : u32
[INFO] [stdout]     |         ^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `LittleEndian` and `WriteBytesExt`
[INFO] [stdout]  --> src/Helpers.rs:4:17
[INFO] [stdout]   |
[INFO] [stdout] 4 | use byteorder::{WriteBytesExt, LittleEndian};
[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::io::Cursor`
[INFO] [stdout]  --> src/Helpers.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::Cursor;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ErrorKind` and `Read`
[INFO] [stdout]  --> src/Senders.rs:1:15
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io::{Read, ErrorKind}; // IO Read and Error handling 
[INFO] [stdout]   |               ^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::Value`
[INFO] [stdout]  --> src/Senders.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::Value;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/Senders.rs:4:18
[INFO] [stdout]   |
[INFO] [stdout] 4 | use serde_json::{json};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Body`, `Client`, `Error`, and `Response`
[INFO] [stdout]  --> src/Senders.rs:5:15
[INFO] [stdout]   |
[INFO] [stdout] 5 | use reqwest::{Client, Error, Response, Body};
[INFO] [stdout]   |               ^^^^^^  ^^^^^  ^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/Senders.rs:6:19
[INFO] [stdout]   |
[INFO] [stdout] 6 | use tokio::time::{self,timeout, Duration};
[INFO] [stdout]   |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `state` should have an upper camel case name
[INFO] [stdout]   --> src/Senders.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub struct state {
[INFO] [stdout]    |            ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `State`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `sendEntries` should have an upper camel case name
[INFO] [stdout]   --> src/Senders.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub struct sendEntries {
[INFO] [stdout]    |            ^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `SendEntries`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `askPayload` should have an upper camel case name
[INFO] [stdout]   --> src/Senders.rs:58:13
[INFO] [stdout]    |
[INFO] [stdout] 58 | pub struct  askPayload {
[INFO] [stdout]    |             ^^^^^^^^^^ help: convert the identifier to upper camel case: `AskPayload`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `askVoteResp` should have an upper camel case name
[INFO] [stdout]   --> src/Senders.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 66 | pub struct askVoteResp {
[INFO] [stdout]    |            ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AskVoteResp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `term`
[INFO] [stdout]   --> src/main.rs:50:10
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let (term , success) = locked_data.recive_entries(data.term, data.leaderId, data.prevLogIndex, data.prevLogTerm, data.entries.cl...
[INFO] [stdout]    |          ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `term`
[INFO] [stdout]   --> src/main.rs:96:10
[INFO] [stdout]    |
[INFO] [stdout] 96 |     let (term , success) = locked_data.grantVote(data.term, data.candidateId, data.lastLogIndex, data.lastLogTerm);
[INFO] [stdout]    |          ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:143:13
[INFO] [stdout]     |
[INFO] [stdout] 143 |         let mut rt = tokio::runtime::Runtime::new().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: struct `AskPayload` is never constructed
[INFO] [stdout]   --> src/main.rs:24:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | struct AskPayload {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Write`
[INFO] [stdout]  --> src/Helpers.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::Write; // import the Write trait
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `resp` is never read
[INFO] [stdout]    --> src/Senders.rs:88:32
[INFO] [stdout]     |
[INFO] [stdout]  88 |         let mut resp :String = String::new();
[INFO] [stdout]     |                                ^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 106 |                     resp = String::from("Error: not enough arguments provided for Set command");
[INFO] [stdout]     |                     ---- `resp` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/Senders.rs:246:37
[INFO] [stdout]     |
[INFO] [stdout] 246 | ...                   Err(e) => {},
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/Senders.rs:249:29
[INFO] [stdout]     |
[INFO] [stdout] 249 |                         Err(e) => {
[INFO] [stdout]     |                             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/Senders.rs:290:13
[INFO] [stdout]     |
[INFO] [stdout] 290 |         let mut current_term = self.currentterm;
[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: `leaderId`
[INFO] [stdout]    --> src/Senders.rs:281:9
[INFO] [stdout]     |
[INFO] [stdout] 281 |         leaderId : Option<u64>,
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaderId`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/Senders.rs:370:33
[INFO] [stdout]     |
[INFO] [stdout] 370 | ...                   Err(e) => {}
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/Senders.rs:373:25
[INFO] [stdout]     |
[INFO] [stdout] 373 |                     Err(e) => {}
[INFO] [stdout]     |                         ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `totCount` is never read
[INFO] [stdout]    --> src/Senders.rs:361:25
[INFO] [stdout]     |
[INFO] [stdout] 361 |                         totCount += 1;
[INFO] [stdout]     |                         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: did you mean to capture by reference instead?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `totCount` is never read
[INFO] [stdout]    --> src/Senders.rs:361:25
[INFO] [stdout]     |
[INFO] [stdout] 361 |                         totCount += 1;
[INFO] [stdout]     |                         ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `total_positve` is never read
[INFO] [stdout]    --> src/Senders.rs:367:37
[INFO] [stdout]     |
[INFO] [stdout] 367 | ...                   total_positve += 1;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: did you mean to capture by reference instead?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `total_positve` is never read
[INFO] [stdout]    --> src/Senders.rs:367:37
[INFO] [stdout]     |
[INFO] [stdout] 367 | ...                   total_positve += 1;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/Senders.rs:395:13
[INFO] [stdout]     |
[INFO] [stdout] 395 |         let mut current_term = self.currentterm;
[INFO] [stdout]     |             ----^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `lastLogTerm`
[INFO] [stdout]    --> src/Senders.rs:391:9
[INFO] [stdout]     |
[INFO] [stdout] 391 |         lastLogTerm : u32
[INFO] [stdout]     |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lastLogTerm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ip` is never constructed
[INFO] [stdout]   --> src/Senders.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | struct Ip {
[INFO] [stdout]    |        ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Helpers` should have a snake case name
[INFO] [stdout]  --> src/lib.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | mod Helpers;
[INFO] [stdout]   |     ^^^^^^^ help: convert the identifier to snake case: `helpers`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Senders` should have a snake case name
[INFO] [stdout]  --> src/lib.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | mod Senders;
[INFO] [stdout]   |     ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `senders`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Operation` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 |     Operation: String,
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `operation`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `leaderId` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 47 |     pub leaderId : Option<u64>,
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `leader_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `prevLogIndex` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:48:9
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub prevLogIndex : usize,
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `prevLogTerm` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:49:9
[INFO] [stdout]    |
[INFO] [stdout] 49 |     pub prevLogTerm : u32,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `leaderCommit` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:51:9
[INFO] [stdout]    |
[INFO] [stdout] 51 |     pub leaderCommit : u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `leader_commit`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `candidateId` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:60:9
[INFO] [stdout]    |
[INFO] [stdout] 60 |     pub candidateId : u32,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `candidate_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `lastLogIndex` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:61:9
[INFO] [stdout]    |
[INFO] [stdout] 61 |     pub lastLogIndex : usize,
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `lastLogTerm` should have a snake case name
[INFO] [stdout]   --> src/Senders.rs:62:9
[INFO] [stdout]    |
[INFO] [stdout] 62 |     pub lastLogTerm : u32
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/Senders.rs:273:13
[INFO] [stdout]     |
[INFO] [stdout] 273 |             &self.send_entries(player as usize).await;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 273 |             let _ = &self.send_entries(player as usize).await;
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `leaderId` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:281:9
[INFO] [stdout]     |
[INFO] [stdout] 281 |         leaderId : Option<u64>,
[INFO] [stdout]     |         ^^^^^^^^ help: convert the identifier to snake case: `leader_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `prevLogIndex` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:282:9
[INFO] [stdout]     |
[INFO] [stdout] 282 |         prevLogIndex : usize,
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `prevLogTerm` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:283:9
[INFO] [stdout]     |
[INFO] [stdout] 283 |         prevLogTerm : u32,
[INFO] [stdout]     |         ^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `leaderCommit` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:285:9
[INFO] [stdout]     |
[INFO] [stdout] 285 |         leaderCommit : u64,
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `leader_commit`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `totCount` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:344:17
[INFO] [stdout]     |
[INFO] [stdout] 344 |         let mut totCount = 0;
[INFO] [stdout]     |                 ^^^^^^^^ help: convert the identifier to snake case: `tot_count`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `grantVote` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:388:12
[INFO] [stdout]     |
[INFO] [stdout] 388 |     pub fn grantVote(&mut self,term : u32,
[INFO] [stdout]     |            ^^^^^^^^^ help: convert the identifier to snake case: `grant_vote`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `candidateId` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:389:9
[INFO] [stdout]     |
[INFO] [stdout] 389 |         candidateId : u32,
[INFO] [stdout]     |         ^^^^^^^^^^^ help: convert the identifier to snake case: `candidate_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `lastLogIndex` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:390:9
[INFO] [stdout]     |
[INFO] [stdout] 390 |         lastLogIndex : usize,
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `lastLogTerm` should have a snake case name
[INFO] [stdout]    --> src/Senders.rs:391:9
[INFO] [stdout]     |
[INFO] [stdout] 391 |         lastLogTerm : u32
[INFO] [stdout]     |         ^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 1.00s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: openssl v0.10.49
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] running `Command { std: "docker" "inspect" "5f89d79e808dddedafd5420c0ec6bd029639eaab8a5c7c71a178554db2f49026", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5f89d79e808dddedafd5420c0ec6bd029639eaab8a5c7c71a178554db2f49026" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.6" "test" "--frozen" "--release", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `LittleEndian` and `WriteBytesExt`
[INFO] [stderr]  --> src/Helpers.rs:4:17
[INFO] [stderr]   |
[INFO] [stderr] 4 | use byteorder::{WriteBytesExt, LittleEndian};
[INFO] [stderr]   |                 ^^^^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::io::Cursor`
[INFO] [stderr]  --> src/Helpers.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use std::io::Cursor;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `ErrorKind` and `Read`
[INFO] [stderr]  --> src/Senders.rs:1:15
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::io::{Read, ErrorKind}; // IO Read and Error handling 
[INFO] [stderr]   |               ^^^^  ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `serde_json::Value`
[INFO] [stderr]  --> src/Senders.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use serde_json::Value;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `json`
[INFO] [stderr]  --> src/Senders.rs:4:18
[INFO] [stderr]   |
[INFO] [stderr] 4 | use serde_json::{json};
[INFO] [stderr]   |                  ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Body`, `Client`, `Error`, and `Response`
[INFO] [stderr]  --> src/Senders.rs:5:15
[INFO] [stderr]   |
[INFO] [stderr] 5 | use reqwest::{Client, Error, Response, Body};
[INFO] [stderr]   |               ^^^^^^  ^^^^^  ^^^^^^^^  ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `self`
[INFO] [stderr]  --> src/Senders.rs:6:19
[INFO] [stderr]   |
[INFO] [stderr] 6 | use tokio::time::{self,timeout, Duration};
[INFO] [stderr]   |                   ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: type `state` should have an upper camel case name
[INFO] [stderr]   --> src/Senders.rs:31:12
[INFO] [stderr]    |
[INFO] [stderr] 31 | pub struct state {
[INFO] [stderr]    |            ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `State`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: type `sendEntries` should have an upper camel case name
[INFO] [stderr]   --> src/Senders.rs:45:12
[INFO] [stderr]    |
[INFO] [stderr] 45 | pub struct sendEntries {
[INFO] [stderr]    |            ^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `SendEntries`
[INFO] [stderr] 
[INFO] [stderr] warning: type `askPayload` should have an upper camel case name
[INFO] [stderr]   --> src/Senders.rs:58:13
[INFO] [stderr]    |
[INFO] [stderr] 58 | pub struct  askPayload {
[INFO] [stderr]    |             ^^^^^^^^^^ help: convert the identifier to upper camel case: `AskPayload`
[INFO] [stderr] 
[INFO] [stderr] warning: type `askVoteResp` should have an upper camel case name
[INFO] [stderr]   --> src/Senders.rs:66:12
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub struct askVoteResp {
[INFO] [stderr]    |            ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AskVoteResp`
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::io::Write`
[INFO] [stderr]  --> src/Helpers.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::io::Write; // import the Write trait
[INFO] [stderr]   |     ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `resp` is never read
[INFO] [stderr]    --> src/Senders.rs:88:32
[INFO] [stderr]     |
[INFO] [stderr]  88 |         let mut resp :String = String::new();
[INFO] [stderr]     |                                ^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stderr] ...
[INFO] [stderr] 106 |                     resp = String::from("Error: not enough arguments provided for Set command");
[INFO] [stderr]     |                     ---- `resp` is overwritten here before the previous value is read
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]    --> src/Senders.rs:246:37
[INFO] [stderr]     |
[INFO] [stderr] 246 | ...                   Err(e) => {},
[INFO] [stderr]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]    --> src/Senders.rs:249:29
[INFO] [stderr]     |
[INFO] [stderr] 249 |                         Err(e) => {
[INFO] [stderr]     |                             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/Senders.rs:290:13
[INFO] [stderr]     |
[INFO] [stderr] 290 |         let mut current_term = self.currentterm;
[INFO] [stderr]     |             ----^^^^^^^^^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `leaderId`
[INFO] [stderr]    --> src/Senders.rs:281:9
[INFO] [stderr]     |
[INFO] [stderr] 281 |         leaderId : Option<u64>,
[INFO] [stderr]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaderId`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]    --> src/Senders.rs:370:33
[INFO] [stderr]     |
[INFO] [stderr] 370 | ...                   Err(e) => {}
[INFO] [stderr]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]    --> src/Senders.rs:373:25
[INFO] [stderr]     |
[INFO] [stderr] 373 |                     Err(e) => {}
[INFO] [stderr]     |                         ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: value captured by `totCount` is never read
[INFO] [stderr]    --> src/Senders.rs:361:25
[INFO] [stderr]     |
[INFO] [stderr] 361 |                         totCount += 1;
[INFO] [stderr]     |                         ^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: did you mean to capture by reference instead?
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `totCount` is never read
[INFO] [stderr]    --> src/Senders.rs:361:25
[INFO] [stderr]     |
[INFO] [stderr] 361 |                         totCount += 1;
[INFO] [stderr]     |                         ^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: maybe it is overwritten before being read?
[INFO] [stderr] 
[INFO] [stderr] warning: value captured by `total_positve` is never read
[INFO] [stderr]    --> src/Senders.rs:367:37
[INFO] [stderr]     |
[INFO] [stderr] 367 | ...                   total_positve += 1;
[INFO] [stderr]     |                       ^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: did you mean to capture by reference instead?
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `total_positve` is never read
[INFO] [stderr]    --> src/Senders.rs:367:37
[INFO] [stderr]     |
[INFO] [stderr] 367 | ...                   total_positve += 1;
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: maybe it is overwritten before being read?
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/Senders.rs:395:13
[INFO] [stderr]     |
[INFO] [stderr] 395 |         let mut current_term = self.currentterm;
[INFO] [stderr]     |             ----^^^^^^^^^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `lastLogTerm`
[INFO] [stderr]    --> src/Senders.rs:391:9
[INFO] [stderr]     |
[INFO] [stderr] 391 |         lastLogTerm : u32
[INFO] [stderr]     |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lastLogTerm`
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Ip` is never constructed
[INFO] [stderr]   --> src/Senders.rs:25:8
[INFO] [stderr]    |
[INFO] [stderr] 25 | struct Ip {
[INFO] [stderr]    |        ^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: module `Helpers` should have a snake case name
[INFO] [stderr]  --> src/lib.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | mod Helpers;
[INFO] [stderr]   |     ^^^^^^^ help: convert the identifier to snake case: `helpers`
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: module `Senders` should have a snake case name
[INFO] [stderr]  --> src/lib.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | mod Senders;
[INFO] [stderr]   |     ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `senders`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Operation` should have a snake case name
[INFO] [stderr]   --> src/Senders.rs:20:5
[INFO] [stderr]    |
[INFO] [stderr] 20 |     Operation: String,
[INFO] [stderr]    |     ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `operation`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `leaderId` should have a snake case name
[INFO] [stderr]   --> src/Senders.rs:47:9
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub leaderId : Option<u64>,
[INFO] [stderr]    |         ^^^^^^^^ help: convert the identifier to snake case: `leader_id`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `prevLogIndex` should have a snake case name
[INFO] [stderr]   --> src/Senders.rs:48:9
[INFO] [stderr]    |
[INFO] [stderr] 48 |     pub prevLogIndex : usize,
[INFO] [stderr]    |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_index`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `prevLogTerm` should have a snake case name
[INFO] [stderr]   --> src/Senders.rs:49:9
[INFO] [stderr]    |
[INFO] [stderr] 49 |     pub prevLogTerm : u32,
[INFO] [stderr]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_term`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `leaderCommit` should have a snake case name
[INFO] [stderr]   --> src/Senders.rs:51:9
[INFO] [stderr]    |
[INFO] [stderr] 51 |     pub leaderCommit : u64,
[INFO] [stderr]    |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `leader_commit`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `candidateId` should have a snake case name
[INFO] [stderr]   --> src/Senders.rs:60:9
[INFO] [stderr]    |
[INFO] [stderr] 60 |     pub candidateId : u32,
[INFO] [stderr]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `candidate_id`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `lastLogIndex` should have a snake case name
[INFO] [stderr]   --> src/Senders.rs:61:9
[INFO] [stderr]    |
[INFO] [stderr] 61 |     pub lastLogIndex : usize,
[INFO] [stderr]    |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_index`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `lastLogTerm` should have a snake case name
[INFO] [stderr]   --> src/Senders.rs:62:9
[INFO] [stderr]    |
[INFO] [stderr] 62 |     pub lastLogTerm : u32
[INFO] [stderr]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_term`
[INFO] [stderr] 
[INFO] [stderr] warning: unused borrow that must be used
[INFO] [stderr]    --> src/Senders.rs:273:13
[INFO] [stderr]     |
[INFO] [stderr] 273 |             &self.send_entries(player as usize).await;
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 273 |             let _ = &self.send_entries(player as usize).await;
[INFO] [stderr]     |             +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: variable `leaderId` should have a snake case name
[INFO] [stderr]    --> src/Senders.rs:281:9
[INFO] [stderr]     |
[INFO] [stderr] 281 |         leaderId : Option<u64>,
[INFO] [stderr]     |         ^^^^^^^^ help: convert the identifier to snake case: `leader_id`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `prevLogIndex` should have a snake case name
[INFO] [stderr]    --> src/Senders.rs:282:9
[INFO] [stderr]     |
[INFO] [stderr] 282 |         prevLogIndex : usize,
[INFO] [stderr]     |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_index`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `prevLogTerm` should have a snake case name
[INFO] [stderr]    --> src/Senders.rs:283:9
[INFO] [stderr]     |
[INFO] [stderr] 283 |         prevLogTerm : u32,
[INFO] [stderr]     |         ^^^^^^^^^^^ help: convert the identifier to snake case: `prev_log_term`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `leaderCommit` should have a snake case name
[INFO] [stderr]    --> src/Senders.rs:285:9
[INFO] [stderr]     |
[INFO] [stderr] 285 |         leaderCommit : u64,
[INFO] [stderr]     |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `leader_commit`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `totCount` should have a snake case name
[INFO] [stderr]    --> src/Senders.rs:344:17
[INFO] [stderr]     |
[INFO] [stderr] 344 |         let mut totCount = 0;
[INFO] [stderr]     |                 ^^^^^^^^ help: convert the identifier to snake case: `tot_count`
[INFO] [stderr] 
[INFO] [stderr] warning: method `grantVote` should have a snake case name
[INFO] [stderr]    --> src/Senders.rs:388:12
[INFO] [stderr]     |
[INFO] [stderr] 388 |     pub fn grantVote(&mut self,term : u32,
[INFO] [stderr]     |            ^^^^^^^^^ help: convert the identifier to snake case: `grant_vote`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `candidateId` should have a snake case name
[INFO] [stderr]    --> src/Senders.rs:389:9
[INFO] [stderr]     |
[INFO] [stderr] 389 |         candidateId : u32,
[INFO] [stderr]     |         ^^^^^^^^^^^ help: convert the identifier to snake case: `candidate_id`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `lastLogIndex` should have a snake case name
[INFO] [stderr]    --> src/Senders.rs:390:9
[INFO] [stderr]     |
[INFO] [stderr] 390 |         lastLogIndex : usize,
[INFO] [stderr]     |         ^^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_index`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `lastLogTerm` should have a snake case name
[INFO] [stderr]    --> src/Senders.rs:391:9
[INFO] [stderr]     |
[INFO] [stderr] 391 |         lastLogTerm : u32
[INFO] [stderr]     |         ^^^^^^^^^^^ help: convert the identifier to snake case: `last_log_term`
[INFO] [stderr] 
[INFO] [stderr] warning: `pantherchain` (lib) generated 46 warnings (run `cargo fix --lib -p pantherchain` to apply 15 suggestions)
[INFO] [stderr] warning: `pantherchain` (lib test) generated 46 warnings (46 duplicates)
[INFO] [stderr] warning: unused variable: `term`
[INFO] [stderr]   --> src/main.rs:50:10
[INFO] [stderr]    |
[INFO] [stderr] 50 |     let (term , success) = locked_data.recive_entries(data.term, data.leaderId, data.prevLogIndex, data.prevLogTerm, data.entries.cl...
[INFO] [stderr]    |          ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `term`
[INFO] [stderr]   --> src/main.rs:96:10
[INFO] [stderr]    |
[INFO] [stderr] 96 |     let (term , success) = locked_data.grantVote(data.term, data.candidateId, data.lastLogIndex, data.lastLogTerm);
[INFO] [stderr]    |          ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/main.rs:143:13
[INFO] [stderr]     |
[INFO] [stderr] 143 |         let mut rt = tokio::runtime::Runtime::new().unwrap();
[INFO] [stderr]     |             ----^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: struct `AskPayload` is never constructed
[INFO] [stderr]   --> src/main.rs:24:8
[INFO] [stderr]    |
[INFO] [stderr] 24 | struct AskPayload {
[INFO] [stderr]    |        ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `pantherchain` (bin "my_executable" test) generated 4 warnings (run `cargo fix --bin "my_executable" -p pantherchain --tests` to apply 3 suggestions)
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.32s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: openssl v0.10.49
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/release/deps/my_lib-a65ec4e4caaae684)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/release/deps/my_executable-176f26e1a77c9644)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests my_lib
[INFO] [stderr] warning: type `state` should have an upper camel case name
[INFO] [stderr]   --> src/Senders.rs:31:12
[INFO] [stderr]    |
[INFO] [stderr] 31 | pub struct state {
[INFO] [stderr]    |            ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `State`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: type `sendEntries` should have an upper camel case name
[INFO] [stderr]   --> src/Senders.rs:45:12
[INFO] [stderr]    |
[INFO] [stderr] 45 | pub struct sendEntries {
[INFO] [stderr]    |            ^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `SendEntries`
[INFO] [stderr] 
[INFO] [stderr] warning: type `askPayload` should have an upper camel case name
[INFO] [stderr]   --> src/Senders.rs:58:13
[INFO] [stderr]    |
[INFO] [stderr] 58 | pub struct  askPayload {
[INFO] [stderr]    |             ^^^^^^^^^^ help: convert the identifier to upper camel case: `AskPayload`
[INFO] [stderr] 
[INFO] [stderr] warning: type `askVoteResp` should have an upper camel case name
[INFO] [stderr]   --> src/Senders.rs:66:12
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub struct askVoteResp {
[INFO] [stderr]    |            ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AskVoteResp`
[INFO] [stderr] 
[INFO] [stderr] warning: 4 warnings emitted
[INFO] [stdout] 
[INFO] [stderr] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "5f89d79e808dddedafd5420c0ec6bd029639eaab8a5c7c71a178554db2f49026", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5f89d79e808dddedafd5420c0ec6bd029639eaab8a5c7c71a178554db2f49026", kill_on_drop: false }`
[INFO] [stdout] 5f89d79e808dddedafd5420c0ec6bd029639eaab8a5c7c71a178554db2f49026
