[INFO] fetching crate hyper-function-core 0.1.1... [INFO] checking hyper-function-core-0.1.1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate hyper-function-core 0.1.1 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate hyper-function-core 0.1.1 [INFO] finished tweaking crates.io crate hyper-function-core 0.1.1 [INFO] tweaked toml for crates.io crate hyper-function-core 0.1.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate hyper-function-core 0.1.1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 175 packages to latest compatible versions [INFO] [stderr] Adding dashmap v5.5.3 (available: v6.1.0) [INFO] [stderr] Adding hyper v0.14.32 (available: v1.7.0) [INFO] [stderr] Adding hyper-tungstenite v0.6.0 (available: v0.18.0) [INFO] [stderr] Adding rustls v0.20.9 (available: v0.23.31) [INFO] [stderr] Adding rusty_ulid v1.0.0 (available: v2.0.0) [INFO] [stderr] Adding tokio-tungstenite v0.16.1 (available: v0.27.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff7d693eb6caf665d62b5a7a4ee4ab7a2b8361fb92ef050f624b8f79ed365d46 [INFO] running `Command { std: "docker" "start" "-a" "ff7d693eb6caf665d62b5a7a4ee4ab7a2b8361fb92ef050f624b8f79ed365d46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff7d693eb6caf665d62b5a7a4ee4ab7a2b8361fb92ef050f624b8f79ed365d46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff7d693eb6caf665d62b5a7a4ee4ab7a2b8361fb92ef050f624b8f79ed365d46", kill_on_drop: false }` [INFO] [stdout] ff7d693eb6caf665d62b5a7a4ee4ab7a2b8361fb92ef050f624b8f79ed365d46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ab3e46b6a0c7d1058064888fac5d3608c77a14abf25120f50c5eba52c6ab3834 [INFO] running `Command { std: "docker" "start" "-a" "ab3e46b6a0c7d1058064888fac5d3608c77a14abf25120f50c5eba52c6ab3834", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Compiling rustls v0.20.9 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking indexmap v2.11.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking rmp v0.8.14 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking sha-1 v0.10.1 [INFO] [stderr] Checking webpki v0.22.4 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tokio-rustls v0.23.4 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking rmp-serde v1.3.0 [INFO] [stderr] Checking rusty_ulid v1.0.0 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking tungstenite v0.17.3 [INFO] [stderr] Checking tungstenite v0.16.0 [INFO] [stderr] Checking tokio-tungstenite v0.17.2 [INFO] [stderr] Checking tokio-tungstenite v0.16.1 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-tungstenite v0.6.0 [INFO] [stderr] Checking hyper-function-core v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `open` [INFO] [stdout] --> src/gateway/gateway.rs:32:34 [INFO] [stdout] | [INFO] [stdout] 32 | Packet::OPEN(open) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_open` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `close` [INFO] [stdout] --> src/gateway/gateway.rs:35:35 [INFO] [stdout] | [INFO] [stdout] 35 | Packet::CLOSE(close) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_close` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ping` [INFO] [stdout] --> src/gateway/gateway.rs:38:34 [INFO] [stdout] | [INFO] [stdout] 38 | Packet::PING(ping) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pong` [INFO] [stdout] --> src/gateway/gateway.rs:41:34 [INFO] [stdout] | [INFO] [stdout] 41 | Packet::PONG(pong) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pong` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `retry` [INFO] [stdout] --> src/gateway/gateway.rs:44:35 [INFO] [stdout] | [INFO] [stdout] 44 | Packet::RETRY(retry) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_retry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `redirect` [INFO] [stdout] --> src/gateway/gateway.rs:47:38 [INFO] [stdout] | [INFO] [stdout] 47 | Packet::REDIRECT(redirect) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_redirect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ack` [INFO] [stdout] --> src/gateway/gateway.rs:56:33 [INFO] [stdout] | [INFO] [stdout] 56 | Packet::ACK(ack) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/server/socket.rs:77:38 [INFO] [stdout] | [INFO] [stdout] 77 | Action::SendPing(action) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/server/socket.rs:83:35 [INFO] [stdout] | [INFO] [stdout] 83 | Action::Close(action) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `open` [INFO] [stdout] --> src/server/socket.rs:101:38 [INFO] [stdout] | [INFO] [stdout] 101 | Packet::OPEN(open) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_open` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `close` [INFO] [stdout] --> src/server/socket.rs:104:39 [INFO] [stdout] | [INFO] [stdout] 104 | Packet::CLOSE(close) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_close` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ping` [INFO] [stdout] --> src/server/socket.rs:108:38 [INFO] [stdout] | [INFO] [stdout] 108 | Packet::PING(ping) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pong` [INFO] [stdout] --> src/server/socket.rs:111:38 [INFO] [stdout] | [INFO] [stdout] 111 | Packet::PONG(pong) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pong` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ack` [INFO] [stdout] --> src/server/socket.rs:120:37 [INFO] [stdout] | [INFO] [stdout] 120 | Packet::ACK(ack) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `open` [INFO] [stdout] --> src/gateway/gateway.rs:32:34 [INFO] [stdout] | [INFO] [stdout] 32 | Packet::OPEN(open) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_open` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `close` [INFO] [stdout] --> src/gateway/gateway.rs:35:35 [INFO] [stdout] | [INFO] [stdout] 35 | Packet::CLOSE(close) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_close` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ping` [INFO] [stdout] --> src/gateway/gateway.rs:38:34 [INFO] [stdout] | [INFO] [stdout] 38 | Packet::PING(ping) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pong` [INFO] [stdout] --> src/gateway/gateway.rs:41:34 [INFO] [stdout] | [INFO] [stdout] 41 | Packet::PONG(pong) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pong` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `retry` [INFO] [stdout] --> src/gateway/gateway.rs:44:35 [INFO] [stdout] | [INFO] [stdout] 44 | Packet::RETRY(retry) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_retry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `redirect` [INFO] [stdout] --> src/gateway/gateway.rs:47:38 [INFO] [stdout] | [INFO] [stdout] 47 | Packet::REDIRECT(redirect) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_redirect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ack` [INFO] [stdout] --> src/gateway/gateway.rs:56:33 [INFO] [stdout] | [INFO] [stdout] 56 | Packet::ACK(ack) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sink` [INFO] [stdout] --> src/server/transport.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | sink: &mut SplitSink, Message>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_sink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/server/socket.rs:77:38 [INFO] [stdout] | [INFO] [stdout] 77 | Action::SendPing(action) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/server/socket.rs:83:35 [INFO] [stdout] | [INFO] [stdout] 83 | Action::Close(action) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `open` [INFO] [stdout] --> src/server/socket.rs:101:38 [INFO] [stdout] | [INFO] [stdout] 101 | Packet::OPEN(open) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_open` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `close` [INFO] [stdout] --> src/server/socket.rs:104:39 [INFO] [stdout] | [INFO] [stdout] 104 | Packet::CLOSE(close) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_close` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ping` [INFO] [stdout] --> src/server/socket.rs:108:38 [INFO] [stdout] | [INFO] [stdout] 108 | Packet::PING(ping) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pong` [INFO] [stdout] --> src/server/socket.rs:111:38 [INFO] [stdout] | [INFO] [stdout] 111 | Packet::PONG(pong) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pong` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ack` [INFO] [stdout] --> src/server/socket.rs:120:37 [INFO] [stdout] | [INFO] [stdout] 120 | Packet::ACK(ack) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sink` [INFO] [stdout] --> src/server/transport.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | sink: &mut SplitSink, Message>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_sink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `packet` [INFO] [stdout] --> src/gateway/transport.rs:383:26 [INFO] [stdout] | [INFO] [stdout] 383 | Packet::PING(packet) => {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `packet` [INFO] [stdout] --> src/gateway/transport.rs:397:26 [INFO] [stdout] | [INFO] [stdout] 397 | Packet::PONG(packet) => {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dev` is never read [INFO] [stdout] --> src/gateway/gateway.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Gateway { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 9 | pub dev: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `compress` is never read [INFO] [stdout] --> src/gateway/transport.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct PacketMessage { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 61 | pub compress: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketMessage` 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 `client_id`, `session_id`, `client_ts`, and `client_version` are never read [INFO] [stdout] --> src/server/socket.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Socket { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 18 | pub id: String, [INFO] [stdout] 19 | pub client_id: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | pub session_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | pub client_ts: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | pub client_version: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Socket` 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 `0` is never read [INFO] [stdout] --> src/server/transport.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | RETRY(PacketRetry), [INFO] [stdout] | ----- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 - RETRY(PacketRetry), [INFO] [stdout] 15 + RETRY(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/server/transport.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | RESET(PacketReset), [INFO] [stdout] | ----- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 - RESET(PacketReset), [INFO] [stdout] 16 + RESET(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/server/transport.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | REDIRECT(PacketRedirect), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 - REDIRECT(PacketRedirect), [INFO] [stdout] 17 + REDIRECT(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ping_interval` and `ping_timeout` are never read [INFO] [stdout] --> src/server/transport.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct PacketOpen { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 27 | pub ping_interval: u8, // ping interval second [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub ping_timeout: u8, // ping timeout second [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketOpen` 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 `reason` is never read [INFO] [stdout] --> src/server/transport.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct PacketClose { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 33 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketClose` 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 `delay` is never read [INFO] [stdout] --> src/server/transport.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct PacketRetry { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 43 | pub delay: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketRetry` 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 `delay` is never read [INFO] [stdout] --> src/server/transport.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct PacketReset { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 48 | pub delay: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketReset` 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 `delay` and `target` are never read [INFO] [stdout] --> src/server/transport.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct PacketRedirect { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 53 | pub delay: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 54 | pub target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketRedirect` 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 `id` is never read [INFO] [stdout] --> src/server/transport.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct PacketMessage { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 59 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketMessage` 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 `id` and `pkg_id` are never read [INFO] [stdout] --> src/server/transport.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct PacketAck { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 67 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 68 | pub pkg_id: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketAck` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `send_packet` is never used [INFO] [stdout] --> src/server/transport.rs:102:18 [INFO] [stdout] | [INFO] [stdout] 73 | impl Transport { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | pub async fn send_packet( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | READ_CHAN_RX.set(read_rx).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:115:32 [INFO] [stdout] | [INFO] [stdout] 115 | let upstream_id = unsafe { UPSTREAM_ID.clone() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:159:28 [INFO] [stdout] | [INFO] [stdout] 159 | let read_rx = unsafe { READ_CHAN_RX.get_mut().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:171:28 [INFO] [stdout] | [INFO] [stdout] 171 | let read_rx = unsafe { READ_CHAN_RX.get_mut().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:182:28 [INFO] [stdout] | [INFO] [stdout] 182 | let read_rx = unsafe { READ_CHAN_RX.get_mut().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | socket_chan.send(Action::SendMessage(ActionSendMessage { payload })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 195 | let _ = socket_chan.send(Action::SendMessage(ActionSendMessage { payload })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/server/server.rs:78:35 [INFO] [stdout] | [INFO] [stdout] 78 | if app_id.ne(unsafe { &APP_ID }) { [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 78 | if app_id.ne(unsafe { &raw const APP_ID }) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | / socket_write_chan_tx.send(Action::SendOpen(ActionSendOpen { [INFO] [stdout] 59 | | ping_interval: 25, [INFO] [stdout] 60 | | ping_timeout: 20, [INFO] [stdout] 61 | | })); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 58 | let _ = socket_write_chan_tx.send(Action::SendOpen(ActionSendOpen { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:70:25 [INFO] [stdout] | [INFO] [stdout] 70 | / Transport::send_open_packet( [INFO] [stdout] 71 | | &mut sink, [INFO] [stdout] 72 | | action.ping_interval, [INFO] [stdout] 73 | | action.ping_timeout, [INFO] [stdout] 74 | | ) [INFO] [stdout] 75 | | .await; [INFO] [stdout] | |______________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 70 | let _ = Transport::send_open_packet( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:78:25 [INFO] [stdout] | [INFO] [stdout] 78 | Transport::send_ping_packet(&mut sink).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 78 | let _ = Transport::send_ping_packet(&mut sink).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 81 | Transport::send_message_packet(&mut sink, action.payload).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 81 | let _ = Transport::send_message_packet(&mut sink, action.payload).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | Transport::send_close_packet(&mut sink, "").await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 84 | let _ = Transport::send_close_packet(&mut sink, "").await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | close_tx_clone.send(()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 85 | let _ = close_tx_clone.send(()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:105:29 [INFO] [stdout] | [INFO] [stdout] 105 | ... close_tx_clone.send(()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 105 | let _ = close_tx_clone.send(()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | close_tx_clone.send(()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 131 | let _ = close_tx_clone.send(()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:143:21 [INFO] [stdout] | [INFO] [stdout] 143 | close_tx_clone.send(()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 143 | let _ = close_tx_clone.send(()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | socket_write_chan_tx.send(Action::SendPing(ActionSendPing {})); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 148 | let _ = socket_write_chan_tx.send(Action::SendPing(ActionSendPing {})); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dev` is never read [INFO] [stdout] --> src/gateway/gateway.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Gateway { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 9 | pub dev: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ping_interval`, `ping_timeout`, `compress_size`, and `compress_method` are never read [INFO] [stdout] --> src/gateway/transport.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct PacketOpen { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 27 | pub ping_interval: u8, // ping interval second [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub ping_timeout: u8, // ping timeout second [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 29 | pub compress_size: u8, // min compress size kb, message payload great than this should be compress [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub compress_method: u8, // compression method 0: no, 1: defalte [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketOpen` 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 `reason` is never read [INFO] [stdout] --> src/gateway/transport.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct PacketClose { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 35 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketClose` 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 `delay` is never read [INFO] [stdout] --> src/gateway/transport.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct PacketRetry { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 45 | pub delay: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketRetry` 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 `delay` and `target` are never read [INFO] [stdout] --> src/gateway/transport.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct PacketRedirect { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 50 | pub delay: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | pub target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketRedirect` 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 `id` and `compress` are never read [INFO] [stdout] --> src/gateway/transport.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct PacketMessage { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 56 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub compress: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketMessage` 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 `id` and `pkg_id` are never read [INFO] [stdout] --> src/gateway/transport.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct PacketAck { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 66 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 67 | pub pkg_id: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketAck` 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 `client_id`, `session_id`, `client_ts`, and `client_version` are never read [INFO] [stdout] --> src/server/socket.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Socket { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 18 | pub id: String, [INFO] [stdout] 19 | pub client_id: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | pub session_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | pub client_ts: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | pub client_version: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Socket` 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 `0` is never read [INFO] [stdout] --> src/server/transport.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | RETRY(PacketRetry), [INFO] [stdout] | ----- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 - RETRY(PacketRetry), [INFO] [stdout] 15 + RETRY(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/server/transport.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | RESET(PacketReset), [INFO] [stdout] | ----- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 - RESET(PacketReset), [INFO] [stdout] 16 + RESET(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/server/transport.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | REDIRECT(PacketRedirect), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 - REDIRECT(PacketRedirect), [INFO] [stdout] 17 + REDIRECT(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ping_interval` and `ping_timeout` are never read [INFO] [stdout] --> src/server/transport.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct PacketOpen { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 27 | pub ping_interval: u8, // ping interval second [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub ping_timeout: u8, // ping timeout second [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketOpen` 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 `reason` is never read [INFO] [stdout] --> src/server/transport.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct PacketClose { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 33 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketClose` 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 `delay` is never read [INFO] [stdout] --> src/server/transport.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct PacketRetry { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 43 | pub delay: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketRetry` 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 `delay` is never read [INFO] [stdout] --> src/server/transport.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct PacketReset { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 48 | pub delay: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketReset` 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 `delay` and `target` are never read [INFO] [stdout] --> src/server/transport.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct PacketRedirect { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 53 | pub delay: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 54 | pub target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketRedirect` 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 `id` is never read [INFO] [stdout] --> src/server/transport.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct PacketMessage { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 59 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketMessage` 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 `id` and `pkg_id` are never read [INFO] [stdout] --> src/server/transport.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct PacketAck { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 67 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 68 | pub pkg_id: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketAck` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `send_packet` is never used [INFO] [stdout] --> src/server/transport.rs:102:18 [INFO] [stdout] | [INFO] [stdout] 73 | impl Transport { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | pub async fn send_packet( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | READ_CHAN_RX.set(read_rx).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:115:32 [INFO] [stdout] | [INFO] [stdout] 115 | let upstream_id = unsafe { UPSTREAM_ID.clone() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:159:28 [INFO] [stdout] | [INFO] [stdout] 159 | let read_rx = unsafe { READ_CHAN_RX.get_mut().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:171:28 [INFO] [stdout] | [INFO] [stdout] 171 | let read_rx = unsafe { READ_CHAN_RX.get_mut().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:182:28 [INFO] [stdout] | [INFO] [stdout] 182 | let read_rx = unsafe { READ_CHAN_RX.get_mut().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | socket_chan.send(Action::SendMessage(ActionSendMessage { payload })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 195 | let _ = socket_chan.send(Action::SendMessage(ActionSendMessage { payload })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/server/server.rs:78:35 [INFO] [stdout] | [INFO] [stdout] 78 | if app_id.ne(unsafe { &APP_ID }) { [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 78 | if app_id.ne(unsafe { &raw const APP_ID }) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | / socket_write_chan_tx.send(Action::SendOpen(ActionSendOpen { [INFO] [stdout] 59 | | ping_interval: 25, [INFO] [stdout] 60 | | ping_timeout: 20, [INFO] [stdout] 61 | | })); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 58 | let _ = socket_write_chan_tx.send(Action::SendOpen(ActionSendOpen { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:70:25 [INFO] [stdout] | [INFO] [stdout] 70 | / Transport::send_open_packet( [INFO] [stdout] 71 | | &mut sink, [INFO] [stdout] 72 | | action.ping_interval, [INFO] [stdout] 73 | | action.ping_timeout, [INFO] [stdout] 74 | | ) [INFO] [stdout] 75 | | .await; [INFO] [stdout] | |______________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 70 | let _ = Transport::send_open_packet( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:78:25 [INFO] [stdout] | [INFO] [stdout] 78 | Transport::send_ping_packet(&mut sink).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 78 | let _ = Transport::send_ping_packet(&mut sink).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 81 | Transport::send_message_packet(&mut sink, action.payload).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 81 | let _ = Transport::send_message_packet(&mut sink, action.payload).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | Transport::send_close_packet(&mut sink, "").await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 84 | let _ = Transport::send_close_packet(&mut sink, "").await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | close_tx_clone.send(()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 85 | let _ = close_tx_clone.send(()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:105:29 [INFO] [stdout] | [INFO] [stdout] 105 | ... close_tx_clone.send(()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 105 | let _ = close_tx_clone.send(()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | close_tx_clone.send(()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 131 | let _ = close_tx_clone.send(()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:143:21 [INFO] [stdout] | [INFO] [stdout] 143 | close_tx_clone.send(()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 143 | let _ = close_tx_clone.send(()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server/socket.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | socket_write_chan_tx.send(Action::SendPing(ActionSendPing {})); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 148 | let _ = socket_write_chan_tx.send(Action::SendPing(ActionSendPing {})); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 39.44s [INFO] running `Command { std: "docker" "inspect" "ab3e46b6a0c7d1058064888fac5d3608c77a14abf25120f50c5eba52c6ab3834", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab3e46b6a0c7d1058064888fac5d3608c77a14abf25120f50c5eba52c6ab3834", kill_on_drop: false }` [INFO] [stdout] ab3e46b6a0c7d1058064888fac5d3608c77a14abf25120f50c5eba52c6ab3834