[INFO] cloning repository https://github.com/yoms07/codecrafters-kafka-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yoms07/codecrafters-kafka-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyoms07%2Fcodecrafters-kafka-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyoms07%2Fcodecrafters-kafka-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ac4f426691be8aa9c3071cc087b2ca18096038a8 [INFO] checking yoms07/codecrafters-kafka-rust against master#03eb45452305f2d52348279d0caa5fc1f12c438d for pr-138176 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyoms07%2Fcodecrafters-kafka-rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yoms07/codecrafters-kafka-rust on toolchain 03eb45452305f2d52348279d0caa5fc1f12c438d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+03eb45452305f2d52348279d0caa5fc1f12c438d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yoms07/codecrafters-kafka-rust [INFO] finished tweaking git repo https://github.com/yoms07/codecrafters-kafka-rust [INFO] tweaked toml for git repo https://github.com/yoms07/codecrafters-kafka-rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/yoms07/codecrafters-kafka-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" "+03eb45452305f2d52348279d0caa5fc1f12c438d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+03eb45452305f2d52348279d0caa5fc1f12c438d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 96b6a7dc653c04b356e600cb4007fbbbfba3075770ede67a8e249f5dbfd8c012 [INFO] running `Command { std: "docker" "start" "-a" "96b6a7dc653c04b356e600cb4007fbbbfba3075770ede67a8e249f5dbfd8c012", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "96b6a7dc653c04b356e600cb4007fbbbfba3075770ede67a8e249f5dbfd8c012", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96b6a7dc653c04b356e600cb4007fbbbfba3075770ede67a8e249f5dbfd8c012", kill_on_drop: false }` [INFO] [stdout] 96b6a7dc653c04b356e600cb4007fbbbfba3075770ede67a8e249f5dbfd8c012 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+03eb45452305f2d52348279d0caa5fc1f12c438d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 46e41897d8ea70b027e2620de73fcbcd886eadb99d5d2242344aeb00a26f5137 [INFO] running `Command { std: "docker" "start" "-a" "46e41897d8ea70b027e2620de73fcbcd886eadb99d5d2242344aeb00a26f5137", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling uuid-macro-internal v1.11.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking tokio v1.42.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 uuid v1.11.0 [INFO] [stderr] Checking codecrafters-kafka v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:63:39 [INFO] [stdout] | [INFO] [stdout] 63 | Err(RequestError::IoError(err)) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:63:39 [INFO] [stdout] | [INFO] [stdout] 63 | Err(RequestError::IoError(err)) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `async_write_varint` and `async_write_uvarint` are never used [INFO] [stdout] --> src/custom_trait/cursor.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait AsyncWriteVarint { [INFO] [stdout] | ---------------- methods in this trait [INFO] [stdout] 10 | async fn async_write_varint(&mut self, num: i64) -> anyhow::Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | async fn async_write_uvarint(&mut self, num: u64) -> anyhow::Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_varint` is never used [INFO] [stdout] --> src/custom_trait/cursor.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait ReadVarint { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 15 | fn read_varint(&mut self) -> anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_varint` is never used [INFO] [stdout] --> src/custom_trait/cursor.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait WriteVarint { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 20 | fn write_varint(&mut self, num: i64); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `response_partition_limit`, `cursor`, and `tag_buffer` are never read [INFO] [stdout] --> src/handler/describe_topic_partitions.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct DescribeRequest { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 15 | length: u8, [INFO] [stdout] 16 | response_partition_limit: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | cursor: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | tag_buffer: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DescribeRequest` 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 `name_length` and `tag_buffer` are never read [INFO] [stdout] --> src/handler/describe_topic_partitions.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct DescribeTopic { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 24 | name_length: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 25 | topic_name: String, [INFO] [stdout] 26 | tag_buffer: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DescribeTopic` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DescribeResponse` is never constructed [INFO] [stdout] --> src/handler/describe_topic_partitions.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct DescribeResponse {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/handler/fetch.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct FetchRequest { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 16 | pub max_wait_ms: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | pub min_bytes: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 18 | pub max_bytes: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | pub isolation_level: i8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub session_id: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | pub session_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub topics: Vec, [INFO] [stdout] 23 | pub forgotten_topics_data: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub rack_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FetchRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `partitions` is never read [INFO] [stdout] --> src/handler/fetch.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Topic { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 29 | pub topic_id: uuid::Uuid, [INFO] [stdout] 30 | pub partitions: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Topic` 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 `partition`, `current_leader_epoch`, `fetch_offset`, `last_fetched_epoch`, `log_start_offset`, and `partition_max_bytes` are never read [INFO] [stdout] --> src/handler/fetch.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Partition { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 35 | pub partition: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | pub current_leader_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | pub fetch_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 38 | pub last_fetched_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | pub log_start_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | pub partition_max_bytes: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Partition` 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 `topic_id` and `partitions` are never read [INFO] [stdout] --> src/handler/fetch.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct ForgottenTopicData { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 45 | pub topic_id: uuid::Uuid, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 46 | pub partitions: Vec, // List of partitions [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForgottenTopicData` 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 fields are never read [INFO] [stdout] --> src/metadata/cluster.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Batch { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 13 | pub batch_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 14 | pub batch_length: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 15 | pub partition_leader_epoch: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub magic_byte: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | pub crc: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | pub attributes: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 19 | pub last_offset_delta: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub base_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub max_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub producer_id: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | pub producer_epoch: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub base_sequence: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub record_batch_length: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Batch` 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 fields are never read [INFO] [stdout] --> src/metadata/cluster.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Record { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 30 | pub record_length: i64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | pub timestamp_delta: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub offset_delta: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | pub key_length: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 35 | pub key: Option>, [INFO] [stdout] | ^^^ [INFO] [stdout] 36 | pub value_length: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Record` 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: fields `frame_version`, `type_`, `version`, and `tagged_fields` are never read [INFO] [stdout] --> src/metadata/cluster.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Value { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 42 | pub frame_version: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 43 | pub type_: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 44 | pub version: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 45 | pub value: ValueRecord, [INFO] [stdout] 46 | pub tagged_fields: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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: variant `FeatureValue` is never constructed [INFO] [stdout] --> src/metadata/cluster.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum ValueRecord { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 50 | FeatureValue(FeatureValueRecord), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValueRecord` 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: fields `name_length`, `name`, and `feature_level` are never read [INFO] [stdout] --> src/metadata/cluster.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct FeatureValueRecord { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 57 | pub name_length: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 58 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | pub feature_level: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeatureValueRecord` 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: field `name_length` is never read [INFO] [stdout] --> src/metadata/cluster.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct TopicValueRecord { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 64 | pub name_length: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicValueRecord` 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: field `id` is never read [INFO] [stdout] --> src/metadata/cluster.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct PartitionValueRecord { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 71 | pub id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `PartitionValueRecord` 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: static `MESSAGE_SIZE_OFFSET` is never used [INFO] [stdout] --> src/protocol/response.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | static MESSAGE_SIZE_OFFSET: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `tokio::io::util::read_exact::ReadExact` that must be used [INFO] [stdout] --> src/custom_trait/cursor.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | self.read_exact(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 116 | let _ = self.read_exact(&mut buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `async_write_varint` and `async_write_uvarint` are never used [INFO] [stdout] --> src/custom_trait/cursor.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait AsyncWriteVarint { [INFO] [stdout] | ---------------- methods in this trait [INFO] [stdout] 10 | async fn async_write_varint(&mut self, num: i64) -> anyhow::Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | async fn async_write_uvarint(&mut self, num: u64) -> anyhow::Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_varint` is never used [INFO] [stdout] --> src/custom_trait/cursor.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait ReadVarint { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 15 | fn read_varint(&mut self) -> anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_varint` is never used [INFO] [stdout] --> src/custom_trait/cursor.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait WriteVarint { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 20 | fn write_varint(&mut self, num: i64); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `response_partition_limit`, `cursor`, and `tag_buffer` are never read [INFO] [stdout] --> src/handler/describe_topic_partitions.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct DescribeRequest { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 15 | length: u8, [INFO] [stdout] 16 | response_partition_limit: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | cursor: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | tag_buffer: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DescribeRequest` 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 `name_length` and `tag_buffer` are never read [INFO] [stdout] --> src/handler/describe_topic_partitions.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct DescribeTopic { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 24 | name_length: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 25 | topic_name: String, [INFO] [stdout] 26 | tag_buffer: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DescribeTopic` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DescribeResponse` is never constructed [INFO] [stdout] --> src/handler/describe_topic_partitions.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct DescribeResponse {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/handler/fetch.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct FetchRequest { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 16 | pub max_wait_ms: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | pub min_bytes: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 18 | pub max_bytes: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | pub isolation_level: i8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub session_id: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | pub session_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub topics: Vec, [INFO] [stdout] 23 | pub forgotten_topics_data: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub rack_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FetchRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `partitions` is never read [INFO] [stdout] --> src/handler/fetch.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Topic { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 29 | pub topic_id: uuid::Uuid, [INFO] [stdout] 30 | pub partitions: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Topic` 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 `partition`, `current_leader_epoch`, `fetch_offset`, `last_fetched_epoch`, `log_start_offset`, and `partition_max_bytes` are never read [INFO] [stdout] --> src/handler/fetch.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Partition { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 35 | pub partition: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | pub current_leader_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | pub fetch_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 38 | pub last_fetched_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | pub log_start_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | pub partition_max_bytes: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Partition` 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 `topic_id` and `partitions` are never read [INFO] [stdout] --> src/handler/fetch.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct ForgottenTopicData { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 45 | pub topic_id: uuid::Uuid, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 46 | pub partitions: Vec, // List of partitions [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForgottenTopicData` 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 fields are never read [INFO] [stdout] --> src/metadata/cluster.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Batch { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 13 | pub batch_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 14 | pub batch_length: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 15 | pub partition_leader_epoch: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub magic_byte: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | pub crc: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | pub attributes: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 19 | pub last_offset_delta: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub base_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub max_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub producer_id: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | pub producer_epoch: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub base_sequence: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub record_batch_length: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Batch` 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 fields are never read [INFO] [stdout] --> src/metadata/cluster.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Record { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 30 | pub record_length: i64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | pub timestamp_delta: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub offset_delta: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | pub key_length: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 35 | pub key: Option>, [INFO] [stdout] | ^^^ [INFO] [stdout] 36 | pub value_length: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Record` 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: fields `frame_version`, `type_`, `version`, and `tagged_fields` are never read [INFO] [stdout] --> src/metadata/cluster.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Value { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 42 | pub frame_version: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 43 | pub type_: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 44 | pub version: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 45 | pub value: ValueRecord, [INFO] [stdout] 46 | pub tagged_fields: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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: variant `FeatureValue` is never constructed [INFO] [stdout] --> src/metadata/cluster.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum ValueRecord { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 50 | FeatureValue(FeatureValueRecord), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValueRecord` 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: fields `name_length`, `name`, and `feature_level` are never read [INFO] [stdout] --> src/metadata/cluster.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct FeatureValueRecord { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 57 | pub name_length: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 58 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | pub feature_level: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeatureValueRecord` 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: field `name_length` is never read [INFO] [stdout] --> src/metadata/cluster.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct TopicValueRecord { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 64 | pub name_length: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicValueRecord` 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: field `id` is never read [INFO] [stdout] --> src/metadata/cluster.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct PartitionValueRecord { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 71 | pub id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `PartitionValueRecord` 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: static `MESSAGE_SIZE_OFFSET` is never used [INFO] [stdout] --> src/protocol/response.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | static MESSAGE_SIZE_OFFSET: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `tokio::io::util::read_exact::ReadExact` that must be used [INFO] [stdout] --> src/custom_trait/cursor.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | self.read_exact(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 116 | let _ = self.read_exact(&mut buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.98s [INFO] running `Command { std: "docker" "inspect" "46e41897d8ea70b027e2620de73fcbcd886eadb99d5d2242344aeb00a26f5137", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46e41897d8ea70b027e2620de73fcbcd886eadb99d5d2242344aeb00a26f5137", kill_on_drop: false }` [INFO] [stdout] 46e41897d8ea70b027e2620de73fcbcd886eadb99d5d2242344aeb00a26f5137