[INFO] cloning repository https://github.com/AlphaGodzilla/PartitionLink [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlphaGodzilla/PartitionLink" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlphaGodzilla%2FPartitionLink", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlphaGodzilla%2FPartitionLink'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d626e0a6405e320fa9bd1389b5d263c7840571fb [INFO] building AlphaGodzilla/PartitionLink against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlphaGodzilla%2FPartitionLink" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/AlphaGodzilla/PartitionLink [INFO] finished tweaking git repo https://github.com/AlphaGodzilla/PartitionLink [INFO] tweaked toml for git repo https://github.com/AlphaGodzilla/PartitionLink written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/AlphaGodzilla/PartitionLink on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/AlphaGodzilla/PartitionLink 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e329b0ab16d904c20fd7611d7cd28e4ad7f85099da56ebcd8d8d4ed5f0a7403c [INFO] running `Command { std: "docker" "start" "-a" "e329b0ab16d904c20fd7611d7cd28e4ad7f85099da56ebcd8d8d4ed5f0a7403c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e329b0ab16d904c20fd7611d7cd28e4ad7f85099da56ebcd8d8d4ed5f0a7403c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e329b0ab16d904c20fd7611d7cd28e4ad7f85099da56ebcd8d8d4ed5f0a7403c", kill_on_drop: false }` [INFO] [stdout] e329b0ab16d904c20fd7611d7cd28e4ad7f85099da56ebcd8d8d4ed5f0a7403c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a215bc9e33f3f4637b766333eff3fb7edb5354ca2fbde253517231fa32c1223e [INFO] running `Command { std: "docker" "start" "-a" "a215bc9e33f3f4637b766333eff3fb7edb5354ca2fbde253517231fa32c1223e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling serde v1.0.208 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling slog v2.7.0 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling prettyplease v0.2.22 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling indexmap v2.4.0 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling cc v1.1.8 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling slog-async v2.8.0 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling protobuf-codegen v2.28.0 [INFO] [stderr] Compiling slog-scope v4.4.0 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling protobuf-build v0.14.1 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling is-terminal v0.4.13 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling gimli v0.29.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling multimap v0.10.0 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling serde_derive v1.0.208 [INFO] [stderr] Compiling prost-derive v0.13.2 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling slog-term v2.9.1 [INFO] [stderr] Compiling raft-proto v0.7.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling anstyle-parse v0.2.5 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling slog-stdlog v4.1.1 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling mio v1.0.1 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling object v0.36.3 [INFO] [stderr] Compiling colorchoice v1.0.2 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling anstyle-query v1.1.1 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling serde_json v1.0.125 [INFO] [stderr] Compiling rustc-demangle v0.1.24 [INFO] [stderr] Compiling prost v0.13.2 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Compiling slog-envlogger v2.2.0 [INFO] [stderr] Compiling prost-types v0.13.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling addr2line v0.22.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling getset v0.1.3 [INFO] [stderr] Compiling env_filter v0.1.2 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling prost-build v0.13.1 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling cesu8 v1.1.0 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling jni-sys v0.3.0 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling env_logger v0.11.5 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling PartitionLink v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling tokio v1.39.2 [INFO] [stderr] Compiling jni v0.21.1 [INFO] [stderr] Compiling raft v0.7.0 [INFO] [stderr] Compiling tokio-context v0.1.3 [INFO] [stdout] warning: unused import: `crate::db::dbvalue::DBValue` [INFO] [stdout] --> src/cluster/cluster.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::db::dbvalue::DBValue; [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: `prost::Message` [INFO] [stdout] --> src/command/hash_get.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use prost::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db::dbvalue::DBValue` [INFO] [stdout] --> src/cluster/cluster.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::db::dbvalue::DBValue; [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: `prost::Message` [INFO] [stdout] --> src/command/hash_get.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use prost::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db::dbvalue::DBValue` [INFO] [stdout] --> src/cluster/cluster.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::db::dbvalue::DBValue; [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: `prost::Message` [INFO] [stdout] --> src/command/hash_get.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use prost::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/discover.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | app: &Runtime, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> src/cmd_server.rs:53:53 [INFO] [stdout] | [INFO] [stdout] 53 | async fn accept(app: Arc, ctx: RefContext, cfg: Arc, tcp_listener: &TcpListener) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> src/cmd_server.rs:53:53 [INFO] [stdout] | [INFO] [stdout] 53 | async fn accept(app: Arc, ctx: RefContext, cfg: Arc, tcp_listener: &TcpListener) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/discover.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | app: &Runtime, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMapExt` [INFO] [stdout] --> src/node.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use ahash::{AHashMap, HashMapExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protobuf::reflect::ProtobufValue` [INFO] [stdout] --> src/command/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use protobuf::reflect::ProtobufValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/connection/connection.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | io::{Cursor, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> src/node.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMapExt` [INFO] [stdout] --> src/node.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use ahash::{AHashMap, HashMapExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protobuf::reflect::ProtobufValue` [INFO] [stdout] --> src/command/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use protobuf::reflect::ProtobufValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/connection/connection.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | io::{Cursor, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> src/node.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> src/cmd_server.rs:53:53 [INFO] [stdout] | [INFO] [stdout] 53 | async fn accept(app: Arc, ctx: RefContext, cfg: Arc, tcp_listener: &TcpListener) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hash_get.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hash_put.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hello.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/hello.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hash_get.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/discover.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | app: &Runtime, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/invalid.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/invalid.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hash_put.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/raft.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/raft.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hello.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/hello.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/db/dbvalue.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | for item in iter { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/invalid.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/invalid.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/db/dbvalue.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | DbValueEnum::None(v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/db/dbvalue.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | for item in iter { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/raft.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/raft.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `first_conn` is never used [INFO] [stdout] --> src/connection/manager.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 17 | impl ConnectionManager { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | async fn first_conn(&self) -> anyhow::Result>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `PartitionLink` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `partition_link` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/db/dbvalue.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | for item in iter { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMapExt` [INFO] [stdout] --> src/node.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use ahash::{AHashMap, HashMapExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protobuf::reflect::ProtobufValue` [INFO] [stdout] --> src/command/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use protobuf::reflect::ProtobufValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/connection/connection.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | io::{Cursor, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> src/node.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/db/dbvalue.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | DbValueEnum::None(v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/db/dbvalue.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | for item in iter { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_cmd_test` is never used [INFO] [stdout] --> src/client.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | async fn hello_cmd_test(tx: &Sender>, times: usize) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `broadcast` is never used [INFO] [stdout] --> src/cluster/mod.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn broadcast(conn_manager: &ConnectionManager, command: &Command) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_frame` is never used [INFO] [stdout] --> src/cluster/mod.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | async fn send_frame(conn_manager: &ConnectionManager, frames: &mut [Frame]) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClusterNode` is never constructed [INFO] [stdout] --> src/cluster/cluster.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct ClusterNode { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/cluster/cluster.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ClusterNode { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 34 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn tick(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn step(&mut self, msg: Message) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | async fn handle_message(&self, messages: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | async fn handle_committed_entries(&mut self, committed_entries: Vec, app: &Runtime) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub async fn poll(&mut self, app: &Runtime) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | pub fn add_node(&mut self, add_node: &ProposalAddNode) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn propose_command(&mut self, command: &Command) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_node_addr` is never used [INFO] [stdout] --> src/cluster/cluster.rs:330:14 [INFO] [stdout] | [INFO] [stdout] 330 | pub async fn get_node_addr( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_cluster` is never used [INFO] [stdout] --> src/cluster/cluster.rs:340:8 [INFO] [stdout] | [INFO] [stdout] 340 | pub fn start_cluster( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_cmd_server` is never used [INFO] [stdout] --> src/cmd_server.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn start_cmd_server( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `accept` is never used [INFO] [stdout] --> src/cmd_server.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | async fn accept(app: Arc, ctx: RefContext, cfg: Arc, tcp_listener: &TcpListener) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CommandType` is never used [INFO] [stdout] --> src/command/mod.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum CommandType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cmd_type`, `to_cmd`, `is_write_type`, `is_read_type`, and `is_valid` are never used [INFO] [stdout] --> src/command/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub trait ExecutableCommand: Display + Send + Sync + Any { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 35 | // 命令类型,分为读类型和写类型 [INFO] [stdout] 36 | fn cmd_type(&self) -> CommandType; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn to_cmd(&self) -> anyhow::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn is_write_type(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn is_read_type(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tx` is never read [INFO] [stdout] --> src/command/mod.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Command { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 71 | tx: Option>>>, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send`, `execute_and_send`, `encode_to_payload`, and `encode_to_frames` are never used [INFO] [stdout] --> src/command/mod.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 74 | impl Command { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub async fn send(&self, value: anyhow::Result>) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub async fn execute_and_send( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn encode_to_payload(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn encode_to_frames(&self) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProposalCommand` is never constructed [INFO] [stdout] --> src/command/mod.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct ProposalCommand(pub Command); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_raft_message` is never used [INFO] [stdout] --> src/command/raft.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl RaftCmd { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 60 | pub fn to_raft_message(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/config.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub disc_multicast_group: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub disc_multicast_port: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub disc_multicast_interval: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | // 节点存活有效时间 [INFO] [stdout] 13 | pub disc_multicast_ttl: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | // 节点存活过期检查任务执行间隔 [INFO] [stdout] 15 | pub disc_multicast_ttl_check_interval: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | // 命令服务器监听端口 [INFO] [stdout] 17 | pub listen_port: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | // 命令服务器监听地址 [INFO] [stdout] 19 | pub listen_addr: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub raft_loop_interval: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeConnection` is never constructed [INFO] [stdout] --> src/connection/connection.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | pub struct NodeConnection { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/connection/connection.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 155 | impl NodeConnection { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 156 | pub fn new(node: Node, conn: Connection) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionManager` is never constructed [INFO] [stdout] --> src/connection/manager.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ConnectionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_node_manager_ref`, `all_conn`, `first_conn`, `get`, and `get_by_id` are never used [INFO] [stdout] --> src/connection/manager.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl ConnectionManager { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(node_table: ShareNodeTable) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get_node_manager_ref(&self) -> &ShareNodeTable { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn all_conn(&self) -> anyhow::Result>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | async fn first_conn(&self) -> anyhow::Result>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub async fn get(&self, node: &Node) -> anyhow::Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub async fn get_by_id(&self, node_id: &u64) -> anyhow::Result>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_connection` is never used [INFO] [stdout] --> src/connection/manager.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 97 | async fn new_connection(node: &Node) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/db/database.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Database { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_db_cmd_channel` is never used [INFO] [stdout] --> src/db/database.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn start_db_cmd_channel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Discover` is never constructed [INFO] [stdout] --> src/discover.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Discover { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `start` are never used [INFO] [stdout] --> src/discover.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Discover { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(cfg: Arc) -> Discover { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn start(&mut self, app: Arc, parent_ctx: RefContext) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multicast_to_other_node` is never used [INFO] [stdout] --> src/discover.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | async fn multicast_to_other_node( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recv_from_other_node` is never used [INFO] [stdout] --> src/discover.rs:133:10 [INFO] [stdout] | [INFO] [stdout] 133 | async fn recv_from_other_node( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_discover` is never used [INFO] [stdout] --> src/discover.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn start_discover( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `on_ping_node` is never used [INFO] [stdout] --> src/discover.rs:199:10 [INFO] [stdout] | [INFO] [stdout] 199 | async fn on_ping_node( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeMsg` is never constructed [INFO] [stdout] --> src/node.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct NodeMsg { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/node.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl NodeMsg { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 21 | pub fn new(id: u64, addr: &str, port: usize, online: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/node.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_connection_endpoint` are never used [INFO] [stdout] --> src/node.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 41 | pub fn new(addr: &str, id: u64, port: usize, is_self: bool, online: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_connection_endpoint(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProposalAddNode` is never constructed [INFO] [stdout] --> src/node.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct ProposalAddNode(pub Node); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NodeManager` is never used [INFO] [stdout] --> src/node.rs:70:11 [INFO] [stdout] | [INFO] [stdout] 70 | pub trait NodeManager { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeTable` is never constructed [INFO] [stdout] --> src/node.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct NodeTable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/node.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl NodeTable { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 91 | pub fn new(cfg: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShareNodeTable` is never constructed [INFO] [stdout] --> src/node.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub struct ShareNodeTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/node.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 161 | impl ShareNodeTable { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 162 | pub fn new(node_table: NodeTable) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RaftProposal` and `Discover` are never constructed [INFO] [stdout] --> src/postman.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Channel { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | RaftProposal, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 14 | /// discover [INFO] [stdout] 15 | Discover, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AsAny` is never used [INFO] [stdout] --> src/postman.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub trait AsAny { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Envelope` is never constructed [INFO] [stdout] --> src/postman.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Envelope { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `new_channel` are never used [INFO] [stdout] --> src/postman.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl Postman { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 42 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn new_channel( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cfg` is never read [INFO] [stdout] --> src/runtime.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Runtime { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub cfg: Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `new_with_default_config`, and `start` are never used [INFO] [stdout] --> src/runtime.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Runtime { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 22 | pub fn new(cfg: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn new_with_default_config() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub async fn start(app: Arc, ctx: RefContext) -> anyhow::Result>> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `now_ts` is never used [INFO] [stdout] --> src/until.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn now_ts() -> anyhow::Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/db/dbvalue.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | for item in iter { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hash_put.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/db/dbvalue.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | DbValueEnum::None(v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/db/dbvalue.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | for item in iter { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hello.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/hello.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hash_get.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/invalid.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/invalid.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/raft.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/raft.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `broadcast` is never used [INFO] [stdout] --> src/cluster/mod.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn broadcast(conn_manager: &ConnectionManager, command: &Command) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_frame` is never used [INFO] [stdout] --> src/cluster/mod.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | async fn send_frame(conn_manager: &ConnectionManager, frames: &mut [Frame]) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_read_type` is never used [INFO] [stdout] --> src/command/mod.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub trait ExecutableCommand: Display + Send + Sync + Any { [INFO] [stdout] | ----------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 58 | fn is_read_type(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node` is never read [INFO] [stdout] --> src/connection/connection.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 150 | pub struct NodeConnection { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 151 | pub node: Node, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `all_conn` and `first_conn` are never used [INFO] [stdout] --> src/connection/manager.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl ConnectionManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn all_conn(&self) -> anyhow::Result>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | async fn first_conn(&self) -> anyhow::Result>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `exist` and `get_other_nodes` are never used [INFO] [stdout] --> src/node.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 70 | pub trait NodeManager { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 74 | async fn exist(&self, id: &u64) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | async fn get_other_nodes(&self) -> Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Envelope` is never constructed [INFO] [stdout] --> src/postman.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Envelope { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_ping` is never used [INFO] [stdout] --> src/protocol/frame.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Frame { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn new_ping() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 30s [INFO] running `Command { std: "docker" "inspect" "a215bc9e33f3f4637b766333eff3fb7edb5354ca2fbde253517231fa32c1223e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a215bc9e33f3f4637b766333eff3fb7edb5354ca2fbde253517231fa32c1223e", kill_on_drop: false }` [INFO] [stdout] a215bc9e33f3f4637b766333eff3fb7edb5354ca2fbde253517231fa32c1223e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f2dd65b2ee24c6ac85940adefea289be9cdebb1e247f8913fa39258a1131bbe [INFO] running `Command { std: "docker" "start" "-a" "6f2dd65b2ee24c6ac85940adefea289be9cdebb1e247f8913fa39258a1131bbe", kill_on_drop: false }` [INFO] [stderr] Compiling PartitionLink v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::db::dbvalue::DBValue` [INFO] [stdout] --> src/cluster/cluster.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::db::dbvalue::DBValue; [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: `prost::Message` [INFO] [stdout] --> src/command/hash_get.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use prost::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db::dbvalue::DBValue` [INFO] [stdout] --> src/cluster/cluster.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::db::dbvalue::DBValue; [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: `prost::Message` [INFO] [stdout] --> src/command/hash_get.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use prost::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/discover.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | app: &Runtime, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> src/cmd_server.rs:53:53 [INFO] [stdout] | [INFO] [stdout] 53 | async fn accept(app: Arc, ctx: RefContext, cfg: Arc, tcp_listener: &TcpListener) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> src/cmd_server.rs:53:53 [INFO] [stdout] | [INFO] [stdout] 53 | async fn accept(app: Arc, ctx: RefContext, cfg: Arc, tcp_listener: &TcpListener) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/discover.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | app: &Runtime, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protobuf::reflect::ProtobufValue` [INFO] [stdout] --> src/command/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use protobuf::reflect::ProtobufValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/connection/connection.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | io::{Cursor, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> src/node.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMapExt` [INFO] [stdout] --> src/node.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use ahash::{AHashMap, HashMapExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hash_put.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hello.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/hello.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hash_get.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/invalid.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/invalid.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/raft.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/raft.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/db/dbvalue.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | for item in iter { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/db/dbvalue.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | DbValueEnum::None(v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/db/dbvalue.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | for item in iter { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protobuf::reflect::ProtobufValue` [INFO] [stdout] --> src/command/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use protobuf::reflect::ProtobufValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/connection/connection.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | io::{Cursor, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> src/node.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMapExt` [INFO] [stdout] --> src/node.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use ahash::{AHashMap, HashMapExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db::dbvalue::DBValue` [INFO] [stdout] --> src/cluster/cluster.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::db::dbvalue::DBValue; [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: `prost::Message` [INFO] [stdout] --> src/command/hash_get.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use prost::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hash_put.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `first_conn` is never used [INFO] [stdout] --> src/connection/manager.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 17 | impl ConnectionManager { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | async fn first_conn(&self) -> anyhow::Result>> { [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 variable: `app` [INFO] [stdout] --> src/command/hello.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/hello.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/invalid.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/invalid.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/raft.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/raft.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/db/dbvalue.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | for item in iter { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/db/dbvalue.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | DbValueEnum::None(v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/db/dbvalue.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | for item in iter { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hash_get.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_cmd_test` is never used [INFO] [stdout] --> src/client.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | async fn hello_cmd_test(tx: &Sender>, times: usize) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `broadcast` is never used [INFO] [stdout] --> src/cluster/mod.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn broadcast(conn_manager: &ConnectionManager, command: &Command) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_frame` is never used [INFO] [stdout] --> src/cluster/mod.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | async fn send_frame(conn_manager: &ConnectionManager, frames: &mut [Frame]) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClusterNode` is never constructed [INFO] [stdout] --> src/cluster/cluster.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct ClusterNode { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/cluster/cluster.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ClusterNode { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 34 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn tick(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn step(&mut self, msg: Message) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | async fn handle_message(&self, messages: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | async fn handle_committed_entries(&mut self, committed_entries: Vec, app: &Runtime) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub async fn poll(&mut self, app: &Runtime) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | pub fn add_node(&mut self, add_node: &ProposalAddNode) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn propose_command(&mut self, command: &Command) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_node_addr` is never used [INFO] [stdout] --> src/cluster/cluster.rs:330:14 [INFO] [stdout] | [INFO] [stdout] 330 | pub async fn get_node_addr( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_cluster` is never used [INFO] [stdout] --> src/cluster/cluster.rs:340:8 [INFO] [stdout] | [INFO] [stdout] 340 | pub fn start_cluster( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_cmd_server` is never used [INFO] [stdout] --> src/cmd_server.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn start_cmd_server( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `accept` is never used [INFO] [stdout] --> src/cmd_server.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | async fn accept(app: Arc, ctx: RefContext, cfg: Arc, tcp_listener: &TcpListener) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CommandType` is never used [INFO] [stdout] --> src/command/mod.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum CommandType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cmd_type`, `to_cmd`, `is_write_type`, `is_read_type`, and `is_valid` are never used [INFO] [stdout] --> src/command/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub trait ExecutableCommand: Display + Send + Sync + Any { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 35 | // 命令类型,分为读类型和写类型 [INFO] [stdout] 36 | fn cmd_type(&self) -> CommandType; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn to_cmd(&self) -> anyhow::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn is_write_type(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn is_read_type(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tx` is never read [INFO] [stdout] --> src/command/mod.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Command { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 71 | tx: Option>>>, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send`, `execute_and_send`, `encode_to_payload`, and `encode_to_frames` are never used [INFO] [stdout] --> src/command/mod.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 74 | impl Command { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub async fn send(&self, value: anyhow::Result>) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub async fn execute_and_send( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn encode_to_payload(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn encode_to_frames(&self) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProposalCommand` is never constructed [INFO] [stdout] --> src/command/mod.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct ProposalCommand(pub Command); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_raft_message` is never used [INFO] [stdout] --> src/command/raft.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl RaftCmd { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 60 | pub fn to_raft_message(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/config.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub disc_multicast_group: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub disc_multicast_port: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub disc_multicast_interval: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | // 节点存活有效时间 [INFO] [stdout] 13 | pub disc_multicast_ttl: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | // 节点存活过期检查任务执行间隔 [INFO] [stdout] 15 | pub disc_multicast_ttl_check_interval: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | // 命令服务器监听端口 [INFO] [stdout] 17 | pub listen_port: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | // 命令服务器监听地址 [INFO] [stdout] 19 | pub listen_addr: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub raft_loop_interval: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeConnection` is never constructed [INFO] [stdout] --> src/connection/connection.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | pub struct NodeConnection { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/connection/connection.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 155 | impl NodeConnection { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 156 | pub fn new(node: Node, conn: Connection) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionManager` is never constructed [INFO] [stdout] --> src/connection/manager.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ConnectionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_node_manager_ref`, `all_conn`, `first_conn`, `get`, and `get_by_id` are never used [INFO] [stdout] --> src/connection/manager.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl ConnectionManager { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(node_table: ShareNodeTable) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get_node_manager_ref(&self) -> &ShareNodeTable { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn all_conn(&self) -> anyhow::Result>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | async fn first_conn(&self) -> anyhow::Result>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub async fn get(&self, node: &Node) -> anyhow::Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub async fn get_by_id(&self, node_id: &u64) -> anyhow::Result>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_connection` is never used [INFO] [stdout] --> src/connection/manager.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 97 | async fn new_connection(node: &Node) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/db/database.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Database { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_db_cmd_channel` is never used [INFO] [stdout] --> src/db/database.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn start_db_cmd_channel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Discover` is never constructed [INFO] [stdout] --> src/discover.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Discover { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `start` are never used [INFO] [stdout] --> src/discover.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Discover { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(cfg: Arc) -> Discover { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn start(&mut self, app: Arc, parent_ctx: RefContext) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multicast_to_other_node` is never used [INFO] [stdout] --> src/discover.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | async fn multicast_to_other_node( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recv_from_other_node` is never used [INFO] [stdout] --> src/discover.rs:133:10 [INFO] [stdout] | [INFO] [stdout] 133 | async fn recv_from_other_node( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_discover` is never used [INFO] [stdout] --> src/discover.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn start_discover( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `on_ping_node` is never used [INFO] [stdout] --> src/discover.rs:199:10 [INFO] [stdout] | [INFO] [stdout] 199 | async fn on_ping_node( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeMsg` is never constructed [INFO] [stdout] --> src/node.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct NodeMsg { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/node.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl NodeMsg { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 21 | pub fn new(id: u64, addr: &str, port: usize, online: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/node.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_connection_endpoint` are never used [INFO] [stdout] --> src/node.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 41 | pub fn new(addr: &str, id: u64, port: usize, is_self: bool, online: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_connection_endpoint(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProposalAddNode` is never constructed [INFO] [stdout] --> src/node.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct ProposalAddNode(pub Node); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NodeManager` is never used [INFO] [stdout] --> src/node.rs:70:11 [INFO] [stdout] | [INFO] [stdout] 70 | pub trait NodeManager { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeTable` is never constructed [INFO] [stdout] --> src/node.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct NodeTable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/node.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl NodeTable { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 91 | pub fn new(cfg: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShareNodeTable` is never constructed [INFO] [stdout] --> src/node.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub struct ShareNodeTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/node.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 161 | impl ShareNodeTable { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 162 | pub fn new(node_table: NodeTable) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RaftProposal` and `Discover` are never constructed [INFO] [stdout] --> src/postman.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Channel { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | RaftProposal, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 14 | /// discover [INFO] [stdout] 15 | Discover, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AsAny` is never used [INFO] [stdout] --> src/postman.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub trait AsAny { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Envelope` is never constructed [INFO] [stdout] --> src/postman.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Envelope { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `new_channel` are never used [INFO] [stdout] --> src/postman.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl Postman { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 42 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn new_channel( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cfg` is never read [INFO] [stdout] --> src/runtime.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Runtime { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub cfg: Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `new_with_default_config`, and `start` are never used [INFO] [stdout] --> src/runtime.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Runtime { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 22 | pub fn new(cfg: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn new_with_default_config() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub async fn start(app: Arc, ctx: RefContext) -> anyhow::Result>> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `now_ts` is never used [INFO] [stdout] --> src/until.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn now_ts() -> anyhow::Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> src/cmd_server.rs:53:53 [INFO] [stdout] | [INFO] [stdout] 53 | async fn accept(app: Arc, ctx: RefContext, cfg: Arc, tcp_listener: &TcpListener) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/discover.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | app: &Runtime, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protobuf::reflect::ProtobufValue` [INFO] [stdout] --> src/command/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use protobuf::reflect::ProtobufValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/connection/connection.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | io::{Cursor, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> src/node.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMapExt` [INFO] [stdout] --> src/node.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use ahash::{AHashMap, HashMapExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hello.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/hello.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/invalid.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/invalid.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/raft.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/command/raft.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | db: Option<&mut Database>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/db/dbvalue.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | for item in iter { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hash_get.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/db/dbvalue.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | DbValueEnum::None(v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/db/dbvalue.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | for item in iter { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/command/hash_put.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | app: Option<&Runtime>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `broadcast` is never used [INFO] [stdout] --> src/cluster/mod.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn broadcast(conn_manager: &ConnectionManager, command: &Command) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_frame` is never used [INFO] [stdout] --> src/cluster/mod.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | async fn send_frame(conn_manager: &ConnectionManager, frames: &mut [Frame]) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_read_type` is never used [INFO] [stdout] --> src/command/mod.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub trait ExecutableCommand: Display + Send + Sync + Any { [INFO] [stdout] | ----------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 58 | fn is_read_type(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node` is never read [INFO] [stdout] --> src/connection/connection.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 150 | pub struct NodeConnection { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 151 | pub node: Node, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `all_conn` and `first_conn` are never used [INFO] [stdout] --> src/connection/manager.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl ConnectionManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn all_conn(&self) -> anyhow::Result>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | async fn first_conn(&self) -> anyhow::Result>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `exist` and `get_other_nodes` are never used [INFO] [stdout] --> src/node.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 70 | pub trait NodeManager { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 74 | async fn exist(&self, id: &u64) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | async fn get_other_nodes(&self) -> Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Envelope` is never constructed [INFO] [stdout] --> src/postman.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Envelope { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_ping` is never used [INFO] [stdout] --> src/protocol/frame.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Frame { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn new_ping() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 11.48s [INFO] running `Command { std: "docker" "inspect" "6f2dd65b2ee24c6ac85940adefea289be9cdebb1e247f8913fa39258a1131bbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f2dd65b2ee24c6ac85940adefea289be9cdebb1e247f8913fa39258a1131bbe", kill_on_drop: false }` [INFO] [stdout] 6f2dd65b2ee24c6ac85940adefea289be9cdebb1e247f8913fa39258a1131bbe