[INFO] cloning repository https://github.com/hahatianx/lumo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hahatianx/lumo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhahatianx%2Flumo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhahatianx%2Flumo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7d227d4f334bb70a10af274662e4249290523368 [INFO] checking hahatianx/lumo against master#642c19bfc3a5c1de985bf5d0cc8207ac9d22708a for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhahatianx%2Flumo" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/hahatianx/lumo [INFO] finished tweaking git repo https://github.com/hahatianx/lumo [INFO] tweaked toml for git repo https://github.com/hahatianx/lumo written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/hahatianx/lumo on toolchain 642c19bfc3a5c1de985bf5d0cc8207ac9d22708a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/hahatianx/lumo already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lexical-core v1.0.6 [INFO] [stderr] Downloaded notify v8.2.0 [INFO] [stderr] Downloaded sdd v3.0.10 [INFO] [stderr] Downloaded lexical-parse-integer v1.0.6 [INFO] [stderr] Downloaded chacha20 v0.10.0-rc.2 [INFO] [stderr] Downloaded lexical-write-integer v1.0.6 [INFO] [stderr] Downloaded rand v0.10.0-rc.0 [INFO] [stderr] Downloaded lexical-parse-float v1.0.6 [INFO] [stderr] Downloaded scc v2.4.0 [INFO] [stderr] Downloaded syn v2.0.107 [INFO] [stderr] Downloaded lexical-write-float v1.0.6 [INFO] [stderr] Downloaded lexical-util v1.0.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0def55ba9e8b609b15e55501b7d4c307b503af9438c7779fb381e50e13b9d355 [INFO] running `Command { std: "docker" "start" "-a" "0def55ba9e8b609b15e55501b7d4c307b503af9438c7779fb381e50e13b9d355", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0def55ba9e8b609b15e55501b7d4c307b503af9438c7779fb381e50e13b9d355", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0def55ba9e8b609b15e55501b7d4c307b503af9438c7779fb381e50e13b9d355", kill_on_drop: false }` [INFO] [stdout] 0def55ba9e8b609b15e55501b7d4c307b503af9438c7779fb381e50e13b9d355 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a8a1028a5aa60b7443270f92a734e05bf3654e9c2383c5169784fdd9afb5169 [INFO] running `Command { std: "docker" "start" "-a" "6a8a1028a5aa60b7443270f92a734e05bf3654e9c2383c5169784fdd9afb5169", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Checking lexical-util v1.0.7 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking lock_api v0.4.14 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking mio v1.1.0 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling syn v2.0.107 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling virtue v0.0.18 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking lexical-parse-integer v1.0.6 [INFO] [stderr] Checking lexical-write-integer v1.0.6 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking winnow v0.7.13 [INFO] [stderr] Checking lexical-parse-float v1.0.6 [INFO] [stderr] Checking no-std-net v0.6.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking inotify v0.11.0 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking lexical-write-float v1.0.6 [INFO] [stderr] Checking pnet_base v0.34.0 [INFO] [stderr] Checking pnet_sys v0.34.0 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking chacha20 v0.10.0-rc.2 [INFO] [stderr] Checking toml_writer v1.0.4 [INFO] [stderr] Checking unty v0.0.4 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking sdd v3.0.10 [INFO] [stderr] Checking xxhash-rust v0.8.15 [INFO] [stderr] Checking unicode-ident v1.0.19 [INFO] [stderr] Checking rand v0.10.0-rc.0 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking lexical-core v1.0.6 [INFO] [stderr] Checking scc v2.4.0 [INFO] [stderr] Checking proc-macro2 v1.0.101 [INFO] [stderr] Compiling bincode_derive v2.0.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-padding v0.3.3 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling server v0.1.0 (/opt/rustwide/workdir/server) [INFO] [stderr] Checking toml_parser v1.0.4 [INFO] [stderr] Checking cbc v0.1.2 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking serde_spanned v1.0.3 [INFO] [stderr] Checking toml_datetime v0.7.3 [INFO] [stderr] Checking toml v0.9.8 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling cli_handler v0.1.0 (/opt/rustwide/workdir/cli_handler) [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling serial_test_derive v3.2.0 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Checking serial_test v3.2.0 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking clap v4.5.51 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking notify-types v2.0.0 [INFO] [stderr] Checking ipnetwork v0.20.0 [INFO] [stderr] Checking bincode v2.0.1 [INFO] [stderr] Checking pnet_datalink v0.34.0 [INFO] [stderr] Checking api_model v0.1.0 (/opt/rustwide/workdir/api_model) [INFO] [stderr] Checking notify v8.2.0 [INFO] [stdout] warning: associated functions `to_utf8` and `parse_from_str` are never used [INFO] [stdout] --> api_model/src/protocol/token.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl Token { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 22 | #[inline] [INFO] [stdout] 23 | fn to_utf8(bytes: &[u8]) -> Result<&str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn parse_from_str(s: &str, what: &str) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking client v0.1.0 (/opt/rustwide/workdir/client) [INFO] [stdout] warning: associated functions `to_utf8` and `parse_from_str` are never used [INFO] [stdout] --> api_model/src/protocol/token.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl Token { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 22 | #[inline] [INFO] [stdout] 23 | fn to_utf8(bytes: &[u8]) -> Result<&str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn parse_from_str(s: &str, what: &str) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionTimeoutError` and `InternalError` are never constructed [INFO] [stdout] --> client/src/error/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ClientError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 4 | ConnectionBindError(String, String), [INFO] [stdout] 5 | ConnectionTimeoutError(String, String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | InternalError(String, String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionTimeoutError` and `InternalError` are never constructed [INFO] [stdout] --> client/src/error/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ClientError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 4 | ConnectionBindError(String, String), [INFO] [stdout] 5 | ConnectionTimeoutError(String, String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | InternalError(String, String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClaimableJobHandle` and `launch_claimable_job` [INFO] [stdout] --> server/src/core/tasks/jobs/mod.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | pub use job_genre::claimable_job::{ClaimableJobHandle, launch_claimable_job}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `api_model::protocol::protocol::Protocol` [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use api_model::protocol::protocol::Protocol; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClaimableJobHandle` and `launch_claimable_job` [INFO] [stdout] --> server/src/core/tasks/jobs/mod.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | pub use job_genre::claimable_job::{ClaimableJobHandle, launch_claimable_job}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> server/src/core/tasks/task_queue.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task` [INFO] [stdout] --> server/src/fs/file.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | use tokio::task; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> server/src/fs/util.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `api_model::protocol::protocol::Protocol` [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use api_model::protocol::protocol::Protocol; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> server/src/interface/handlers/local_pull_file.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | Err(e) => LocalPullFileResult::Reject(PullFileError::InternalError), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> server/src/fs/task_management/file_request_tasks.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `period` [INFO] [stdout] --> server/src/interface/handlers/list_tasks.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | period, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `period: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> server/src/utilities/logger.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 211 | / return LOGGER_CELL [INFO] [stdout] 212 | | .get() [INFO] [stdout] 213 | | .expect("LOGGER_CELL should be set by test fallback"); [INFO] [stdout] | |_____________________________________________________________________- any code following this expression is unreachable [INFO] [stdout] 214 | } [INFO] [stdout] 215 | LOGGER_CELL.get().expect("LOGGER_CELL should be set") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> server/src/interface/handlers/local_pull_file.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | Err(e) => LocalPullFileResult::Reject(PullFileError::InternalError), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> server/src/utilities/logger.rs:169:21 [INFO] [stdout] | [INFO] [stdout] 169 | level, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `level: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> server/src/utilities/logger.rs:170:21 [INFO] [stdout] | [INFO] [stdout] 170 | msg, [INFO] [stdout] | ^^^ help: try ignoring the field: `msg: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_millis` [INFO] [stdout] --> server/src/utilities/logger.rs:171:21 [INFO] [stdout] | [INFO] [stdout] 171 | ts_millis, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `ts_millis: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Int`, `Uint`, and `Bool` are never constructed [INFO] [stdout] --> server/src/config/config.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 82 | enum ConfigInputValue { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 83 | String(String), [INFO] [stdout] 84 | Int(i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 85 | Uint(u32), [INFO] [stdout] | ^^^^ [INFO] [stdout] 86 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `file_sync_port` is never read [INFO] [stdout] --> server/src/config/env_var.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct ConnectionConfig { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | file_sync_port: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unicast` is never constructed [INFO] [stdout] --> server/src/core/tasks/low_level_tasks/task_send_control_message.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum SendType { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 9 | Broadcast, [INFO] [stdout] 10 | Unicast(SocketAddr), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains_key` is never used [INFO] [stdout] --> server/src/fs/fs_index.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 159 | impl FileIndexInner { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | fn contains_key>(&self, path: P) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `list_paths` is never used [INFO] [stdout] --> server/src/fs/fs_index.rs:263:25 [INFO] [stdout] | [INFO] [stdout] 230 | impl FileIndex { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | pub(crate) async fn list_paths(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `activate_checked`, `deactivate_checked`, and `set_last_writer_checked` are never used [INFO] [stdout] --> server/src/fs/fs_index.rs:482:14 [INFO] [stdout] | [INFO] [stdout] 310 | impl FileIndex { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 482 | async fn activate_checked>(&self, path: P, from_ver: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | async fn deactivate_checked>(&self, path: P, from_ver: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 546 | async fn set_last_writer_checked>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `activate`, `deactivate`, `mark_stale`, and `set_last_writer` are never used [INFO] [stdout] --> server/src/fs/fs_index.rs:585:14 [INFO] [stdout] | [INFO] [stdout] 584 | impl FileIndex { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 585 | async fn remove>(&self, p: P) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 594 | async fn activate>(&self, p: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 603 | async fn deactivate>(&self, p: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 612 | async fn mark_stale>(&self, p: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 621 | async fn set_last_writer>(&self, p: P, writer: impl Into) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> server/src/fs/fs_lock.rs:196:18 [INFO] [stdout] | [INFO] [stdout] 120 | impl RwLock { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 196 | pub async fn write(&self) -> crate::err::Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WriteGuard` is never constructed [INFO] [stdout] --> server/src/fs/fs_lock.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 225 | pub struct WriteGuard { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PullRequest` is never constructed [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PullRequest { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PullRequest { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new(path: String, challenge: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PullMessage` is never constructed [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PullMessage {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `local_addr` is never used [INFO] [stdout] --> server/src/network/udp_listener.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl UdpListener { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn local_addr(&self) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpListener` is never constructed [INFO] [stdout] --> server/src/network/tcp_listener.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TcpListener { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TcpStream` is never used [INFO] [stdout] --> server/src/network/tcp_listener.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type TcpStream = TokioTcpStream; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListenerHandle` is never constructed [INFO] [stdout] --> server/src/network/tcp_listener.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ListenerHandle { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `shutdown` is never used [INFO] [stdout] --> server/src/network/tcp_listener.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 25 | impl ListenerHandle { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 26 | /// Signal shutdown and await the listener task to exit. [INFO] [stdout] 27 | pub async fn shutdown(self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `bind`, `bind_on`, `local_addr`, and `into_task` are never used [INFO] [stdout] --> server/src/network/tcp_listener.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 35 | impl TcpListener { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 36 | /// Bind to 0.0.0.0:TCP_FILE_PORT [INFO] [stdout] 37 | pub async fn bind() -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub async fn bind_on(addr: SocketAddr) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn local_addr(&self) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn into_task( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpConn` is never constructed [INFO] [stdout] --> server/src/network/tcp_sender.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TcpConn { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpConnConfig` is never constructed [INFO] [stdout] --> server/src/network/tcp_sender.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct TcpConnConfig { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> server/src/network/tcp_sender.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 37 | impl TcpConn { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 38 | /// Connect to the given socket address using default timeouts. [INFO] [stdout] 39 | pub async fn connect(addr: SocketAddr) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn connect_with_config(addr: SocketAddr, cfg: TcpConnConfig) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn peer_addr(&self) -> SocketAddr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn local_addr(&self) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub async fn send_all(&mut self, bytes: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub async fn send_bytes(&mut self, bytes: Bytes) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub async fn shutdown(mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> server/src/fs/task_management/file_request_tasks.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `period` [INFO] [stdout] --> server/src/interface/handlers/list_tasks.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | period, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `period: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> server/tests/fs_index_integration.rs:128:40 [INFO] [stdout] | [INFO] [stdout] 128 | write_bytes(&p, 1024 + i * 10, (0x10 + i as u8)).await; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 128 - write_bytes(&p, 1024 + i * 10, (0x10 + i as u8)).await; [INFO] [stdout] 128 + write_bytes(&p, 1024 + i * 10, 0x10 + i as u8 ).await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClaimableJobHandle` and `launch_claimable_job` [INFO] [stdout] --> server/src/core/tasks/jobs/mod.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | pub use job_genre::claimable_job::{ClaimableJobHandle, launch_claimable_job}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PendingPull`, `cancel_pending`, and `claim_by_nonce` [INFO] [stdout] --> server/src/fs/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | PendingPull, PullRequestResult, RejectionReason, cancel_pending, claim_by_nonce, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `api_model::protocol::protocol::Protocol` [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use api_model::protocol::protocol::Protocol; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/core/topology/peer_table.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | let mut p1 = Peer::new( [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/core/topology/peer_table.rs:401:13 [INFO] [stdout] | [INFO] [stdout] 401 | let mut p2 = Peer::new( [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/core/topology/peer_table.rs:429:17 [INFO] [stdout] | [INFO] [stdout] 429 | let mut p = Peer::new( [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClaimableJobHandle` and `launch_claimable_job` [INFO] [stdout] --> server/src/core/tasks/jobs/mod.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | pub use job_genre::claimable_job::{ClaimableJobHandle, launch_claimable_job}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> server/src/core/tasks/task_queue.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task` [INFO] [stdout] --> server/src/fs/file.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | use tokio::task; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> server/src/fs/util.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PendingPull`, `cancel_pending`, and `claim_by_nonce` [INFO] [stdout] --> server/src/fs/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | PendingPull, PullRequestResult, RejectionReason, cancel_pending, claim_by_nonce, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `api_model::protocol::protocol::Protocol` [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use api_model::protocol::protocol::Protocol; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/fs/fs_index.rs:1166:17 [INFO] [stdout] | [INFO] [stdout] 1166 | let mut index = FileIndex::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size0` [INFO] [stdout] --> server/src/fs/fs_index.rs:1185:13 [INFO] [stdout] | [INFO] [stdout] 1185 | let size0 = lf.size; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_size0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mtime0` [INFO] [stdout] --> server/src/fs/fs_index.rs:1186:13 [INFO] [stdout] | [INFO] [stdout] 1186 | let mtime0 = lf.mtime; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mtime0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size1` [INFO] [stdout] --> server/src/fs/fs_index.rs:1203:13 [INFO] [stdout] | [INFO] [stdout] 1203 | let size1 = lf2.size; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_size1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mtime1` [INFO] [stdout] --> server/src/fs/fs_index.rs:1204:13 [INFO] [stdout] | [INFO] [stdout] 1204 | let mtime1 = lf2.mtime; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mtime1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/fs/fs_lock.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | let mut handle = tokio::spawn({ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> server/src/utilities/logger.rs:169:21 [INFO] [stdout] | [INFO] [stdout] 169 | level, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `level: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> server/src/utilities/logger.rs:170:21 [INFO] [stdout] | [INFO] [stdout] 170 | msg, [INFO] [stdout] | ^^^ help: try ignoring the field: `msg: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_millis` [INFO] [stdout] --> server/src/utilities/logger.rs:171:21 [INFO] [stdout] | [INFO] [stdout] 171 | ts_millis, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `ts_millis: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `file_sync_port` is never read [INFO] [stdout] --> server/src/config/env_var.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct ConnectionConfig { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | file_sync_port: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains_key` is never used [INFO] [stdout] --> server/src/fs/fs_index.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 159 | impl FileIndexInner { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | fn contains_key>(&self, path: P) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PullRequest` is never constructed [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PullRequest { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PullRequest { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new(path: String, challenge: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PullMessage` is never constructed [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PullMessage {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `bind` is never used [INFO] [stdout] --> server/src/network/tcp_listener.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 35 | impl TcpListener { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 36 | /// Bind to 0.0.0.0:TCP_FILE_PORT [INFO] [stdout] 37 | pub async fn bind() -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `connect_timeout` is never read [INFO] [stdout] --> server/src/network/tcp_sender.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TcpConn { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | connect_timeout: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TcpConn` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peer_addr`, `local_addr`, and `send_bytes` are never used [INFO] [stdout] --> server/src/network/tcp_sender.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl TcpConn { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn peer_addr(&self) -> SocketAddr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn local_addr(&self) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub async fn send_bytes(&mut self, bytes: Bytes) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `path` is never used [INFO] [stdout] --> server/src/utilities/logger.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 250 | impl TempFileGuard { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 254 | fn path(&self) -> &Path { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> server/src/interface/handlers/local_pull_file.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | Err(e) => LocalPullFileResult::Reject(PullFileError::InternalError), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> server/src/fs/task_management/file_request_tasks.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `period` [INFO] [stdout] --> server/src/interface/handlers/list_tasks.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | period, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `period: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> server/src/utilities/logger.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 211 | / return LOGGER_CELL [INFO] [stdout] 212 | | .get() [INFO] [stdout] 213 | | .expect("LOGGER_CELL should be set by test fallback"); [INFO] [stdout] | |_____________________________________________________________________- any code following this expression is unreachable [INFO] [stdout] 214 | } [INFO] [stdout] 215 | LOGGER_CELL.get().expect("LOGGER_CELL should be set") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> server/src/utilities/logger.rs:169:21 [INFO] [stdout] | [INFO] [stdout] 169 | level, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `level: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> server/src/utilities/logger.rs:170:21 [INFO] [stdout] | [INFO] [stdout] 170 | msg, [INFO] [stdout] | ^^^ help: try ignoring the field: `msg: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_millis` [INFO] [stdout] --> server/src/utilities/logger.rs:171:21 [INFO] [stdout] | [INFO] [stdout] 171 | ts_millis, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `ts_millis: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Int`, `Uint`, and `Bool` are never constructed [INFO] [stdout] --> server/src/config/config.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 82 | enum ConfigInputValue { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 83 | String(String), [INFO] [stdout] 84 | Int(i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 85 | Uint(u32), [INFO] [stdout] | ^^^^ [INFO] [stdout] 86 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `private_key_location` and `public_key_location` are never read [INFO] [stdout] --> server/src/config/env_var.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct KeySpec { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 12 | private_key_location: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | public_key_location: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeySpec` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key_spec` is never read [INFO] [stdout] --> server/src/config/env_var.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 17 | struct Identity { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | key_spec: KeySpec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Identity` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `conn_token` and `file_sync_port` are never read [INFO] [stdout] --> server/src/config/env_var.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct ConnectionConfig { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 26 | conn_token: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 27 | port: u16, [INFO] [stdout] 28 | file_sync_port: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `working_dir` is never read [INFO] [stdout] --> server/src/config/env_var.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AppConfig { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 34 | working_dir: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_peer_expires_after_in_sec` and `get_working_dir` are never used [INFO] [stdout] --> server/src/config/env_var.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl AppConfig { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn update_peer_expires_after_in_sec(&mut self, new_value: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn get_working_dir(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_conn_token`, `get_private_key_location`, and `get_public_key_location` are never used [INFO] [stdout] --> server/src/config/env_var.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl EnvVar { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get_conn_token(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn get_private_key_location(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn get_public_key_location(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_working_dir`, and `update_peer_expires_after_in_sec` are never used [INFO] [stdout] --> server/src/config/app_config.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl SharedConfig { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(_env_var: &EnvVar) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub async fn get_working_dir(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub async fn update_peer_expires_after_in_sec(&self, new_value: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shutdown_jobs` is never used [INFO] [stdout] --> server/src/core/tasks/mod.rs:94:14 [INFO] [stdout] | [INFO] [stdout] 94 | pub async fn shutdown_jobs() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Shutdown` is never constructed [INFO] [stdout] --> server/src/core/tasks/job_summary.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum JobStatus { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | Shutdown, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JobStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `shutdown_tx` is never read [INFO] [stdout] --> server/src/core/tasks/job_summary.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct JobSummary { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 63 | pub shutdown_tx: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_status`, `update_status_msg`, and `shutdown` are never used [INFO] [stdout] --> server/src/core/tasks/job_summary.rs:119:18 [INFO] [stdout] | [INFO] [stdout] 81 | impl JobSummary { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn update_status(&mut self, new_status: JobStatus) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub async fn update_status_msg(&mut self, status_msg: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub async fn shutdown(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `take_over_callback_recv` and `take_over_indicator` are never read [INFO] [stdout] --> server/src/core/tasks/jobs/job_genre/claimable_job.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 162 | pub struct ClaimableJobHandle { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 163 | take_over_callback_recv: tokio::sync::oneshot::Receiver>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 164 | take_over_indicator: tokio::sync::oneshot::Sender<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ClaimableJobTakeoverError` is never used [INFO] [stdout] --> server/src/core/tasks/jobs/job_genre/claimable_job.rs:167:10 [INFO] [stdout] | [INFO] [stdout] 167 | pub enum ClaimableJobTakeoverError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `take_over` is never used [INFO] [stdout] --> server/src/core/tasks/jobs/job_genre/claimable_job.rs:184:18 [INFO] [stdout] | [INFO] [stdout] 173 | impl ClaimableJobHandle { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 184 | pub async fn take_over( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unicast` is never constructed [INFO] [stdout] --> server/src/core/tasks/low_level_tasks/task_send_control_message.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum SendType { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 9 | Broadcast, [INFO] [stdout] 10 | Unicast(SocketAddr), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_peer`, `get_peer`, `promote_peer`, `refresh_peer`, and `disable_peer` are never used [INFO] [stdout] --> server/src/core/topology/peer_table.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 114 | impl PeerTable { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub async fn remove_peer(&self, peer: Peer) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub async fn get_peer(&self, identifier: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub async fn promote_peer(&self, identifier: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub async fn refresh_peer(&self, identifier: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub async fn disable_peer(&self, identifier: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `same_file` is never used [INFO] [stdout] --> server/src/fs/file.rs:122:18 [INFO] [stdout] | [INFO] [stdout] 87 | impl LumoFile { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 122 | pub async fn same_file(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `all` is never used [INFO] [stdout] --> server/src/fs/util.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 31 | impl DirPermissions { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 32 | /// Convenience: all permissions are granted. [INFO] [stdout] 33 | pub const fn all() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_active`, `set_stale`, `set_last_writer`, and `needs_rescan` are never used [INFO] [stdout] --> server/src/fs/fs_index.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl FileEntry { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn set_active(&mut self, from_ver: u64, active: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn set_stale(&mut self, from_ver: u64, stale: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn set_last_writer(&mut self, from_ver: u64, writer: impl Into) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn needs_rescan(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains_key` is never used [INFO] [stdout] --> server/src/fs/fs_index.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 159 | impl FileIndexInner { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | fn contains_key>(&self, path: P) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `len`, `with_entry`, `list_paths`, `candidates_by_size`, `candidates_by_size_mtime`, and `candidates_for` are never used [INFO] [stdout] --> server/src/fs/fs_index.rs:238:18 [INFO] [stdout] | [INFO] [stdout] 230 | impl FileIndex { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 238 | pub async fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | pub async fn with_entry(&self, path: P, f: impl FnOnce(&FileEntry) -> T) -> Option [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub(crate) async fn list_paths(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub(crate) async fn candidates_by_size(&self, size: u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | pub(crate) async fn candidates_by_size_mtime( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | pub async fn candidates_for(&self, file: &LumoFile) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `activate_checked`, `deactivate_checked`, and `set_last_writer_checked` are never used [INFO] [stdout] --> server/src/fs/fs_index.rs:482:14 [INFO] [stdout] | [INFO] [stdout] 310 | impl FileIndex { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 482 | async fn activate_checked>(&self, path: P, from_ver: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | async fn deactivate_checked>(&self, path: P, from_ver: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 546 | async fn set_last_writer_checked>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `activate`, `deactivate`, `mark_stale`, and `set_last_writer` are never used [INFO] [stdout] --> server/src/fs/fs_index.rs:585:14 [INFO] [stdout] | [INFO] [stdout] 584 | impl FileIndex { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 585 | async fn remove>(&self, p: P) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 594 | async fn activate>(&self, p: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 603 | async fn deactivate>(&self, p: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 612 | async fn mark_stale>(&self, p: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 621 | async fn set_last_writer>(&self, p: P, writer: impl Into) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> server/src/fs/fs_lock.rs:196:18 [INFO] [stdout] | [INFO] [stdout] 120 | impl RwLock { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 196 | pub async fn write(&self) -> crate::err::Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WriteGuard` is never constructed [INFO] [stdout] --> server/src/fs/fs_lock.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 225 | pub struct WriteGuard { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nonce`, `original_path`, `temp_path`, `created_at`, and `handle` are never read [INFO] [stdout] --> server/src/fs/task_management/file_request_tasks.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PendingPull { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 21 | pub nonce: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | pub original_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 23 | pub temp_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 24 | pub created_at: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub handle: ClaimableJobHandle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `claim_by_nonce` is never used [INFO] [stdout] --> server/src/fs/task_management/file_request_tasks.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 159 | pub async fn claim_by_nonce(nonce: u64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cancel_pending` is never used [INFO] [stdout] --> server/src/fs/task_management/file_request_tasks.rs:164:14 [INFO] [stdout] | [INFO] [stdout] 164 | pub async fn cancel_pending(nonce: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PullRequest` is never constructed [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PullRequest { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PullRequest { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new(path: String, challenge: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PullMessage` is never constructed [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PullMessage {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `local_addr` is never used [INFO] [stdout] --> server/src/network/udp_listener.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl UdpListener { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn local_addr(&self) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `spawn_per_request` is never used [INFO] [stdout] --> server/src/network/udp_sender.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl NetworkSender { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn spawn_per_request( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_once` is never used [INFO] [stdout] --> server/src/network/udp_sender.rs:242:10 [INFO] [stdout] | [INFO] [stdout] 242 | async fn send_once( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpListener` is never constructed [INFO] [stdout] --> server/src/network/tcp_listener.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TcpListener { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TcpStream` is never used [INFO] [stdout] --> server/src/network/tcp_listener.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type TcpStream = TokioTcpStream; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListenerHandle` is never constructed [INFO] [stdout] --> server/src/network/tcp_listener.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ListenerHandle { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `shutdown` is never used [INFO] [stdout] --> server/src/network/tcp_listener.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 25 | impl ListenerHandle { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 26 | /// Signal shutdown and await the listener task to exit. [INFO] [stdout] 27 | pub async fn shutdown(self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `bind`, `bind_on`, `local_addr`, and `into_task` are never used [INFO] [stdout] --> server/src/network/tcp_listener.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 35 | impl TcpListener { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 36 | /// Bind to 0.0.0.0:TCP_FILE_PORT [INFO] [stdout] 37 | pub async fn bind() -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub async fn bind_on(addr: SocketAddr) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn local_addr(&self) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn into_task( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpConn` is never constructed [INFO] [stdout] --> server/src/network/tcp_sender.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TcpConn { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpConnConfig` is never constructed [INFO] [stdout] --> server/src/network/tcp_sender.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct TcpConnConfig { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> server/src/network/tcp_sender.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 37 | impl TcpConn { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 38 | /// Connect to the given socket address using default timeouts. [INFO] [stdout] 39 | pub async fn connect(addr: SocketAddr) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn connect_with_config(addr: SocketAddr, cfg: TcpConnConfig) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn peer_addr(&self) -> SocketAddr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn local_addr(&self) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub async fn send_all(&mut self, bytes: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub async fn send_bytes(&mut self, bytes: Bytes) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub async fn shutdown(mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Aes256Cbc` is never used [INFO] [stdout] --> server/src/utilities/crypto.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Aes256Cbc = Encryptor; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> server/src/interface/handlers/local_pull_file.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | Err(e) => LocalPullFileResult::Reject(PullFileError::InternalError), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Aes256CbcDec` is never used [INFO] [stdout] --> server/src/utilities/crypto.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | type Aes256CbcDec = Decryptor; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `KEY` is never used [INFO] [stdout] --> server/src/utilities/crypto.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | static KEY: LazyLock<[u8; 32]> = LazyLock::new(|| get_key()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_key` is never used [INFO] [stdout] --> server/src/utilities/crypto.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn get_key() -> [u8; 32] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> server/src/utilities/crypto.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn encrypt(data: Bytes, iv: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt` is never used [INFO] [stdout] --> server/src/utilities/crypto.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn decrypt(cipher: Bytes, iv: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> server/src/fs/task_management/file_request_tasks.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `period` [INFO] [stdout] --> server/src/interface/handlers/list_tasks.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | period, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `period: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/core/topology/peer_table.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | let mut p1 = Peer::new( [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/core/topology/peer_table.rs:401:13 [INFO] [stdout] | [INFO] [stdout] 401 | let mut p2 = Peer::new( [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/core/topology/peer_table.rs:429:17 [INFO] [stdout] | [INFO] [stdout] 429 | let mut p = Peer::new( [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/fs/fs_index.rs:1166:17 [INFO] [stdout] | [INFO] [stdout] 1166 | let mut index = FileIndex::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size0` [INFO] [stdout] --> server/src/fs/fs_index.rs:1185:13 [INFO] [stdout] | [INFO] [stdout] 1185 | let size0 = lf.size; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_size0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mtime0` [INFO] [stdout] --> server/src/fs/fs_index.rs:1186:13 [INFO] [stdout] | [INFO] [stdout] 1186 | let mtime0 = lf.mtime; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mtime0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size1` [INFO] [stdout] --> server/src/fs/fs_index.rs:1203:13 [INFO] [stdout] | [INFO] [stdout] 1203 | let size1 = lf2.size; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_size1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mtime1` [INFO] [stdout] --> server/src/fs/fs_index.rs:1204:13 [INFO] [stdout] | [INFO] [stdout] 1204 | let mtime1 = lf2.mtime; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mtime1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/fs/fs_lock.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | let mut handle = tokio::spawn({ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> server/src/utilities/logger.rs:169:21 [INFO] [stdout] | [INFO] [stdout] 169 | level, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `level: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> server/src/utilities/logger.rs:170:21 [INFO] [stdout] | [INFO] [stdout] 170 | msg, [INFO] [stdout] | ^^^ help: try ignoring the field: `msg: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_millis` [INFO] [stdout] --> server/src/utilities/logger.rs:171:21 [INFO] [stdout] | [INFO] [stdout] 171 | ts_millis, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `ts_millis: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `file_sync_port` is never read [INFO] [stdout] --> server/src/config/env_var.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct ConnectionConfig { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | file_sync_port: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_private_key_location` and `get_public_key_location` are never used [INFO] [stdout] --> server/src/config/env_var.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl EnvVar { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn get_private_key_location(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn get_public_key_location(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> server/src/config/app_config.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl SharedConfig { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(_env_var: &EnvVar) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shutdown_jobs` is never used [INFO] [stdout] --> server/src/core/tasks/mod.rs:94:14 [INFO] [stdout] | [INFO] [stdout] 94 | pub async fn shutdown_jobs() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_status` and `update_status_msg` are never used [INFO] [stdout] --> server/src/core/tasks/job_summary.rs:119:18 [INFO] [stdout] | [INFO] [stdout] 81 | impl JobSummary { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn update_status(&mut self, new_status: JobStatus) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub async fn update_status_msg(&mut self, status_msg: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `take_over_callback_recv` and `take_over_indicator` are never read [INFO] [stdout] --> server/src/core/tasks/jobs/job_genre/claimable_job.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 162 | pub struct ClaimableJobHandle { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 163 | take_over_callback_recv: tokio::sync::oneshot::Receiver>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 164 | take_over_indicator: tokio::sync::oneshot::Sender<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ClaimableJobTakeoverError` is never used [INFO] [stdout] --> server/src/core/tasks/jobs/job_genre/claimable_job.rs:167:10 [INFO] [stdout] | [INFO] [stdout] 167 | pub enum ClaimableJobTakeoverError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `take_over` is never used [INFO] [stdout] --> server/src/core/tasks/jobs/job_genre/claimable_job.rs:184:18 [INFO] [stdout] | [INFO] [stdout] 173 | impl ClaimableJobHandle { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 184 | pub async fn take_over( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_peer`, `promote_peer`, `refresh_peer`, and `disable_peer` are never used [INFO] [stdout] --> server/src/core/topology/peer_table.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 114 | impl PeerTable { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub async fn remove_peer(&self, peer: Peer) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub async fn promote_peer(&self, identifier: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub async fn refresh_peer(&self, identifier: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub async fn disable_peer(&self, identifier: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `same_file` is never used [INFO] [stdout] --> server/src/fs/file.rs:122:18 [INFO] [stdout] | [INFO] [stdout] 87 | impl LumoFile { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 122 | pub async fn same_file(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `all` is never used [INFO] [stdout] --> server/src/fs/util.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 31 | impl DirPermissions { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 32 | /// Convenience: all permissions are granted. [INFO] [stdout] 33 | pub const fn all() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_stale` and `needs_rescan` are never used [INFO] [stdout] --> server/src/fs/fs_index.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl FileEntry { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn set_stale(&mut self, from_ver: u64, stale: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn needs_rescan(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains_key` is never used [INFO] [stdout] --> server/src/fs/fs_index.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 159 | impl FileIndexInner { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | fn contains_key>(&self, path: P) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nonce`, `original_path`, `temp_path`, `created_at`, and `handle` are never read [INFO] [stdout] --> server/src/fs/task_management/file_request_tasks.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PendingPull { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 21 | pub nonce: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | pub original_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 23 | pub temp_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 24 | pub created_at: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub handle: ClaimableJobHandle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `claim_by_nonce` is never used [INFO] [stdout] --> server/src/fs/task_management/file_request_tasks.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 159 | pub async fn claim_by_nonce(nonce: u64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cancel_pending` is never used [INFO] [stdout] --> server/src/fs/task_management/file_request_tasks.rs:164:14 [INFO] [stdout] | [INFO] [stdout] 164 | pub async fn cancel_pending(nonce: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PullRequest` is never constructed [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PullRequest { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PullRequest { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new(path: String, challenge: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PullMessage` is never constructed [INFO] [stdout] --> server/src/network/protocol/messages/pull_message.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PullMessage {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `bind` is never used [INFO] [stdout] --> server/src/network/tcp_listener.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 35 | impl TcpListener { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 36 | /// Bind to 0.0.0.0:TCP_FILE_PORT [INFO] [stdout] 37 | pub async fn bind() -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `connect_timeout` is never read [INFO] [stdout] --> server/src/network/tcp_sender.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TcpConn { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | connect_timeout: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TcpConn` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peer_addr`, `local_addr`, and `send_bytes` are never used [INFO] [stdout] --> server/src/network/tcp_sender.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl TcpConn { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn peer_addr(&self) -> SocketAddr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn local_addr(&self) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub async fn send_bytes(&mut self, bytes: Bytes) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `path` is never used [INFO] [stdout] --> server/src/utilities/logger.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 250 | impl TempFileGuard { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 254 | fn path(&self) -> &Path { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.12s [INFO] running `Command { std: "docker" "inspect" "6a8a1028a5aa60b7443270f92a734e05bf3654e9c2383c5169784fdd9afb5169", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a8a1028a5aa60b7443270f92a734e05bf3654e9c2383c5169784fdd9afb5169", kill_on_drop: false }` [INFO] [stdout] 6a8a1028a5aa60b7443270f92a734e05bf3654e9c2383c5169784fdd9afb5169