[INFO] cloning repository https://github.com/theghostmac/raft-consensus [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/theghostmac/raft-consensus" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftheghostmac%2Fraft-consensus", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftheghostmac%2Fraft-consensus'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6f56f663304e714512e99cde0c49997730c8f376 [INFO] checking theghostmac/raft-consensus against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftheghostmac%2Fraft-consensus" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/theghostmac/raft-consensus [INFO] finished tweaking git repo https://github.com/theghostmac/raft-consensus [INFO] tweaked toml for git repo https://github.com/theghostmac/raft-consensus written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/theghostmac/raft-consensus on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/theghostmac/raft-consensus 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" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2335f878a4f0e36cfaa227ec26d976751e775a808771f5a30141098fe09650cf [INFO] running `Command { std: "docker" "start" "-a" "2335f878a4f0e36cfaa227ec26d976751e775a808771f5a30141098fe09650cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2335f878a4f0e36cfaa227ec26d976751e775a808771f5a30141098fe09650cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2335f878a4f0e36cfaa227ec26d976751e775a808771f5a30141098fe09650cf", kill_on_drop: false }` [INFO] [stdout] 2335f878a4f0e36cfaa227ec26d976751e775a808771f5a30141098fe09650cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 17f5e802554d2e995baf1436f5882bf12a3d034165affc76332f7f12bae2375c [INFO] running `Command { std: "docker" "start" "-a" "17f5e802554d2e995baf1436f5882bf12a3d034165affc76332f7f12bae2375c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro2 v1.0.83 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Compiling serde v1.0.202 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling syn v2.0.65 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Compiling serde_derive v1.0.202 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking env_logger v0.9.3 [INFO] [stderr] Checking serde_json v1.0.117 [INFO] [stderr] Checking raft-consensus v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `LogEntry` [INFO] [stdout] --> src/raft/node.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::raft::log::{Log, LogEntry}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LogEntry` [INFO] [stdout] --> src/raft/node.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::raft::log::{Log, LogEntry}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> src/raft/node.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | for peer in &self.peers { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_vote` [INFO] [stdout] --> src/raft/node.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let request_vote = request_vote.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_vote` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> src/raft/node.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | for peer in &self.peers { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_vote` [INFO] [stdout] --> src/raft/node.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let request_vote = request_vote.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_vote` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> src/raft/node.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | for peer in &self.peers { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `append_entries` [INFO] [stdout] --> src/raft/node.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let append_entries = append_entries.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_append_entries` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> src/raft/node.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | for peer in &self.peers { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `append_entries` [INFO] [stdout] --> src/raft/node.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let append_entries = append_entries.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_append_entries` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RaftConfig` is never constructed [INFO] [stdout] --> src/raft/config.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct RaftConfig { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_request_vote` is never used [INFO] [stdout] --> src/raft/election.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 4 | impl RaftNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 5 | pub async fn handle_request_vote(&mut self, request: RequestVote) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Log` is never constructed [INFO] [stdout] --> src/raft/log.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Log { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `append`, `last_entry`, `last_index`, and `last_term` are never used [INFO] [stdout] --> src/raft/log.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Log { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn append(&mut self, entry: LogEntry) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn last_entry(&self) -> Option<&LogEntry> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn last_index(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn last_term(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RaftNode` is never constructed [INFO] [stdout] --> src/raft/node.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct RaftNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `start`, `run`, `run_follower`, `run_candidate`, and `run_leader` are never used [INFO] [stdout] --> src/raft/node.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl RaftNode { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(config: RaftConfig, id: u64, peers: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn start(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | async fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | async fn run_follower(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | async fn run_candidate(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | async fn run_leader(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_append_entries` is never used [INFO] [stdout] --> src/raft/replication.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 4 | impl RaftNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 5 | pub async fn handle_append_entries(&mut self, request: AppendEntries) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `State` is never used [INFO] [stdout] --> src/raft/state.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send_request_vote` and `send_append_entries` are never used [INFO] [stdout] --> src/network/client.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl RaftNode { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 8 | pub async fn send_request_vote(&self, peer: &str, request_vote: RequestVote) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub async fn send_append_entries(&self, peer: &str, append_entries: AppendEntries) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start_server` is never used [INFO] [stdout] --> src/network/server.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl RaftNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 8 | pub async fn start_server(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RaftConfig` is never constructed [INFO] [stdout] --> src/raft/config.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct RaftConfig { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_request_vote` is never used [INFO] [stdout] --> src/raft/election.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 4 | impl RaftNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 5 | pub async fn handle_request_vote(&mut self, request: RequestVote) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Log` is never constructed [INFO] [stdout] --> src/raft/log.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Log { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `append`, `last_entry`, `last_index`, and `last_term` are never used [INFO] [stdout] --> src/raft/log.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Log { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn append(&mut self, entry: LogEntry) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn last_entry(&self) -> Option<&LogEntry> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn last_index(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn last_term(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RaftNode` is never constructed [INFO] [stdout] --> src/raft/node.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct RaftNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `start`, `run`, `run_follower`, `run_candidate`, and `run_leader` are never used [INFO] [stdout] --> src/raft/node.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl RaftNode { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(config: RaftConfig, id: u64, peers: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn start(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | async fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | async fn run_follower(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | async fn run_candidate(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | async fn run_leader(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_append_entries` is never used [INFO] [stdout] --> src/raft/replication.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 4 | impl RaftNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 5 | pub async fn handle_append_entries(&mut self, request: AppendEntries) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `State` is never used [INFO] [stdout] --> src/raft/state.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send_request_vote` and `send_append_entries` are never used [INFO] [stdout] --> src/network/client.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl RaftNode { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 8 | pub async fn send_request_vote(&self, peer: &str, request_vote: RequestVote) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub async fn send_append_entries(&self, peer: &str, append_entries: AppendEntries) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start_server` is never used [INFO] [stdout] --> src/network/server.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl RaftNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 8 | pub async fn start_server(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LogEntry` [INFO] [stdout] --> src/raft/node.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::raft::log::{Log, LogEntry}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LogEntry` [INFO] [stdout] --> src/raft/node.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::raft::log::{Log, LogEntry}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> src/raft/node.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | for peer in &self.peers { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_vote` [INFO] [stdout] --> src/raft/node.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let request_vote = request_vote.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_vote` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> src/raft/node.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | for peer in &self.peers { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `append_entries` [INFO] [stdout] --> src/raft/node.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let append_entries = append_entries.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_append_entries` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> src/raft/node.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | for peer in &self.peers { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_vote` [INFO] [stdout] --> src/raft/node.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let request_vote = request_vote.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_vote` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> src/raft/node.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | for peer in &self.peers { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `append_entries` [INFO] [stdout] --> src/raft/node.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let append_entries = append_entries.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_append_entries` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_request_vote` is never used [INFO] [stdout] --> src/raft/election.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 4 | impl RaftNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 5 | pub async fn handle_request_vote(&mut self, request: RequestVote) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `append`, `last_entry`, `last_index`, and `last_term` are never used [INFO] [stdout] --> src/raft/log.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Log { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn append(&mut self, entry: LogEntry) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn last_entry(&self) -> Option<&LogEntry> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn last_index(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn last_term(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `last_applied` are never read [INFO] [stdout] --> src/raft/node.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct RaftNode { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 10 | config: RaftConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | last_applied: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_append_entries` is never used [INFO] [stdout] --> src/raft/replication.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 4 | impl RaftNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 5 | pub async fn handle_append_entries(&mut self, request: AppendEntries) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send_request_vote` and `send_append_entries` are never used [INFO] [stdout] --> src/network/client.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl RaftNode { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 8 | pub async fn send_request_vote(&self, peer: &str, request_vote: RequestVote) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub async fn send_append_entries(&self, peer: &str, append_entries: AppendEntries) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start_server` is never used [INFO] [stdout] --> src/network/server.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl RaftNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 8 | pub async fn start_server(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_request_vote` is never used [INFO] [stdout] --> src/raft/election.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 4 | impl RaftNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 5 | pub async fn handle_request_vote(&mut self, request: RequestVote) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `append`, `last_entry`, `last_index`, and `last_term` are never used [INFO] [stdout] --> src/raft/log.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Log { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn append(&mut self, entry: LogEntry) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn last_entry(&self) -> Option<&LogEntry> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn last_index(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn last_term(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `last_applied` are never read [INFO] [stdout] --> src/raft/node.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct RaftNode { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 10 | config: RaftConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | last_applied: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_append_entries` is never used [INFO] [stdout] --> src/raft/replication.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 4 | impl RaftNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 5 | pub async fn handle_append_entries(&mut self, request: AppendEntries) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send_request_vote` and `send_append_entries` are never used [INFO] [stdout] --> src/network/client.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl RaftNode { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 8 | pub async fn send_request_vote(&self, peer: &str, request_vote: RequestVote) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub async fn send_append_entries(&self, peer: &str, append_entries: AppendEntries) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start_server` is never used [INFO] [stdout] --> src/network/server.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl RaftNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 8 | pub async fn start_server(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.64s [INFO] running `Command { std: "docker" "inspect" "17f5e802554d2e995baf1436f5882bf12a3d034165affc76332f7f12bae2375c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17f5e802554d2e995baf1436f5882bf12a3d034165affc76332f7f12bae2375c", kill_on_drop: false }` [INFO] [stdout] 17f5e802554d2e995baf1436f5882bf12a3d034165affc76332f7f12bae2375c