[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 try#d83b14207998f47b18a34e930157ac0d7c18b16e for pr-149137 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftheghostmac%2Fraft-consensus" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/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-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/theghostmac/raft-consensus on toolchain d83b14207998f47b18a34e930157ac0d7c18b16e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "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" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2fee94c8e0b333c015453eca95acb0f6b13fec5ea4e0ded5d50df62b545e6003 [INFO] running `Command { std: "docker" "start" "-a" "2fee94c8e0b333c015453eca95acb0f6b13fec5ea4e0ded5d50df62b545e6003", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2fee94c8e0b333c015453eca95acb0f6b13fec5ea4e0ded5d50df62b545e6003", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fee94c8e0b333c015453eca95acb0f6b13fec5ea4e0ded5d50df62b545e6003", kill_on_drop: false }` [INFO] [stdout] 2fee94c8e0b333c015453eca95acb0f6b13fec5ea4e0ded5d50df62b545e6003 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7cd1b894a59c0c16aebc47063f248f26c9c19830fb86bf65e252aebdc06c0531 [INFO] running `Command { std: "docker" "start" "-a" "7cd1b894a59c0c16aebc47063f248f26c9c19830fb86bf65e252aebdc06c0531", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.83 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Compiling serde v1.0.202 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.65 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Compiling serde_derive v1.0.202 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking env_logger v0.9.3 [INFO] [stderr] Checking tokio v1.37.0 [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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 `LogEntry` is never constructed [INFO] [stdout] --> src/raft/log.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct LogEntry { [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: struct `RequestVote` is never constructed [INFO] [stdout] --> src/raft/rpc.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RequestVote { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppendEntries` is never constructed [INFO] [stdout] --> src/raft/rpc.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct AppendEntries { [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)]` (part of `#[warn(unused)]`) 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 `LogEntry` is never constructed [INFO] [stdout] --> src/raft/log.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct LogEntry { [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: struct `RequestVote` is never constructed [INFO] [stdout] --> src/raft/rpc.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RequestVote { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppendEntries` is never constructed [INFO] [stdout] --> src/raft/rpc.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct AppendEntries { [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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 15.57s [INFO] running `Command { std: "docker" "inspect" "7cd1b894a59c0c16aebc47063f248f26c9c19830fb86bf65e252aebdc06c0531", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cd1b894a59c0c16aebc47063f248f26c9c19830fb86bf65e252aebdc06c0531", kill_on_drop: false }` [INFO] [stdout] 7cd1b894a59c0c16aebc47063f248f26c9c19830fb86bf65e252aebdc06c0531