[INFO] cloning repository https://github.com/WangJie-Mant/Comicat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/WangJie-Mant/Comicat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWangJie-Mant%2FComicat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWangJie-Mant%2FComicat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 29bb295e7dd9403e2cf418db9c4c4d1ffba31697 [INFO] testing WangJie-Mant/Comicat against 1.100.0-beta.1 for beta-1.100-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWangJie-Mant%2FComicat" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/WangJie-Mant/Comicat [INFO] finished tweaking git repo https://github.com/WangJie-Mant/Comicat [INFO] tweaked toml for git repo https://github.com/WangJie-Mant/Comicat written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/WangJie-Mant/Comicat on toolchain 1.100.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/WangJie-Mant/Comicat 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" "+1.100.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3111399a4047eeb3a02b7a90e478d715f38a8c6669b5c4b49d30a17385265909" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] fce7b216b08c684837edd8b5d7700da4a34289a789d4fc70d5bf66982865d149 [INFO] running `Command { std: "docker" "start" "fce7b216b08c684837edd8b5d7700da4a34289a789d4fc70d5bf66982865d149", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fce7b216b08c684837edd8b5d7700da4a34289a789d4fc70d5bf66982865d149", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "fce7b216b08c684837edd8b5d7700da4a34289a789d4fc70d5bf66982865d149" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fce7b216b08c684837edd8b5d7700da4a34289a789d4fc70d5bf66982865d149", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "fce7b216b08c684837edd8b5d7700da4a34289a789d4fc70d5bf66982865d149" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.186 [INFO] [stderr] Compiling log v0.4.32 [INFO] [stderr] Compiling memchr v2.8.1 [INFO] [stderr] Compiling http v1.4.1 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling zerocopy v0.8.50 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling bitflags v2.13.0 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling cc v1.2.63 [INFO] [stderr] Compiling num-conv v0.2.2 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling time-core v0.1.8 [INFO] [stderr] Compiling deranged v0.5.8 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling serde_json v1.0.150 [INFO] [stderr] Compiling time-macros v0.2.27 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling openssl v0.10.80 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling simd-adler32 v0.3.9 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling block-padding v0.3.3 [INFO] [stderr] Compiling data-encoding v2.11.0 [INFO] [stderr] Compiling litrs v1.0.0 [INFO] [stderr] Compiling psl-types v2.0.11 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling rustls-pki-types v1.14.1 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling document-features v0.2.12 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling flate2 v1.1.9 [INFO] [stderr] Compiling byteorder-lite v0.1.0 [INFO] [stderr] Compiling pxfm v0.1.29 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling zune-core v0.5.1 [INFO] [stderr] Compiling quick-error v2.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.116 [INFO] [stderr] Compiling zune-jpeg v0.5.15 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling mio v1.2.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling socket2 v0.6.4 [INFO] [stderr] Compiling time v0.3.47 [INFO] [stderr] Compiling rand_core v0.9.5 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling png v0.18.1 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling image-webp v0.2.4 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling bytemuck v1.25.0 [INFO] [stderr] Compiling either v1.16.0 [INFO] [stderr] Compiling bytecount v0.6.9 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling zip v2.4.2 [INFO] [stderr] Compiling xml-rs v0.8.28 [INFO] [stderr] Compiling chrono v0.4.45 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling rayon v1.12.0 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling inotify v0.11.2 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling cbc v0.1.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling notify-types v2.1.0 [INFO] [stderr] Compiling symlink v0.1.0 [INFO] [stderr] Compiling rangemap v1.7.1 [INFO] [stderr] Compiling weezl v0.1.12 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling notify v8.2.0 [INFO] [stderr] Compiling uuid v1.23.2 [INFO] [stderr] Compiling strfmt v0.2.5 [INFO] [stderr] Compiling md5 v0.7.0 [INFO] [stderr] Compiling moxcms v0.8.1 [INFO] [stderr] Compiling nom_locate v4.2.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerovec-derive v0.11.3 [INFO] [stderr] Compiling displaydoc v0.2.6 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling zerofrom-derive v0.1.7 [INFO] [stderr] Compiling yoke-derive v0.8.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling tokio v1.52.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling rand v0.9.4 [INFO] [stderr] Compiling zerofrom v0.1.8 [INFO] [stderr] Compiling axum-core v0.5.6 [INFO] [stderr] Compiling rand v0.8.6 [INFO] [stderr] Compiling yoke v0.8.3 [INFO] [stderr] Compiling zerotrie v0.2.4 [INFO] [stderr] Compiling zerovec v0.11.6 [INFO] [stderr] Compiling tungstenite v0.29.0 [INFO] [stderr] Compiling tungstenite v0.27.0 [INFO] [stderr] Compiling retry-policies v0.4.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling tinystr v0.8.3 [INFO] [stderr] Compiling potential_utf v0.1.5 [INFO] [stderr] Compiling icu_locale_core v2.2.0 [INFO] [stderr] Compiling icu_collections v2.2.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.23 [INFO] [stderr] Compiling serde_tokenstream v0.2.3 [INFO] [stderr] Compiling yaserde_derive v0.12.0 [INFO] [stderr] Compiling icu_provider v2.2.0 [INFO] [stderr] Compiling icu_normalizer v2.2.0 [INFO] [stderr] Compiling icu_properties v2.2.0 [INFO] [stderr] Compiling image v0.25.10 [INFO] [stderr] Compiling tracing-appender v0.2.5 [INFO] [stderr] Compiling yaserde v0.12.0 [INFO] [stderr] Compiling idna_adapter v1.2.2 [INFO] [stderr] Compiling futures-executor v0.3.32 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling publicsuffix v2.3.0 [INFO] [stderr] Compiling cookie_store v0.22.1 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-tungstenite v0.29.0 [INFO] [stderr] Compiling tokio-tungstenite v0.27.0 [INFO] [stderr] Compiling lopdf v0.34.0 (https://github.com/lanyeeee/lopdf#a0751840) [INFO] [stderr] Compiling h2 v0.4.14 [INFO] [stderr] Compiling tower-http v0.6.11 [INFO] [stderr] Compiling hyper v1.10.1 [INFO] [stderr] Compiling hyper-util v0.1.20 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling axum v0.8.9 [INFO] [stderr] Compiling reqwest v0.12.28 [INFO] [stderr] Compiling reqwest-middleware v0.3.3 [INFO] [stderr] Compiling reqwest-retry v0.6.1 [INFO] [stderr] Compiling comineko v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/bot/client.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | use tracing::{debug, info, warn}; [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: `serde::Serialize` [INFO] [stdout] --> src/bot/client.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bot/reader.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bot/writer.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> src/bot/writer.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use futures_util::{SinkExt, StreamExt, stream::SplitSink}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/jmcomica/types/comic_info.rs:7:81 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize, YaSerialize, YaDeserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the derive macro `YaDeserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/jmcomica/download_manager.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | let speed = format!("{mega_byte_per_sec:.2}MB/s"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> src/jmcomica/export.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let uuid = self.uuid.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/jmcomica/export.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let ctx = self.ctx.clone(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current` [INFO] [stdout] --> src/jmcomica/export.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | let current = current.fetch_add(1, std::sync::atomic::Ordering::Relaxed) + 1; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> src/jmcomica/export.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let uuid = self.uuid.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> src/jmcomica/export.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | let uuid = self.uuid.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current` [INFO] [stdout] --> src/jmcomica/export.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | let current = current.fetch_add(1, std::sync::atomic::Ordering::Relaxed) + 1; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/jmcomica/mod.rs:305:10 [INFO] [stdout] | [INFO] [stdout] 305 | for (i, favorite_comic) in favorite_comics.into_iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current` [INFO] [stdout] --> src/jmcomica/mod.rs:346:14 [INFO] [stdout] | [INFO] [stdout] 346 | for (current, chapter_info) in chapter_infos.into_iter().enumerate() { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total` [INFO] [stdout] --> src/jmcomica/mod.rs:367:9 [INFO] [stdout] | [INFO] [stdout] 367 | let total = downloaded_comics.len() as i64; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_total` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current` [INFO] [stdout] --> src/jmcomica/mod.rs:373:13 [INFO] [stdout] | [INFO] [stdout] 373 | let current = (i + 1) as i64; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current` [INFO] [stdout] --> src/jmcomica/mod.rs:414:17 [INFO] [stdout] | [INFO] [stdout] 414 | let current = (i + 1) as i64; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SendPrivateMsg` is never constructed [INFO] [stdout] --> src/bot/action.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct SendPrivateMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SendPrivateMsgParams` is never constructed [INFO] [stdout] --> src/bot/action.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct SendPrivateMsgParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bot/action.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl SendPrivateMsg { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 81 | pub fn new(user_id: i64, message: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UploadGroupFile` is never constructed [INFO] [stdout] --> src/bot/action.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct UploadGroupFile { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UploadGroupFileParams` is never constructed [INFO] [stdout] --> src/bot/action.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct UploadGroupFileParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bot/action.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl UploadGroupFile { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 124 | pub fn new(group_id: i64, file_path: impl Into, name: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UploadPrivateFile` is never constructed [INFO] [stdout] --> src/bot/action.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub struct UploadPrivateFile { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UploadPrivateFileParams` is never constructed [INFO] [stdout] --> src/bot/action.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct UploadPrivateFileParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bot/action.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl UploadPrivateFile { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 168 | pub fn new(user_id: i64, file_path: impl Into, name: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UploadedFileInfo` is never constructed [INFO] [stdout] --> src/bot/action.rs:371:12 [INFO] [stdout] | [INFO] [stdout] 371 | pub struct UploadedFileInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TOKEN` is never used [INFO] [stdout] --> src/bot/client.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const TOKEN: &str = "GRy9YRuRFCdUosUo"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `WsSender` is never used [INFO] [stdout] --> src/bot/client.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | type WsSender = SplitSink>, Message>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `WsReceiver` is never used [INFO] [stdout] --> src/bot/client.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | type WsReceiver = SplitStream>>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BotHandle` is never constructed [INFO] [stdout] --> src/bot/client.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct BotHandle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BotInner` is never constructed [INFO] [stdout] --> src/bot/client.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct BotInner { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `connect`, `call`, `handle_response`, `next_packet`, and `send_group_msg` are never used [INFO] [stdout] --> src/bot/client.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 40 | impl BotHandle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 41 | /// Connect to NapCat and return a handle + the initial receiver. [INFO] [stdout] 42 | pub async fn connect(url: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub async fn call( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub async fn handle_response(&self, response: ActionResponse) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub async fn next_packet(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub async fn send_group_msg( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send_fire_and_forget`, `send_private_msg`, and `upload_group_file` are never used [INFO] [stdout] --> src/bot/dispatcher.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl ActionDispatcher { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn send_fire_and_forget(&self, action: A) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub async fn send_private_msg( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub async fn upload_group_file( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reconnect` is never used [INFO] [stdout] --> src/bot/reader.rs:84:18 [INFO] [stdout] | [INFO] [stdout] 44 | impl WsReader { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub async fn reconnect(&mut self, url: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_registered` is never used [INFO] [stdout] --> src/bot/registry.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ActionRegistry { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn is_registered(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message_id` is never read [INFO] [stdout] --> src/bot/response.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct SendMessageResponse { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 25 | pub message_id: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SendMessageResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UploadGroupFileResponse` is never constructed [INFO] [stdout] --> src/bot/response.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct UploadGroupFileResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message_id` is never read [INFO] [stdout] --> src/bot/response.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct SendForwardMsgResponse { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 70 | pub message_id: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SendForwardMsgResponse` 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 `config_service`, `action_registry`, `bot_uin`, and `bot_nickname` are never read [INFO] [stdout] --> src/context.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppContext { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 17 | /// Per-user config management. [INFO] [stdout] 18 | pub config_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub action_registry: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub bot_uin: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub bot_nickname: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nickname`, `card`, and `role` are never read [INFO] [stdout] --> src/event.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Sender { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub nickname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub card: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub role: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sender` 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 `message_type`, `group_name`, and `user_id` are never read [INFO] [stdout] --> src/event.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct GroupMessageEvent { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 25 | pub message_type: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub group_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 31 | [INFO] [stdout] 32 | pub user_id: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GroupMessageEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HeartbeatEvent` is never constructed [INFO] [stdout] --> src/event.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct HeartbeatEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `WsPacket` is never used [INFO] [stdout] --> src/event.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | pub enum WsPacket { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_config` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn get_config(ctx: JmContext) -> Config { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_config` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn save_config(ctx: JmContext, config: Config) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user_profile` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:99:14 [INFO] [stdout] | [INFO] [stdout] 99 | pub async fn get_user_profile(ctx: JmContext) -> CommandResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:110:14 [INFO] [stdout] | [INFO] [stdout] 110 | pub async fn search( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_favorite_folder` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:138:14 [INFO] [stdout] | [INFO] [stdout] 138 | pub async fn get_favorite_folder( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_weekly_info` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:157:14 [INFO] [stdout] | [INFO] [stdout] 157 | pub async fn get_weekly_info(ctx: JmContext) -> CommandResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_weekly` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:168:14 [INFO] [stdout] | [INFO] [stdout] 168 | pub async fn get_weekly( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_download_task` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn create_download_task(ctx: JmContext, comic: Comic, chapter_id: i64) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resume_download_task` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:203:8 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn resume_download_task(ctx: JmContext, chapter_id: i64) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cancel_download_task` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn cancel_download_task(ctx: JmContext, chapter_id: i64) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `download_all_favorites` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:262:14 [INFO] [stdout] | [INFO] [stdout] 262 | pub async fn download_all_favorites(ctx: JmContext) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_downloaded_comics` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:360:14 [INFO] [stdout] | [INFO] [stdout] 360 | pub async fn update_downloaded_comics(ctx: JmContext) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_path_in_file_manager` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:428:8 [INFO] [stdout] | [INFO] [stdout] 428 | pub fn show_path_in_file_manager(path: &str) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sync_favorite_folder` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:433:14 [INFO] [stdout] | [INFO] [stdout] 433 | pub async fn sync_favorite_folder(ctx: JmContext) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_downloaded_comics` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:453:8 [INFO] [stdout] | [INFO] [stdout] 453 | pub fn get_downloaded_comics(ctx: JmContext) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_cbz` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:564:8 [INFO] [stdout] | [INFO] [stdout] 564 | pub fn export_cbz(ctx: JmContext, comic: Comic) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_logs_dir_size` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:581:8 [INFO] [stdout] | [INFO] [stdout] 581 | pub fn get_logs_dir_size(ctx: JmContext) -> CommandResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_synced_comic` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:597:8 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn get_synced_comic(ctx: JmContext, mut comic: Comic) -> CommandResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_synced_comic_in_favorite` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:612:8 [INFO] [stdout] | [INFO] [stdout] 612 | pub fn get_synced_comic_in_favorite( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_synced_comic_in_search` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:629:8 [INFO] [stdout] | [INFO] [stdout] 629 | pub fn get_synced_comic_in_search( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_synced_comic_in_weekly` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:646:8 [INFO] [stdout] | [INFO] [stdout] 646 | pub fn get_synced_comic_in_weekly( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `save`, and `save_to_dir` are never used [INFO] [stdout] --> src/jmcomica/config.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Config { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 38 | pub fn new(ctx: &JmContext) -> anyhow::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn save(&self, ctx: &JmContext) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn save_to_dir(&self, dir: &std::path::Path) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `resource_dir` is never read [INFO] [stdout] --> src/jmcomica/context.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub resource_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Context` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pause_download_task`, `resume_download_task`, and `cancel_download_task` are never used [INFO] [stdout] --> src/jmcomica/download_manager.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl DownloadManager { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn pause_download_task(&self, chapter_id: i64) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn resume_download_task(&self, chapter_id: i64) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn cancel_download_task(&self, chapter_id: i64) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DownloadSpeedEvent` is never constructed [INFO] [stdout] --> src/jmcomica/events.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct DownloadSpeedEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DownloadSleepingEvent` is never constructed [INFO] [stdout] --> src/jmcomica/events.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct DownloadSleepingEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DownloadTaskEvent` is never used [INFO] [stdout] --> src/jmcomica/events.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum DownloadTaskEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DownloadAllFavoritesEvent` is never used [INFO] [stdout] --> src/jmcomica/events.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | pub enum DownloadAllFavoritesEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UpdateDownloadedComicsEvent` is never used [INFO] [stdout] --> src/jmcomica/events.rs:72:10 [INFO] [stdout] | [INFO] [stdout] 72 | pub enum UpdateDownloadedComicsEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExportCbzEvent` is never used [INFO] [stdout] --> src/jmcomica/events.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | pub enum ExportCbzEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExportPdfEvent` is never used [INFO] [stdout] --> src/jmcomica/events.rs:119:10 [INFO] [stdout] | [INFO] [stdout] 119 | pub enum ExportPdfEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogEvent` is never constructed [INFO] [stdout] --> src/jmcomica/events.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct LogEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Cbz` is never constructed [INFO] [stdout] --> src/jmcomica/export.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum ExportArchive { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 26 | Cbz, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CbzErrorEventGuard` is never constructed [INFO] [stdout] --> src/jmcomica/export.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct CbzErrorEventGuard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cbz` is never used [INFO] [stdout] --> src/jmcomica/export.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn cbz(ctx: &JmContext, comic: &Comic) -> anyhow::Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_cover` is never used [INFO] [stdout] --> src/jmcomica/export.rs:177:4 [INFO] [stdout] | [INFO] [stdout] 177 | fn copy_cover(comic: &Comic, chapter_export_dir: &Path) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ctx` is never read [INFO] [stdout] --> src/jmcomica/export.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 189 | struct PdfCreateErrorEventGuard { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] 190 | uuid: String, [INFO] [stdout] 191 | ctx: JmContext, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ctx` is never read [INFO] [stdout] --> src/jmcomica/export.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 205 | struct PdfMergeErrorEventGuard { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] 206 | uuid: String, [INFO] [stdout] 207 | ctx: JmContext, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_img` is never used [INFO] [stdout] --> src/jmcomica/extensions.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait PathIsImg { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 30 | /// 判断路径是否为图片(jpg/png/webp/gif) [INFO] [stdout] 31 | fn is_img(&self) -> bool; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ContextExt` is never used [INFO] [stdout] --> src/jmcomica/extensions.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | pub trait ContextExt { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `GetUserProfile`, `Search`, `GetFavoriteFolder`, `GetWeeklyInfo`, and `GetWeekly` are never constructed [INFO] [stdout] --> src/jmcomica/jm_client.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 37 | enum ApiPath { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 38 | Login, [INFO] [stdout] 39 | GetUserProfile, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 40 | Search, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | GetFavoriteFolder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | GetWeeklyInfo, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 46 | GetWeekly, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiPath` 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 `api_jar` is never read [INFO] [stdout] --> src/jmcomica/jm_client.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct JmClient { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 70 | api_jar: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JmClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/jmcomica/jm_client.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 74 | impl JmClient { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn reload_client(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub async fn get_user_profile(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub async fn search( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 385 | pub async fn get_favorite_folder( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 430 | pub async fn get_weekly_info(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 461 | pub async fn get_weekly( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 500 | pub async fn toggle_favorite_comic(&self, aid: i64) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogEventWriter` is never constructed [INFO] [stdout] --> src/jmcomica/logger.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct LogEventWriter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `disable_file_logger` is never used [INFO] [stdout] --> src/jmcomica/logger.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn disable_file_logger() -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CategoryRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct CategoryRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CategorySubRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/mod.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct CategorySubRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetFavoriteRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_favorite_resp_data.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct GetFavoriteRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInFavoriteRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_favorite_resp_data.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ComicInFavoriteRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FavoriteFolderRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_favorite_resp_data.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct FavoriteFolderRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWeeklyInfoRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_weekly_info_resp_data.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct GetWeeklyInfoRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CategoryInWeeklyInfo` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_weekly_info_resp_data.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct CategoryInWeeklyInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WeeklyType` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_weekly_info_resp_data.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct WeeklyType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWeeklyRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_weekly_resp_data.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct GetWeeklyRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInWeeklyRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_weekly_resp_data.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ComicInWeeklyRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RedirectRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/search_resp.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RedirectRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SearchResp` is never used [INFO] [stdout] --> src/jmcomica/responses/search_resp.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum SearchResp { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/search_resp.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct SearchRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInSearchRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/search_resp.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct ComicInSearchRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToggleFavoriteRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/toggle_favorite_resp_data.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ToggleFavoriteRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ToggleType` is never used [INFO] [stdout] --> src/jmcomica/responses/toggle_favorite_resp_data.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum ToggleType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> src/jmcomica/types/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CategorySub` is never constructed [INFO] [stdout] --> src/jmcomica/types/mod.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct CategorySub { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_metadata` is never used [INFO] [stdout] --> src/jmcomica/types/comic.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Comic { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn from_metadata(metadata_path: &Path) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInfo` is never constructed [INFO] [stdout] --> src/jmcomica/types/comic_info.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ComicInfo { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/jmcomica/types/comic_info.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl ComicInfo { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 52 | #[allow(clippy::cast_possible_wrap)] [INFO] [stdout] 53 | pub fn from(comic: &Comic, chapter_info: &ChapterInfo) -> ComicInfo { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FavoriteSort` is never used [INFO] [stdout] --> src/jmcomica/types/favorite_sort.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum FavoriteSort { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/jmcomica/types/favorite_sort.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl FavoriteSort { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 10 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetFavoriteResult` is never constructed [INFO] [stdout] --> src/jmcomica/types/get_favorite_result.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct GetFavoriteResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_resp_data` is never used [INFO] [stdout] --> src/jmcomica/types/get_favorite_result.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl GetFavoriteResult { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 25 | pub fn from_resp_data( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInFavorite` is never constructed [INFO] [stdout] --> src/jmcomica/types/get_favorite_result.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct ComicInFavorite { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_resp_data` and `update_fields` are never used [INFO] [stdout] --> src/jmcomica/types/get_favorite_result.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl ComicInFavorite { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 68 | pub fn from_resp_data( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn update_fields(&mut self, id_to_dir_map: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWeeklyResult` is never constructed [INFO] [stdout] --> src/jmcomica/types/get_weekly_result.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct GetWeeklyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_resp_data` is never used [INFO] [stdout] --> src/jmcomica/types/get_weekly_result.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl GetWeeklyResult { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 20 | pub fn from_resp_data(ctx: &JmContext, resp_data: GetWeeklyRespData) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInWeekly` is never constructed [INFO] [stdout] --> src/jmcomica/types/get_weekly_result.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct ComicInWeekly { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_resp_data` and `update_fields` are never used [INFO] [stdout] --> src/jmcomica/types/get_weekly_result.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl ComicInWeekly { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 58 | pub fn from_resp_data( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn update_fields(&mut self, id_to_dir_map: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LogLevel` is never used [INFO] [stdout] --> src/jmcomica/types/log_level.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum LogLevel { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SearchResultVariant` is never used [INFO] [stdout] --> src/jmcomica/types/search_result.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum SearchResultVariant { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_search_resp` is never used [INFO] [stdout] --> src/jmcomica/types/search_result.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl SearchResultVariant { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 25 | pub fn from_search_resp( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResult` is never constructed [INFO] [stdout] --> src/jmcomica/types/search_result.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct SearchResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_resp_data` is never used [INFO] [stdout] --> src/jmcomica/types/search_result.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl SearchResult { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 51 | pub fn from_resp_data( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInSearch` is never constructed [INFO] [stdout] --> src/jmcomica/types/search_result.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct ComicInSearch { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_resp_data` and `update_fields` are never used [INFO] [stdout] --> src/jmcomica/types/search_result.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl ComicInSearch { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 91 | pub fn from_resp_data( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn update_fields(&mut self, id_to_dir_map: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SearchSort` is never used [INFO] [stdout] --> src/jmcomica/types/search_sort.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum SearchSort { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/jmcomica/types/search_sort.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl SearchSort { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 12 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_path_in_file_manager` is never used [INFO] [stdout] --> src/jmcomica/utils.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn show_path_in_file_manager(path: &str) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw_message` is never read [INFO] [stdout] --> src/router.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct CommandContext { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | pub raw_message: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommandContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserConfig` is never constructed [INFO] [stdout] --> src/services/config_service.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct UserConfig { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/services/config_service.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl UserConfig { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 23 | pub fn new(qq_number: i64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data_dir` is never read [INFO] [stdout] --> src/services/config_service.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct ConfigService { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 36 | data_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConfigService` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `config_path`, `load_user_config`, `save_user_config`, and `is_logged_in` are never used [INFO] [stdout] --> src/services/config_service.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl ConfigService { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | fn config_path(&self, qq_number: i64) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub async fn load_user_config(&self, qq_number: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub async fn save_user_config(&self, config: &UserConfig) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn is_logged_in(&self, qq_number: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_downloaded_comics` is never used [INFO] [stdout] --> src/services/jm_service.rs:154:18 [INFO] [stdout] | [INFO] [stdout] 22 | impl JmService { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 154 | pub async fn get_downloaded_comics(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_logged_in` and `invalidate` are never used [INFO] [stdout] --> src/session/manager.rs:133:18 [INFO] [stdout] | [INFO] [stdout] 50 | impl UserManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | pub async fn is_logged_in(&self, qq_number: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub async fn invalidate(&self, qq_number: i64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused dependency `axum` [INFO] [stderr] --> Cargo.toml:10:15 [INFO] [stderr] | [INFO] [stderr] 10 | [dependencies.axum] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `axum` [INFO] [stderr] warning: `comineko` (manifest) generated 1 warning [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 27s [INFO] running `Command { std: "docker" "inspect" "fce7b216b08c684837edd8b5d7700da4a34289a789d4fc70d5bf66982865d149", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "fce7b216b08c684837edd8b5d7700da4a34289a789d4fc70d5bf66982865d149" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling comineko v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/bot/client.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | use tracing::{debug, info, warn}; [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: `serde::Serialize` [INFO] [stdout] --> src/bot/client.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bot/reader.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bot/writer.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> src/bot/writer.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use futures_util::{SinkExt, StreamExt, stream::SplitSink}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/jmcomica/types/comic_info.rs:7:81 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize, YaSerialize, YaDeserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the derive macro `YaDeserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/jmcomica/download_manager.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | let speed = format!("{mega_byte_per_sec:.2}MB/s"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> src/jmcomica/export.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let uuid = self.uuid.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/jmcomica/export.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let ctx = self.ctx.clone(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current` [INFO] [stdout] --> src/jmcomica/export.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | let current = current.fetch_add(1, std::sync::atomic::Ordering::Relaxed) + 1; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> src/jmcomica/export.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let uuid = self.uuid.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> src/jmcomica/export.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | let uuid = self.uuid.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current` [INFO] [stdout] --> src/jmcomica/export.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | let current = current.fetch_add(1, std::sync::atomic::Ordering::Relaxed) + 1; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/jmcomica/mod.rs:305:10 [INFO] [stdout] | [INFO] [stdout] 305 | for (i, favorite_comic) in favorite_comics.into_iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current` [INFO] [stdout] --> src/jmcomica/mod.rs:346:14 [INFO] [stdout] | [INFO] [stdout] 346 | for (current, chapter_info) in chapter_infos.into_iter().enumerate() { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total` [INFO] [stdout] --> src/jmcomica/mod.rs:367:9 [INFO] [stdout] | [INFO] [stdout] 367 | let total = downloaded_comics.len() as i64; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_total` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current` [INFO] [stdout] --> src/jmcomica/mod.rs:373:13 [INFO] [stdout] | [INFO] [stdout] 373 | let current = (i + 1) as i64; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current` [INFO] [stdout] --> src/jmcomica/mod.rs:414:17 [INFO] [stdout] | [INFO] [stdout] 414 | let current = (i + 1) as i64; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SendPrivateMsg` is never constructed [INFO] [stdout] --> src/bot/action.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct SendPrivateMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SendPrivateMsgParams` is never constructed [INFO] [stdout] --> src/bot/action.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct SendPrivateMsgParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bot/action.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl SendPrivateMsg { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 81 | pub fn new(user_id: i64, message: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UploadGroupFile` is never constructed [INFO] [stdout] --> src/bot/action.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct UploadGroupFile { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UploadGroupFileParams` is never constructed [INFO] [stdout] --> src/bot/action.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct UploadGroupFileParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bot/action.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl UploadGroupFile { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 124 | pub fn new(group_id: i64, file_path: impl Into, name: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UploadPrivateFile` is never constructed [INFO] [stdout] --> src/bot/action.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub struct UploadPrivateFile { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UploadPrivateFileParams` is never constructed [INFO] [stdout] --> src/bot/action.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct UploadPrivateFileParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bot/action.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl UploadPrivateFile { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 168 | pub fn new(user_id: i64, file_path: impl Into, name: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UploadedFileInfo` is never constructed [INFO] [stdout] --> src/bot/action.rs:371:12 [INFO] [stdout] | [INFO] [stdout] 371 | pub struct UploadedFileInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TOKEN` is never used [INFO] [stdout] --> src/bot/client.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const TOKEN: &str = "GRy9YRuRFCdUosUo"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `WsSender` is never used [INFO] [stdout] --> src/bot/client.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | type WsSender = SplitSink>, Message>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `WsReceiver` is never used [INFO] [stdout] --> src/bot/client.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | type WsReceiver = SplitStream>>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BotHandle` is never constructed [INFO] [stdout] --> src/bot/client.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct BotHandle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BotInner` is never constructed [INFO] [stdout] --> src/bot/client.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct BotInner { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `connect`, `call`, `handle_response`, `next_packet`, and `send_group_msg` are never used [INFO] [stdout] --> src/bot/client.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 40 | impl BotHandle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 41 | /// Connect to NapCat and return a handle + the initial receiver. [INFO] [stdout] 42 | pub async fn connect(url: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub async fn call( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub async fn handle_response(&self, response: ActionResponse) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub async fn next_packet(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub async fn send_group_msg( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send_fire_and_forget`, `send_private_msg`, and `upload_group_file` are never used [INFO] [stdout] --> src/bot/dispatcher.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl ActionDispatcher { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn send_fire_and_forget(&self, action: A) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub async fn send_private_msg( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub async fn upload_group_file( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reconnect` is never used [INFO] [stdout] --> src/bot/reader.rs:84:18 [INFO] [stdout] | [INFO] [stdout] 44 | impl WsReader { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub async fn reconnect(&mut self, url: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_registered` is never used [INFO] [stdout] --> src/bot/registry.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ActionRegistry { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn is_registered(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message_id` is never read [INFO] [stdout] --> src/bot/response.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct SendMessageResponse { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 25 | pub message_id: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SendMessageResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UploadGroupFileResponse` is never constructed [INFO] [stdout] --> src/bot/response.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct UploadGroupFileResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message_id` is never read [INFO] [stdout] --> src/bot/response.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct SendForwardMsgResponse { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 70 | pub message_id: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SendForwardMsgResponse` 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 `config_service`, `action_registry`, `bot_uin`, and `bot_nickname` are never read [INFO] [stdout] --> src/context.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppContext { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 17 | /// Per-user config management. [INFO] [stdout] 18 | pub config_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub action_registry: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub bot_uin: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub bot_nickname: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nickname`, `card`, and `role` are never read [INFO] [stdout] --> src/event.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Sender { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub nickname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub card: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub role: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sender` 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 `message_type`, `group_name`, and `user_id` are never read [INFO] [stdout] --> src/event.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct GroupMessageEvent { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 25 | pub message_type: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub group_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 31 | [INFO] [stdout] 32 | pub user_id: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GroupMessageEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HeartbeatEvent` is never constructed [INFO] [stdout] --> src/event.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct HeartbeatEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `WsPacket` is never used [INFO] [stdout] --> src/event.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | pub enum WsPacket { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_config` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn get_config(ctx: JmContext) -> Config { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_config` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn save_config(ctx: JmContext, config: Config) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user_profile` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:99:14 [INFO] [stdout] | [INFO] [stdout] 99 | pub async fn get_user_profile(ctx: JmContext) -> CommandResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:110:14 [INFO] [stdout] | [INFO] [stdout] 110 | pub async fn search( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_favorite_folder` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:138:14 [INFO] [stdout] | [INFO] [stdout] 138 | pub async fn get_favorite_folder( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_weekly_info` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:157:14 [INFO] [stdout] | [INFO] [stdout] 157 | pub async fn get_weekly_info(ctx: JmContext) -> CommandResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_weekly` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:168:14 [INFO] [stdout] | [INFO] [stdout] 168 | pub async fn get_weekly( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_download_task` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn create_download_task(ctx: JmContext, comic: Comic, chapter_id: i64) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resume_download_task` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:203:8 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn resume_download_task(ctx: JmContext, chapter_id: i64) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cancel_download_task` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn cancel_download_task(ctx: JmContext, chapter_id: i64) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `download_all_favorites` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:262:14 [INFO] [stdout] | [INFO] [stdout] 262 | pub async fn download_all_favorites(ctx: JmContext) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_downloaded_comics` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:360:14 [INFO] [stdout] | [INFO] [stdout] 360 | pub async fn update_downloaded_comics(ctx: JmContext) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_path_in_file_manager` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:428:8 [INFO] [stdout] | [INFO] [stdout] 428 | pub fn show_path_in_file_manager(path: &str) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sync_favorite_folder` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:433:14 [INFO] [stdout] | [INFO] [stdout] 433 | pub async fn sync_favorite_folder(ctx: JmContext) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_downloaded_comics` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:453:8 [INFO] [stdout] | [INFO] [stdout] 453 | pub fn get_downloaded_comics(ctx: JmContext) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_cbz` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:564:8 [INFO] [stdout] | [INFO] [stdout] 564 | pub fn export_cbz(ctx: JmContext, comic: Comic) -> CommandResult<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_logs_dir_size` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:581:8 [INFO] [stdout] | [INFO] [stdout] 581 | pub fn get_logs_dir_size(ctx: JmContext) -> CommandResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_synced_comic` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:597:8 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn get_synced_comic(ctx: JmContext, mut comic: Comic) -> CommandResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_synced_comic_in_favorite` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:612:8 [INFO] [stdout] | [INFO] [stdout] 612 | pub fn get_synced_comic_in_favorite( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_synced_comic_in_search` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:629:8 [INFO] [stdout] | [INFO] [stdout] 629 | pub fn get_synced_comic_in_search( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_synced_comic_in_weekly` is never used [INFO] [stdout] --> src/jmcomica/mod.rs:646:8 [INFO] [stdout] | [INFO] [stdout] 646 | pub fn get_synced_comic_in_weekly( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `save`, and `save_to_dir` are never used [INFO] [stdout] --> src/jmcomica/config.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Config { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 38 | pub fn new(ctx: &JmContext) -> anyhow::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn save(&self, ctx: &JmContext) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn save_to_dir(&self, dir: &std::path::Path) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `resource_dir` is never read [INFO] [stdout] --> src/jmcomica/context.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub resource_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Context` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pause_download_task`, `resume_download_task`, and `cancel_download_task` are never used [INFO] [stdout] --> src/jmcomica/download_manager.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl DownloadManager { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn pause_download_task(&self, chapter_id: i64) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn resume_download_task(&self, chapter_id: i64) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn cancel_download_task(&self, chapter_id: i64) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DownloadSpeedEvent` is never constructed [INFO] [stdout] --> src/jmcomica/events.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct DownloadSpeedEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DownloadSleepingEvent` is never constructed [INFO] [stdout] --> src/jmcomica/events.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct DownloadSleepingEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DownloadTaskEvent` is never used [INFO] [stdout] --> src/jmcomica/events.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum DownloadTaskEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DownloadAllFavoritesEvent` is never used [INFO] [stdout] --> src/jmcomica/events.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | pub enum DownloadAllFavoritesEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UpdateDownloadedComicsEvent` is never used [INFO] [stdout] --> src/jmcomica/events.rs:72:10 [INFO] [stdout] | [INFO] [stdout] 72 | pub enum UpdateDownloadedComicsEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExportCbzEvent` is never used [INFO] [stdout] --> src/jmcomica/events.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | pub enum ExportCbzEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExportPdfEvent` is never used [INFO] [stdout] --> src/jmcomica/events.rs:119:10 [INFO] [stdout] | [INFO] [stdout] 119 | pub enum ExportPdfEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogEvent` is never constructed [INFO] [stdout] --> src/jmcomica/events.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct LogEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Cbz` is never constructed [INFO] [stdout] --> src/jmcomica/export.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum ExportArchive { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 26 | Cbz, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CbzErrorEventGuard` is never constructed [INFO] [stdout] --> src/jmcomica/export.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct CbzErrorEventGuard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cbz` is never used [INFO] [stdout] --> src/jmcomica/export.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn cbz(ctx: &JmContext, comic: &Comic) -> anyhow::Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_cover` is never used [INFO] [stdout] --> src/jmcomica/export.rs:177:4 [INFO] [stdout] | [INFO] [stdout] 177 | fn copy_cover(comic: &Comic, chapter_export_dir: &Path) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ctx` is never read [INFO] [stdout] --> src/jmcomica/export.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 189 | struct PdfCreateErrorEventGuard { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] 190 | uuid: String, [INFO] [stdout] 191 | ctx: JmContext, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ctx` is never read [INFO] [stdout] --> src/jmcomica/export.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 205 | struct PdfMergeErrorEventGuard { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] 206 | uuid: String, [INFO] [stdout] 207 | ctx: JmContext, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_img` is never used [INFO] [stdout] --> src/jmcomica/extensions.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait PathIsImg { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 30 | /// 判断路径是否为图片(jpg/png/webp/gif) [INFO] [stdout] 31 | fn is_img(&self) -> bool; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ContextExt` is never used [INFO] [stdout] --> src/jmcomica/extensions.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | pub trait ContextExt { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `GetUserProfile`, `Search`, `GetFavoriteFolder`, `GetWeeklyInfo`, and `GetWeekly` are never constructed [INFO] [stdout] --> src/jmcomica/jm_client.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 37 | enum ApiPath { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 38 | Login, [INFO] [stdout] 39 | GetUserProfile, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 40 | Search, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | GetFavoriteFolder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | GetWeeklyInfo, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 46 | GetWeekly, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiPath` 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 `api_jar` is never read [INFO] [stdout] --> src/jmcomica/jm_client.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct JmClient { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 70 | api_jar: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JmClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/jmcomica/jm_client.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 74 | impl JmClient { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn reload_client(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub async fn get_user_profile(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub async fn search( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 385 | pub async fn get_favorite_folder( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 430 | pub async fn get_weekly_info(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 461 | pub async fn get_weekly( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 500 | pub async fn toggle_favorite_comic(&self, aid: i64) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogEventWriter` is never constructed [INFO] [stdout] --> src/jmcomica/logger.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct LogEventWriter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `disable_file_logger` is never used [INFO] [stdout] --> src/jmcomica/logger.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn disable_file_logger() -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CategoryRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct CategoryRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CategorySubRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/mod.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct CategorySubRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetFavoriteRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_favorite_resp_data.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct GetFavoriteRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInFavoriteRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_favorite_resp_data.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ComicInFavoriteRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FavoriteFolderRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_favorite_resp_data.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct FavoriteFolderRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWeeklyInfoRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_weekly_info_resp_data.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct GetWeeklyInfoRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CategoryInWeeklyInfo` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_weekly_info_resp_data.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct CategoryInWeeklyInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WeeklyType` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_weekly_info_resp_data.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct WeeklyType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWeeklyRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_weekly_resp_data.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct GetWeeklyRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInWeeklyRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/get_weekly_resp_data.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ComicInWeeklyRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RedirectRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/search_resp.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RedirectRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SearchResp` is never used [INFO] [stdout] --> src/jmcomica/responses/search_resp.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum SearchResp { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/search_resp.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct SearchRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInSearchRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/search_resp.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct ComicInSearchRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToggleFavoriteRespData` is never constructed [INFO] [stdout] --> src/jmcomica/responses/toggle_favorite_resp_data.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ToggleFavoriteRespData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ToggleType` is never used [INFO] [stdout] --> src/jmcomica/responses/toggle_favorite_resp_data.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum ToggleType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> src/jmcomica/types/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CategorySub` is never constructed [INFO] [stdout] --> src/jmcomica/types/mod.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct CategorySub { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_metadata` is never used [INFO] [stdout] --> src/jmcomica/types/comic.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Comic { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn from_metadata(metadata_path: &Path) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInfo` is never constructed [INFO] [stdout] --> src/jmcomica/types/comic_info.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ComicInfo { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/jmcomica/types/comic_info.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl ComicInfo { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 52 | #[allow(clippy::cast_possible_wrap)] [INFO] [stdout] 53 | pub fn from(comic: &Comic, chapter_info: &ChapterInfo) -> ComicInfo { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FavoriteSort` is never used [INFO] [stdout] --> src/jmcomica/types/favorite_sort.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum FavoriteSort { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/jmcomica/types/favorite_sort.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl FavoriteSort { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 10 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetFavoriteResult` is never constructed [INFO] [stdout] --> src/jmcomica/types/get_favorite_result.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct GetFavoriteResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_resp_data` is never used [INFO] [stdout] --> src/jmcomica/types/get_favorite_result.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl GetFavoriteResult { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 25 | pub fn from_resp_data( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInFavorite` is never constructed [INFO] [stdout] --> src/jmcomica/types/get_favorite_result.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct ComicInFavorite { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_resp_data` and `update_fields` are never used [INFO] [stdout] --> src/jmcomica/types/get_favorite_result.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl ComicInFavorite { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 68 | pub fn from_resp_data( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn update_fields(&mut self, id_to_dir_map: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWeeklyResult` is never constructed [INFO] [stdout] --> src/jmcomica/types/get_weekly_result.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct GetWeeklyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_resp_data` is never used [INFO] [stdout] --> src/jmcomica/types/get_weekly_result.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl GetWeeklyResult { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 20 | pub fn from_resp_data(ctx: &JmContext, resp_data: GetWeeklyRespData) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInWeekly` is never constructed [INFO] [stdout] --> src/jmcomica/types/get_weekly_result.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct ComicInWeekly { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_resp_data` and `update_fields` are never used [INFO] [stdout] --> src/jmcomica/types/get_weekly_result.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl ComicInWeekly { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 58 | pub fn from_resp_data( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn update_fields(&mut self, id_to_dir_map: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LogLevel` is never used [INFO] [stdout] --> src/jmcomica/types/log_level.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum LogLevel { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SearchResultVariant` is never used [INFO] [stdout] --> src/jmcomica/types/search_result.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum SearchResultVariant { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_search_resp` is never used [INFO] [stdout] --> src/jmcomica/types/search_result.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl SearchResultVariant { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 25 | pub fn from_search_resp( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResult` is never constructed [INFO] [stdout] --> src/jmcomica/types/search_result.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct SearchResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_resp_data` is never used [INFO] [stdout] --> src/jmcomica/types/search_result.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl SearchResult { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 51 | pub fn from_resp_data( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComicInSearch` is never constructed [INFO] [stdout] --> src/jmcomica/types/search_result.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct ComicInSearch { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_resp_data` and `update_fields` are never used [INFO] [stdout] --> src/jmcomica/types/search_result.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl ComicInSearch { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 91 | pub fn from_resp_data( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn update_fields(&mut self, id_to_dir_map: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SearchSort` is never used [INFO] [stdout] --> src/jmcomica/types/search_sort.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum SearchSort { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/jmcomica/types/search_sort.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl SearchSort { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 12 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_path_in_file_manager` is never used [INFO] [stdout] --> src/jmcomica/utils.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn show_path_in_file_manager(path: &str) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw_message` is never read [INFO] [stdout] --> src/router.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct CommandContext { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | pub raw_message: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommandContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserConfig` is never constructed [INFO] [stdout] --> src/services/config_service.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct UserConfig { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/services/config_service.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl UserConfig { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 23 | pub fn new(qq_number: i64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data_dir` is never read [INFO] [stdout] --> src/services/config_service.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct ConfigService { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 36 | data_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConfigService` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `config_path`, `load_user_config`, `save_user_config`, and `is_logged_in` are never used [INFO] [stdout] --> src/services/config_service.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl ConfigService { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | fn config_path(&self, qq_number: i64) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub async fn load_user_config(&self, qq_number: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub async fn save_user_config(&self, config: &UserConfig) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn is_logged_in(&self, qq_number: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_downloaded_comics` is never used [INFO] [stdout] --> src/services/jm_service.rs:154:18 [INFO] [stdout] | [INFO] [stdout] 22 | impl JmService { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 154 | pub async fn get_downloaded_comics(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_logged_in` and `invalidate` are never used [INFO] [stdout] --> src/session/manager.rs:133:18 [INFO] [stdout] | [INFO] [stdout] 50 | impl UserManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | pub async fn is_logged_in(&self, qq_number: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub async fn invalidate(&self, qq_number: i64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused dependency `axum` [INFO] [stderr] --> Cargo.toml:10:15 [INFO] [stderr] | [INFO] [stderr] 10 | [dependencies.axum] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `axum` [INFO] [stderr] warning: `comineko` (manifest) generated 1 warning [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 9.05s [INFO] running `Command { std: "docker" "inspect" "fce7b216b08c684837edd8b5d7700da4a34289a789d4fc70d5bf66982865d149", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "fce7b216b08c684837edd8b5d7700da4a34289a789d4fc70d5bf66982865d149" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `info` [INFO] [stderr] --> src/bot/client.rs:12:22 [INFO] [stderr] | [INFO] [stderr] 12 | use tracing::{debug, info, warn}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde::Serialize` [INFO] [stderr] --> src/bot/client.rs:71:13 [INFO] [stderr] | [INFO] [stderr] 71 | use serde::Serialize; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Context` [INFO] [stderr] --> src/bot/reader.rs:5:14 [INFO] [stderr] | [INFO] [stderr] 5 | use anyhow::{Context, Result}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Context` [INFO] [stderr] --> src/bot/writer.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | use anyhow::{Context, Result}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `StreamExt` [INFO] [stderr] --> src/bot/writer.rs:4:29 [INFO] [stderr] | [INFO] [stderr] 4 | use futures_util::{SinkExt, StreamExt, stream::SplitSink}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable call [INFO] [stderr] --> src/jmcomica/types/comic_info.rs:7:81 [INFO] [stderr] | [INFO] [stderr] 7 | #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize, YaSerialize, YaDeserialize)] [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | unreachable call [INFO] [stderr] | any code following this expression is unreachable [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] = note: this warning originates in the derive macro `YaDeserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `speed` [INFO] [stderr] --> src/jmcomica/download_manager.rs:129:17 [INFO] [stderr] | [INFO] [stderr] 129 | let speed = format!("{mega_byte_per_sec:.2}MB/s"); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `uuid` [INFO] [stderr] --> src/jmcomica/export.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | let uuid = self.uuid.clone(); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/jmcomica/export.rs:52:13 [INFO] [stderr] | [INFO] [stderr] 52 | let ctx = self.ctx.clone(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `current` [INFO] [stderr] --> src/jmcomica/export.rs:168:13 [INFO] [stderr] | [INFO] [stderr] 168 | let current = current.fetch_add(1, std::sync::atomic::Ordering::Relaxed) + 1; [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `uuid` [INFO] [stderr] --> src/jmcomica/export.rs:201:13 [INFO] [stderr] | [INFO] [stderr] 201 | let uuid = self.uuid.clone(); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `uuid` [INFO] [stderr] --> src/jmcomica/export.rs:217:13 [INFO] [stderr] | [INFO] [stderr] 217 | let uuid = self.uuid.clone(); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `current` [INFO] [stderr] --> src/jmcomica/export.rs:276:13 [INFO] [stderr] | [INFO] [stderr] 276 | let current = current.fetch_add(1, std::sync::atomic::Ordering::Relaxed) + 1; [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/jmcomica/mod.rs:305:10 [INFO] [stderr] | [INFO] [stderr] 305 | for (i, favorite_comic) in favorite_comics.into_iter().enumerate() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `current` [INFO] [stderr] --> src/jmcomica/mod.rs:346:14 [INFO] [stderr] | [INFO] [stderr] 346 | for (current, chapter_info) in chapter_infos.into_iter().enumerate() { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `total` [INFO] [stderr] --> src/jmcomica/mod.rs:367:9 [INFO] [stderr] | [INFO] [stderr] 367 | let total = downloaded_comics.len() as i64; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_total` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `current` [INFO] [stderr] --> src/jmcomica/mod.rs:373:13 [INFO] [stderr] | [INFO] [stderr] 373 | let current = (i + 1) as i64; [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `current` [INFO] [stderr] --> src/jmcomica/mod.rs:414:17 [INFO] [stderr] | [INFO] [stderr] 414 | let current = (i + 1) as i64; [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stderr] [INFO] [stderr] warning: struct `SendPrivateMsg` is never constructed [INFO] [stderr] --> src/bot/action.rs:57:12 [INFO] [stderr] | [INFO] [stderr] 57 | pub struct SendPrivateMsg { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `SendPrivateMsgParams` is never constructed [INFO] [stderr] --> src/bot/action.rs:66:12 [INFO] [stderr] | [INFO] [stderr] 66 | pub struct SendPrivateMsgParams { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/bot/action.rs:81:12 [INFO] [stderr] | [INFO] [stderr] 80 | impl SendPrivateMsg { [INFO] [stderr] | ------------------- associated function in this implementation [INFO] [stderr] 81 | pub fn new(user_id: i64, message: impl Into) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `UploadGroupFile` is never constructed [INFO] [stderr] --> src/bot/action.rs:96:12 [INFO] [stderr] | [INFO] [stderr] 96 | pub struct UploadGroupFile { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `UploadGroupFileParams` is never constructed [INFO] [stderr] --> src/bot/action.rs:105:12 [INFO] [stderr] | [INFO] [stderr] 105 | pub struct UploadGroupFileParams { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/bot/action.rs:124:12 [INFO] [stderr] | [INFO] [stderr] 123 | impl UploadGroupFile { [INFO] [stderr] | -------------------- associated function in this implementation [INFO] [stderr] 124 | pub fn new(group_id: i64, file_path: impl Into, name: impl Into) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `UploadPrivateFile` is never constructed [INFO] [stderr] --> src/bot/action.rs:140:12 [INFO] [stderr] | [INFO] [stderr] 140 | pub struct UploadPrivateFile { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `UploadPrivateFileParams` is never constructed [INFO] [stderr] --> src/bot/action.rs:149:12 [INFO] [stderr] | [INFO] [stderr] 149 | pub struct UploadPrivateFileParams { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/bot/action.rs:168:12 [INFO] [stderr] | [INFO] [stderr] 167 | impl UploadPrivateFile { [INFO] [stderr] | ---------------------- associated function in this implementation [INFO] [stderr] 168 | pub fn new(user_id: i64, file_path: impl Into, name: impl Into) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `UploadedFileInfo` is never constructed [INFO] [stderr] --> src/bot/action.rs:371:12 [INFO] [stderr] | [INFO] [stderr] 371 | pub struct UploadedFileInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `TOKEN` is never used [INFO] [stderr] --> src/bot/client.rs:18:7 [INFO] [stderr] | [INFO] [stderr] 18 | const TOKEN: &str = "GRy9YRuRFCdUosUo"; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `WsSender` is never used [INFO] [stderr] --> src/bot/client.rs:20:6 [INFO] [stderr] | [INFO] [stderr] 20 | type WsSender = SplitSink>, Message>; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `WsReceiver` is never used [INFO] [stderr] --> src/bot/client.rs:21:6 [INFO] [stderr] | [INFO] [stderr] 21 | type WsReceiver = SplitStream>>; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BotHandle` is never constructed [INFO] [stderr] --> src/bot/client.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 29 | pub struct BotHandle { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BotInner` is never constructed [INFO] [stderr] --> src/bot/client.rs:33:8 [INFO] [stderr] | [INFO] [stderr] 33 | struct BotInner { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `connect`, `call`, `handle_response`, `next_packet`, and `send_group_msg` are never used [INFO] [stderr] --> src/bot/client.rs:42:18 [INFO] [stderr] | [INFO] [stderr] 40 | impl BotHandle { [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] 41 | /// Connect to NapCat and return a handle + the initial receiver. [INFO] [stderr] 42 | pub async fn connect(url: &str) -> Result { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 67 | pub async fn call( [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 138 | pub async fn handle_response(&self, response: ActionResponse) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 153 | pub async fn next_packet(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 205 | pub async fn send_group_msg( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `send_fire_and_forget`, `send_private_msg`, and `upload_group_file` are never used [INFO] [stderr] --> src/bot/dispatcher.rs:94:12 [INFO] [stderr] | [INFO] [stderr] 30 | impl ActionDispatcher { [INFO] [stderr] | --------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 94 | pub fn send_fire_and_forget(&self, action: A) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 139 | pub async fn send_private_msg( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 152 | pub async fn upload_group_file( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `reconnect` is never used [INFO] [stderr] --> src/bot/reader.rs:84:18 [INFO] [stderr] | [INFO] [stderr] 44 | impl WsReader { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 84 | pub async fn reconnect(&mut self, url: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `is_registered` is never used [INFO] [stderr] --> src/bot/registry.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl ActionRegistry { [INFO] [stderr] | ------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 17 | pub fn is_registered(&self, name: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `message_id` is never read [INFO] [stderr] --> src/bot/response.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 24 | pub struct SendMessageResponse { [INFO] [stderr] | ------------------- field in this struct [INFO] [stderr] 25 | pub message_id: i64, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SendMessageResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `UploadGroupFileResponse` is never constructed [INFO] [stderr] --> src/bot/response.rs:35:12 [INFO] [stderr] | [INFO] [stderr] 35 | pub struct UploadGroupFileResponse { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `message_id` is never read [INFO] [stderr] --> src/bot/response.rs:70:9 [INFO] [stderr] | [INFO] [stderr] 69 | pub struct SendForwardMsgResponse { [INFO] [stderr] | ---------------------- field in this struct [INFO] [stderr] 70 | pub message_id: i64, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SendForwardMsgResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `config_service`, `action_registry`, `bot_uin`, and `bot_nickname` are never read [INFO] [stderr] --> src/context.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub struct AppContext { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] 17 | /// Per-user config management. [INFO] [stderr] 18 | pub config_service: Arc, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | pub action_registry: Arc, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 45 | pub bot_uin: i64, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 48 | pub bot_nickname: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `nickname`, `card`, and `role` are never read [INFO] [stderr] --> src/event.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct Sender { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] ... [INFO] [stderr] 12 | pub nickname: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 15 | pub card: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 18 | pub role: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Sender` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `message_type`, `group_name`, and `user_id` are never read [INFO] [stderr] --> src/event.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 24 | pub struct GroupMessageEvent { [INFO] [stderr] | ----------------- fields in this struct [INFO] [stderr] 25 | pub message_type: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 30 | pub group_name: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 31 | [INFO] [stderr] 32 | pub user_id: i64, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `GroupMessageEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `HeartbeatEvent` is never constructed [INFO] [stderr] --> src/event.rs:42:12 [INFO] [stderr] | [INFO] [stderr] 42 | pub struct HeartbeatEvent { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `WsPacket` is never used [INFO] [stderr] --> src/event.rs:73:10 [INFO] [stderr] | [INFO] [stderr] 73 | pub enum WsPacket { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_config` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:38:14 [INFO] [stderr] | [INFO] [stderr] 38 | pub async fn get_config(ctx: JmContext) -> Config { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `save_config` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:43:14 [INFO] [stderr] | [INFO] [stderr] 43 | pub async fn save_config(ctx: JmContext, config: Config) -> CommandResult<()> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_user_profile` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:99:14 [INFO] [stderr] | [INFO] [stderr] 99 | pub async fn get_user_profile(ctx: JmContext) -> CommandResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `search` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:110:14 [INFO] [stderr] | [INFO] [stderr] 110 | pub async fn search( [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_favorite_folder` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:138:14 [INFO] [stderr] | [INFO] [stderr] 138 | pub async fn get_favorite_folder( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_weekly_info` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:157:14 [INFO] [stderr] | [INFO] [stderr] 157 | pub async fn get_weekly_info(ctx: JmContext) -> CommandResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_weekly` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:168:14 [INFO] [stderr] | [INFO] [stderr] 168 | pub async fn get_weekly( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `create_download_task` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:187:8 [INFO] [stderr] | [INFO] [stderr] 187 | pub fn create_download_task(ctx: JmContext, comic: Comic, chapter_id: i64) -> CommandResult<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `resume_download_task` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:203:8 [INFO] [stderr] | [INFO] [stderr] 203 | pub fn resume_download_task(ctx: JmContext, chapter_id: i64) -> CommandResult<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `cancel_download_task` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:217:8 [INFO] [stderr] | [INFO] [stderr] 217 | pub fn cancel_download_task(ctx: JmContext, chapter_id: i64) -> CommandResult<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `download_all_favorites` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:262:14 [INFO] [stderr] | [INFO] [stderr] 262 | pub async fn download_all_favorites(ctx: JmContext) -> CommandResult<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `update_downloaded_comics` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:360:14 [INFO] [stderr] | [INFO] [stderr] 360 | pub async fn update_downloaded_comics(ctx: JmContext) -> CommandResult<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `show_path_in_file_manager` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:428:8 [INFO] [stderr] | [INFO] [stderr] 428 | pub fn show_path_in_file_manager(path: &str) -> CommandResult<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `sync_favorite_folder` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:433:14 [INFO] [stderr] | [INFO] [stderr] 433 | pub async fn sync_favorite_folder(ctx: JmContext) -> CommandResult<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_downloaded_comics` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:453:8 [INFO] [stderr] | [INFO] [stderr] 453 | pub fn get_downloaded_comics(ctx: JmContext) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `export_cbz` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:564:8 [INFO] [stderr] | [INFO] [stderr] 564 | pub fn export_cbz(ctx: JmContext, comic: Comic) -> CommandResult<()> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_logs_dir_size` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:581:8 [INFO] [stderr] | [INFO] [stderr] 581 | pub fn get_logs_dir_size(ctx: JmContext) -> CommandResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_synced_comic` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:597:8 [INFO] [stderr] | [INFO] [stderr] 597 | pub fn get_synced_comic(ctx: JmContext, mut comic: Comic) -> CommandResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_synced_comic_in_favorite` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:612:8 [INFO] [stderr] | [INFO] [stderr] 612 | pub fn get_synced_comic_in_favorite( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_synced_comic_in_search` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:629:8 [INFO] [stderr] | [INFO] [stderr] 629 | pub fn get_synced_comic_in_search( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_synced_comic_in_weekly` is never used [INFO] [stderr] --> src/jmcomica/mod.rs:646:8 [INFO] [stderr] | [INFO] [stderr] 646 | pub fn get_synced_comic_in_weekly( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `save`, and `save_to_dir` are never used [INFO] [stderr] --> src/jmcomica/config.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 37 | impl Config { [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] 38 | pub fn new(ctx: &JmContext) -> anyhow::Result { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 75 | pub fn save(&self, ctx: &JmContext) -> anyhow::Result<()> { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 84 | pub fn save_to_dir(&self, dir: &std::path::Path) -> anyhow::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `resource_dir` is never read [INFO] [stderr] --> src/jmcomica/context.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 15 | pub struct Context { [INFO] [stderr] | ------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 18 | pub resource_dir: PathBuf, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Context` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `pause_download_task`, `resume_download_task`, and `cancel_download_task` are never used [INFO] [stderr] --> src/jmcomica/download_manager.rs:94:12 [INFO] [stderr] | [INFO] [stderr] 55 | impl DownloadManager { [INFO] [stderr] | -------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 94 | pub fn pause_download_task(&self, chapter_id: i64) -> anyhow::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 103 | pub fn resume_download_task(&self, chapter_id: i64) -> anyhow::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 112 | pub fn cancel_download_task(&self, chapter_id: i64) -> anyhow::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `DownloadSpeedEvent` is never constructed [INFO] [stderr] --> src/jmcomica/events.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct DownloadSpeedEvent { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `DownloadSleepingEvent` is never constructed [INFO] [stderr] --> src/jmcomica/events.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct DownloadSleepingEvent { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `DownloadTaskEvent` is never used [INFO] [stderr] --> src/jmcomica/events.rs:24:10 [INFO] [stderr] | [INFO] [stderr] 24 | pub enum DownloadTaskEvent { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `DownloadAllFavoritesEvent` is never used [INFO] [stderr] --> src/jmcomica/events.rs:45:10 [INFO] [stderr] | [INFO] [stderr] 45 | pub enum DownloadAllFavoritesEvent { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `UpdateDownloadedComicsEvent` is never used [INFO] [stderr] --> src/jmcomica/events.rs:72:10 [INFO] [stderr] | [INFO] [stderr] 72 | pub enum UpdateDownloadedComicsEvent { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `ExportCbzEvent` is never used [INFO] [stderr] --> src/jmcomica/events.rs:99:10 [INFO] [stderr] | [INFO] [stderr] 99 | pub enum ExportCbzEvent { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `ExportPdfEvent` is never used [INFO] [stderr] --> src/jmcomica/events.rs:119:10 [INFO] [stderr] | [INFO] [stderr] 119 | pub enum ExportPdfEvent { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `LogEvent` is never constructed [INFO] [stderr] --> src/jmcomica/events.rs:149:12 [INFO] [stderr] | [INFO] [stderr] 149 | pub struct LogEvent { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Cbz` is never constructed [INFO] [stderr] --> src/jmcomica/export.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 25 | pub enum ExportArchive { [INFO] [stderr] | ------------- variant in this enum [INFO] [stderr] 26 | Cbz, [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CbzErrorEventGuard` is never constructed [INFO] [stderr] --> src/jmcomica/export.rs:39:8 [INFO] [stderr] | [INFO] [stderr] 39 | struct CbzErrorEventGuard { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `cbz` is never used [INFO] [stderr] --> src/jmcomica/export.rs:59:8 [INFO] [stderr] | [INFO] [stderr] 59 | pub fn cbz(ctx: &JmContext, comic: &Comic) -> anyhow::Result<()> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `copy_cover` is never used [INFO] [stderr] --> src/jmcomica/export.rs:177:4 [INFO] [stderr] | [INFO] [stderr] 177 | fn copy_cover(comic: &Comic, chapter_export_dir: &Path) -> anyhow::Result<()> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `ctx` is never read [INFO] [stderr] --> src/jmcomica/export.rs:191:5 [INFO] [stderr] | [INFO] [stderr] 189 | struct PdfCreateErrorEventGuard { [INFO] [stderr] | ------------------------ field in this struct [INFO] [stderr] 190 | uuid: String, [INFO] [stderr] 191 | ctx: JmContext, [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field `ctx` is never read [INFO] [stderr] --> src/jmcomica/export.rs:207:5 [INFO] [stderr] | [INFO] [stderr] 205 | struct PdfMergeErrorEventGuard { [INFO] [stderr] | ----------------------- field in this struct [INFO] [stderr] 206 | uuid: String, [INFO] [stderr] 207 | ctx: JmContext, [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: method `is_img` is never used [INFO] [stderr] --> src/jmcomica/extensions.rs:31:8 [INFO] [stderr] | [INFO] [stderr] 29 | pub trait PathIsImg { [INFO] [stderr] | --------- method in this trait [INFO] [stderr] 30 | /// 判断路径是否为图片(jpg/png/webp/gif) [INFO] [stderr] 31 | fn is_img(&self) -> bool; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `ContextExt` is never used [INFO] [stderr] --> src/jmcomica/extensions.rs:81:11 [INFO] [stderr] | [INFO] [stderr] 81 | pub trait ContextExt { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `GetUserProfile`, `Search`, `GetFavoriteFolder`, `GetWeeklyInfo`, and `GetWeekly` are never constructed [INFO] [stderr] --> src/jmcomica/jm_client.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 37 | enum ApiPath { [INFO] [stderr] | ------- variants in this enum [INFO] [stderr] 38 | Login, [INFO] [stderr] 39 | GetUserProfile, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 40 | Search, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 44 | GetFavoriteFolder, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 45 | GetWeeklyInfo, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 46 | GetWeekly, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ApiPath` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `api_jar` is never read [INFO] [stderr] --> src/jmcomica/jm_client.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 67 | pub struct JmClient { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 70 | api_jar: Arc, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `JmClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/jmcomica/jm_client.rs:91:12 [INFO] [stderr] | [INFO] [stderr] 74 | impl JmClient { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 91 | pub fn reload_client(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 201 | pub async fn get_user_profile(&self) -> anyhow::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 240 | pub async fn search( [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 385 | pub async fn get_favorite_folder( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 430 | pub async fn get_weekly_info(&self) -> anyhow::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 461 | pub async fn get_weekly( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 500 | pub async fn toggle_favorite_comic(&self, aid: i64) -> anyhow::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `LogEventWriter` is never constructed [INFO] [stderr] --> src/jmcomica/logger.rs:21:8 [INFO] [stderr] | [INFO] [stderr] 21 | struct LogEventWriter { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `disable_file_logger` is never used [INFO] [stderr] --> src/jmcomica/logger.rs:70:8 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn disable_file_logger() -> anyhow::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CategoryRespData` is never constructed [INFO] [stderr] --> src/jmcomica/responses/mod.rs:40:12 [INFO] [stderr] | [INFO] [stderr] 40 | pub struct CategoryRespData { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CategorySubRespData` is never constructed [INFO] [stderr] --> src/jmcomica/responses/mod.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 47 | pub struct CategorySubRespData { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `GetFavoriteRespData` is never constructed [INFO] [stderr] --> src/jmcomica/responses/get_favorite_resp_data.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct GetFavoriteRespData { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ComicInFavoriteRespData` is never constructed [INFO] [stderr] --> src/jmcomica/responses/get_favorite_resp_data.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct ComicInFavoriteRespData { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `FavoriteFolderRespData` is never constructed [INFO] [stderr] --> src/jmcomica/responses/get_favorite_resp_data.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 34 | pub struct FavoriteFolderRespData { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `GetWeeklyInfoRespData` is never constructed [INFO] [stderr] --> src/jmcomica/responses/get_weekly_info_resp_data.rs:4:12 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct GetWeeklyInfoRespData { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CategoryInWeeklyInfo` is never constructed [INFO] [stderr] --> src/jmcomica/responses/get_weekly_info_resp_data.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct CategoryInWeeklyInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `WeeklyType` is never constructed [INFO] [stderr] --> src/jmcomica/responses/get_weekly_info_resp_data.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct WeeklyType { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `GetWeeklyRespData` is never constructed [INFO] [stderr] --> src/jmcomica/responses/get_weekly_resp_data.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct GetWeeklyRespData { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ComicInWeeklyRespData` is never constructed [INFO] [stderr] --> src/jmcomica/responses/get_weekly_resp_data.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 15 | pub struct ComicInWeeklyRespData { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `RedirectRespData` is never constructed [INFO] [stderr] --> src/jmcomica/responses/search_resp.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct RedirectRespData { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `SearchResp` is never used [INFO] [stderr] --> src/jmcomica/responses/search_resp.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | pub enum SearchResp { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SearchRespData` is never constructed [INFO] [stderr] --> src/jmcomica/responses/search_resp.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 25 | pub struct SearchRespData { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ComicInSearchRespData` is never constructed [INFO] [stderr] --> src/jmcomica/responses/search_resp.rs:35:12 [INFO] [stderr] | [INFO] [stderr] 35 | pub struct ComicInSearchRespData { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ToggleFavoriteRespData` is never constructed [INFO] [stderr] --> src/jmcomica/responses/toggle_favorite_resp_data.rs:5:12 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct ToggleFavoriteRespData { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `ToggleType` is never used [INFO] [stderr] --> src/jmcomica/responses/toggle_favorite_resp_data.rs:14:10 [INFO] [stderr] | [INFO] [stderr] 14 | pub enum ToggleType { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Category` is never constructed [INFO] [stderr] --> src/jmcomica/types/mod.rs:28:12 [INFO] [stderr] | [INFO] [stderr] 28 | pub struct Category { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CategorySub` is never constructed [INFO] [stderr] --> src/jmcomica/types/mod.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 34 | pub struct CategorySub { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_metadata` is never used [INFO] [stderr] --> src/jmcomica/types/comic.rs:140:12 [INFO] [stderr] | [INFO] [stderr] 53 | impl Comic { [INFO] [stderr] | ---------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 140 | pub fn from_metadata(metadata_path: &Path) -> anyhow::Result { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ComicInfo` is never constructed [INFO] [stderr] --> src/jmcomica/types/comic_info.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct ComicInfo { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from` is never used [INFO] [stderr] --> src/jmcomica/types/comic_info.rs:53:12 [INFO] [stderr] | [INFO] [stderr] 51 | impl ComicInfo { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] 52 | #[allow(clippy::cast_possible_wrap)] [INFO] [stderr] 53 | pub fn from(comic: &Comic, chapter_info: &ChapterInfo) -> ComicInfo { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `FavoriteSort` is never used [INFO] [stderr] --> src/jmcomica/types/favorite_sort.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | pub enum FavoriteSort { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_str` is never used [INFO] [stderr] --> src/jmcomica/types/favorite_sort.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 9 | impl FavoriteSort { [INFO] [stderr] | ----------------- method in this implementation [INFO] [stderr] 10 | pub fn as_str(&self) -> &'static str { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `GetFavoriteResult` is never constructed [INFO] [stderr] --> src/jmcomica/types/get_favorite_result.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct GetFavoriteResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_resp_data` is never used [INFO] [stderr] --> src/jmcomica/types/get_favorite_result.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 24 | impl GetFavoriteResult { [INFO] [stderr] | ---------------------- associated function in this implementation [INFO] [stderr] 25 | pub fn from_resp_data( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ComicInFavorite` is never constructed [INFO] [stderr] --> src/jmcomica/types/get_favorite_result.rs:53:12 [INFO] [stderr] | [INFO] [stderr] 53 | pub struct ComicInFavorite { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `from_resp_data` and `update_fields` are never used [INFO] [stderr] --> src/jmcomica/types/get_favorite_result.rs:68:12 [INFO] [stderr] | [INFO] [stderr] 67 | impl ComicInFavorite { [INFO] [stderr] | -------------------- associated items in this implementation [INFO] [stderr] 68 | pub fn from_resp_data( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 93 | pub fn update_fields(&mut self, id_to_dir_map: &HashMap) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `GetWeeklyResult` is never constructed [INFO] [stderr] --> src/jmcomica/types/get_weekly_result.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct GetWeeklyResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_resp_data` is never used [INFO] [stderr] --> src/jmcomica/types/get_weekly_result.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 19 | impl GetWeeklyResult { [INFO] [stderr] | -------------------- associated function in this implementation [INFO] [stderr] 20 | pub fn from_resp_data(ctx: &JmContext, resp_data: GetWeeklyRespData) -> anyhow::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ComicInWeekly` is never constructed [INFO] [stderr] --> src/jmcomica/types/get_weekly_result.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 41 | pub struct ComicInWeekly { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `from_resp_data` and `update_fields` are never used [INFO] [stderr] --> src/jmcomica/types/get_weekly_result.rs:58:12 [INFO] [stderr] | [INFO] [stderr] 57 | impl ComicInWeekly { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] 58 | pub fn from_resp_data( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 82 | pub fn update_fields(&mut self, id_to_dir_map: &HashMap) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `LogLevel` is never used [INFO] [stderr] --> src/jmcomica/types/log_level.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | pub enum LogLevel { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `SearchResultVariant` is never used [INFO] [stderr] --> src/jmcomica/types/search_result.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | pub enum SearchResultVariant { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_search_resp` is never used [INFO] [stderr] --> src/jmcomica/types/search_result.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 24 | impl SearchResultVariant { [INFO] [stderr] | ------------------------ associated function in this implementation [INFO] [stderr] 25 | pub fn from_search_resp( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SearchResult` is never constructed [INFO] [stderr] --> src/jmcomica/types/search_result.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 44 | pub struct SearchResult { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_resp_data` is never used [INFO] [stderr] --> src/jmcomica/types/search_result.rs:51:12 [INFO] [stderr] | [INFO] [stderr] 50 | impl SearchResult { [INFO] [stderr] | ----------------- associated function in this implementation [INFO] [stderr] 51 | pub fn from_resp_data( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ComicInSearch` is never constructed [INFO] [stderr] --> src/jmcomica/types/search_result.rs:76:12 [INFO] [stderr] | [INFO] [stderr] 76 | pub struct ComicInSearch { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `from_resp_data` and `update_fields` are never used [INFO] [stderr] --> src/jmcomica/types/search_result.rs:91:12 [INFO] [stderr] | [INFO] [stderr] 90 | impl ComicInSearch { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] 91 | pub fn from_resp_data( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 116 | pub fn update_fields(&mut self, id_to_dir_map: &HashMap) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `SearchSort` is never used [INFO] [stderr] --> src/jmcomica/types/search_sort.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | pub enum SearchSort { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_str` is never used [INFO] [stderr] --> src/jmcomica/types/search_sort.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 11 | impl SearchSort { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] 12 | pub fn as_str(&self) -> &'static str { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `show_path_in_file_manager` is never used [INFO] [stderr] --> src/jmcomica/utils.rs:80:8 [INFO] [stderr] | [INFO] [stderr] 80 | pub fn show_path_in_file_manager(path: &str) -> anyhow::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `raw_message` is never read [INFO] [stderr] --> src/router.rs:47:9 [INFO] [stderr] | [INFO] [stderr] 42 | pub struct CommandContext { [INFO] [stderr] | -------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 47 | pub raw_message: String, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CommandContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `UserConfig` is never constructed [INFO] [stderr] --> src/services/config_service.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct UserConfig { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/services/config_service.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 22 | impl UserConfig { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 23 | pub fn new(qq_number: i64) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field `data_dir` is never read [INFO] [stderr] --> src/services/config_service.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 35 | pub struct ConfigService { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 36 | data_dir: PathBuf, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ConfigService` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `config_path`, `load_user_config`, `save_user_config`, and `is_logged_in` are never used [INFO] [stderr] --> src/services/config_service.rs:46:8 [INFO] [stderr] | [INFO] [stderr] 39 | impl ConfigService { [INFO] [stderr] | ------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 46 | fn config_path(&self, qq_number: i64) -> PathBuf { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 54 | pub async fn load_user_config(&self, qq_number: i64) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 74 | pub async fn save_user_config(&self, config: &UserConfig) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 98 | pub async fn is_logged_in(&self, qq_number: i64) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `get_downloaded_comics` is never used [INFO] [stderr] --> src/services/jm_service.rs:154:18 [INFO] [stderr] | [INFO] [stderr] 22 | impl JmService { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 154 | pub async fn get_downloaded_comics(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `is_logged_in` and `invalidate` are never used [INFO] [stderr] --> src/session/manager.rs:133:18 [INFO] [stderr] | [INFO] [stderr] 50 | impl UserManager { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 133 | pub async fn is_logged_in(&self, qq_number: i64) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 139 | pub async fn invalidate(&self, qq_number: i64) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `comineko` (bin "comineko" test) generated 138 warnings (run `cargo fix --bin "comineko" -p comineko --tests` to apply 17 suggestions) [INFO] [stderr] warning: unused dependency `axum` [INFO] [stderr] --> Cargo.toml:10:15 [INFO] [stderr] | [INFO] [stderr] 10 | [dependencies.axum] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `axum` [INFO] [stderr] warning: `comineko` (manifest) generated 1 warning [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.33s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/build/comineko/24dfc272bc11f924/out/comineko-24dfc272bc11f924) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test services::forward_service::tests::test_build_completion_message ... ok [INFO] [stdout] test services::forward_service::tests::test_extract_title_no_ext ... ok [INFO] [stdout] test services::forward_service::tests::test_extract_title_pdf ... ok [INFO] [stdout] test services::forward_service::tests::test_extract_title_simple ... ok [INFO] [stdout] test services::forward_service::tests::test_extract_title_double_ext ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fce7b216b08c684837edd8b5d7700da4a34289a789d4fc70d5bf66982865d149", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fce7b216b08c684837edd8b5d7700da4a34289a789d4fc70d5bf66982865d149", kill_on_drop: false }` [INFO] [stdout] fce7b216b08c684837edd8b5d7700da4a34289a789d4fc70d5bf66982865d149