[INFO] cloning repository https://github.com/volundmush/thermite [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/volundmush/thermite" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolundmush%2Fthermite", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolundmush%2Fthermite'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28afed3d5de9275a0f306787466e62a37bbc7917 [INFO] testing volundmush/thermite against beta-2025-01-12 for beta-1.85-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolundmush%2Fthermite" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/volundmush/thermite on toolchain beta-2025-01-12 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/volundmush/thermite [INFO] finished tweaking git repo https://github.com/volundmush/thermite [INFO] tweaked toml for git repo https://github.com/volundmush/thermite written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-01-12" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 279 packages to latest compatible versions [INFO] [stderr] Adding tokio-tungstenite v0.21.0 (available: v0.26.1) [INFO] [stderr] Adding tungstenite v0.21.0 (available: v0.26.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-01-12" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lazy-regex v3.4.1 [INFO] [stderr] Downloaded lazy-regex-proc_macros v3.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b175a0bfd87ad73820580f11195f6f9caba2ced82ac6b93746e17f41f57c1c17 [INFO] running `Command { std: "docker" "start" "-a" "b175a0bfd87ad73820580f11195f6f9caba2ced82ac6b93746e17f41f57c1c17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b175a0bfd87ad73820580f11195f6f9caba2ced82ac6b93746e17f41f57c1c17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b175a0bfd87ad73820580f11195f6f9caba2ced82ac6b93746e17f41f57c1c17", kill_on_drop: false }` [INFO] [stdout] b175a0bfd87ad73820580f11195f6f9caba2ced82ac6b93746e17f41f57c1c17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 55091e51e974a75264d1e6b12cfc6c0dc95a89c00ba06731e897995c69590308 [INFO] running `Command { std: "docker" "start" "-a" "55091e51e974a75264d1e6b12cfc6c0dc95a89c00ba06731e897995c69590308", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling cc v1.2.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling data-encoding v2.7.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling cpufeatures v0.2.16 [INFO] [stderr] Compiling rustls-pki-types v1.10.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling tinyvec v1.8.1 [INFO] [stderr] Compiling pest v2.7.15 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling bstr v1.11.3 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling unic-char-range v0.9.0 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling unic-common v0.9.0 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling unic-ucd-version v0.9.0 [INFO] [stderr] Compiling pest_meta v2.7.15 [INFO] [stderr] Compiling globset v0.4.15 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling unic-char-property v0.9.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling miniz_oxide v0.8.3 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Compiling brotli-decompressor v4.0.1 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling brotli v7.0.0 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling pest_generator v2.7.15 [INFO] [stderr] Compiling unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling async-trait v0.1.85 [INFO] [stderr] Compiling pin-project-internal v1.1.8 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling deunicode v1.6.0 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling winnow v0.6.24 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling clap_builder v4.5.26 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling trust-dns-proto v0.23.2 [INFO] [stderr] Compiling pin-project v1.1.8 [INFO] [stderr] Compiling async-compression v0.4.18 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling globwalk v0.9.1 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling slug v0.1.6 [INFO] [stderr] Compiling headers v0.3.9 [INFO] [stderr] Compiling tokio-rustls v0.25.0 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling humansize v2.1.3 [INFO] [stderr] Compiling pest_derive v2.7.15 [INFO] [stderr] Compiling unic-segment v0.9.0 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling clap_derive v4.5.24 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling lazy-regex-proc_macros v3.4.1 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling lazy-regex v3.4.1 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling trust-dns-resolver v0.23.2 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling clap v4.5.26 [INFO] [stderr] Compiling warp v0.3.7 [INFO] [stderr] Compiling tera v1.20.0 [INFO] [stderr] Compiling thermite v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Arc`, `AtomicUsize`, `IpAddr`, `PathBuf`, `fs::File`, and `io::BufReader` [INFO] [stdout] --> src/networking/link.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | net::{IpAddr, SocketAddr}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | path::{PathBuf}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | sync::{Arc}, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | sync::atomic::{AtomicUsize, Ordering}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 7 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | io::BufReader [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/networking/link.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/networking/link.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncBufReadExt`, `AsyncBufRead`, and `BufStream` [INFO] [stdout] --> src/networking/link.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | io::{BufStream, AsyncBufRead, AsyncBufReadExt} [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncRead`, and `AsyncWrite` [INFO] [stdout] --> src/networking/link.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | use tokio::io::{AsyncRead, AsyncWrite, AsyncReadExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::timeout` [INFO] [stdout] --> src/networking/link.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use tokio::time::timeout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_util::codec::Framed` [INFO] [stdout] --> src/networking/link.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use tokio_util::codec::Framed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientHelloStatus`, `HttpRequestStatus`, `check_http_request`, `check_tls_client_hello`, and `generate_id` [INFO] [stdout] --> src/networking/link.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::util::{ClientHelloStatus, check_tls_client_hello, check_http_request, HttpRequestStatus, generate_id}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WebSocketStream` [INFO] [stdout] --> src/networking/link.rs:31:38 [INFO] [stdout] | [INFO] [stdout] 31 | use tokio_tungstenite::{tungstenite, WebSocketStream, accept_async}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::Error as WsError` [INFO] [stdout] --> src/networking/link.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use tungstenite::Error as WsError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/networking/telnet.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/networking/telnet.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::timeout` [INFO] [stdout] --> src/networking/telnet.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::time::timeout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientHelloStatus` and `check_tls_client_hello` [INFO] [stdout] --> src/networking/telnet.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::util::{ClientHelloStatus, check_tls_client_hello}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Reply` [INFO] [stdout] --> src/networking/web.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use warp::{Filter, Reply}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/protocols/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/protocols/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Msg2MudProtocol` [INFO] [stdout] --> src/protocols/link/protocol.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::msg::{Msg2Link, Msg2MudProtocol, Msg2Portal, Msg2PortalFromLink}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cursor` and `Read` [INFO] [stdout] --> src/protocols/telnet/codec.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::{Cursor, Read, Write}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result as JsonResult` and `Value as JsonValue` [INFO] [stdout] --> src/protocols/telnet/codec.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | use serde_json::{Result as JsonResult, Value as JsonValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/protocols/telnet/codec.rs:169:72 [INFO] [stdout] | [INFO] [stdout] 169 | matches!(item, TelnetEvent::SubNegotiate(codes::MCCP2, _));; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocols/telnet/protocol.rs:212:15 [INFO] [stdout] | [INFO] [stdout] 212 | if(tel_op.start_local) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 212 - if(tel_op.start_local) { [INFO] [stdout] 212 + if tel_op.start_local { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocols/telnet/protocol.rs:217:15 [INFO] [stdout] | [INFO] [stdout] 217 | if(tel_op.start_remote) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - if(tel_op.start_remote) { [INFO] [stdout] 217 + if tel_op.start_remote { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocols/telnet/protocol.rs:267:11 [INFO] [stdout] | [INFO] [stdout] 267 | if(self.time_activity.elapsed().as_secs() > (60 * 30)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 267 - if(self.time_activity.elapsed().as_secs() > (60 * 30)) { [INFO] [stdout] 267 + if self.time_activity.elapsed().as_secs() > (60 * 30) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, and `net::SocketAddr` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] 3 | vec::Vec, [INFO] [stdout] 4 | net::SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncRead` and `AsyncWrite` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | io::{AsyncRead, AsyncWrite}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Framed` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio_util::codec::{Framed}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufMut`, `Buf`, `BytesMut`, and `Bytes` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use bytes::{BytesMut, Bytes, BufMut, Buf}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value as JsonValue` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | use serde_json::{json, Value as JsonValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::ensure_crlf` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | util::ensure_crlf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/portal.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | time::{Duration, Instant} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/portal.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `task::JoinHandle` [INFO] [stdout] --> src/portal.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | task::JoinHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task::yield_now` [INFO] [stdout] --> src/portal.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use tokio::task::yield_now; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value as JsonValue` [INFO] [stdout] --> src/msg.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value as JsonValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/link/protocol.rs:126:33 [INFO] [stdout] | [INFO] [stdout] 126 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/protocols/link/protocol.rs:222:30 [INFO] [stdout] | [INFO] [stdout] 222 | WsMessage::Close(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/networking/telnet.rs:93:57 [INFO] [stdout] | [INFO] [stdout] 93 | pub async fn handle_telnet_connection(&mut self, mut socket: S,tls_engaged: bool) -> Result<(), Box> [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/telnet/protocol.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 184 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/telnet/protocol.rs:586:45 [INFO] [stdout] | [INFO] [stdout] 586 | async fn receive_sub(&mut self, op: u8, mut data: Bytes) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `handshake` is assigned to, but never used [INFO] [stdout] --> src/protocols/telnet/protocol.rs:418:17 [INFO] [stdout] | [INFO] [stdout] 418 | let mut handshake: u8 = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_handshake` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:441:25 [INFO] [stdout] | [INFO] [stdout] 441 | handshake = op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:451:25 [INFO] [stdout] | [INFO] [stdout] 451 | handshake = op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:470:25 [INFO] [stdout] | [INFO] [stdout] 470 | handshake = op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:480:25 [INFO] [stdout] | [INFO] [stdout] 480 | handshake = op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:122:47 [INFO] [stdout] | [INFO] [stdout] 122 | async fn handle_interval_timer(&mut self, ins: Instant) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/protocols/telnet/protocol.rs:336:49 [INFO] [stdout] | [INFO] [stdout] 336 | async fn handle_protocol_command(&mut self, cmd: String) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:203:47 [INFO] [stdout] | [INFO] [stdout] 203 | async fn handle_binary_message(&mut self, v: Vec) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn_id` [INFO] [stdout] --> src/portal.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | for (conn_id, client) in self.clients.iter_mut() { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn_id` [INFO] [stdout] --> src/portal.rs:108:34 [INFO] [stdout] | [INFO] [stdout] 108 | Msg2Portal::FromLink(conn_id, m) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/portal.rs:115:71 [INFO] [stdout] | [INFO] [stdout] 115 | Msg2PortalFromLink::ClientDisconnected(client_id, reason) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn_id` [INFO] [stdout] --> src/portal.rs:150:42 [INFO] [stdout] | [INFO] [stdout] 150 | Msg2Portal::LinkDisconnected(conn_id, reason) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/portal.rs:150:51 [INFO] [stdout] | [INFO] [stdout] 150 | Msg2Portal::LinkDisconnected(conn_id, reason) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/networking/web.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut tera = match tera::Tera::new("webroot/**/*.html") { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/portal.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | sink::{SinkExt}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hostnames` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:55:74 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn new(conn_id: usize, conn: WebSocket, addr: String, port: u16, hostnames: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hostnames` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `newline_pos` [INFO] [stdout] --> src/util.rs:95:25 [INFO] [stdout] | [INFO] [stdout] 95 | if let Some(newline_pos) = data.iter().position(|&byte| byte == b'\n') { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_newline_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `addr` and `tls` are never read [INFO] [stdout] --> src/protocols/link/protocol.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct LinkProtocol { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 93 | conn_id: usize, [INFO] [stdout] 94 | addr: SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | tls: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time_created` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct TelnetProtocol { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 131 | time_created: Instant, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `time_created` and `time_activity` are never read [INFO] [stdout] --> src/protocols/websocket/protocol.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct WebsocketProtocol { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | time_created: Instant, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 50 | time_activity: Instant, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/protocols/telnet/codec.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | encoder.write_all(b.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 174 | let _ = encoder.write_all(b.as_ref()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/protocols/telnet/codec.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | &dst.writer().write_all(encoder.get_mut().get_mut())?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 176 | let _ = &dst.writer().write_all(encoder.get_mut().get_mut())?; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | net::{IpAddr, SocketAddr}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/main.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing::{error, info, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IS_TLS_ENABLED` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | IS_TLS_ENABLED, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 58s [INFO] running `Command { std: "docker" "inspect" "55091e51e974a75264d1e6b12cfc6c0dc95a89c00ba06731e897995c69590308", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55091e51e974a75264d1e6b12cfc6c0dc95a89c00ba06731e897995c69590308", kill_on_drop: false }` [INFO] [stdout] 55091e51e974a75264d1e6b12cfc6c0dc95a89c00ba06731e897995c69590308 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c314a93b5d0f15c00feadbcc474c060f0d4b0768d66c6c6aca9aead1e64ff615 [INFO] running `Command { std: "docker" "start" "-a" "c314a93b5d0f15c00feadbcc474c060f0d4b0768d66c6c6aca9aead1e64ff615", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `Arc`, `AtomicUsize`, `IpAddr`, `PathBuf`, `fs::File`, and `io::BufReader` [INFO] [stdout] --> src/networking/link.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | net::{IpAddr, SocketAddr}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | path::{PathBuf}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | sync::{Arc}, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | sync::atomic::{AtomicUsize, Ordering}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 7 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | io::BufReader [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/networking/link.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/networking/link.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncBufReadExt`, `AsyncBufRead`, and `BufStream` [INFO] [stdout] --> src/networking/link.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | io::{BufStream, AsyncBufRead, AsyncBufReadExt} [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncRead`, and `AsyncWrite` [INFO] [stdout] --> src/networking/link.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | use tokio::io::{AsyncRead, AsyncWrite, AsyncReadExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::timeout` [INFO] [stdout] --> src/networking/link.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use tokio::time::timeout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_util::codec::Framed` [INFO] [stdout] --> src/networking/link.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use tokio_util::codec::Framed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientHelloStatus`, `HttpRequestStatus`, `check_http_request`, `check_tls_client_hello`, and `generate_id` [INFO] [stdout] --> src/networking/link.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::util::{ClientHelloStatus, check_tls_client_hello, check_http_request, HttpRequestStatus, generate_id}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WebSocketStream` [INFO] [stdout] --> src/networking/link.rs:31:38 [INFO] [stdout] | [INFO] [stdout] 31 | use tokio_tungstenite::{tungstenite, WebSocketStream, accept_async}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::Error as WsError` [INFO] [stdout] --> src/networking/link.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use tungstenite::Error as WsError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/networking/telnet.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/networking/telnet.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::timeout` [INFO] [stdout] --> src/networking/telnet.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::time::timeout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientHelloStatus` and `check_tls_client_hello` [INFO] [stdout] --> src/networking/telnet.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::util::{ClientHelloStatus, check_tls_client_hello}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Reply` [INFO] [stdout] --> src/networking/web.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use warp::{Filter, Reply}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/protocols/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/protocols/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Msg2MudProtocol` [INFO] [stdout] --> src/protocols/link/protocol.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::msg::{Msg2Link, Msg2MudProtocol, Msg2Portal, Msg2PortalFromLink}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cursor` and `Read` [INFO] [stdout] --> src/protocols/telnet/codec.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::{Cursor, Read, Write}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result as JsonResult` and `Value as JsonValue` [INFO] [stdout] --> src/protocols/telnet/codec.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | use serde_json::{Result as JsonResult, Value as JsonValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/protocols/telnet/codec.rs:169:72 [INFO] [stdout] | [INFO] [stdout] 169 | matches!(item, TelnetEvent::SubNegotiate(codes::MCCP2, _));; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocols/telnet/protocol.rs:212:15 [INFO] [stdout] | [INFO] [stdout] 212 | if(tel_op.start_local) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 212 - if(tel_op.start_local) { [INFO] [stdout] 212 + if tel_op.start_local { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocols/telnet/protocol.rs:217:15 [INFO] [stdout] | [INFO] [stdout] 217 | if(tel_op.start_remote) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - if(tel_op.start_remote) { [INFO] [stdout] 217 + if tel_op.start_remote { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocols/telnet/protocol.rs:267:11 [INFO] [stdout] | [INFO] [stdout] 267 | if(self.time_activity.elapsed().as_secs() > (60 * 30)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 267 - if(self.time_activity.elapsed().as_secs() > (60 * 30)) { [INFO] [stdout] 267 + if self.time_activity.elapsed().as_secs() > (60 * 30) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, and `net::SocketAddr` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] 3 | vec::Vec, [INFO] [stdout] 4 | net::SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncRead` and `AsyncWrite` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | io::{AsyncRead, AsyncWrite}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Framed` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio_util::codec::{Framed}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufMut`, `Buf`, `BytesMut`, and `Bytes` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use bytes::{BytesMut, Bytes, BufMut, Buf}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value as JsonValue` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | use serde_json::{json, Value as JsonValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::ensure_crlf` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | util::ensure_crlf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/portal.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | time::{Duration, Instant} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/portal.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `task::JoinHandle` [INFO] [stdout] --> src/portal.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | task::JoinHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task::yield_now` [INFO] [stdout] --> src/portal.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use tokio::task::yield_now; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value as JsonValue` [INFO] [stdout] --> src/msg.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value as JsonValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/link/protocol.rs:126:33 [INFO] [stdout] | [INFO] [stdout] 126 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/protocols/link/protocol.rs:222:30 [INFO] [stdout] | [INFO] [stdout] 222 | WsMessage::Close(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/networking/telnet.rs:93:57 [INFO] [stdout] | [INFO] [stdout] 93 | pub async fn handle_telnet_connection(&mut self, mut socket: S,tls_engaged: bool) -> Result<(), Box> [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/telnet/protocol.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 184 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/telnet/protocol.rs:586:45 [INFO] [stdout] | [INFO] [stdout] 586 | async fn receive_sub(&mut self, op: u8, mut data: Bytes) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `handshake` is assigned to, but never used [INFO] [stdout] --> src/protocols/telnet/protocol.rs:418:17 [INFO] [stdout] | [INFO] [stdout] 418 | let mut handshake: u8 = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_handshake` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:441:25 [INFO] [stdout] | [INFO] [stdout] 441 | handshake = op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:451:25 [INFO] [stdout] | [INFO] [stdout] 451 | handshake = op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:470:25 [INFO] [stdout] | [INFO] [stdout] 470 | handshake = op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:480:25 [INFO] [stdout] | [INFO] [stdout] 480 | handshake = op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:122:47 [INFO] [stdout] | [INFO] [stdout] 122 | async fn handle_interval_timer(&mut self, ins: Instant) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/protocols/telnet/protocol.rs:336:49 [INFO] [stdout] | [INFO] [stdout] 336 | async fn handle_protocol_command(&mut self, cmd: String) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:203:47 [INFO] [stdout] | [INFO] [stdout] 203 | async fn handle_binary_message(&mut self, v: Vec) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn_id` [INFO] [stdout] --> src/portal.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | for (conn_id, client) in self.clients.iter_mut() { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn_id` [INFO] [stdout] --> src/portal.rs:108:34 [INFO] [stdout] | [INFO] [stdout] 108 | Msg2Portal::FromLink(conn_id, m) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/portal.rs:115:71 [INFO] [stdout] | [INFO] [stdout] 115 | Msg2PortalFromLink::ClientDisconnected(client_id, reason) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn_id` [INFO] [stdout] --> src/portal.rs:150:42 [INFO] [stdout] | [INFO] [stdout] 150 | Msg2Portal::LinkDisconnected(conn_id, reason) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling thermite v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/portal.rs:150:51 [INFO] [stdout] | [INFO] [stdout] 150 | Msg2Portal::LinkDisconnected(conn_id, reason) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/networking/web.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut tera = match tera::Tera::new("webroot/**/*.html") { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/portal.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | sink::{SinkExt}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hostnames` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:55:74 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn new(conn_id: usize, conn: WebSocket, addr: String, port: u16, hostnames: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hostnames` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `newline_pos` [INFO] [stdout] --> src/util.rs:95:25 [INFO] [stdout] | [INFO] [stdout] 95 | if let Some(newline_pos) = data.iter().position(|&byte| byte == b'\n') { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_newline_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `addr` and `tls` are never read [INFO] [stdout] --> src/protocols/link/protocol.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct LinkProtocol { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 93 | conn_id: usize, [INFO] [stdout] 94 | addr: SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | tls: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time_created` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct TelnetProtocol { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 131 | time_created: Instant, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `time_created` and `time_activity` are never read [INFO] [stdout] --> src/protocols/websocket/protocol.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct WebsocketProtocol { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | time_created: Instant, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 50 | time_activity: Instant, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/protocols/telnet/codec.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | encoder.write_all(b.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 174 | let _ = encoder.write_all(b.as_ref()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/protocols/telnet/codec.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | &dst.writer().write_all(encoder.get_mut().get_mut())?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 176 | let _ = &dst.writer().write_all(encoder.get_mut().get_mut())?; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | net::{IpAddr, SocketAddr}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/main.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing::{error, info, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IS_TLS_ENABLED` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | IS_TLS_ENABLED, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `AtomicUsize`, `IpAddr`, `PathBuf`, `fs::File`, and `io::BufReader` [INFO] [stdout] --> src/networking/link.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | net::{IpAddr, SocketAddr}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | path::{PathBuf}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | sync::{Arc}, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | sync::atomic::{AtomicUsize, Ordering}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 7 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | io::BufReader [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/networking/link.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/networking/link.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncBufReadExt`, `AsyncBufRead`, and `BufStream` [INFO] [stdout] --> src/networking/link.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | io::{BufStream, AsyncBufRead, AsyncBufReadExt} [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncRead`, and `AsyncWrite` [INFO] [stdout] --> src/networking/link.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | use tokio::io::{AsyncRead, AsyncWrite, AsyncReadExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::timeout` [INFO] [stdout] --> src/networking/link.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use tokio::time::timeout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_util::codec::Framed` [INFO] [stdout] --> src/networking/link.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use tokio_util::codec::Framed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientHelloStatus`, `HttpRequestStatus`, `check_http_request`, `check_tls_client_hello`, and `generate_id` [INFO] [stdout] --> src/networking/link.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::util::{ClientHelloStatus, check_tls_client_hello, check_http_request, HttpRequestStatus, generate_id}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WebSocketStream` [INFO] [stdout] --> src/networking/link.rs:31:38 [INFO] [stdout] | [INFO] [stdout] 31 | use tokio_tungstenite::{tungstenite, WebSocketStream, accept_async}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::Error as WsError` [INFO] [stdout] --> src/networking/link.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use tungstenite::Error as WsError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/networking/telnet.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/networking/telnet.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::timeout` [INFO] [stdout] --> src/networking/telnet.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::time::timeout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientHelloStatus` and `check_tls_client_hello` [INFO] [stdout] --> src/networking/telnet.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::util::{ClientHelloStatus, check_tls_client_hello}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Reply` [INFO] [stdout] --> src/networking/web.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use warp::{Filter, Reply}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/protocols/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/protocols/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Msg2MudProtocol` [INFO] [stdout] --> src/protocols/link/protocol.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::msg::{Msg2Link, Msg2MudProtocol, Msg2Portal, Msg2PortalFromLink}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cursor` and `Read` [INFO] [stdout] --> src/protocols/telnet/codec.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::{Cursor, Read, Write}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result as JsonResult` and `Value as JsonValue` [INFO] [stdout] --> src/protocols/telnet/codec.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | use serde_json::{Result as JsonResult, Value as JsonValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/protocols/telnet/codec.rs:169:72 [INFO] [stdout] | [INFO] [stdout] 169 | matches!(item, TelnetEvent::SubNegotiate(codes::MCCP2, _));; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocols/telnet/protocol.rs:212:15 [INFO] [stdout] | [INFO] [stdout] 212 | if(tel_op.start_local) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 212 - if(tel_op.start_local) { [INFO] [stdout] 212 + if tel_op.start_local { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocols/telnet/protocol.rs:217:15 [INFO] [stdout] | [INFO] [stdout] 217 | if(tel_op.start_remote) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - if(tel_op.start_remote) { [INFO] [stdout] 217 + if tel_op.start_remote { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocols/telnet/protocol.rs:267:11 [INFO] [stdout] | [INFO] [stdout] 267 | if(self.time_activity.elapsed().as_secs() > (60 * 30)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 267 - if(self.time_activity.elapsed().as_secs() > (60 * 30)) { [INFO] [stdout] 267 + if self.time_activity.elapsed().as_secs() > (60 * 30) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, and `net::SocketAddr` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] 3 | vec::Vec, [INFO] [stdout] 4 | net::SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncRead` and `AsyncWrite` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | io::{AsyncRead, AsyncWrite}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Framed` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio_util::codec::{Framed}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufMut`, `Buf`, `BytesMut`, and `Bytes` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use bytes::{BytesMut, Bytes, BufMut, Buf}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value as JsonValue` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | use serde_json::{json, Value as JsonValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::ensure_crlf` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | util::ensure_crlf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/portal.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | time::{Duration, Instant} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/portal.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `task::JoinHandle` [INFO] [stdout] --> src/portal.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | task::JoinHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task::yield_now` [INFO] [stdout] --> src/portal.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use tokio::task::yield_now; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value as JsonValue` [INFO] [stdout] --> src/msg.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value as JsonValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/link/protocol.rs:126:33 [INFO] [stdout] | [INFO] [stdout] 126 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/protocols/link/protocol.rs:222:30 [INFO] [stdout] | [INFO] [stdout] 222 | WsMessage::Close(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/networking/telnet.rs:93:57 [INFO] [stdout] | [INFO] [stdout] 93 | pub async fn handle_telnet_connection(&mut self, mut socket: S,tls_engaged: bool) -> Result<(), Box> [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/telnet/protocol.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 184 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/telnet/protocol.rs:586:45 [INFO] [stdout] | [INFO] [stdout] 586 | async fn receive_sub(&mut self, op: u8, mut data: Bytes) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `handshake` is assigned to, but never used [INFO] [stdout] --> src/protocols/telnet/protocol.rs:418:17 [INFO] [stdout] | [INFO] [stdout] 418 | let mut handshake: u8 = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_handshake` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:441:25 [INFO] [stdout] | [INFO] [stdout] 441 | handshake = op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:451:25 [INFO] [stdout] | [INFO] [stdout] 451 | handshake = op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:470:25 [INFO] [stdout] | [INFO] [stdout] 470 | handshake = op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:480:25 [INFO] [stdout] | [INFO] [stdout] 480 | handshake = op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:122:47 [INFO] [stdout] | [INFO] [stdout] 122 | async fn handle_interval_timer(&mut self, ins: Instant) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/protocols/telnet/protocol.rs:336:49 [INFO] [stdout] | [INFO] [stdout] 336 | async fn handle_protocol_command(&mut self, cmd: String) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:203:47 [INFO] [stdout] | [INFO] [stdout] 203 | async fn handle_binary_message(&mut self, v: Vec) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn_id` [INFO] [stdout] --> src/portal.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | for (conn_id, client) in self.clients.iter_mut() { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn_id` [INFO] [stdout] --> src/portal.rs:108:34 [INFO] [stdout] | [INFO] [stdout] 108 | Msg2Portal::FromLink(conn_id, m) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/portal.rs:115:71 [INFO] [stdout] | [INFO] [stdout] 115 | Msg2PortalFromLink::ClientDisconnected(client_id, reason) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn_id` [INFO] [stdout] --> src/portal.rs:150:42 [INFO] [stdout] | [INFO] [stdout] 150 | Msg2Portal::LinkDisconnected(conn_id, reason) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/portal.rs:150:51 [INFO] [stdout] | [INFO] [stdout] 150 | Msg2Portal::LinkDisconnected(conn_id, reason) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/networking/web.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut tera = match tera::Tera::new("webroot/**/*.html") { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/portal.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | sink::{SinkExt}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hostnames` [INFO] [stdout] --> src/protocols/websocket/protocol.rs:55:74 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn new(conn_id: usize, conn: WebSocket, addr: String, port: u16, hostnames: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hostnames` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `newline_pos` [INFO] [stdout] --> src/util.rs:95:25 [INFO] [stdout] | [INFO] [stdout] 95 | if let Some(newline_pos) = data.iter().position(|&byte| byte == b'\n') { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_newline_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `addr` and `tls` are never read [INFO] [stdout] --> src/protocols/link/protocol.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct LinkProtocol { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 93 | conn_id: usize, [INFO] [stdout] 94 | addr: SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | tls: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time_created` is never read [INFO] [stdout] --> src/protocols/telnet/protocol.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct TelnetProtocol { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 131 | time_created: Instant, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `time_created` and `time_activity` are never read [INFO] [stdout] --> src/protocols/websocket/protocol.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct WebsocketProtocol { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | time_created: Instant, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 50 | time_activity: Instant, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/protocols/telnet/codec.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | encoder.write_all(b.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 174 | let _ = encoder.write_all(b.as_ref()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/protocols/telnet/codec.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | &dst.writer().write_all(encoder.get_mut().get_mut())?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 176 | let _ = &dst.writer().write_all(encoder.get_mut().get_mut())?; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 10.97s [INFO] running `Command { std: "docker" "inspect" "c314a93b5d0f15c00feadbcc474c060f0d4b0768d66c6c6aca9aead1e64ff615", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c314a93b5d0f15c00feadbcc474c060f0d4b0768d66c6c6aca9aead1e64ff615", kill_on_drop: false }` [INFO] [stdout] c314a93b5d0f15c00feadbcc474c060f0d4b0768d66c6c6aca9aead1e64ff615 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0ee6d358bccc2134534241e3f3d4ca16030baaf279484a9af10a3251d2b75b52 [INFO] running `Command { std: "docker" "start" "-a" "0ee6d358bccc2134534241e3f3d4ca16030baaf279484a9af10a3251d2b75b52", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Arc`, `AtomicUsize`, `IpAddr`, `PathBuf`, `fs::File`, and `io::BufReader` [INFO] [stderr] --> src/networking/link.rs:3:11 [INFO] [stderr] | [INFO] [stderr] 3 | net::{IpAddr, SocketAddr}, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 4 | path::{PathBuf}, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 5 | sync::{Arc}, [INFO] [stderr] | ^^^ [INFO] [stderr] 6 | sync::atomic::{AtomicUsize, Ordering}, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 7 | fs::File, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 8 | io::BufReader [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Read` [INFO] [stderr] --> src/networking/link.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use std::io::Read; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/networking/link.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AsyncBufReadExt`, `AsyncBufRead`, and `BufStream` [INFO] [stderr] --> src/networking/link.rs:18:10 [INFO] [stderr] | [INFO] [stderr] 18 | io::{BufStream, AsyncBufRead, AsyncBufReadExt} [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AsyncReadExt`, `AsyncRead`, and `AsyncWrite` [INFO] [stderr] --> src/networking/link.rs:22:17 [INFO] [stderr] | [INFO] [stderr] 22 | use tokio::io::{AsyncRead, AsyncWrite, AsyncReadExt}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::time::timeout` [INFO] [stderr] --> src/networking/link.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | use tokio::time::timeout; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio_util::codec::Framed` [INFO] [stderr] --> src/networking/link.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | use tokio_util::codec::Framed; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ClientHelloStatus`, `HttpRequestStatus`, `check_http_request`, `check_tls_client_hello`, and `generate_id` [INFO] [stderr] --> src/networking/link.rs:29:19 [INFO] [stderr] | [INFO] [stderr] 29 | use crate::util::{ClientHelloStatus, check_tls_client_hello, check_http_request, HttpRequestStatus, generate_id}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `WebSocketStream` [INFO] [stderr] --> src/networking/link.rs:31:38 [INFO] [stderr] | [INFO] [stderr] 31 | use tokio_tungstenite::{tungstenite, WebSocketStream, accept_async}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tungstenite::Error as WsError` [INFO] [stderr] --> src/networking/link.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | use tungstenite::Error as WsError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sync::Arc` [INFO] [stderr] --> src/networking/telnet.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | sync::Arc, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/networking/telnet.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::time::timeout` [INFO] [stderr] --> src/networking/telnet.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use tokio::time::timeout; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ClientHelloStatus` and `check_tls_client_hello` [INFO] [stderr] --> src/networking/telnet.rs:26:19 [INFO] [stderr] | [INFO] [stderr] 26 | use crate::util::{ClientHelloStatus, check_tls_client_hello}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Reply` [INFO] [stderr] --> src/networking/web.rs:1:20 [INFO] [stderr] | [INFO] [stderr] 1 | use warp::{Filter, Reply}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::net::SocketAddr` [INFO] [stderr] --> src/protocols/mod.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::net::SocketAddr; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::sync::Arc` [INFO] [stderr] --> src/protocols/mod.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::sync::Arc; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Msg2MudProtocol` [INFO] [stderr] --> src/protocols/link/protocol.rs:20:28 [INFO] [stderr] | [INFO] [stderr] 20 | use crate::msg::{Msg2Link, Msg2MudProtocol, Msg2Portal, Msg2PortalFromLink}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Cursor` and `Read` [INFO] [stderr] --> src/protocols/telnet/codec.rs:10:15 [INFO] [stderr] | [INFO] [stderr] 10 | use std::io::{Cursor, Read, Write}; [INFO] [stderr] | ^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Result as JsonResult` and `Value as JsonValue` [INFO] [stderr] --> src/protocols/telnet/codec.rs:20:18 [INFO] [stderr] | [INFO] [stderr] 20 | use serde_json::{Result as JsonResult, Value as JsonValue}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/protocols/telnet/codec.rs:169:72 [INFO] [stderr] | [INFO] [stderr] 169 | matches!(item, TelnetEvent::SubNegotiate(codes::MCCP2, _));; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/protocols/telnet/protocol.rs:212:15 [INFO] [stderr] | [INFO] [stderr] 212 | if(tel_op.start_local) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 212 - if(tel_op.start_local) { [INFO] [stderr] 212 + if tel_op.start_local { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/protocols/telnet/protocol.rs:217:15 [INFO] [stderr] | [INFO] [stderr] 217 | if(tel_op.start_remote) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 217 - if(tel_op.start_remote) { [INFO] [stderr] 217 + if tel_op.start_remote { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/protocols/telnet/protocol.rs:267:11 [INFO] [stderr] | [INFO] [stderr] 267 | if(self.time_activity.elapsed().as_secs() > (60 * 30)) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 267 - if(self.time_activity.elapsed().as_secs() > (60 * 30)) { [INFO] [stderr] 267 + if self.time_activity.elapsed().as_secs() > (60 * 30) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HashMap`, `HashSet`, and `net::SocketAddr` [INFO] [stderr] --> src/protocols/websocket/protocol.rs:2:19 [INFO] [stderr] | [INFO] [stderr] 2 | collections::{HashMap, HashSet}, [INFO] [stderr] | ^^^^^^^ ^^^^^^^ [INFO] [stderr] 3 | vec::Vec, [INFO] [stderr] 4 | net::SocketAddr, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AsyncRead` and `AsyncWrite` [INFO] [stderr] --> src/protocols/websocket/protocol.rs:9:10 [INFO] [stderr] | [INFO] [stderr] 9 | io::{AsyncRead, AsyncWrite}, [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Framed` [INFO] [stderr] --> src/protocols/websocket/protocol.rs:14:25 [INFO] [stderr] | [INFO] [stderr] 14 | use tokio_util::codec::{Framed}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BufMut`, `Buf`, `BytesMut`, and `Bytes` [INFO] [stderr] --> src/protocols/websocket/protocol.rs:18:13 [INFO] [stderr] | [INFO] [stderr] 18 | use bytes::{BytesMut, Bytes, BufMut, Buf}; [INFO] [stderr] | ^^^^^^^^ ^^^^^ ^^^^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Value as JsonValue` [INFO] [stderr] --> src/protocols/websocket/protocol.rs:25:24 [INFO] [stderr] | [INFO] [stderr] 25 | use serde_json::{json, Value as JsonValue}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `once_cell::sync::Lazy` [INFO] [stderr] --> src/protocols/websocket/protocol.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | use once_cell::sync::Lazy; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `util::ensure_crlf` [INFO] [stderr] --> src/protocols/websocket/protocol.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 34 | util::ensure_crlf, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Instant` [INFO] [stderr] --> src/portal.rs:3:22 [INFO] [stderr] | [INFO] [stderr] 3 | time::{Duration, Instant} [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::error::Error` [INFO] [stderr] --> src/portal.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::error::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `task::JoinHandle` [INFO] [stderr] --> src/portal.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | task::JoinHandle, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::task::yield_now` [INFO] [stderr] --> src/portal.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | use tokio::task::yield_now; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Value as JsonValue` [INFO] [stderr] --> src/msg.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use serde_json::Value as JsonValue; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/protocols/link/protocol.rs:126:33 [INFO] [stderr] | [INFO] [stderr] 126 | ... Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/protocols/link/protocol.rs:222:30 [INFO] [stderr] | [INFO] [stderr] 222 | WsMessage::Close(c) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/networking/telnet.rs:93:57 [INFO] [stderr] | [INFO] [stderr] 93 | pub async fn handle_telnet_connection(&mut self, mut socket: S,tls_engaged: bool) -> Result<(), Box> [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/protocols/telnet/protocol.rs:184:21 [INFO] [stderr] | [INFO] [stderr] 184 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/protocols/telnet/protocol.rs:586:45 [INFO] [stderr] | [INFO] [stderr] 586 | async fn receive_sub(&mut self, op: u8, mut data: Bytes) { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable `handshake` is assigned to, but never used [INFO] [stderr] --> src/protocols/telnet/protocol.rs:418:17 [INFO] [stderr] | [INFO] [stderr] 418 | let mut handshake: u8 = 0; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_handshake` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `handshake` is never read [INFO] [stderr] --> src/protocols/telnet/protocol.rs:441:25 [INFO] [stderr] | [INFO] [stderr] 441 | handshake = op; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `handshake` is never read [INFO] [stderr] --> src/protocols/telnet/protocol.rs:451:25 [INFO] [stderr] | [INFO] [stderr] 451 | handshake = op; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `handshake` is never read [INFO] [stderr] --> src/protocols/telnet/protocol.rs:470:25 [INFO] [stderr] | [INFO] [stderr] 470 | handshake = op; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `handshake` is never read [INFO] [stderr] --> src/protocols/telnet/protocol.rs:480:25 [INFO] [stderr] | [INFO] [stderr] 480 | handshake = op; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ins` [INFO] [stderr] --> src/protocols/websocket/protocol.rs:122:47 [INFO] [stderr] | [INFO] [stderr] 122 | async fn handle_interval_timer(&mut self, ins: Instant) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cmd` [INFO] [stderr] --> src/protocols/telnet/protocol.rs:336:49 [INFO] [stderr] | [INFO] [stderr] 336 | async fn handle_protocol_command(&mut self, cmd: String) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/protocols/websocket/protocol.rs:203:47 [INFO] [stderr] | [INFO] [stderr] 203 | async fn handle_binary_message(&mut self, v: Vec) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `conn_id` [INFO] [stderr] --> src/portal.rs:72:14 [INFO] [stderr] | [INFO] [stderr] 72 | for (conn_id, client) in self.clients.iter_mut() { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conn_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `conn_id` [INFO] [stderr] --> src/portal.rs:108:34 [INFO] [stderr] | [INFO] [stderr] 108 | Msg2Portal::FromLink(conn_id, m) => { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conn_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reason` [INFO] [stderr] --> src/portal.rs:115:71 [INFO] [stderr] | [INFO] [stderr] 115 | Msg2PortalFromLink::ClientDisconnected(client_id, reason) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `conn_id` [INFO] [stderr] --> src/portal.rs:150:42 [INFO] [stderr] | [INFO] [stderr] 150 | Msg2Portal::LinkDisconnected(conn_id, reason) => { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conn_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reason` [INFO] [stderr] --> src/portal.rs:150:51 [INFO] [stderr] | [INFO] [stderr] 150 | Msg2Portal::LinkDisconnected(conn_id, reason) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/networking/web.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | let mut tera = match tera::Tera::new("webroot/**/*.html") { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused import: `SinkExt` [INFO] [stderr] --> src/portal.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | sink::{SinkExt}, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hostnames` [INFO] [stderr] --> src/protocols/websocket/protocol.rs:55:74 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn new(conn_id: usize, conn: WebSocket, addr: String, port: u16, hostnames: Vec) -> Self { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hostnames` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `newline_pos` [INFO] [stderr] --> src/util.rs:95:25 [INFO] [stderr] | [INFO] [stderr] 95 | if let Some(newline_pos) = data.iter().position(|&byte| byte == b'\n') { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_newline_pos` [INFO] [stderr] [INFO] [stderr] warning: fields `addr` and `tls` are never read [INFO] [stderr] --> src/protocols/link/protocol.rs:94:5 [INFO] [stderr] | [INFO] [stderr] 92 | pub struct LinkProtocol { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 93 | conn_id: usize, [INFO] [stderr] 94 | addr: SocketAddr, [INFO] [stderr] | ^^^^ [INFO] [stderr] 95 | tls: bool, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `time_created` is never read [INFO] [stderr] --> src/protocols/telnet/protocol.rs:131:5 [INFO] [stderr] | [INFO] [stderr] 114 | pub struct TelnetProtocol { [INFO] [stderr] | -------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 131 | time_created: Instant, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `time_created` and `time_activity` are never read [INFO] [stderr] --> src/protocols/websocket/protocol.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 42 | pub struct WebsocketProtocol { [INFO] [stderr] | ----------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 49 | time_created: Instant, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 50 | time_activity: Instant, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/protocols/telnet/codec.rs:174:13 [INFO] [stderr] | [INFO] [stderr] 174 | encoder.write_all(b.as_ref()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 174 | let _ = encoder.write_all(b.as_ref()); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused borrow that must be used [INFO] [stderr] --> src/protocols/telnet/codec.rs:176:13 [INFO] [stderr] | [INFO] [stderr] 176 | &dst.writer().write_all(encoder.get_mut().get_mut())?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stderr] | [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 176 | let _ = &dst.writer().write_all(encoder.get_mut().get_mut())?; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `thermite` (lib) generated 63 warnings (run `cargo fix --lib -p thermite` to apply 38 suggestions) [INFO] [stderr] warning: `thermite` (lib test) generated 63 warnings (63 duplicates) [INFO] [stderr] warning: unused import: `IpAddr` [INFO] [stderr] --> src/main.rs:3:11 [INFO] [stderr] | [INFO] [stderr] 3 | net::{IpAddr, SocketAddr}, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::sync::Arc` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use std::sync::Arc; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `error` [INFO] [stderr] --> src/main.rs:10:15 [INFO] [stderr] | [INFO] [stderr] 10 | use tracing::{error, info, Level}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `IS_TLS_ENABLED` [INFO] [stderr] --> src/main.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | IS_TLS_ENABLED, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `thermite` (bin "thermite" test) generated 4 warnings (run `cargo fix --bin "thermite" --tests` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/thermite-ec3316a5c1806201) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/thermite-aa359fd908887c05) [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Doc-tests thermite [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/protocols/telnet/codec.rs:169:72 [INFO] [stderr] | [INFO] [stderr] 169 | matches!(item, TelnetEvent::SubNegotiate(codes::MCCP2, _));; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/protocols/telnet/protocol.rs:212:15 [INFO] [stderr] | [INFO] [stderr] 212 | if(tel_op.start_local) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 212 - if(tel_op.start_local) { [INFO] [stderr] 212 + if tel_op.start_local { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/protocols/telnet/protocol.rs:217:15 [INFO] [stderr] | [INFO] [stderr] 217 | if(tel_op.start_remote) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 217 - if(tel_op.start_remote) { [INFO] [stderr] 217 + if tel_op.start_remote { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/protocols/telnet/protocol.rs:267:11 [INFO] [stderr] | [INFO] [stderr] 267 | if(self.time_activity.elapsed().as_secs() > (60 * 30)) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 267 - if(self.time_activity.elapsed().as_secs() > (60 * 30)) { [INFO] [stderr] 267 + if self.time_activity.elapsed().as_secs() > (60 * 30) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0ee6d358bccc2134534241e3f3d4ca16030baaf279484a9af10a3251d2b75b52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ee6d358bccc2134534241e3f3d4ca16030baaf279484a9af10a3251d2b75b52", kill_on_drop: false }` [INFO] [stdout] 0ee6d358bccc2134534241e3f3d4ca16030baaf279484a9af10a3251d2b75b52