[INFO] cloning repository https://github.com/ivosequeros/aletheia [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ivosequeros/aletheia" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivosequeros%2Faletheia", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivosequeros%2Faletheia'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c357cfeffc0502b7ba17663a0a5a749891c0cffb [INFO] checking ivosequeros/aletheia against try#47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268 for pr-149058 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivosequeros%2Faletheia" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ivosequeros/aletheia [INFO] finished tweaking git repo https://github.com/ivosequeros/aletheia [INFO] tweaked toml for git repo https://github.com/ivosequeros/aletheia written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ivosequeros/aletheia on toolchain 47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ivosequeros/aletheia 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" "+47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking ivosequeros/aletheia against try#47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268 for pr-149058 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivosequeros%2Faletheia" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ivosequeros/aletheia [INFO] finished tweaking git repo https://github.com/ivosequeros/aletheia [INFO] tweaked toml for git repo https://github.com/ivosequeros/aletheia written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ivosequeros/aletheia on toolchain 47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ivosequeros/aletheia 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" "+47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking ivosequeros/aletheia against try#47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268 for pr-149058 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivosequeros%2Faletheia" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ivosequeros/aletheia [INFO] finished tweaking git repo https://github.com/ivosequeros/aletheia [INFO] tweaked toml for git repo https://github.com/ivosequeros/aletheia written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ivosequeros/aletheia on toolchain 47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ivosequeros/aletheia 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" "+47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hermit-abi v0.1.11 [INFO] [stderr] Downloaded sys-info v0.7.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.18 [INFO] [stderr] Downloaded ryu v1.0.4 [INFO] [stderr] Downloaded serde_derive v1.0.110 [INFO] [stderr] Downloaded serde v1.0.110 [INFO] [stderr] Downloaded derive_more v0.99.5 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.63 [INFO] [stderr] Downloaded failure_derive v0.1.7 [INFO] [stderr] Downloaded xoroshiro128 v0.3.0 [INFO] [stderr] Downloaded adler32 v1.1.0 [INFO] [stderr] Downloaded criterion-plot v0.4.2 [INFO] [stderr] Downloaded async-trait v0.1.36 [INFO] [stderr] Downloaded libflate v0.1.27 [INFO] [stderr] Downloaded rayon-core v1.7.1 [INFO] [stderr] Downloaded tokio v0.2.21 [INFO] [stderr] Downloaded avro-rs v0.10.0 [INFO] [stderr] Downloaded rayon v1.3.1 [INFO] [stderr] Downloaded js-sys v0.3.40 [INFO] [stderr] Downloaded wasm-bindgen v0.2.63 [INFO] [stderr] Downloaded clap v2.33.1 [INFO] [stderr] Downloaded criterion v0.3.2 [INFO] [stderr] Downloaded failure v0.1.7 [INFO] [stderr] Downloaded seahash v3.0.7 [INFO] [stderr] Downloaded strum v0.18.0 [INFO] [stderr] Downloaded strum_macros v0.18.0 [INFO] [stderr] Downloaded bstr v0.2.13 [INFO] [stderr] Downloaded typed-builder v0.5.1 [INFO] [stderr] Downloaded crossbeam-epoch v0.8.2 [INFO] [stderr] Downloaded crossbeam-deque v0.7.3 [INFO] [stderr] Downloaded oorandom v11.1.2 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.63 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.63 [INFO] [stderr] Downloaded either v1.5.3 [INFO] [stderr] Downloaded crossbeam-queue v0.2.3 [INFO] [stderr] Downloaded futures-executor v0.3.4 [INFO] [stderr] Downloaded web-sys v0.3.40 [INFO] [stderr] Downloaded backtrace-sys v0.1.36 [INFO] [stderr] Downloaded futures-macro v0.3.4 [INFO] [stderr] Downloaded proc-macro-hack v0.5.15 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.63 [INFO] [stderr] Downloaded memoffset v0.5.4 [INFO] [stderr] Downloaded proc-macro-nested v0.1.4 [INFO] [stderr] Downloaded csv v1.1.3 [INFO] [stderr] Downloaded syn v1.0.30 [INFO] [stderr] Downloaded fasthash v0.4.0 [INFO] [stderr] Downloaded serde_json v1.0.53 [INFO] [stderr] Downloaded fasthash-sys v0.3.2 [INFO] [stderr] Downloaded backtrace v0.3.46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dcc6e03567cb4be6145724a0e07072a5f87b980f296daa25bab0cd3404dd7047 [INFO] running `Command { std: "docker" "start" "-a" "dcc6e03567cb4be6145724a0e07072a5f87b980f296daa25bab0cd3404dd7047", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dcc6e03567cb4be6145724a0e07072a5f87b980f296daa25bab0cd3404dd7047", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dcc6e03567cb4be6145724a0e07072a5f87b980f296daa25bab0cd3404dd7047", kill_on_drop: false }` [INFO] [stdout] dcc6e03567cb4be6145724a0e07072a5f87b980f296daa25bab0cd3404dd7047 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 280307298cee9a868e5112c71c28d55b9637f36ca32d8ded463ce6a738c06ab6 [INFO] running `Command { std: "docker" "start" "-a" "280307298cee9a868e5112c71c28d55b9637f36ca32d8ded463ce6a738c06ab6", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling syn v1.0.30 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Checking futures-core v0.3.4 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling proc-macro-nested v0.1.4 [INFO] [stderr] Compiling rayon-core v1.7.1 [INFO] [stderr] Checking futures-sink v0.3.4 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.15 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling failure_derive v0.1.7 [INFO] [stderr] Checking futures-io v0.3.4 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling rayon v1.3.1 [INFO] [stderr] Checking futures-channel v0.3.4 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking pin-utils v0.1.0-alpha.4 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Checking rustc-demangle v0.1.16 [INFO] [stderr] Checking futures-task v0.3.4 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking arc-swap v0.4.6 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling fasthash-sys v0.3.2 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling backtrace-sys v0.1.36 [INFO] [stderr] Checking mio v0.6.21 [INFO] [stderr] Compiling sys-info v0.7.0 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking adler32 v1.1.0 [INFO] [stderr] Checking pin-project-lite v0.1.4 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking rle-decode-fast v1.0.1 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking clap v2.33.1 [INFO] [stderr] Checking xoroshiro128 v0.3.0 [INFO] [stderr] Checking libflate v0.1.27 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking plotters v0.2.15 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking seahash v3.0.7 [INFO] [stderr] Checking oorandom v11.1.2 [INFO] [stderr] Checking strum v0.18.0 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking uuid v0.8.1 [INFO] [stderr] Checking criterion-plot v0.4.2 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking backtrace v0.3.46 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling typed-builder v0.5.1 [INFO] [stderr] Compiling strum_macros v0.18.0 [INFO] [stderr] Compiling async-trait v0.1.36 [INFO] [stderr] Compiling derive_more v0.99.5 [INFO] [stderr] Compiling zerocopy-derive v0.2.0 [INFO] [stderr] Checking tokio v0.2.21 [INFO] [stderr] Checking failure v0.1.7 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Checking zerocopy v0.3.0 [INFO] [stderr] Checking fasthash v0.4.0 [INFO] [stderr] Checking futures-executor v0.3.4 [INFO] [stderr] Checking futures v0.3.4 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking serde_json v1.0.53 [INFO] [stderr] Checking bstr v0.2.13 [INFO] [stderr] Checking csv v1.1.3 [INFO] [stderr] Checking tinytemplate v1.1.0 [INFO] [stderr] Checking avro-rs v0.10.0 [INFO] [stderr] Checking criterion v0.3.2 [INFO] [stderr] Checking gaze v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/codec/numbers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/codec/numbers.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncReadExt` [INFO] [stdout] --> src/codec/numbers.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::io::AsyncReadExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::tcp::OwnedReadHalf` [INFO] [stdout] --> src/codec/numbers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::net::tcp::OwnedReadHalf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/codec/registry.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::errors::ReceiveStringError` [INFO] [stdout] --> src/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::ReceiveStringError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rng` and `thread_rng` [INFO] [stdout] --> src/client.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{thread_rng, Rng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/client.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncBufReadExt` and `AsyncRead` [INFO] [stdout] --> src/client.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::io::{AsyncBufReadExt, AsyncRead}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/codec/numbers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/codec/numbers.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncReadExt` [INFO] [stdout] --> src/codec/numbers.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::io::AsyncReadExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::tcp::OwnedReadHalf` [INFO] [stdout] --> src/codec/numbers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::net::tcp::OwnedReadHalf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/codec/registry.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::errors::ReceiveStringError` [INFO] [stdout] --> src/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::ReceiveStringError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rng` and `thread_rng` [INFO] [stdout] --> src/client.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{thread_rng, Rng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/client.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncBufReadExt` and `AsyncRead` [INFO] [stdout] --> src/client.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::io::{AsyncBufReadExt, AsyncRead}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `map_first_last` has been stable since 1.66.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(map_first_last)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `map_first_last` has been stable since 1.66.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(map_first_last)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/protocol/eater.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::prelude` [INFO] [stdout] --> src/client.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/selection/filter.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | v => return Err("Filter contains field not allowed"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/protocol/eater.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::prelude` [INFO] [stdout] --> src/client.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/selection/filter.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | v => return Err("Filter contains field not allowed"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/selection/subscription.rs:64:41 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn disgregate(self: &Arc, selector: &mut Selector) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/codec/numbers.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut i = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/codec/numbers.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | i += 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/codec/numbers.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let mut i = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/codec/numbers.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | i += 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/selection/subscription.rs:64:41 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn disgregate(self: &Arc, selector: &mut Selector) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/codec/numbers.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut i = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/codec/numbers.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | i += 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/codec/numbers.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let mut i = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/codec/numbers.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | i += 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/protocol/eater.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let start = std::time::Instant::now(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/protocol/eater.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | let (message, size) = reader.read_message().await; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `store` [INFO] [stdout] --> src/protocol/eater.rs:199:21 [INFO] [stdout] | [INFO] [stdout] 199 | let store = connection.router.store.read().await; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_store` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/protocol/eater.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let start = std::time::Instant::now(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/protocol/eater.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | let (message, size) = reader.read_message().await; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `store` [INFO] [stdout] --> src/protocol/eater.rs:199:21 [INFO] [stdout] | [INFO] [stdout] 199 | let store = connection.router.store.read().await; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_store` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParseError` is never constructed [INFO] [stdout] --> src/errors.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ParseError; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ConnectionError` is never used [INFO] [stdout] --> src/errors.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum ConnectionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReceiveStringError` is never used [INFO] [stdout] --> src/errors.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum ReceiveStringError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EatingError` is never used [INFO] [stdout] --> src/errors.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum EatingError { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Constraint` is never used [INFO] [stdout] --> src/selection/filter.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Constraint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FieldConstraint` is never used [INFO] [stdout] --> src/selection/filter.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type FieldConstraint = (String, Constraint); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypeConstraints` is never used [INFO] [stdout] --> src/selection/filter.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub type TypeConstraints = (Vec, Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Filter` is never used [INFO] [stdout] --> src/selection/filter.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type Filter = Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ChecksRequiredPerType` is never used [INFO] [stdout] --> src/selection/filter.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub type ChecksRequiredPerType = HashMap, usize>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FilterBuilder` is never used [INFO] [stdout] --> src/selection/filter.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub trait FilterBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROOT_FIELD_PATH` is never used [INFO] [stdout] --> src/selection/selector.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const ROOT_FIELD_PATH: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FIELD_SEPARATOR` is never used [INFO] [stdout] --> src/selection/selector.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const FIELD_SEPARATOR: &str = "."; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SelectorSubscription` is never used [INFO] [stdout] --> src/selection/selector.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type SelectorSubscription = Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SelectorSubscriptions` is never used [INFO] [stdout] --> src/selection/selector.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub type SelectorSubscriptions = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FieldNonEqualityCheck` is never used [INFO] [stdout] --> src/selection/selector.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum FieldNonEqualityCheck { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FieldNonEqualityChecks` is never used [INFO] [stdout] --> src/selection/selector.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub type FieldNonEqualityChecks = Vec<(FieldNonEqualityCheck, SelectorSubscriptions)>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FieldEqualityCheck` is never used [INFO] [stdout] --> src/selection/selector.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub type FieldEqualityCheck = HashMap, SelectorSubscriptions>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SubscriptionsByField` is never used [INFO] [stdout] --> src/selection/selector.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub type SubscriptionsByField = HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SubscriptionsByType` is never used [INFO] [stdout] --> src/selection/selector.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | pub type SubscriptionsByType = HashMap, SubscriptionsByField>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Selector` is never used [INFO] [stdout] --> src/selection/selector.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | pub type Selector = SubscriptionsByType; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ChecksPerMessage` is never used [INFO] [stdout] --> src/selection/selector.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | type ChecksPerMessage = HashMap, usize>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Subscriptions` is never used [INFO] [stdout] --> src/selection/selector.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | type Subscriptions = HashMap, Arc>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Checker` is never used [INFO] [stdout] --> src/selection/selector.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 36 | type Checker = (ChecksPerMessage, Subscriptions); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CheckerOperations` is never used [INFO] [stdout] --> src/selection/selector.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 38 | pub trait CheckerOperations { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ConditionalInsertion` is never used [INFO] [stdout] --> src/selection/selector.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | pub trait ConditionalInsertion { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Selection` is never used [INFO] [stdout] --> src/selection/selector.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | pub trait Selection { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Subscription` is never constructed [INFO] [stdout] --> src/selection/subscription.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Subscription { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `integrate`, and `disgregate` are never used [INFO] [stdout] --> src/selection/subscription.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Subscription { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn integrate(self: &Arc, selector: &mut Selector) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn disgregate(self: &Arc, selector: &mut Selector) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_incoming` is never used [INFO] [stdout] --> src/server.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn handle_incoming(stream: TcpStream, router: Arc) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create` is never used [INFO] [stdout] --> src/server.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | pub async fn create<'c>() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MSB` is never used [INFO] [stdout] --> src/codec/numbers.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const MSB: u8 = 0b1000_0000; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DROP_MSB` is never used [INFO] [stdout] --> src/codec/numbers.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const DROP_MSB: u8 = 0b0111_1111; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ZigZagIntoUnsigned` is never used [INFO] [stdout] --> src/codec/numbers.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait ZigZagIntoUnsigned: Sized + Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ZigZagIntoSigned` is never used [INFO] [stdout] --> src/codec/numbers.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait ZigZagIntoSigned: Sized + Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `VarIntEncoder` is never used [INFO] [stdout] --> src/codec/numbers.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait VarIntEncoder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `VarIntDecoder` is never used [INFO] [stdout] --> src/codec/numbers.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub trait VarIntDecoder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Registry` is never constructed [INFO] [stdout] --> src/codec/registry.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Registry { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, `add`, and `get_raw` are never used [INFO] [stdout] --> src/codec/registry.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Registry { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Registry { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn get(&self, message_type: &[u8]) -> Option<&Schema> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add(&mut self, message_type: Vec, raw_schema: String) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn get_raw(&self, message_type: Vec) -> Result<&str, ()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ReadProtocol` is never used [INFO] [stdout] --> src/protocol/reader.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait ReadProtocol { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `WriteProtocol` is never used [INFO] [stdout] --> src/protocol/writer.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait WriteProtocol { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASE` is never used [INFO] [stdout] --> src/protocol/time.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const BASE: usize = 62; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SmallestReadableString` is never used [INFO] [stdout] --> src/protocol/time.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait SmallestReadableString: Sized + Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `total_messages` is never used [INFO] [stdout] --> src/protocol/eater.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static total_messages: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Eater` is never constructed [INFO] [stdout] --> src/protocol/eater.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Eater {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `report_total_messages`, `read`, and `acknowledge` are never used [INFO] [stdout] --> src/protocol/eater.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 22 | impl Eater { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 23 | pub async fn report_total_messages() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub async fn read(connection: Arc) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub async fn acknowledge( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Command` is never used [INFO] [stdout] --> src/protocol/command.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ConnectionStatus` is never used [INFO] [stdout] --> src/connection.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ConnectionStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Connection` is never constructed [INFO] [stdout] --> src/connection.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `accept` are never used [INFO] [stdout] --> src/connection.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Connection { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 17 | pub fn new(router: Arc, client: Arc) -> Connection { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub async fn accept(connection: Connection) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Client` is never constructed [INFO] [stdout] --> src/client.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `add_subscription` are never used [INFO] [stdout] --> src/client.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Client { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 23 | pub fn new(stream: TcpStream) -> Client { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub async fn add_subscription( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Router` is never constructed [INFO] [stdout] --> src/router.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Router { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_client`, and `remove_client` are never used [INFO] [stdout] --> src/router.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Router { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 17 | pub fn new() -> Router { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub async fn add_client(&self, id: Vec, client: Arc) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub async fn remove_client(&self, id: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INNER_ALLOC_PERCENTAGE` is never used [INFO] [stdout] --> src/storage/mod.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const INNER_ALLOC_PERCENTAGE: f64 = 0.8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Store` is never constructed [INFO] [stdout] --> src/storage/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Store { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `ensure_sufficient_remaining_memory`, `append`, and `pipe` are never used [INFO] [stdout] --> src/storage/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Store { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 21 | pub fn new() -> Arc> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | async fn ensure_sufficient_remaining_memory(store: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn append( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub async fn pipe(&self, offset: u64, subscription: Arc, router: Arc) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/selection/selector.rs:220:87 [INFO] [stdout] | [INFO] [stdout] 220 | println!("Field value is {:?} -> {}", field, std::str::from_utf8(field.clone()).unwrap()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `total_messages` should have an upper case name [INFO] [stdout] --> src/protocol/eater.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static total_messages: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 18 - static total_messages: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] 18 + static TOTAL_MESSAGES: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/storage/mod.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | &memory_id_8bit[2..8].copy_from_slice(&message_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = &memory_id_8bit[2..8].copy_from_slice(&message_id); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParseError` is never constructed [INFO] [stdout] --> src/errors.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ParseError; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ConnectionError` is never used [INFO] [stdout] --> src/errors.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum ConnectionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReceiveStringError` is never used [INFO] [stdout] --> src/errors.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum ReceiveStringError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EatingError` is never used [INFO] [stdout] --> src/errors.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum EatingError { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Constraint` is never used [INFO] [stdout] --> src/selection/filter.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Constraint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FieldConstraint` is never used [INFO] [stdout] --> src/selection/filter.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type FieldConstraint = (String, Constraint); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypeConstraints` is never used [INFO] [stdout] --> src/selection/filter.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub type TypeConstraints = (Vec, Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Filter` is never used [INFO] [stdout] --> src/selection/filter.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type Filter = Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ChecksRequiredPerType` is never used [INFO] [stdout] --> src/selection/filter.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub type ChecksRequiredPerType = HashMap, usize>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FilterBuilder` is never used [INFO] [stdout] --> src/selection/filter.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub trait FilterBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROOT_FIELD_PATH` is never used [INFO] [stdout] --> src/selection/selector.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const ROOT_FIELD_PATH: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FIELD_SEPARATOR` is never used [INFO] [stdout] --> src/selection/selector.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const FIELD_SEPARATOR: &str = "."; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SelectorSubscription` is never used [INFO] [stdout] --> src/selection/selector.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type SelectorSubscription = Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SelectorSubscriptions` is never used [INFO] [stdout] --> src/selection/selector.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub type SelectorSubscriptions = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FieldNonEqualityCheck` is never used [INFO] [stdout] --> src/selection/selector.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum FieldNonEqualityCheck { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FieldNonEqualityChecks` is never used [INFO] [stdout] --> src/selection/selector.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub type FieldNonEqualityChecks = Vec<(FieldNonEqualityCheck, SelectorSubscriptions)>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FieldEqualityCheck` is never used [INFO] [stdout] --> src/selection/selector.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub type FieldEqualityCheck = HashMap, SelectorSubscriptions>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SubscriptionsByField` is never used [INFO] [stdout] --> src/selection/selector.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub type SubscriptionsByField = HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SubscriptionsByType` is never used [INFO] [stdout] --> src/selection/selector.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | pub type SubscriptionsByType = HashMap, SubscriptionsByField>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Selector` is never used [INFO] [stdout] --> src/selection/selector.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | pub type Selector = SubscriptionsByType; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ChecksPerMessage` is never used [INFO] [stdout] --> src/selection/selector.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | type ChecksPerMessage = HashMap, usize>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Subscriptions` is never used [INFO] [stdout] --> src/selection/selector.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | type Subscriptions = HashMap, Arc>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Checker` is never used [INFO] [stdout] --> src/selection/selector.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 36 | type Checker = (ChecksPerMessage, Subscriptions); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CheckerOperations` is never used [INFO] [stdout] --> src/selection/selector.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 38 | pub trait CheckerOperations { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ConditionalInsertion` is never used [INFO] [stdout] --> src/selection/selector.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | pub trait ConditionalInsertion { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Selection` is never used [INFO] [stdout] --> src/selection/selector.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | pub trait Selection { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Subscription` is never constructed [INFO] [stdout] --> src/selection/subscription.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Subscription { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `integrate`, and `disgregate` are never used [INFO] [stdout] --> src/selection/subscription.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Subscription { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn integrate(self: &Arc, selector: &mut Selector) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn disgregate(self: &Arc, selector: &mut Selector) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_incoming` is never used [INFO] [stdout] --> src/server.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn handle_incoming(stream: TcpStream, router: Arc) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create` is never used [INFO] [stdout] --> src/server.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | pub async fn create<'c>() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MSB` is never used [INFO] [stdout] --> src/codec/numbers.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const MSB: u8 = 0b1000_0000; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DROP_MSB` is never used [INFO] [stdout] --> src/codec/numbers.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const DROP_MSB: u8 = 0b0111_1111; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ZigZagIntoUnsigned` is never used [INFO] [stdout] --> src/codec/numbers.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait ZigZagIntoUnsigned: Sized + Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ZigZagIntoSigned` is never used [INFO] [stdout] --> src/codec/numbers.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait ZigZagIntoSigned: Sized + Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `VarIntEncoder` is never used [INFO] [stdout] --> src/codec/numbers.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait VarIntEncoder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `VarIntDecoder` is never used [INFO] [stdout] --> src/codec/numbers.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub trait VarIntDecoder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Registry` is never constructed [INFO] [stdout] --> src/codec/registry.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Registry { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, `add`, and `get_raw` are never used [INFO] [stdout] --> src/codec/registry.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Registry { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Registry { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn get(&self, message_type: &[u8]) -> Option<&Schema> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add(&mut self, message_type: Vec, raw_schema: String) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn get_raw(&self, message_type: Vec) -> Result<&str, ()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ReadProtocol` is never used [INFO] [stdout] --> src/protocol/reader.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait ReadProtocol { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `WriteProtocol` is never used [INFO] [stdout] --> src/protocol/writer.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait WriteProtocol { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASE` is never used [INFO] [stdout] --> src/protocol/time.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const BASE: usize = 62; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SmallestReadableString` is never used [INFO] [stdout] --> src/protocol/time.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait SmallestReadableString: Sized + Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `total_messages` is never used [INFO] [stdout] --> src/protocol/eater.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static total_messages: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Eater` is never constructed [INFO] [stdout] --> src/protocol/eater.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Eater {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `report_total_messages`, `read`, and `acknowledge` are never used [INFO] [stdout] --> src/protocol/eater.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 22 | impl Eater { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 23 | pub async fn report_total_messages() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub async fn read(connection: Arc) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub async fn acknowledge( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Command` is never used [INFO] [stdout] --> src/protocol/command.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ConnectionStatus` is never used [INFO] [stdout] --> src/connection.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ConnectionStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Connection` is never constructed [INFO] [stdout] --> src/connection.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `accept` are never used [INFO] [stdout] --> src/connection.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Connection { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 17 | pub fn new(router: Arc, client: Arc) -> Connection { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub async fn accept(connection: Connection) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Client` is never constructed [INFO] [stdout] --> src/client.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `add_subscription` are never used [INFO] [stdout] --> src/client.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Client { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 23 | pub fn new(stream: TcpStream) -> Client { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub async fn add_subscription( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Router` is never constructed [INFO] [stdout] --> src/router.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Router { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_client`, and `remove_client` are never used [INFO] [stdout] --> src/router.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Router { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 17 | pub fn new() -> Router { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub async fn add_client(&self, id: Vec, client: Arc) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub async fn remove_client(&self, id: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INNER_ALLOC_PERCENTAGE` is never used [INFO] [stdout] --> src/storage/mod.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const INNER_ALLOC_PERCENTAGE: f64 = 0.8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Store` is never constructed [INFO] [stdout] --> src/storage/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Store { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `ensure_sufficient_remaining_memory`, `append`, and `pipe` are never used [INFO] [stdout] --> src/storage/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Store { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 21 | pub fn new() -> Arc> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | async fn ensure_sufficient_remaining_memory(store: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn append( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub async fn pipe(&self, offset: u64, subscription: Arc, router: Arc) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/selection/selector.rs:220:87 [INFO] [stdout] | [INFO] [stdout] 220 | println!("Field value is {:?} -> {}", field, std::str::from_utf8(field.clone()).unwrap()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `total_messages` should have an upper case name [INFO] [stdout] --> src/protocol/eater.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static total_messages: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 18 - static total_messages: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] 18 + static TOTAL_MESSAGES: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/storage/mod.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | &memory_id_8bit[2..8].copy_from_slice(&message_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = &memory_id_8bit[2..8].copy_from_slice(&message_id); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `storage` is private [INFO] [stdout] --> benches/storage_benchmark.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use gaze::storage::Store; [INFO] [stdout] | ^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `storage` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | mod storage; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Iterator` [INFO] [stdout] --> benches/storage_benchmark.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::errors::ReceiveStringError` [INFO] [stdout] --> src/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::ReceiveStringError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rng` and `thread_rng` [INFO] [stdout] --> src/client.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{thread_rng, Rng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/client.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncBufReadExt` and `AsyncRead` [INFO] [stdout] --> src/client.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::io::{AsyncBufReadExt, AsyncRead}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/codec/numbers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/codec/numbers.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncReadExt` [INFO] [stdout] --> src/codec/numbers.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::io::AsyncReadExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::tcp::OwnedReadHalf` [INFO] [stdout] --> src/codec/numbers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::net::tcp::OwnedReadHalf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/codec/registry.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::errors::ReceiveStringError` [INFO] [stdout] --> src/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::ReceiveStringError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rng` and `thread_rng` [INFO] [stdout] --> src/client.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{thread_rng, Rng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/client.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncBufReadExt` and `AsyncRead` [INFO] [stdout] --> src/client.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::io::{AsyncBufReadExt, AsyncRead}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/codec/numbers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/codec/numbers.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncReadExt` [INFO] [stdout] --> src/codec/numbers.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::io::AsyncReadExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::tcp::OwnedReadHalf` [INFO] [stdout] --> src/codec/numbers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::net::tcp::OwnedReadHalf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/codec/registry.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0603`. [INFO] [stdout] [INFO] [stdout] warning: the feature `map_first_last` has been stable since 1.66.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(map_first_last)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `map_first_last` has been stable since 1.66.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(map_first_last)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `gaze` (bench "storage_benchmark") due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `tokio::prelude` [INFO] [stdout] --> src/client.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::prelude` [INFO] [stdout] --> src/client.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/protocol/eater.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/protocol/eater.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/codec/numbers.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut i = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/codec/numbers.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | i += 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/codec/numbers.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut i = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/codec/numbers.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | i += 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/codec/numbers.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let mut i = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/codec/numbers.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | i += 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/codec/numbers.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let mut i = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/codec/numbers.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | i += 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/protocol/eater.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let start = std::time::Instant::now(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/protocol/eater.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | let (message, size) = reader.read_message().await; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `store` [INFO] [stdout] --> src/protocol/eater.rs:199:21 [INFO] [stdout] | [INFO] [stdout] 199 | let store = connection.router.store.read().await; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_store` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/protocol/eater.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let start = std::time::Instant::now(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/protocol/eater.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | let (message, size) = reader.read_message().await; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `store` [INFO] [stdout] --> src/protocol/eater.rs:199:21 [INFO] [stdout] | [INFO] [stdout] 199 | let store = connection.router.store.read().await; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_store` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/selection/filter.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | v => return Err("Filter contains field not allowed"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/selection/filter.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | v => return Err("Filter contains field not allowed"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/selection/subscription.rs:64:41 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn disgregate(self: &Arc, selector: &mut Selector) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/selection/subscription.rs:64:41 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn disgregate(self: &Arc, selector: &mut Selector) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `varint_size` is never used [INFO] [stdout] --> src/codec/numbers.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait VarIntEncoder { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 41 | fn varint_size(self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_varint_with_size` is never used [INFO] [stdout] --> src/codec/numbers.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub trait VarIntDecoder { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 46 | fn get_varint_size(&self) -> Result; [INFO] [stdout] 47 | fn read_varint_with_size(&self, length: usize) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/errors.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | IO(std::io::Error), [INFO] [stdout] | -- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 20 - IO(std::io::Error), [INFO] [stdout] 20 + IO(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/errors.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | Receive(ReceiveStringError) [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 22 - Receive(ReceiveStringError) [INFO] [stdout] 22 + Receive(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/errors.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | IO(std::io::Error), [INFO] [stdout] | -- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ReceiveStringError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 27 - IO(std::io::Error), [INFO] [stdout] 27 + IO(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/errors.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | Utf8(std::str::Utf8Error) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ReceiveStringError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 28 - Utf8(std::str::Utf8Error) [INFO] [stdout] 28 + Utf8(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EatingError` is never used [INFO] [stdout] --> src/errors.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum EatingError { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_id` is never used [INFO] [stdout] --> src/protocol/reader.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait ReadProtocol { [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] 10 | async fn read_command(&mut self) -> Result; [INFO] [stdout] 11 | async fn read_id(&mut self) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_message_ack`, `write_message_nack`, `write_size`, and `write_id` are never used [INFO] [stdout] --> src/protocol/writer.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait WriteProtocol { [INFO] [stdout] | ------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 13 | async fn write_message_ack(&mut self, id: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | async fn write_message_nack(&mut self, id: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | async fn write_size(&mut self, size: usize); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 16 | async fn write_id(&mut self) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASE` is never used [INFO] [stdout] --> src/protocol/time.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const BASE: usize = 62; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SmallestReadableString` is never used [INFO] [stdout] --> src/protocol/time.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait SmallestReadableString: Sized + Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `acknowledge` is never used [INFO] [stdout] --> src/protocol/eater.rs:235:18 [INFO] [stdout] | [INFO] [stdout] 22 | impl Eater { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 235 | pub async fn acknowledge( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `relay` is never used [INFO] [stdout] --> src/selection/selector.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 72 | pub trait Selection { [INFO] [stdout] | --------- associated function in this trait [INFO] [stdout] 73 | fn get_recipients(checker: Checker, message_type: &[u8]) -> Vec>; [INFO] [stdout] 74 | async fn relay(recipients: Vec>, message_type: &[u8], message: &[u8]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client` is never read [INFO] [stdout] --> src/selection/subscription.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Subscription { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub client: Arc [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ensure_sufficient_remaining_memory` is never used [INFO] [stdout] --> src/storage/mod.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 20 | impl Store { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | async fn ensure_sufficient_remaining_memory(store: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `varint_size` is never used [INFO] [stdout] --> src/codec/numbers.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait VarIntEncoder { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 41 | fn varint_size(self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_varint_with_size` is never used [INFO] [stdout] --> src/codec/numbers.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub trait VarIntDecoder { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 46 | fn get_varint_size(&self) -> Result; [INFO] [stdout] 47 | fn read_varint_with_size(&self, length: usize) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/errors.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | IO(std::io::Error), [INFO] [stdout] | -- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 20 - IO(std::io::Error), [INFO] [stdout] 20 + IO(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/errors.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | Receive(ReceiveStringError) [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 22 - Receive(ReceiveStringError) [INFO] [stdout] 22 + Receive(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/errors.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | IO(std::io::Error), [INFO] [stdout] | -- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ReceiveStringError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 27 - IO(std::io::Error), [INFO] [stdout] 27 + IO(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/errors.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | Utf8(std::str::Utf8Error) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ReceiveStringError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 28 - Utf8(std::str::Utf8Error) [INFO] [stdout] 28 + Utf8(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EatingError` is never used [INFO] [stdout] --> src/errors.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum EatingError { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_id` is never used [INFO] [stdout] --> src/protocol/reader.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait ReadProtocol { [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] 10 | async fn read_command(&mut self) -> Result; [INFO] [stdout] 11 | async fn read_id(&mut self) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_message_ack`, `write_message_nack`, `write_size`, and `write_id` are never used [INFO] [stdout] --> src/protocol/writer.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait WriteProtocol { [INFO] [stdout] | ------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 13 | async fn write_message_ack(&mut self, id: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | async fn write_message_nack(&mut self, id: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | async fn write_size(&mut self, size: usize); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 16 | async fn write_id(&mut self) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASE` is never used [INFO] [stdout] --> src/protocol/time.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const BASE: usize = 62; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SmallestReadableString` is never used [INFO] [stdout] --> src/protocol/time.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait SmallestReadableString: Sized + Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `acknowledge` is never used [INFO] [stdout] --> src/protocol/eater.rs:235:18 [INFO] [stdout] | [INFO] [stdout] 22 | impl Eater { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 235 | pub async fn acknowledge( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `relay` is never used [INFO] [stdout] --> src/selection/selector.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 72 | pub trait Selection { [INFO] [stdout] | --------- associated function in this trait [INFO] [stdout] 73 | fn get_recipients(checker: Checker, message_type: &[u8]) -> Vec>; [INFO] [stdout] 74 | async fn relay(recipients: Vec>, message_type: &[u8], message: &[u8]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client` is never read [INFO] [stdout] --> src/selection/subscription.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Subscription { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub client: Arc [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ensure_sufficient_remaining_memory` is never used [INFO] [stdout] --> src/storage/mod.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 20 | impl Store { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | async fn ensure_sufficient_remaining_memory(store: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `total_messages` should have an upper case name [INFO] [stdout] --> src/protocol/eater.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static total_messages: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 18 - static total_messages: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] 18 + static TOTAL_MESSAGES: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/selection/selector.rs:220:87 [INFO] [stdout] | [INFO] [stdout] 220 | println!("Field value is {:?} -> {}", field, std::str::from_utf8(field.clone()).unwrap()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/storage/mod.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | &memory_id_8bit[2..8].copy_from_slice(&message_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = &memory_id_8bit[2..8].copy_from_slice(&message_id); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `total_messages` should have an upper case name [INFO] [stdout] --> src/protocol/eater.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static total_messages: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 18 - static total_messages: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] 18 + static TOTAL_MESSAGES: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/selection/selector.rs:220:87 [INFO] [stdout] | [INFO] [stdout] 220 | println!("Field value is {:?} -> {}", field, std::str::from_utf8(field.clone()).unwrap()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/storage/mod.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | &memory_id_8bit[2..8].copy_from_slice(&message_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = &memory_id_8bit[2..8].copy_from_slice(&message_id); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "280307298cee9a868e5112c71c28d55b9637f36ca32d8ded463ce6a738c06ab6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "280307298cee9a868e5112c71c28d55b9637f36ca32d8ded463ce6a738c06ab6", kill_on_drop: false }` [INFO] [stdout] 280307298cee9a868e5112c71c28d55b9637f36ca32d8ded463ce6a738c06ab6