[INFO] cloning repository https://github.com/whatdfjslfjldks/Rudis [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/whatdfjslfjldks/Rudis" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhatdfjslfjldks%2FRudis", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhatdfjslfjldks%2FRudis'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 658fe1dbc1ad430c6dd59a42d6b698391ce275d4 [INFO] checking whatdfjslfjldks/Rudis against try#438eb4c1a1c3841523d7f672601e8adbe04cff28 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhatdfjslfjldks%2FRudis" "/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/whatdfjslfjldks/Rudis [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/whatdfjslfjldks/Rudis [INFO] tweaked toml for git repo https://github.com/whatdfjslfjldks/Rudis written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/whatdfjslfjldks/Rudis on toolchain 438eb4c1a1c3841523d7f672601e8adbe04cff28 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/whatdfjslfjldks/Rudis 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" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded skiplist v0.5.1 [INFO] [stderr] Downloaded once_cell v1.21.0 [INFO] [stderr] Downloaded zerocopy-derive v0.8.23 [INFO] [stderr] Downloaded fern v0.7.1 [INFO] [stderr] Downloaded zerocopy v0.8.23 [INFO] [stderr] Downloaded tokio v1.44.0 [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" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7045bb3d372232b8d53c8248bd92ad327d784cd4fea9db7a2fece78580c6328 [INFO] running `Command { std: "docker" "start" "-a" "a7045bb3d372232b8d53c8248bd92ad327d784cd4fea9db7a2fece78580c6328", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7045bb3d372232b8d53c8248bd92ad327d784cd4fea9db7a2fece78580c6328", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7045bb3d372232b8d53c8248bd92ad327d784cd4fea9db7a2fece78580c6328", kill_on_drop: false }` [INFO] [stdout] a7045bb3d372232b8d53c8248bd92ad327d784cd4fea9db7a2fece78580c6328 [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" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9ea8a784718ccdb21a8711d2a41a223ce40b08b061848107b9f6fa834e60bd81 [INFO] running `Command { std: "docker" "start" "-a" "9ea8a784718ccdb21a8711d2a41a223ce40b08b061848107b9f6fa834e60bd81", kill_on_drop: false }` [INFO] [stderr] Compiling zerocopy v0.8.23 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Checking log v0.4.26 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Checking fern v0.7.1 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking skiplist v0.5.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Checking tokio v1.44.0 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking rudis v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `handle_hdel_command`, `handle_hget_command`, `handle_hgetall_command`, and `handle_hset_command` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | handle_hdel_command, handle_hget_command, handle_hgetall_command, handle_hset_command, [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 imports: `handle_lpop_command`, `handle_lpush_command`, `handle_lrange_command`, `handle_rpop_command`, and `handle_rpush_command` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | handle_lpop_command, handle_lpush_command, handle_lrange_command, handle_rpop_command, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | handle_rpush_command, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `handle_sadd_command`, `handle_sismember_command`, `handle_smembers_command`, and `handle_srem_command` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | handle_sadd_command, handle_sismember_command, handle_smembers_command, handle_srem_command, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `handle_zadd_command`, `handle_zrange_command`, `handle_zrem_command`, and `handle_zscore_command` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | handle_zadd_command, handle_zrange_command, handle_zrem_command, handle_zscore_command, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `handle_del_command`, `handle_get_command`, and `handle_set_command` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | handle_del_command, handle_get_command, handle_set_command [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `handle_bitcount_command`, `handle_getbit_command`, and `handle_setbit_command` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | handle_setbit_command,handle_getbit_command,handle_bitcount_command [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWriteExt` [INFO] [stdout] --> src/main.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `handle_hdel_command`, `handle_hget_command`, `handle_hgetall_command`, and `handle_hset_command` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | handle_hdel_command, handle_hget_command, handle_hgetall_command, handle_hset_command, [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 imports: `handle_lpop_command`, `handle_lpush_command`, `handle_lrange_command`, `handle_rpop_command`, and `handle_rpush_command` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | handle_lpop_command, handle_lpush_command, handle_lrange_command, handle_rpop_command, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | handle_rpush_command, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `handle_sadd_command`, `handle_sismember_command`, `handle_smembers_command`, and `handle_srem_command` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | handle_sadd_command, handle_sismember_command, handle_smembers_command, handle_srem_command, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `handle_zadd_command`, `handle_zrange_command`, `handle_zrem_command`, and `handle_zscore_command` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | handle_zadd_command, handle_zrange_command, handle_zrem_command, handle_zscore_command, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `handle_del_command`, `handle_get_command`, and `handle_set_command` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | handle_del_command, handle_get_command, handle_set_command [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `handle_bitcount_command`, `handle_getbit_command`, and `handle_setbit_command` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | handle_setbit_command,handle_getbit_command,handle_bitcount_command [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWriteExt` [INFO] [stdout] --> src/main.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `storage` [INFO] [stdout] --> src/main.rs:112:60 [INFO] [stdout] | [INFO] [stdout] 112 | async fn handle_client(socket: &mut tokio::net::TcpStream, storage: Storage) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_storage` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct Storage { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 35 | string_storage: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 36 | hash_storage: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 37 | list_storage: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 38 | set_storage: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 39 | sorted_set_storage: Arc>>>, // 跳表 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | hash_sorted_set_storage: Arc>>>, // 存储zset的成员分数键值对 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 41 | bitmap_storage:Arc>> [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Storage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_command_format` is never used [INFO] [stdout] --> src/operations/hash/ops.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn check_command_format(parts: &[&str], expected_len: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_inner_map` is never used [INFO] [stdout] --> src/operations/hash/ops.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | async fn get_inner_map( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_hset_command` is never used [INFO] [stdout] --> src/operations/hash/ops.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn handle_hset_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_hget_command` is never used [INFO] [stdout] --> src/operations/hash/ops.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | pub async fn handle_hget_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_hdel_command` is never used [INFO] [stdout] --> src/operations/hash/ops.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | pub async fn handle_hdel_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_hgetall_command` is never used [INFO] [stdout] --> src/operations/hash/ops.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn handle_hgetall_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_lpush_command` is never used [INFO] [stdout] --> src/operations/list/ops.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn handle_lpush_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_rpush_command` is never used [INFO] [stdout] --> src/operations/list/ops.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn handle_rpush_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_lpop_command` is never used [INFO] [stdout] --> src/operations/list/ops.rs:76:14 [INFO] [stdout] | [INFO] [stdout] 76 | pub async fn handle_lpop_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_rpop_command` is never used [INFO] [stdout] --> src/operations/list/ops.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | pub async fn handle_rpop_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_lrange_command` is never used [INFO] [stdout] --> src/operations/list/ops.rs:132:14 [INFO] [stdout] | [INFO] [stdout] 132 | pub async fn handle_lrange_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_sadd_command` is never used [INFO] [stdout] --> src/operations/set/ops.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn handle_sadd_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_sismember_command` is never used [INFO] [stdout] --> src/operations/set/ops.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | pub async fn handle_sismember_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_smembers_command` is never used [INFO] [stdout] --> src/operations/set/ops.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | pub async fn handle_smembers_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_srem_command` is never used [INFO] [stdout] --> src/operations/set/ops.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | pub async fn handle_srem_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_zadd_command` is never used [INFO] [stdout] --> src/operations/sorted_set/ops.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn handle_zadd_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_zrange_command` is never used [INFO] [stdout] --> src/operations/sorted_set/ops.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | pub async fn handle_zrange_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_zrem_command` is never used [INFO] [stdout] --> src/operations/sorted_set/ops.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | pub async fn handle_zrem_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_zscore_command` is never used [INFO] [stdout] --> src/operations/sorted_set/ops.rs:146:14 [INFO] [stdout] | [INFO] [stdout] 146 | pub async fn handle_zscore_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_command_format` is never used [INFO] [stdout] --> src/operations/string/ops.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn check_command_format(parts: &[&str], expected_len: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_value` is never used [INFO] [stdout] --> src/operations/string/ops.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | async fn get_value( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_set_command` is never used [INFO] [stdout] --> src/operations/string/ops.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn handle_set_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_get_command` is never used [INFO] [stdout] --> src/operations/string/ops.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | pub async fn handle_get_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_del_command` is never used [INFO] [stdout] --> src/operations/string/ops.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | pub async fn handle_del_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `help` is never used [INFO] [stdout] --> src/operations/help/help.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | pub async fn help(socket: &mut tokio::net::TcpStream) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_OFFSET` is never used [INFO] [stdout] --> src/operations/bitmap/ops.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const MAX_OFFSET: usize = 1024; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_setbit_command` is never used [INFO] [stdout] --> src/operations/bitmap/ops.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn handle_setbit_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_getbit_command` is never used [INFO] [stdout] --> src/operations/bitmap/ops.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | pub async fn handle_getbit_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_bitcount_command` is never used [INFO] [stdout] --> src/operations/bitmap/ops.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | pub async fn handle_bitcount_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `storage` [INFO] [stdout] --> src/main.rs:112:60 [INFO] [stdout] | [INFO] [stdout] 112 | async fn handle_client(socket: &mut tokio::net::TcpStream, storage: Storage) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_storage` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct Storage { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 35 | string_storage: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 36 | hash_storage: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 37 | list_storage: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 38 | set_storage: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 39 | sorted_set_storage: Arc>>>, // 跳表 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | hash_sorted_set_storage: Arc>>>, // 存储zset的成员分数键值对 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 41 | bitmap_storage:Arc>> [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Storage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_command_format` is never used [INFO] [stdout] --> src/operations/hash/ops.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn check_command_format(parts: &[&str], expected_len: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_inner_map` is never used [INFO] [stdout] --> src/operations/hash/ops.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | async fn get_inner_map( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_hset_command` is never used [INFO] [stdout] --> src/operations/hash/ops.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn handle_hset_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_hget_command` is never used [INFO] [stdout] --> src/operations/hash/ops.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | pub async fn handle_hget_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_hdel_command` is never used [INFO] [stdout] --> src/operations/hash/ops.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | pub async fn handle_hdel_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_hgetall_command` is never used [INFO] [stdout] --> src/operations/hash/ops.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn handle_hgetall_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_lpush_command` is never used [INFO] [stdout] --> src/operations/list/ops.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn handle_lpush_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_rpush_command` is never used [INFO] [stdout] --> src/operations/list/ops.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn handle_rpush_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_lpop_command` is never used [INFO] [stdout] --> src/operations/list/ops.rs:76:14 [INFO] [stdout] | [INFO] [stdout] 76 | pub async fn handle_lpop_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_rpop_command` is never used [INFO] [stdout] --> src/operations/list/ops.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | pub async fn handle_rpop_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_lrange_command` is never used [INFO] [stdout] --> src/operations/list/ops.rs:132:14 [INFO] [stdout] | [INFO] [stdout] 132 | pub async fn handle_lrange_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_sadd_command` is never used [INFO] [stdout] --> src/operations/set/ops.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn handle_sadd_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_sismember_command` is never used [INFO] [stdout] --> src/operations/set/ops.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | pub async fn handle_sismember_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_smembers_command` is never used [INFO] [stdout] --> src/operations/set/ops.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | pub async fn handle_smembers_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_srem_command` is never used [INFO] [stdout] --> src/operations/set/ops.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | pub async fn handle_srem_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_zadd_command` is never used [INFO] [stdout] --> src/operations/sorted_set/ops.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn handle_zadd_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_zrange_command` is never used [INFO] [stdout] --> src/operations/sorted_set/ops.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | pub async fn handle_zrange_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_zrem_command` is never used [INFO] [stdout] --> src/operations/sorted_set/ops.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | pub async fn handle_zrem_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_zscore_command` is never used [INFO] [stdout] --> src/operations/sorted_set/ops.rs:146:14 [INFO] [stdout] | [INFO] [stdout] 146 | pub async fn handle_zscore_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_command_format` is never used [INFO] [stdout] --> src/operations/string/ops.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn check_command_format(parts: &[&str], expected_len: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_value` is never used [INFO] [stdout] --> src/operations/string/ops.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | async fn get_value( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_set_command` is never used [INFO] [stdout] --> src/operations/string/ops.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn handle_set_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_get_command` is never used [INFO] [stdout] --> src/operations/string/ops.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | pub async fn handle_get_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_del_command` is never used [INFO] [stdout] --> src/operations/string/ops.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | pub async fn handle_del_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `help` is never used [INFO] [stdout] --> src/operations/help/help.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | pub async fn help(socket: &mut tokio::net::TcpStream) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_OFFSET` is never used [INFO] [stdout] --> src/operations/bitmap/ops.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const MAX_OFFSET: usize = 1024; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_setbit_command` is never used [INFO] [stdout] --> src/operations/bitmap/ops.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn handle_setbit_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_getbit_command` is never used [INFO] [stdout] --> src/operations/bitmap/ops.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | pub async fn handle_getbit_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_bitcount_command` is never used [INFO] [stdout] --> src/operations/bitmap/ops.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | pub async fn handle_bitcount_command( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.79s [INFO] running `Command { std: "docker" "inspect" "9ea8a784718ccdb21a8711d2a41a223ce40b08b061848107b9f6fa834e60bd81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ea8a784718ccdb21a8711d2a41a223ce40b08b061848107b9f6fa834e60bd81", kill_on_drop: false }` [INFO] [stdout] 9ea8a784718ccdb21a8711d2a41a223ce40b08b061848107b9f6fa834e60bd81