[INFO] cloning repository https://github.com/radudiaconu0/toji [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/radudiaconu0/toji" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fradudiaconu0%2Ftoji", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fradudiaconu0%2Ftoji'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 13bb90260441f7d87e8ca9288dd9fed5055d8c96 [INFO] checking radudiaconu0/toji/13bb90260441f7d87e8ca9288dd9fed5055d8c96 against master#613bdd49978298648ed05ace086bd1ecad54b44a for pr-136458 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fradudiaconu0%2Ftoji" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/radudiaconu0/toji on toolchain 613bdd49978298648ed05ace086bd1ecad54b44a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+613bdd49978298648ed05ace086bd1ecad54b44a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/radudiaconu0/toji [INFO] finished tweaking git repo https://github.com/radudiaconu0/toji [INFO] tweaked toml for git repo https://github.com/radudiaconu0/toji written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/radudiaconu0/toji 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" "+613bdd49978298648ed05ace086bd1ecad54b44a" "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] Downloading crates ... [INFO] [stderr] Downloaded digest v0.11.0-pre.8 [INFO] [stderr] Downloaded sysinfo v0.30.6 [INFO] [stderr] Downloaded sha1 v0.11.0-pre.3 [INFO] [stderr] Downloaded hmac v0.13.0-pre.3 [INFO] [stderr] Downloaded hybrid-array v0.2.0-rc.7 [INFO] [stderr] Downloaded block-buffer v0.11.0-pre.5 [INFO] [stderr] Downloaded const-oid v0.10.0-pre.2 [INFO] [stderr] Downloaded crypto-common v0.2.0-pre.5 [INFO] [stderr] Downloaded sha2 v0.11.0-pre.3 [INFO] [stderr] Downloaded web-socket v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+613bdd49978298648ed05ace086bd1ecad54b44a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2dfdb1f5825bc056ccfb8ba5603ed42767a5ea818a6646f174357d8ef315188 [INFO] running `Command { std: "docker" "start" "-a" "d2dfdb1f5825bc056ccfb8ba5603ed42767a5ea818a6646f174357d8ef315188", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2dfdb1f5825bc056ccfb8ba5603ed42767a5ea818a6646f174357d8ef315188", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2dfdb1f5825bc056ccfb8ba5603ed42767a5ea818a6646f174357d8ef315188", kill_on_drop: false }` [INFO] [stdout] d2dfdb1f5825bc056ccfb8ba5603ed42767a5ea818a6646f174357d8ef315188 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+613bdd49978298648ed05ace086bd1ecad54b44a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ff2b42a6c5bc85ed141d08df6b5bef28eae1a8858a97c2cc807307e20bd0b14 [INFO] running `Command { std: "docker" "start" "-a" "8ff2b42a6c5bc85ed141d08df6b5bef28eae1a8858a97c2cc807307e20bd0b14", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking hybrid-array v0.2.0-rc.7 [INFO] [stderr] Checking const-oid v0.10.0-pre.2 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking indexmap v2.2.5 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking crypto-common v0.2.0-pre.5 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking http-body-util v0.1.0 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling axum v0.7.4 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking rayon v1.9.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking http-range-header v0.4.0 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Checking chrono v0.4.34 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking block-buffer v0.11.0-pre.5 [INFO] [stderr] Checking base64 v0.22.0 [INFO] [stderr] Checking digest v0.11.0-pre.8 [INFO] [stderr] Checking hmac v0.13.0-pre.3 [INFO] [stderr] Checking sha1 v0.11.0-pre.3 [INFO] [stderr] Checking sha2 v0.11.0-pre.3 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling pin-project-internal v1.1.4 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking pin-project v1.1.4 [INFO] [stderr] Checking sysinfo v0.30.6 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking web-socket v0.7.0 [INFO] [stderr] Checking h2 v0.4.2 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking serde_path_to_error v0.1.15 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking hyper v1.2.0 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking toji v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated functions `new` and `transform_potential_json_to_array` are never used [INFO] [stdout] --> src/app.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 49 | impl App { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 50 | fn new(initial_app: HashMap<&str, serde_json::Value>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn transform_potential_json_to_array(potential_json: &Value) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/options.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Redis { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 5 | pub host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub db: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 8 | pub username: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub key_prefix: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | pub sentinels: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | pub cluster: Option>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Redis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `host` and `port` are never read [INFO] [stdout] --> src/options.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ClusterNode { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 16 | pub host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClusterNode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `host` and `port` are never read [INFO] [stdout] --> src/options.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct RedisSentinel { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 21 | host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RedisSentinel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `driver`, `redis`, `cluster`, and `nats` are never read [INFO] [stdout] --> src/options.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Adapter { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 26 | pub driver: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | pub(crate) redis: RedisAdapter, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | pub(crate) cluster: ClusterAdapter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 29 | pub(crate) nats: NatsAdapter, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Adapter` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `request_timeout`, `prefix`, `redis_pub_options`, `redis_sub_options`, and `cluster_mode` are never read [INFO] [stdout] --> src/options.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct RedisAdapter { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 33 | pub request_timeout: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pub(crate) prefix: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 35 | pub(crate) redis_pub_options: Value, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 36 | pub(crate) redis_sub_options: Value, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | pub(crate) cluster_mode: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RedisAdapter` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `request_timeout` is never read [INFO] [stdout] --> src/options.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct ClusterAdapter { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 41 | pub request_timeout: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClusterAdapter` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/options.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct NatsAdapter { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 45 | pub request_timeout: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | pub(crate) prefix: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | pub(crate) servers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 48 | pub(crate) user: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | pub(crate) password: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 50 | pub(crate) token: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | pub(crate) timeout: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 52 | pub(crate) nodes_number: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NatsAdapter` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `driver`, `array`, `cache`, and `mysql` are never read [INFO] [stdout] --> src/options.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct AppManager { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 56 | pub(crate) driver: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 57 | pub(crate) array: ArrayAppManager, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 58 | pub(crate) cache: CacheAppManager, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 59 | pub(crate) mysql: MySQLAppManager, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `apps` is never read [INFO] [stdout] --> src/options.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct ArrayAppManager { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 63 | pub(crate) apps: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ArrayAppManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `enabled` and `ttl` are never read [INFO] [stdout] --> src/options.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct CacheAppManager { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 74 | pub(crate) enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 75 | pub(crate) ttl: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CacheAppManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `table` and `version` are never read [INFO] [stdout] --> src/options.rs:79:16 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct MySQLAppManager { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 79 | pub(crate) table: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 80 | pub(crate) version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MySQLAppManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `prefix` is never read [INFO] [stdout] --> src/options.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct Prometheus { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 84 | pub(crate) prefix: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Prometheus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `enabled`, `driver`, `host`, `prometheus`, and `port` are never read [INFO] [stdout] --> src/options.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 88 | pub struct Metrics { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 89 | pub(crate) enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 90 | pub(crate) driver: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 91 | pub(crate) host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 92 | pub(crate) prometheus: Prometheus, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 93 | pub(crate) port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Metrics` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `adapter`, `app_manager`, `debug`, `port`, and `metrics` are never read [INFO] [stdout] --> src/options.rs:98:16 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct Options { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 98 | pub(crate) adapter: Adapter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 99 | pub(crate) app_manager: AppManager, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 100 | pub(crate) debug: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 101 | pub(crate) port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 102 | pub(crate) metrics: Metrics, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Options` 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 `new` is never used [INFO] [stdout] --> src/options.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 105 | impl Options { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 106 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `transform_potential_json_to_array` are never used [INFO] [stdout] --> src/app.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 49 | impl App { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 50 | fn new(initial_app: HashMap<&str, serde_json::Value>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn transform_potential_json_to_array(potential_json: &Value) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/options.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Redis { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 5 | pub host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub db: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 8 | pub username: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub key_prefix: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | pub sentinels: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | pub cluster: Option>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Redis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `host` and `port` are never read [INFO] [stdout] --> src/options.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ClusterNode { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 16 | pub host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClusterNode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `host` and `port` are never read [INFO] [stdout] --> src/options.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct RedisSentinel { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 21 | host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RedisSentinel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `driver`, `redis`, `cluster`, and `nats` are never read [INFO] [stdout] --> src/options.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Adapter { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 26 | pub driver: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | pub(crate) redis: RedisAdapter, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | pub(crate) cluster: ClusterAdapter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 29 | pub(crate) nats: NatsAdapter, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Adapter` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `request_timeout`, `prefix`, `redis_pub_options`, `redis_sub_options`, and `cluster_mode` are never read [INFO] [stdout] --> src/options.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct RedisAdapter { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 33 | pub request_timeout: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pub(crate) prefix: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 35 | pub(crate) redis_pub_options: Value, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 36 | pub(crate) redis_sub_options: Value, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | pub(crate) cluster_mode: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RedisAdapter` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `request_timeout` is never read [INFO] [stdout] --> src/options.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct ClusterAdapter { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 41 | pub request_timeout: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClusterAdapter` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/options.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct NatsAdapter { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 45 | pub request_timeout: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | pub(crate) prefix: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | pub(crate) servers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 48 | pub(crate) user: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | pub(crate) password: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 50 | pub(crate) token: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | pub(crate) timeout: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 52 | pub(crate) nodes_number: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NatsAdapter` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `driver`, `array`, `cache`, and `mysql` are never read [INFO] [stdout] --> src/options.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct AppManager { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 56 | pub(crate) driver: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 57 | pub(crate) array: ArrayAppManager, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 58 | pub(crate) cache: CacheAppManager, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 59 | pub(crate) mysql: MySQLAppManager, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `apps` is never read [INFO] [stdout] --> src/options.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct ArrayAppManager { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 63 | pub(crate) apps: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ArrayAppManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `enabled` and `ttl` are never read [INFO] [stdout] --> src/options.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct CacheAppManager { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 74 | pub(crate) enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 75 | pub(crate) ttl: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CacheAppManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `table` and `version` are never read [INFO] [stdout] --> src/options.rs:79:16 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct MySQLAppManager { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 79 | pub(crate) table: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 80 | pub(crate) version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MySQLAppManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `prefix` is never read [INFO] [stdout] --> src/options.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct Prometheus { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 84 | pub(crate) prefix: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Prometheus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `enabled`, `driver`, `host`, `prometheus`, and `port` are never read [INFO] [stdout] --> src/options.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 88 | pub struct Metrics { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 89 | pub(crate) enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 90 | pub(crate) driver: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 91 | pub(crate) host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 92 | pub(crate) prometheus: Prometheus, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 93 | pub(crate) port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Metrics` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `adapter`, `app_manager`, `debug`, `port`, and `metrics` are never read [INFO] [stdout] --> src/options.rs:98:16 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct Options { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 98 | pub(crate) adapter: Adapter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 99 | pub(crate) app_manager: AppManager, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 100 | pub(crate) debug: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 101 | pub(crate) port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 102 | pub(crate) metrics: Metrics, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Options` 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 `new` is never used [INFO] [stdout] --> src/options.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 105 | impl Options { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 106 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `send_to_socket` is not a member of trait `Adapter` [INFO] [stdout] --> src/adapters/local_adapter.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | / async fn send_to_socket(namespace: Namespace, user_id: &str, message: serde_json::Value) { [INFO] [stdout] 65 | | namespace.to_user_sockets(user_id, |ws| async { ws.send_json(message).await }) [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ not a member of trait `Adapter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `RwLock` [INFO] [stdout] --> src/adapters/adapter.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/adapters/adapter.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::message` [INFO] [stdout] --> src/adapters/local_adapter.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::message; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/adapters/local_adapter.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ws_handler::WSHandler` [INFO] [stdout] --> src/http_handler.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ws_handler::WSHandler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConnectInfo` and `Query` [INFO] [stdout] --> src/http_handler.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::extract::{ConnectInfo, Path, Query, State}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> src/http_handler.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::response::{IntoResponse, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::adapters::adapter::Adapter` [INFO] [stdout] --> src/http_handler.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::adapters::adapter::Adapter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PresenceMember` [INFO] [stdout] --> src/namespace.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::channels::presence_channel_manager::{PresenceMember, PresenceMemberInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/web_socket.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/web_socket.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/web_socket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::adapters::adapter::Adapter` [INFO] [stdout] --> src/ws_handler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::adapters::adapter::Adapter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UWebSocketMessage` [INFO] [stdout] --> src/ws_handler.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::message::{PusherMessage, UWebSocketMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/ws_handler.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/ws_handler.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/ws_handler.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | use std::sync::{Arc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `adapters::local_adapter::LocalAdapter` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use adapters::local_adapter::LocalAdapter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `send_to_socket` is not a member of trait `Adapter` [INFO] [stdout] --> src/adapters/local_adapter.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | / async fn send_to_socket(namespace: Namespace, user_id: &str, message: serde_json::Value) { [INFO] [stdout] 65 | | namespace.to_user_sockets(user_id, |ws| async { ws.send_json(message).await }) [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ not a member of trait `Adapter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `RwLock` [INFO] [stdout] --> src/adapters/adapter.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/adapters/adapter.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::message` [INFO] [stdout] --> src/adapters/local_adapter.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::message; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/adapters/local_adapter.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ws_handler::WSHandler` [INFO] [stdout] --> src/http_handler.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ws_handler::WSHandler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConnectInfo` and `Query` [INFO] [stdout] --> src/http_handler.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::extract::{ConnectInfo, Path, Query, State}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> src/http_handler.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::response::{IntoResponse, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::adapters::adapter::Adapter` [INFO] [stdout] --> src/http_handler.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::adapters::adapter::Adapter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PresenceMember` [INFO] [stdout] --> src/namespace.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::channels::presence_channel_manager::{PresenceMember, PresenceMemberInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/web_socket.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/web_socket.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/web_socket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::adapters::adapter::Adapter` [INFO] [stdout] --> src/ws_handler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::adapters::adapter::Adapter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UWebSocketMessage` [INFO] [stdout] --> src/ws_handler.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::message::{PusherMessage, UWebSocketMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/ws_handler.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/ws_handler.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/ws_handler.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | use std::sync::{Arc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `adapters::local_adapter::LocalAdapter` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use adapters::local_adapter::LocalAdapter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:41:39 [INFO] [stdout] | [INFO] [stdout] 41 | async fn remove_socket(&mut self, app_id: &str, ws_id: &str) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:41:53 [INFO] [stdout] | [INFO] [stdout] 41 | async fn remove_socket(&mut self, app_id: &str, ws_id: &str) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ws_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:45:40 [INFO] [stdout] | [INFO] [stdout] 45 | async fn add_to_channel(&mut self, app_id: &str, channel: &str, ws: WebSocket) -> usize { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:45:54 [INFO] [stdout] | [INFO] [stdout] 45 | async fn add_to_channel(&mut self, app_id: &str, channel: &str, ws: WebSocket) -> usize { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws` [INFO] [stdout] --> src/adapters/local_adapter.rs:45:69 [INFO] [stdout] | [INFO] [stdout] 45 | async fn add_to_channel(&mut self, app_id: &str, channel: &str, ws: WebSocket) -> usize { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | channel: Channel, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | ws_id: &str, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ws_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:58:30 [INFO] [stdout] | [INFO] [stdout] 58 | async fn send(&mut self, app_id: &str, channel: &str, data: &str, excepting_id: Option<&str>) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:58:44 [INFO] [stdout] | [INFO] [stdout] 58 | async fn send(&mut self, app_id: &str, channel: &str, data: &str, excepting_id: Option<&str>) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/adapters/local_adapter.rs:58:59 [INFO] [stdout] | [INFO] [stdout] 58 | async fn send(&mut self, app_id: &str, channel: &str, data: &str, excepting_id: Option<&str>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `excepting_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:58:71 [INFO] [stdout] | [INFO] [stdout] 58 | async fn send(&mut self, app_id: &str, channel: &str, data: &str, excepting_id: Option<&str>) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_excepting_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:62:52 [INFO] [stdout] | [INFO] [stdout] 62 | async fn terminate_user_connections(&mut self, app_id: &str, user_id: &str) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:62:66 [INFO] [stdout] | [INFO] [stdout] 62 | async fn terminate_user_connections(&mut self, app_id: &str, user_id: &str) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/adapters/local_adapter.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | namespace.to_user_sockets(user_id, |ws| async { ws.send_json(message).await }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: consider using a semicolon here: `;` [INFO] [stdout] | | [INFO] [stdout] | expected `()`, found `Vec<...>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found struct `Vec<{async block@src/adapters/local_adapter.rs:65:49: 65:54}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `namespace_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:72:41 [INFO] [stdout] | [INFO] [stdout] 72 | async fn clear_namespace(&mut self, namespace_id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_namespace_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:80:37 [INFO] [stdout] | [INFO] [stdout] 80 | async fn get_sockets(&mut self, app_id: &str, only_local: bool) -> HashMap { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:80:51 [INFO] [stdout] | [INFO] [stdout] 80 | async fn get_sockets(&mut self, app_id: &str, only_local: bool) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:84:43 [INFO] [stdout] | [INFO] [stdout] 84 | async fn get_sockets_count(&mut self, app_id: &str, only_local: bool) -> usize { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:84:57 [INFO] [stdout] | [INFO] [stdout] 84 | async fn get_sockets_count(&mut self, app_id: &str, only_local: bool) -> usize { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | channel: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | channel: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | channel: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | channel: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | channel: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | ws_id: &str, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ws_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws` [INFO] [stdout] --> src/adapters/local_adapter.rs:150:34 [INFO] [stdout] | [INFO] [stdout] 150 | async fn add_user(&mut self, ws: WebSocket) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws` [INFO] [stdout] --> src/adapters/local_adapter.rs:154:37 [INFO] [stdout] | [INFO] [stdout] 154 | async fn remove_user(&mut self, ws: WebSocket) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:158:42 [INFO] [stdout] | [INFO] [stdout] 158 | async fn get_user_sockets(&mut self, app_id: &str, user_id: &str) -> HashSet<&WebSocket> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:158:56 [INFO] [stdout] | [INFO] [stdout] 158 | async fn get_user_sockets(&mut self, app_id: &str, user_id: &str) -> HashSet<&WebSocket> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:41:39 [INFO] [stdout] | [INFO] [stdout] 41 | async fn remove_socket(&mut self, app_id: &str, ws_id: &str) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:41:53 [INFO] [stdout] | [INFO] [stdout] 41 | async fn remove_socket(&mut self, app_id: &str, ws_id: &str) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ws_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:45:40 [INFO] [stdout] | [INFO] [stdout] 45 | async fn add_to_channel(&mut self, app_id: &str, channel: &str, ws: WebSocket) -> usize { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:45:54 [INFO] [stdout] | [INFO] [stdout] 45 | async fn add_to_channel(&mut self, app_id: &str, channel: &str, ws: WebSocket) -> usize { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws` [INFO] [stdout] --> src/adapters/local_adapter.rs:45:69 [INFO] [stdout] | [INFO] [stdout] 45 | async fn add_to_channel(&mut self, app_id: &str, channel: &str, ws: WebSocket) -> usize { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/http_handler.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / pub async fn channels( [INFO] [stdout] 38 | | Path(app_id): Path, [INFO] [stdout] 39 | | State(mut state): State, [INFO] [stdout] 40 | | ) -> impl IntoResponse { [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: IntoResponse` will fail [INFO] [stdout] --> src/http_handler.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 40 | ) -> impl IntoResponse { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 41 | | todo!("Implement channels") [INFO] [stdout] 42 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/http_handler.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | Path(app_id): Path, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/http_handler.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | State(mut state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http_handler.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | State(mut state): State, [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | channel: Channel, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | ws_id: &str, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ws_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:58:30 [INFO] [stdout] | [INFO] [stdout] 58 | async fn send(&mut self, app_id: &str, channel: &str, data: &str, excepting_id: Option<&str>) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:58:44 [INFO] [stdout] | [INFO] [stdout] 58 | async fn send(&mut self, app_id: &str, channel: &str, data: &str, excepting_id: Option<&str>) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/adapters/local_adapter.rs:58:59 [INFO] [stdout] | [INFO] [stdout] 58 | async fn send(&mut self, app_id: &str, channel: &str, data: &str, excepting_id: Option<&str>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `excepting_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:58:71 [INFO] [stdout] | [INFO] [stdout] 58 | async fn send(&mut self, app_id: &str, channel: &str, data: &str, excepting_id: Option<&str>) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_excepting_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:62:52 [INFO] [stdout] | [INFO] [stdout] 62 | async fn terminate_user_connections(&mut self, app_id: &str, user_id: &str) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:62:66 [INFO] [stdout] | [INFO] [stdout] 62 | async fn terminate_user_connections(&mut self, app_id: &str, user_id: &str) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ws_handler.rs:97:75 [INFO] [stdout] | [INFO] [stdout] 97 | state.lock().await.sockets.lock().await.insert(ws_id, ws); [INFO] [stdout] | ------ ^^ expected `WebSocket`, found `&WebSocket` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] help: the return type of this call is `&web_socket::WebSocket` due to the type of the argument passed [INFO] [stdout] --> src/ws_handler.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | state.lock().await.sockets.lock().await.insert(ws_id, ws); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `insert` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/613bdd49978298648ed05ace086bd1ecad54b44a/library/std/src/collections/hash/map.rs:1187:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ws_handler.rs:123:30 [INFO] [stdout] | [INFO] [stdout] 123 | pub async fn handle_pong(mut ws: &mut WebSocket) { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/adapters/local_adapter.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | namespace.to_user_sockets(user_id, |ws| async { ws.send_json(message).await }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: consider using a semicolon here: `;` [INFO] [stdout] | | [INFO] [stdout] | expected `()`, found `Vec<...>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found struct `Vec<{async block@src/adapters/local_adapter.rs:65:49: 65:54}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `namespace_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:72:41 [INFO] [stdout] | [INFO] [stdout] 72 | async fn clear_namespace(&mut self, namespace_id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_namespace_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:80:37 [INFO] [stdout] | [INFO] [stdout] 80 | async fn get_sockets(&mut self, app_id: &str, only_local: bool) -> HashMap { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:80:51 [INFO] [stdout] | [INFO] [stdout] 80 | async fn get_sockets(&mut self, app_id: &str, only_local: bool) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:84:43 [INFO] [stdout] | [INFO] [stdout] 84 | async fn get_sockets_count(&mut self, app_id: &str, only_local: bool) -> usize { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:84:57 [INFO] [stdout] | [INFO] [stdout] 84 | async fn get_sockets_count(&mut self, app_id: &str, only_local: bool) -> usize { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel_name` [INFO] [stdout] --> src/ws_handler.rs:188:55 [INFO] [stdout] | [INFO] [stdout] 188 | pub async fn subscribe_to_channel(ws: &WebSocket, channel_name: String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*ws` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/ws_handler.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | ws.send_json(serde_json::json!({ [INFO] [stdout] | ^^ `ws` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider specifying this binding's type [INFO] [stdout] | [INFO] [stdout] 188 | pub async fn subscribe_to_channel(ws: &mut web_socket::WebSocket: &WebSocket, channel_name: String) { [INFO] [stdout] | ++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | channel: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | channel: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | channel: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | channel: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | app_id: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/adapters/local_adapter.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | channel: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | ws_id: &str, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ws_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `only_local` [INFO] [stdout] --> src/adapters/local_adapter.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | only_local: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_only_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws` [INFO] [stdout] --> src/adapters/local_adapter.rs:150:34 [INFO] [stdout] | [INFO] [stdout] 150 | async fn add_user(&mut self, ws: WebSocket) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws` [INFO] [stdout] --> src/adapters/local_adapter.rs:154:37 [INFO] [stdout] | [INFO] [stdout] 154 | async fn remove_user(&mut self, ws: WebSocket) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:158:42 [INFO] [stdout] | [INFO] [stdout] 158 | async fn get_user_sockets(&mut self, app_id: &str, user_id: &str) -> HashSet<&WebSocket> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id` [INFO] [stdout] --> src/adapters/local_adapter.rs:158:56 [INFO] [stdout] | [INFO] [stdout] 158 | async fn get_user_sockets(&mut self, app_id: &str, user_id: &str) -> HashSet<&WebSocket> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/http_handler.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / pub async fn channels( [INFO] [stdout] 38 | | Path(app_id): Path, [INFO] [stdout] 39 | | State(mut state): State, [INFO] [stdout] 40 | | ) -> impl IntoResponse { [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: IntoResponse` will fail [INFO] [stdout] --> src/http_handler.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 40 | ) -> impl IntoResponse { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 41 | | todo!("Implement channels") [INFO] [stdout] 42 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/http_handler.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | Path(app_id): Path, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/http_handler.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | State(mut state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http_handler.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | State(mut state): State, [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ws_handler.rs:97:75 [INFO] [stdout] | [INFO] [stdout] 97 | state.lock().await.sockets.lock().await.insert(ws_id, ws); [INFO] [stdout] | ------ ^^ expected `WebSocket`, found `&WebSocket` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] help: the return type of this call is `&web_socket::WebSocket` due to the type of the argument passed [INFO] [stdout] --> src/ws_handler.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | state.lock().await.sockets.lock().await.insert(ws_id, ws); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `insert` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/613bdd49978298648ed05ace086bd1ecad54b44a/library/std/src/collections/hash/map.rs:1187:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ws_handler.rs:123:30 [INFO] [stdout] | [INFO] [stdout] 123 | pub async fn handle_pong(mut ws: &mut WebSocket) { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel_name` [INFO] [stdout] --> src/ws_handler.rs:188:55 [INFO] [stdout] | [INFO] [stdout] 188 | pub async fn subscribe_to_channel(ws: &WebSocket, channel_name: String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*ws` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/ws_handler.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | ws.send_json(serde_json::json!({ [INFO] [stdout] | ^^ `ws` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider specifying this binding's type [INFO] [stdout] | [INFO] [stdout] 188 | pub async fn subscribe_to_channel(ws: &mut web_socket::WebSocket: &WebSocket, channel_name: String) { [INFO] [stdout] | ++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServiceExt` [INFO] [stdout] --> src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::{Router, ServiceExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServiceExt` [INFO] [stdout] --> src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::{Router, ServiceExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/channels/public_channel_manager.rs:27:54 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn join(&self, ws: WebSocket, channel: &str, message: PusherMessage) -> JoinResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/channels/public_channel_manager.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn leave(&self, channel: &str) -> LeaveResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/namespace.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | if let Some(user) = self.users.get_mut(&user_id) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/namespace.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 137 | if let Some(ws) = self.sockets.lock().unwrap().get(ws_id) { [INFO] [stdout] | ---------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 141 | Ok(sockets.clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/namespace.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | channel: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0407, E0515, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/channels/public_channel_manager.rs:27:54 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn join(&self, ws: WebSocket, channel: &str, message: PusherMessage) -> JoinResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/channels/public_channel_manager.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn leave(&self, channel: &str) -> LeaveResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `toji` (bin "toji" test) due to 5 previous errors; 72 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/namespace.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | if let Some(user) = self.users.get_mut(&user_id) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/namespace.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 137 | if let Some(ws) = self.sockets.lock().unwrap().get(ws_id) { [INFO] [stdout] | ---------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 141 | Ok(sockets.clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/namespace.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | channel: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0407, E0515, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `toji` (bin "toji") due to 5 previous errors; 72 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8ff2b42a6c5bc85ed141d08df6b5bef28eae1a8858a97c2cc807307e20bd0b14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ff2b42a6c5bc85ed141d08df6b5bef28eae1a8858a97c2cc807307e20bd0b14", kill_on_drop: false }` [INFO] [stdout] 8ff2b42a6c5bc85ed141d08df6b5bef28eae1a8858a97c2cc807307e20bd0b14