[INFO] cloning repository https://github.com/OranPie/OrangeDownloader [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/OranPie/OrangeDownloader" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOranPie%2FOrangeDownloader", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOranPie%2FOrangeDownloader'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 681147258bb5d071b3f5f1fc04e9df27a0a47895 [INFO] checking OranPie/OrangeDownloader against try#ac4c3613be2acd5395b65d85e5657b81e3c982f0 for pr-154585 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOranPie%2FOrangeDownloader" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/OranPie/OrangeDownloader [INFO] finished tweaking git repo https://github.com/OranPie/OrangeDownloader [INFO] tweaked toml for git repo https://github.com/OranPie/OrangeDownloader written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/OranPie/OrangeDownloader on toolchain ac4c3613be2acd5395b65d85e5657b81e3c982f0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/OranPie/OrangeDownloader 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" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c7cf44706fdd74c1dc1e42fa580a3d88f633921b055e33260a8e62ff8512d39b [INFO] running `Command { std: "docker" "start" "-a" "c7cf44706fdd74c1dc1e42fa580a3d88f633921b055e33260a8e62ff8512d39b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7cf44706fdd74c1dc1e42fa580a3d88f633921b055e33260a8e62ff8512d39b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7cf44706fdd74c1dc1e42fa580a3d88f633921b055e33260a8e62ff8512d39b", kill_on_drop: false }` [INFO] [stdout] c7cf44706fdd74c1dc1e42fa580a3d88f633921b055e33260a8e62ff8512d39b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3bcc37ca85c26f4d41c5b73ad11dc2aa7df35972f706202ea38fcc4172e8159 [INFO] running `Command { std: "docker" "start" "-a" "d3bcc37ca85c26f4d41c5b73ad11dc2aa7df35972f706202ea38fcc4172e8159", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling cc v1.2.53 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Compiling zmij v1.0.16 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking foldhash v0.2.0 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Checking const_panic v0.2.15 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking librqbit-clone-to-owned v3.0.1 [INFO] [stderr] Checking hashbrown v0.16.1 [INFO] [stderr] Checking dirs-sys v0.5.0 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking assert_cfg v0.1.0 [INFO] [stderr] Checking simd-adler32 v0.3.8 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Checking directories v6.0.0 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking brotli-decompressor v5.0.0 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking rand_core v0.9.5 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling portable-atomic v1.13.0 [INFO] [stderr] Checking flate2 v1.1.8 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking compression-core v0.4.31 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking brotli v8.0.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking crc v3.4.0 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking sqlformat v0.2.6 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking radium v0.7.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking crossbeam-queue v0.3.12 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling network-interface v2.0.5 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking raw-cpuid v11.6.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling virtue v0.0.18 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling tempfile v3.24.0 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Compiling rlimit v0.10.2 [INFO] [stderr] Checking quanta v0.12.6 [INFO] [stderr] Checking bstr v1.12.1 [INFO] [stderr] Compiling bincode_derive v2.0.1 [INFO] [stderr] Compiling librqbit v8.1.1 [INFO] [stderr] Checking flume v0.11.1 [INFO] [stderr] Checking backoff v0.4.0 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking generic-array v0.12.4 [INFO] [stderr] Checking spinning_top v0.3.0 [INFO] [stderr] Checking clap_lex v0.7.7 [INFO] [stderr] Checking nonzero_ext v0.3.0 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking unty v0.0.4 [INFO] [stderr] Checking clap_builder v4.5.54 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking size_format v1.0.2 [INFO] [stderr] Checking arc-swap v1.8.0 [INFO] [stderr] Checking uuid v1.19.0 [INFO] [stderr] Checking memmap2 v0.9.9 [INFO] [stderr] Checking intervaltree v0.2.7 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking indicatif v0.17.11 [INFO] [stderr] Checking bincode v2.0.1 [INFO] [stderr] Checking sanitize-filename v0.5.0 [INFO] [stderr] Checking compression-codecs v0.4.36 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Compiling serde_with_macros v3.16.1 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking clap v4.5.54 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Checking serde_with v3.16.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Checking crypto-hash v0.3.4 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking librqbit-sha1-wrapper v4.1.0 [INFO] [stderr] Checking librqbit-buffers v4.2.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.43 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking quick-xml v0.37.5 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking librqbit-bencode v3.1.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking governor v0.10.4 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking leaky-bucket v1.1.2 [INFO] [stderr] Checking async-compression v0.4.37 [INFO] [stderr] Checking tokio-socks v0.5.2 [INFO] [stderr] Checking async_ftp v5.1.0 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking librqbit-core v5.0.0 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Checking librqbit-dht v5.3.1 [INFO] [stderr] Checking librqbit-peer-protocol v4.3.0 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Compiling sqlx-sqlite v0.7.4 [INFO] [stderr] Checking librqbit-tracker-comms v3.0.0 [INFO] [stderr] Checking librqbit-upnp v1.0.0 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking OrangeDownloader v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `Paused` is never constructed [INFO] [stdout] --> src/core/model.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum JobStatus { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Paused, [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] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Resolving` and `Verifying` are never constructed [INFO] [stdout] --> src/core/model.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum ItemStatus { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 26 | Resolving, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | Verifying, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ItemStatus` 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: struct `DownloadJob` is never constructed [INFO] [stdout] --> src/core/model.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct DownloadJob { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `job_id`, `status`, and `fragments` are never read [INFO] [stdout] --> src/core/model.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct DownloadItem { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 44 | pub id: ItemId, [INFO] [stdout] 45 | pub job_id: JobId, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 46 | pub status: ItemStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fragments: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DownloadItem` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `supports_ranges` and `max_parallel` are never read [INFO] [stdout] --> src/core/model.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Capabilities { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 68 | pub supports_ranges: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 69 | pub max_parallel: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` 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 `caps` is never read [INFO] [stdout] --> src/core/model.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct ResourceDescriptor { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 78 | pub caps: Capabilities, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourceDescriptor` 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: variant `Indexed` is never constructed [INFO] [stdout] --> src/core/model.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 90 | pub enum FragmentKey { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 91 | Range { offset: u64, len: u64 }, [INFO] [stdout] 92 | Indexed { index: u32 }, // 预留 BT/ED2K [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FragmentKey` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `state` and `retry` are never read [INFO] [stdout] --> src/core/model.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct Fragment { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 97 | pub key: FragmentKey, [INFO] [stdout] 98 | pub state: FragmentState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 99 | pub retry: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Fragment` 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: enum `FallbackMode` is never used [INFO] [stdout] --> src/core/model.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | pub enum FallbackMode { Full, SeqRange } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_job_finished` is never used [INFO] [stdout] --> src/core/engine.rs:200:18 [INFO] [stdout] | [INFO] [stdout] 27 | impl Engine { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 200 | pub async fn is_job_finished(&self, job_id: JobId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `total_size` is never read [INFO] [stdout] --> src/core/store.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ItemRecord { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub total_size: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ItemRecord` 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: methods `read_partial_path`, `set_item_supports_ranges`, and `delete_fragments` are never used [INFO] [stdout] --> src/core/store.rs:319:18 [INFO] [stdout] | [INFO] [stdout] 26 | impl SqliteStore { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 319 | pub async fn read_partial_path(&self, source_uri: &str, target_path: &Path) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | pub async fn set_item_supports_ranges(&self, item_db_id: i64, supports_ranges: bool) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | pub async fn delete_fragments(&self, item_db_id: i64) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_agent` is never read [INFO] [stdout] --> src/plugins/registry.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ResolveContext { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 10 | pub out_dir: PathBuf, [INFO] [stdout] 11 | pub user_agent: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResolveContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/plugins/registry.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait CliPlugin: Send + Sync { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 43 | fn name(&self) -> &'static str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_fragmented_http_like` is never used [INFO] [stdout] --> src/plugins/registry.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl PluginRegistry { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn is_fragmented_http_like(res: &ResourceDescriptor) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Paused` is never constructed [INFO] [stdout] --> src/core/model.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum JobStatus { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Paused, [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] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Resolving` and `Verifying` are never constructed [INFO] [stdout] --> src/core/model.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum ItemStatus { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 26 | Resolving, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | Verifying, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ItemStatus` 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: struct `DownloadJob` is never constructed [INFO] [stdout] --> src/core/model.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct DownloadJob { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `job_id`, `status`, and `fragments` are never read [INFO] [stdout] --> src/core/model.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct DownloadItem { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 44 | pub id: ItemId, [INFO] [stdout] 45 | pub job_id: JobId, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 46 | pub status: ItemStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fragments: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DownloadItem` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `supports_ranges` and `max_parallel` are never read [INFO] [stdout] --> src/core/model.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Capabilities { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 68 | pub supports_ranges: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 69 | pub max_parallel: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` 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 `caps` is never read [INFO] [stdout] --> src/core/model.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct ResourceDescriptor { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 78 | pub caps: Capabilities, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourceDescriptor` 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: variant `Indexed` is never constructed [INFO] [stdout] --> src/core/model.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 90 | pub enum FragmentKey { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 91 | Range { offset: u64, len: u64 }, [INFO] [stdout] 92 | Indexed { index: u32 }, // 预留 BT/ED2K [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FragmentKey` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `state` and `retry` are never read [INFO] [stdout] --> src/core/model.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct Fragment { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 97 | pub key: FragmentKey, [INFO] [stdout] 98 | pub state: FragmentState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 99 | pub retry: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Fragment` 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: enum `FallbackMode` is never used [INFO] [stdout] --> src/core/model.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | pub enum FallbackMode { Full, SeqRange } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_job_finished` is never used [INFO] [stdout] --> src/core/engine.rs:200:18 [INFO] [stdout] | [INFO] [stdout] 27 | impl Engine { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 200 | pub async fn is_job_finished(&self, job_id: JobId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `total_size` is never read [INFO] [stdout] --> src/core/store.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ItemRecord { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub total_size: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ItemRecord` 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: methods `read_partial_path`, `set_item_supports_ranges`, and `delete_fragments` are never used [INFO] [stdout] --> src/core/store.rs:319:18 [INFO] [stdout] | [INFO] [stdout] 26 | impl SqliteStore { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 319 | pub async fn read_partial_path(&self, source_uri: &str, target_path: &Path) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | pub async fn set_item_supports_ranges(&self, item_db_id: i64, supports_ranges: bool) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | pub async fn delete_fragments(&self, item_db_id: i64) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_agent` is never read [INFO] [stdout] --> src/plugins/registry.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ResolveContext { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 10 | pub out_dir: PathBuf, [INFO] [stdout] 11 | pub user_agent: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResolveContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/plugins/registry.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait CliPlugin: Send + Sync { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 43 | fn name(&self) -> &'static str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_fragmented_http_like` is never used [INFO] [stdout] --> src/plugins/registry.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl PluginRegistry { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn is_fragmented_http_like(res: &ResourceDescriptor) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 23s [INFO] running `Command { std: "docker" "inspect" "d3bcc37ca85c26f4d41c5b73ad11dc2aa7df35972f706202ea38fcc4172e8159", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3bcc37ca85c26f4d41c5b73ad11dc2aa7df35972f706202ea38fcc4172e8159", kill_on_drop: false }` [INFO] [stdout] d3bcc37ca85c26f4d41c5b73ad11dc2aa7df35972f706202ea38fcc4172e8159