[INFO] cloning repository https://github.com/a11e6s8vt/codecrafters-redis-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/a11e6s8vt/codecrafters-redis-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa11e6s8vt%2Fcodecrafters-redis-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa11e6s8vt%2Fcodecrafters-redis-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f5e8e0da0bef0c79ad563cf2ddd444a7da5c480 [INFO] checking a11e6s8vt/codecrafters-redis-rust/3f5e8e0da0bef0c79ad563cf2ddd444a7da5c480 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa11e6s8vt%2Fcodecrafters-redis-rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/a11e6s8vt/codecrafters-redis-rust on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/a11e6s8vt/codecrafters-redis-rust [INFO] finished tweaking git repo https://github.com/a11e6s8vt/codecrafters-redis-rust [INFO] tweaked toml for git repo https://github.com/a11e6s8vt/codecrafters-redis-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/a11e6s8vt/codecrafters-redis-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f4599e4be5b356141bcdd8b3243db87433e159c981998808c4625a0f5bc95830 [INFO] running `Command { std: "docker" "start" "-a" "f4599e4be5b356141bcdd8b3243db87433e159c981998808c4625a0f5bc95830", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f4599e4be5b356141bcdd8b3243db87433e159c981998808c4625a0f5bc95830", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4599e4be5b356141bcdd8b3243db87433e159c981998808c4625a0f5bc95830", kill_on_drop: false }` [INFO] [stdout] f4599e4be5b356141bcdd8b3243db87433e159c981998808c4625a0f5bc95830 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b3c870fe5d271c78501c47cd0342bb1bdf219af85d733154b0ed8b8b88a8157e [INFO] running `Command { std: "docker" "start" "-a" "b3c870fe5d271c78501c47cd0342bb1bdf219af85d733154b0ed8b8b88a8157e", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling typeid v1.0.2 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Compiling syn v2.0.69 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking erased-serde v0.4.5 [INFO] [stderr] Checking serde_fmt v1.0.3 [INFO] [stderr] Checking faster-hex v0.9.0 [INFO] [stderr] Checking value-bag-serde1 v1.9.0 [INFO] [stderr] Checking value-bag v1.9.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking femme v2.2.1 [INFO] [stderr] Checking redis-starter-rust v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/resp.rs (1 fix) [INFO] [stderr] Fixed src/connection.rs (12 fixes) [INFO] [stderr] Fixed src/lib.rs (5 fixes) [INFO] [stderr] Fixed src/database/rdb.rs (2 fixes) [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/connection.rs:380:80 [INFO] [stdout] | [INFO] [stdout] 380 | ... } _ => { match stream_store.check_key(&key) { Some(val) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/database/kv.rs:74:52 [INFO] [stdout] | [INFO] [stdout] 74 | let expired = guard.get(&k).and_then(|(x, t)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/database/kv.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 91 | guard.get(k).and_then(|(val, t)| Some(val)).cloned() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cmds/mod.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | Self::SyntaxError(x) => format!("ERR syntax error"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:560:31 [INFO] [stdout] | [INFO] [stdout] 560 | RespData::BulkStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:572:43 [INFO] [stdout] | [INFO] [stdout] 572 | RespData::BulkStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/lib.rs:573:41 [INFO] [stdout] | [INFO] [stdout] 573 | RespData::Array(vec) => todo!(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:577:45 [INFO] [stdout] | [INFO] [stdout] 577 | RespData::BulkError(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:578:47 [INFO] [stdout] | [INFO] [stdout] 578 | RespData::VerbatimStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_map` [INFO] [stdout] --> src/lib.rs:579:39 [INFO] [stdout] | [INFO] [stdout] 579 | RespData::Map(hash_map) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_set` [INFO] [stdout] --> src/lib.rs:580:39 [INFO] [stdout] | [INFO] [stdout] 580 | RespData::Set(hash_set) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:588:33 [INFO] [stdout] | [INFO] [stdout] 588 | RespData::BulkError(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:589:35 [INFO] [stdout] | [INFO] [stdout] 589 | RespData::VerbatimStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_map` [INFO] [stdout] --> src/lib.rs:590:27 [INFO] [stdout] | [INFO] [stdout] 590 | RespData::Map(hash_map) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_set` [INFO] [stdout] --> src/lib.rs:591:27 [INFO] [stdout] | [INFO] [stdout] 591 | RespData::Set(hash_set) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHUNK_SIZE` is never used [INFO] [stdout] --> src/lib.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const CHUNK_SIZE: usize = 16 * 1024; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_a_peer` is never read [INFO] [stdout] --> src/connection.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Connection { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | is_a_peer: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `follower_replication_acks` is never used [INFO] [stdout] --> src/connection.rs:563:10 [INFO] [stdout] | [INFO] [stdout] 563 | async fn follower_replication_acks(state: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Rx` is never used [INFO] [stdout] --> src/database/mod.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | type Rx = mpsc::UnboundedReceiver>; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key` is never read [INFO] [stdout] --> src/database/kv.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 136 | pub struct StreamEntry { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 137 | pub key: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/database/kv.rs:304:12 [INFO] [stdout] | [INFO] [stdout] 180 | impl RadixTreeStore { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn get(&self, key: &str, entry_id: &str) -> Option<&StreamEntry> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains` is never used [INFO] [stdout] --> src/global.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl GlobalConfig { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn contains(&self, key: &T) -> bool [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Minus`, `NewLine`, and `CarriageReturn` are never constructed [INFO] [stdout] --> src/resp.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | NewLine, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 31 | CarriageReturn, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/resp.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 116 | pub enum RespData { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 117 | String(String), [INFO] [stdout] 118 | ErrorStr(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 119 | Integer(i64), [INFO] [stdout] 120 | BulkStr(Bytes), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 121 | Array(Vec), [INFO] [stdout] 122 | Null, [INFO] [stdout] | ^^^^ [INFO] [stdout] 123 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 124 | Double(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 125 | // BigNum(BigInt), [INFO] [stdout] 126 | BulkError(Bytes), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 127 | VerbatimStr(Bytes), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 128 | Map(HashMap), [INFO] [stdout] | ^^^ [INFO] [stdout] 129 | Set(HashSet), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RespData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_handshake_response` is never used [INFO] [stdout] --> src/resp.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn parse_handshake_response(resp_str: &String) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:517:11 [INFO] [stdout] | [INFO] [stdout] 517 | while let Ok(byte) = stream.read_u8().await { [INFO] [stdout] | ^^^^^^^^^^^^^^^---------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lib.rs:524:5 [INFO] [stdout] | [INFO] [stdout] 524 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/database/rdb.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | while let Ok(byte) = reader.read_u8() { [INFO] [stdout] | ^^^^^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/database/rdb.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/connection.rs:380:80 [INFO] [stdout] | [INFO] [stdout] 380 | ... } _ => { match stream_store.check_key(&key) { Some(val) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/database/kv.rs:74:52 [INFO] [stdout] | [INFO] [stdout] 74 | let expired = guard.get(&k).and_then(|(x, t)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/database/kv.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 91 | guard.get(k).and_then(|(val, t)| Some(val)).cloned() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cmds/mod.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | Self::SyntaxError(x) => format!("ERR syntax error"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:560:31 [INFO] [stdout] | [INFO] [stdout] 560 | RespData::BulkStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:572:43 [INFO] [stdout] | [INFO] [stdout] 572 | RespData::BulkStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/lib.rs:573:41 [INFO] [stdout] | [INFO] [stdout] 573 | RespData::Array(vec) => todo!(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:577:45 [INFO] [stdout] | [INFO] [stdout] 577 | RespData::BulkError(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:578:47 [INFO] [stdout] | [INFO] [stdout] 578 | RespData::VerbatimStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_map` [INFO] [stdout] --> src/lib.rs:579:39 [INFO] [stdout] | [INFO] [stdout] 579 | RespData::Map(hash_map) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_set` [INFO] [stdout] --> src/lib.rs:580:39 [INFO] [stdout] | [INFO] [stdout] 580 | RespData::Set(hash_set) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:588:33 [INFO] [stdout] | [INFO] [stdout] 588 | RespData::BulkError(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:589:35 [INFO] [stdout] | [INFO] [stdout] 589 | RespData::VerbatimStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_map` [INFO] [stdout] --> src/lib.rs:590:27 [INFO] [stdout] | [INFO] [stdout] 590 | RespData::Map(hash_map) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_set` [INFO] [stdout] --> src/lib.rs:591:27 [INFO] [stdout] | [INFO] [stdout] 591 | RespData::Set(hash_set) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHUNK_SIZE` is never used [INFO] [stdout] --> src/lib.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const CHUNK_SIZE: usize = 16 * 1024; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_a_peer` is never read [INFO] [stdout] --> src/connection.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Connection { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | is_a_peer: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `follower_replication_acks` is never used [INFO] [stdout] --> src/connection.rs:563:10 [INFO] [stdout] | [INFO] [stdout] 563 | async fn follower_replication_acks(state: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Rx` is never used [INFO] [stdout] --> src/database/mod.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | type Rx = mpsc::UnboundedReceiver>; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key` is never read [INFO] [stdout] --> src/database/kv.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 136 | pub struct StreamEntry { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 137 | pub key: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/database/kv.rs:304:12 [INFO] [stdout] | [INFO] [stdout] 180 | impl RadixTreeStore { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn get(&self, key: &str, entry_id: &str) -> Option<&StreamEntry> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains` is never used [INFO] [stdout] --> src/global.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl GlobalConfig { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn contains(&self, key: &T) -> bool [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Minus`, `NewLine`, and `CarriageReturn` are never constructed [INFO] [stdout] --> src/resp.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | NewLine, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 31 | CarriageReturn, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/resp.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 116 | pub enum RespData { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 117 | String(String), [INFO] [stdout] 118 | ErrorStr(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 119 | Integer(i64), [INFO] [stdout] 120 | BulkStr(Bytes), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 121 | Array(Vec), [INFO] [stdout] 122 | Null, [INFO] [stdout] | ^^^^ [INFO] [stdout] 123 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 124 | Double(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 125 | // BigNum(BigInt), [INFO] [stdout] 126 | BulkError(Bytes), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 127 | VerbatimStr(Bytes), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 128 | Map(HashMap), [INFO] [stdout] | ^^^ [INFO] [stdout] 129 | Set(HashSet), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RespData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_handshake_response` is never used [INFO] [stdout] --> src/resp.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn parse_handshake_response(resp_str: &String) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:517:11 [INFO] [stdout] | [INFO] [stdout] 517 | while let Ok(byte) = stream.read_u8().await { [INFO] [stdout] | ^^^^^^^^^^^^^^^---------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lib.rs:524:5 [INFO] [stdout] | [INFO] [stdout] 524 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/database/rdb.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | while let Ok(byte) = reader.read_u8() { [INFO] [stdout] | ^^^^^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/database/rdb.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stderr] Fixed src/database/mod.rs (1 fix) [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/connection.rs:380:80 [INFO] [stdout] | [INFO] [stdout] 380 | ... } _ => { match stream_store.check_key(&key) { Some(val) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/database/kv.rs:74:52 [INFO] [stdout] | [INFO] [stdout] 74 | let expired = guard.get(&k).and_then(|(x, t)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/database/kv.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 91 | guard.get(k).and_then(|(val, t)| Some(val)).cloned() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cmds/mod.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | Self::SyntaxError(x) => format!("ERR syntax error"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cli` is never constructed [INFO] [stdout] --> src/cli.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Cli { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cli` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cli.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Cli { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 23 | pub fn new(mut args: Args) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/cmds/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 13 | Get(Get), [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | Set(Set), [INFO] [stdout] | ^^^ [INFO] [stdout] 15 | Ping(Ping), [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | Echo(Echo), [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | Config(Config), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | Save(Save), [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | Keys(Keys), [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | Info(Info), [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | Replconf(Replconf), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | Psync(Psync), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 23 | Type(Type), [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | Wait(Wait), [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | Xadd(Xadd), [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | Xrange(Xrange), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | Xread(Xread), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SyntaxError`, `WrongNumberOfArguments`, `NotSupported`, `NotValidType`, and `UnknownSubCommand` are never constructed [INFO] [stdout] --> src/cmds/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum CommandError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 32 | SyntaxError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 33 | WrongNumberOfArguments(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | NotSupported, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 35 | NotValidType(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 36 | UnknownSubCommand(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommandError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `message` is never used [INFO] [stdout] --> src/cmds/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl CommandError { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 40 | pub fn message(&self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Get` is never constructed [INFO] [stdout] --> src/cmds/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum SubCommand { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 3 | Get(String), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubCommand` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Replication` is never constructed [INFO] [stdout] --> src/cmds/info.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum InfoSubCommand { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 3 | Replication, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InfoSubCommand` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHUNK_SIZE` is never used [INFO] [stdout] --> src/connection.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const CHUNK_SIZE: usize = 16 * 1024; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CRLF` is never used [INFO] [stdout] --> src/connection.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const CRLF: &str = "\r\n"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Connection` is never constructed [INFO] [stdout] --> src/connection.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `handle`, and `write` are never used [INFO] [stdout] --> src/connection.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Connection { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 38 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub async fn handle( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub async fn write(&mut self, message: Vec>) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_socket_read` is never used [INFO] [stdout] --> src/connection.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | async fn process_socket_read( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `follower_replication_acks` is never used [INFO] [stdout] --> src/connection.rs:563:10 [INFO] [stdout] | [INFO] [stdout] 563 | async fn follower_replication_acks(state: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Tx` is never used [INFO] [stdout] --> src/database/mod.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | type Tx = mpsc::UnboundedSender>; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Rx` is never used [INFO] [stdout] --> src/database/mod.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | type Rx = mpsc::UnboundedReceiver>; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Peer` is never constructed [INFO] [stdout] --> src/database/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Peer { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shared` is never constructed [INFO] [stdout] --> src/database/mod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Shared { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `broadcast`, `update_bytes_written`, `verify_propagation`, and `count_commands_processed` are never used [INFO] [stdout] --> src/database/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Shared { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 30 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub async fn broadcast(&mut self, message: Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn update_bytes_written(&mut self, sender: SocketAddr, bytes_written: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub async fn verify_propagation(&mut self, offset_len: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub async fn count_commands_processed(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeyValueStore` is never constructed [INFO] [stdout] --> src/database/kv.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct KeyValueStore { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeyValueStore` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/database/kv.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 28 | / impl KeyValueStore [INFO] [stdout] 29 | | where [INFO] [stdout] 30 | | K: Display + Debug + Clone + Eq + std::hash::Hash, [INFO] [stdout] 31 | | V: Display + Debug + Clone, [INFO] [stdout] | |_______________________________- associated items in this implementation [INFO] [stdout] 32 | { [INFO] [stdout] 33 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub async fn get_ht_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub async fn get_ht_expire_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn iter(&mut self) -> KeyValueStoreIterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn insert(&mut self, k: K, v: V, expiry: Option) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn get(&mut self, k: &K) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub async fn contains_key(&self, k: &K) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub async fn prune(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key`, `entry_id`, and `data` are never read [INFO] [stdout] --> src/database/kv.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 136 | pub struct StreamEntry { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 137 | pub key: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 138 | pub entry_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 139 | pub data: Vec<(String, String)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ZeroError`, `NotValid`, and `SmallerThanTop` are never constructed [INFO] [stdout] --> src/database/kv.rs:145:5 [INFO] [stdout] | [INFO] [stdout] 143 | pub enum StreamError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 144 | #[error("ERR The ID specified in XADD must be greater than 0-0")] [INFO] [stdout] 145 | ZeroError, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | NotValid, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | SmallerThanTop, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `entry`, `children`, `is_key`, and `is_entry_id` are never read [INFO] [stdout] --> src/database/kv.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct RadixNode { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 156 | entry: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 157 | children: BTreeMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 158 | is_key: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 159 | is_entry_id: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RadixNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/database/kv.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 168 | impl EntryID { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 169 | pub fn print(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `root` and `last_entry_id` are never read [INFO] [stdout] --> src/database/kv.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 175 | pub struct RadixTreeStore { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 176 | root: RadixNode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 177 | last_entry_id: EntryID, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RadixTreeStore` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/database/kv.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 180 | impl RadixTreeStore { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 181 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn new_entry_id(&self, entry_id_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn insert( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn get(&self, key: &str, entry_id: &str) -> Option<&StreamEntry> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 328 | pub fn check_key(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | pub fn xrange(&self, key: &str, start: &str, end: &str) -> Vec<&StreamEntry> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 367 | fn get_range<'a>( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAGIC_STRING` is never used [INFO] [stdout] --> src/database/rdb.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const MAGIC_STRING: [u8; 9] = *b"REDIS0011"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_db` is never used [INFO] [stdout] --> src/database/rdb.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | async fn init_db(file_mode: String) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_to_disk` is never used [INFO] [stdout] --> src/database/rdb.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn write_to_disk(mut db: KeyValueStore) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `length_encoded_int` is never used [INFO] [stdout] --> src/database/rdb.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn length_encoded_int(n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_from_rdb` is never used [INFO] [stdout] --> src/database/rdb.rs:120:14 [INFO] [stdout] | [INFO] [stdout] 120 | pub async fn load_from_rdb(mut db: KeyValueStore) -> anyhow::Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GlobalConfig` is never constructed [INFO] [stdout] --> src/global.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct GlobalConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `contains`, and `get_val` are never used [INFO] [stdout] --> src/global.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 8 | impl GlobalConfig { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 9 | const fn new() -> GlobalConfig { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn push(&self, input: (T, T)) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn contains(&self, key: &T) -> bool [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_val(&self, key: &T) -> Option<&T> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `STATE` is never used [INFO] [stdout] --> src/global.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub static STATE: GlobalConfig = GlobalConfig::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_command` is never used [INFO] [stdout] --> src/parse.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse_command(v: Vec) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Minus`, `NewLine`, and `CarriageReturn` are never constructed [INFO] [stdout] --> src/resp.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | NewLine, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 31 | CarriageReturn, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/resp.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl<'b> Tokenizer<'b> { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 40 | pub fn new(s: &'b String) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RespData` is never used [INFO] [stdout] --> src/resp.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | pub enum RespData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RespData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/resp.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 141 | impl RespData { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 142 | pub fn parse(resp_str: &String) -> anyhow::Result, RespError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_handshake_response` is never used [INFO] [stdout] --> src/resp.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn parse_handshake_response(resp_str: &String) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/database/rdb.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | while let Ok(byte) = reader.read_u8() { [INFO] [stdout] | ^^^^^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/database/rdb.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/integration_tests.rs from 2021 edition to 2024 [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/connection.rs:380:80 [INFO] [stdout] | [INFO] [stdout] 380 | ... } _ => { match stream_store.check_key(&key) { Some(val) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/database/kv.rs:74:52 [INFO] [stdout] | [INFO] [stdout] 74 | let expired = guard.get(&k).and_then(|(x, t)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/database/kv.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 91 | guard.get(k).and_then(|(val, t)| Some(val)).cloned() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cmds/mod.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | Self::SyntaxError(x) => format!("ERR syntax error"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cli` is never constructed [INFO] [stdout] --> src/cli.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Cli { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cli` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cli.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Cli { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 23 | pub fn new(mut args: Args) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/cmds/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 13 | Get(Get), [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | Set(Set), [INFO] [stdout] | ^^^ [INFO] [stdout] 15 | Ping(Ping), [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | Echo(Echo), [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | Config(Config), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | Save(Save), [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | Keys(Keys), [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | Info(Info), [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | Replconf(Replconf), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | Psync(Psync), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 23 | Type(Type), [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | Wait(Wait), [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | Xadd(Xadd), [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | Xrange(Xrange), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | Xread(Xread), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SyntaxError`, `WrongNumberOfArguments`, `NotSupported`, `NotValidType`, and `UnknownSubCommand` are never constructed [INFO] [stdout] --> src/cmds/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum CommandError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 32 | SyntaxError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 33 | WrongNumberOfArguments(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | NotSupported, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 35 | NotValidType(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 36 | UnknownSubCommand(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommandError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `message` is never used [INFO] [stdout] --> src/cmds/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl CommandError { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 40 | pub fn message(&self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Get` is never constructed [INFO] [stdout] --> src/cmds/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum SubCommand { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 3 | Get(String), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubCommand` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Replication` is never constructed [INFO] [stdout] --> src/cmds/info.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum InfoSubCommand { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 3 | Replication, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InfoSubCommand` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHUNK_SIZE` is never used [INFO] [stdout] --> src/connection.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const CHUNK_SIZE: usize = 16 * 1024; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CRLF` is never used [INFO] [stdout] --> src/connection.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const CRLF: &str = "\r\n"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Connection` is never constructed [INFO] [stdout] --> src/connection.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `handle`, and `write` are never used [INFO] [stdout] --> src/connection.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Connection { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 38 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub async fn handle( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub async fn write(&mut self, message: Vec>) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_socket_read` is never used [INFO] [stdout] --> src/connection.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | async fn process_socket_read( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `follower_replication_acks` is never used [INFO] [stdout] --> src/connection.rs:563:10 [INFO] [stdout] | [INFO] [stdout] 563 | async fn follower_replication_acks(state: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Tx` is never used [INFO] [stdout] --> src/database/mod.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | type Tx = mpsc::UnboundedSender>; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Rx` is never used [INFO] [stdout] --> src/database/mod.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | type Rx = mpsc::UnboundedReceiver>; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Peer` is never constructed [INFO] [stdout] --> src/database/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Peer { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shared` is never constructed [INFO] [stdout] --> src/database/mod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Shared { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `broadcast`, `update_bytes_written`, `verify_propagation`, and `count_commands_processed` are never used [INFO] [stdout] --> src/database/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Shared { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 30 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub async fn broadcast(&mut self, message: Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn update_bytes_written(&mut self, sender: SocketAddr, bytes_written: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub async fn verify_propagation(&mut self, offset_len: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub async fn count_commands_processed(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeyValueStore` is never constructed [INFO] [stdout] --> src/database/kv.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct KeyValueStore { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeyValueStore` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/database/kv.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 28 | / impl KeyValueStore [INFO] [stdout] 29 | | where [INFO] [stdout] 30 | | K: Display + Debug + Clone + Eq + std::hash::Hash, [INFO] [stdout] 31 | | V: Display + Debug + Clone, [INFO] [stdout] | |_______________________________- associated items in this implementation [INFO] [stdout] 32 | { [INFO] [stdout] 33 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub async fn get_ht_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub async fn get_ht_expire_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn iter(&mut self) -> KeyValueStoreIterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn insert(&mut self, k: K, v: V, expiry: Option) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn get(&mut self, k: &K) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub async fn contains_key(&self, k: &K) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub async fn prune(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key`, `entry_id`, and `data` are never read [INFO] [stdout] --> src/database/kv.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 136 | pub struct StreamEntry { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 137 | pub key: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 138 | pub entry_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 139 | pub data: Vec<(String, String)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ZeroError`, `NotValid`, and `SmallerThanTop` are never constructed [INFO] [stdout] --> src/database/kv.rs:145:5 [INFO] [stdout] | [INFO] [stdout] 143 | pub enum StreamError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 144 | #[error("ERR The ID specified in XADD must be greater than 0-0")] [INFO] [stdout] 145 | ZeroError, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | NotValid, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | SmallerThanTop, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `entry`, `children`, `is_key`, and `is_entry_id` are never read [INFO] [stdout] --> src/database/kv.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct RadixNode { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 156 | entry: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 157 | children: BTreeMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 158 | is_key: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 159 | is_entry_id: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RadixNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/database/kv.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 168 | impl EntryID { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 169 | pub fn print(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `root` and `last_entry_id` are never read [INFO] [stdout] --> src/database/kv.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 175 | pub struct RadixTreeStore { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 176 | root: RadixNode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 177 | last_entry_id: EntryID, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RadixTreeStore` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/database/kv.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 180 | impl RadixTreeStore { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 181 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn new_entry_id(&self, entry_id_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn insert( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn get(&self, key: &str, entry_id: &str) -> Option<&StreamEntry> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 328 | pub fn check_key(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | pub fn xrange(&self, key: &str, start: &str, end: &str) -> Vec<&StreamEntry> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 367 | fn get_range<'a>( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAGIC_STRING` is never used [INFO] [stdout] --> src/database/rdb.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const MAGIC_STRING: [u8; 9] = *b"REDIS0011"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_db` is never used [INFO] [stdout] --> src/database/rdb.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | async fn init_db(file_mode: String) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_to_disk` is never used [INFO] [stdout] --> src/database/rdb.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn write_to_disk(mut db: KeyValueStore) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `length_encoded_int` is never used [INFO] [stdout] --> src/database/rdb.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn length_encoded_int(n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_from_rdb` is never used [INFO] [stdout] --> src/database/rdb.rs:120:14 [INFO] [stdout] | [INFO] [stdout] 120 | pub async fn load_from_rdb(mut db: KeyValueStore) -> anyhow::Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GlobalConfig` is never constructed [INFO] [stdout] --> src/global.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct GlobalConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `contains`, and `get_val` are never used [INFO] [stdout] --> src/global.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 8 | impl GlobalConfig { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 9 | const fn new() -> GlobalConfig { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn push(&self, input: (T, T)) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn contains(&self, key: &T) -> bool [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_val(&self, key: &T) -> Option<&T> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `STATE` is never used [INFO] [stdout] --> src/global.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub static STATE: GlobalConfig = GlobalConfig::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_command` is never used [INFO] [stdout] --> src/parse.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse_command(v: Vec) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Minus`, `NewLine`, and `CarriageReturn` are never constructed [INFO] [stdout] --> src/resp.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | NewLine, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 31 | CarriageReturn, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/resp.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl<'b> Tokenizer<'b> { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 40 | pub fn new(s: &'b String) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RespData` is never used [INFO] [stdout] --> src/resp.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | pub enum RespData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RespData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/resp.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 141 | impl RespData { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 142 | pub fn parse(resp_str: &String) -> anyhow::Result, RespError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_handshake_response` is never used [INFO] [stdout] --> src/resp.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn parse_handshake_response(resp_str: &String) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/database/rdb.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | while let Ok(byte) = reader.read_u8() { [INFO] [stdout] | ^^^^^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/database/rdb.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> tests/integration_tests.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let result = b"+HELLO\r\n"; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.49s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking redis-starter-rust v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0432]: unresolved import `database::load_from_rdb` [INFO] [stdout] --> src/lib.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | pub use database::{load_from_rdb, KeyValueStore}; [INFO] [stdout] | ^^^^^^^^^^^^^ no `load_from_rdb` in `database` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `database::load_from_rdb` [INFO] [stdout] --> src/lib.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | pub use database::{load_from_rdb, KeyValueStore}; [INFO] [stdout] | ^^^^^^^^^^^^^ no `load_from_rdb` in `database` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/connection.rs:380:80 [INFO] [stdout] | [INFO] [stdout] 380 | ... } _ => { match stream_store.check_key(&key) { Some(val) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/connection.rs:380:80 [INFO] [stdout] | [INFO] [stdout] 380 | ... } _ => { match stream_store.check_key(&key) { Some(val) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/database/kv.rs:74:52 [INFO] [stdout] | [INFO] [stdout] 74 | let expired = guard.get(&k).and_then(|(x, t)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/database/kv.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 91 | guard.get(k).and_then(|(val, t)| Some(val)).cloned() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/database/kv.rs:74:52 [INFO] [stdout] | [INFO] [stdout] 74 | let expired = guard.get(&k).and_then(|(x, t)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/database/kv.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 91 | guard.get(k).and_then(|(val, t)| Some(val)).cloned() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cmds/mod.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | Self::SyntaxError(x) => format!("ERR syntax error"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cmds/mod.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | Self::SyntaxError(x) => format!("ERR syntax error"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:560:31 [INFO] [stdout] | [INFO] [stdout] 560 | RespData::BulkStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:572:43 [INFO] [stdout] | [INFO] [stdout] 572 | RespData::BulkStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/lib.rs:573:41 [INFO] [stdout] | [INFO] [stdout] 573 | RespData::Array(vec) => todo!(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:577:45 [INFO] [stdout] | [INFO] [stdout] 577 | RespData::BulkError(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:578:47 [INFO] [stdout] | [INFO] [stdout] 578 | RespData::VerbatimStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_map` [INFO] [stdout] --> src/lib.rs:579:39 [INFO] [stdout] | [INFO] [stdout] 579 | RespData::Map(hash_map) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_set` [INFO] [stdout] --> src/lib.rs:580:39 [INFO] [stdout] | [INFO] [stdout] 580 | RespData::Set(hash_set) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:588:33 [INFO] [stdout] | [INFO] [stdout] 588 | RespData::BulkError(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:589:35 [INFO] [stdout] | [INFO] [stdout] 589 | RespData::VerbatimStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_map` [INFO] [stdout] --> src/lib.rs:590:27 [INFO] [stdout] | [INFO] [stdout] 590 | RespData::Map(hash_map) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_set` [INFO] [stdout] --> src/lib.rs:591:27 [INFO] [stdout] | [INFO] [stdout] 591 | RespData::Set(hash_set) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `redis-starter-rust` (lib) due to 2 previous errors; 15 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:560:31 [INFO] [stdout] | [INFO] [stdout] 560 | RespData::BulkStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:572:43 [INFO] [stdout] | [INFO] [stdout] 572 | RespData::BulkStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/lib.rs:573:41 [INFO] [stdout] | [INFO] [stdout] 573 | RespData::Array(vec) => todo!(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:577:45 [INFO] [stdout] | [INFO] [stdout] 577 | RespData::BulkError(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:578:47 [INFO] [stdout] | [INFO] [stdout] 578 | RespData::VerbatimStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_map` [INFO] [stdout] --> src/lib.rs:579:39 [INFO] [stdout] | [INFO] [stdout] 579 | RespData::Map(hash_map) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_set` [INFO] [stdout] --> src/lib.rs:580:39 [INFO] [stdout] | [INFO] [stdout] 580 | RespData::Set(hash_set) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:588:33 [INFO] [stdout] | [INFO] [stdout] 588 | RespData::BulkError(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lib.rs:589:35 [INFO] [stdout] | [INFO] [stdout] 589 | RespData::VerbatimStr(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_map` [INFO] [stdout] --> src/lib.rs:590:27 [INFO] [stdout] | [INFO] [stdout] 590 | RespData::Map(hash_map) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_set` [INFO] [stdout] --> src/lib.rs:591:27 [INFO] [stdout] | [INFO] [stdout] 591 | RespData::Set(hash_set) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `redis-starter-rust` (lib test) due to 2 previous errors; 15 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "b3c870fe5d271c78501c47cd0342bb1bdf219af85d733154b0ed8b8b88a8157e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3c870fe5d271c78501c47cd0342bb1bdf219af85d733154b0ed8b8b88a8157e", kill_on_drop: false }` [INFO] [stdout] b3c870fe5d271c78501c47cd0342bb1bdf219af85d733154b0ed8b8b88a8157e