[INFO] fetching crate miHoYo-API 0.2.18... [INFO] checking miHoYo-API-0.2.18 against master#cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3 for pr-135841 [INFO] extracting crate miHoYo-API 0.2.18 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate miHoYo-API 0.2.18 on toolchain cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate miHoYo-API 0.2.18 [INFO] finished tweaking crates.io crate miHoYo-API 0.2.18 [INFO] tweaked toml for crates.io crate miHoYo-API 0.2.18 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 208 packages to latest compatible versions [INFO] [stderr] Adding itertools v0.12.1 (available: v0.14.0) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.12) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.11) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded collecting-hashmap v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f8c4f0ea4be16f40bfa1455e5443a7bc0c36f076b723aa6258f6025476ac85e9 [INFO] running `Command { std: "docker" "start" "-a" "f8c4f0ea4be16f40bfa1455e5443a7bc0c36f076b723aa6258f6025476ac85e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f8c4f0ea4be16f40bfa1455e5443a7bc0c36f076b723aa6258f6025476ac85e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8c4f0ea4be16f40bfa1455e5443a7bc0c36f076b723aa6258f6025476ac85e9", kill_on_drop: false }` [INFO] [stdout] f8c4f0ea4be16f40bfa1455e5443a7bc0c36f076b723aa6258f6025476ac85e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7dfc2cd37e61fce38c4e4d696c84e836dc35a9014a25ed4418dca1c2453b7c2c [INFO] running `Command { std: "docker" "start" "-a" "7dfc2cd37e61fce38c4e4d696c84e836dc35a9014a25ed4418dca1c2453b7c2c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.15 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking litemap v0.7.4 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Compiling cc v1.2.10 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Checking bitflags v2.8.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking log v0.4.25 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling time-macros v0.2.19 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking tinyvec v1.8.1 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Checking indexmap v2.7.1 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking unicode-bidi v0.3.18 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking psl-types v2.0.11 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking time v0.3.37 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking collecting-hashmap v0.2.0 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking chrono v0.4.39 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking tokio v1.43.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.85 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking publicsuffix v2.3.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking cookie_store v0.20.0 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking miHoYo-API v0.2.18 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/components/cache.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::typing::Dict as normal_dict` [INFO] [stdout] --> src/components/cache.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::typing::Dict as normal_dict; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/components/cache.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/components/cache.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::typing::Dict as normal_dict` [INFO] [stdout] --> src/components/cache.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::typing::Dict as normal_dict; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/components/cache.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | /// Initialize Client variable. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | let mut client = Client::new().set_from_env(None)?; [INFO] [stdout] | --------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | /// Setting for two cookies connect [Hoyolab](https://www.hoyolab.com/home). [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | /// And another way to set, you can use [`Client::set_cookies`] [INFO] [stdout] 17 | let mut client = Client::new().set_from_env(None)?; [INFO] [stdout] | --------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | /// And another way to set, you can use [`Client::set_cookies`] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | let mut client = Client::new().set_from_env(None)?; [INFO] [stdout] | --------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | /// Getting [`crate::components::models::hoyolab::record::Account`] as elements in Vector. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | let accounts = client.get_game_account(Some(Game::StarRail), None).await?; [INFO] [stdout] | -------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | /// Extract UID from account. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | let uid = accounts.get(0).unwrap().get_uid(); [INFO] [stdout] | --------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | /// Extract StarRail UID from [Hoyolab](https://www.hoyolab.com/home). [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | /// getting user accounts as contains in Vector and then filtered by user level. [INFO] [stdout] 27 | / let account_id = client.get_game_accounts(Some(Languages::JaJp)).await? [INFO] [stdout] 28 | | .into_iter().filter(|account| account.level == 70).next().unwrap().get_uid(); [INFO] [stdout] | |_________________________________________________________________________________________- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | /// getting user accounts as contains in Vector and then filtered by user level. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | / let account_id = client.get_game_accounts(Some(Languages::JaJp)).await? [INFO] [stdout] 28 | | .into_iter().filter(|account| account.level == 70).next().unwrap().get_uid(); [INFO] [stdout] | |_________________________________________________________________________________________- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | /// This [`crate::components::chronicle::starrail::StarRailClient::get_preview_data`] is only β. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | let user_data = client.starrail.get_preview_data(account_id, Some("jp")).await.unwrap(); [INFO] [stdout] | ---------------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | /// Getting as [`crate::components::models::starrail::mihomo::Mihomo`]. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | let user_data = client.starrail.get_preview_data(account_id, Some("jp")).await.unwrap(); [INFO] [stdout] | ---------------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | /// --About lang argument, Here's [corresponding string list](https://github.com/Mar-7th/mihomo.py/blob/master/mihomo/model.py#L8)-- [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | /// I will create a enum of Language. [INFO] [stdout] 34 | let user_data = client.starrail.get_preview_data(account_id, Some("jp")).await.unwrap(); [INFO] [stdout] | ---------------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | /// I will create a enum of Language. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | let user_data = client.starrail.get_preview_data(account_id, Some("jp")).await.unwrap(); [INFO] [stdout] | ---------------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/components/base.rs:121:16 [INFO] [stdout] | [INFO] [stdout] 121 | &self, url: Option<&str>, headers: Option<&mut HeaderMap>, region: Option<&Region>, kwargs: Dict [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers` [INFO] [stdout] --> src/components/base.rs:121:35 [INFO] [stdout] | [INFO] [stdout] 121 | &self, url: Option<&str>, headers: Option<&mut HeaderMap>, region: Option<&Region>, kwargs: Dict [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kwargs` [INFO] [stdout] --> src/components/base.rs:121:93 [INFO] [stdout] | [INFO] [stdout] 121 | &self, url: Option<&str>, headers: Option<&mut HeaderMap>, region: Option<&Region>, kwargs: Dict [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_kwargs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/components/base.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let url = WEB_STATIC_URL.get_url(region.unwrap_or(&Region::OverSeas))?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/components/cache.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | async fn get_static(&self, key: &str) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/components/cache.rs:120:32 [INFO] [stdout] | [INFO] [stdout] 120 | async fn set_static(&self, key: &str, value: reqwest::Response) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/components/cache.rs:120:43 [INFO] [stdout] | [INFO] [stdout] 120 | async fn set_static(&self, key: &str, value: reqwest::Response) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/components/base.rs:121:16 [INFO] [stdout] | [INFO] [stdout] 121 | &self, url: Option<&str>, headers: Option<&mut HeaderMap>, region: Option<&Region>, kwargs: Dict [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers` [INFO] [stdout] --> src/components/base.rs:121:35 [INFO] [stdout] | [INFO] [stdout] 121 | &self, url: Option<&str>, headers: Option<&mut HeaderMap>, region: Option<&Region>, kwargs: Dict [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kwargs` [INFO] [stdout] --> src/components/base.rs:121:93 [INFO] [stdout] | [INFO] [stdout] 121 | &self, url: Option<&str>, headers: Option<&mut HeaderMap>, region: Option<&Region>, kwargs: Dict [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_kwargs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/components/base.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let url = WEB_STATIC_URL.get_url(region.unwrap_or(&Region::OverSeas))?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/components/cache.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | async fn get_static(&self, key: &str) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/components/cache.rs:120:32 [INFO] [stdout] | [INFO] [stdout] 120 | async fn set_static(&self, key: &str, value: reqwest::Response) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/components/cache.rs:120:43 [INFO] [stdout] | [INFO] [stdout] 120 | async fn set_static(&self, key: &str, value: reqwest::Response) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn set_from_env(mut self, path: Option<&str>) -> anyhow::Result { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn set_from_env(mut self, path: Option<&str>) -> anyhow::Result { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `retcode` and `message` are never read [INFO] [stdout] --> src/components/models/mod.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) struct Base { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 10 | pub(crate) retcode: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | pub(crate) message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Base` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `list` is never read [INFO] [stdout] --> src/components/models/hoyolab/record.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct RecordCardList { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 40 | pub list: Vec [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordCardList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/components/models/hoyolab/record.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct RecordCard { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 45 | pub has_role: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 46 | pub game_id: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 47 | pub game_role_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 48 | pub nickname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 49 | pub region: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | pub level: i8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | pub background_image: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | pub is_public: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 53 | pub data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 54 | #[serde(rename = "region_name")] [INFO] [stdout] 55 | pub server_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 56 | pub url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 57 | pub data_switches: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 58 | // pub h5_data_switches: serde_json::Value, [INFO] [stdout] 59 | pub background_color: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordCard` 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 `name`, `type_name`, and `value` are never read [INFO] [stdout] --> src/components/models/hoyolab/record.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct RecordData { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 64 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | #[serde(rename = "type")] [INFO] [stdout] 66 | pub type_name: i8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 67 | pub value: String [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordData` 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 `switch_id`, `is_public`, and `switch_name` are never read [INFO] [stdout] --> src/components/models/hoyolab/record.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct DataSwitch { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 72 | pub switch_id: i8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 73 | pub is_public: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 74 | pub switch_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataSwitch` 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 `cache`, `lang`, `hoyolab_id`, `auth_key`, and `proxy` are never read [INFO] [stdout] --> src/components/base.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) struct InnerClient { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 15 | pub(crate) cookie_manager: CookieType, [INFO] [stdout] 16 | pub(crate) cache: super::cache::Cache, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | pub(crate) lang: Languages, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub(crate) hoyolab_id: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | pub(crate) auth_key: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | pub(crate) proxy: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `request_web_static` and `get_record_cards` are never used [INFO] [stdout] --> src/components/base.rs:120:25 [INFO] [stdout] | [INFO] [stdout] 43 | impl InnerClient { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 120 | pub(crate) async fn request_web_static( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub(crate) async fn get_record_cards(&self, hoyolab_id: Option, lang: Option) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_cookie_identifier` is never used [INFO] [stdout] --> src/components/managers/manager.rs:62:15 [INFO] [stdout] | [INFO] [stdout] 62 | pub(crate) fn get_cookie_identifier(cookie: Dict) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BaseCookieManager` is never used [INFO] [stdout] --> src/components/managers/manager.rs:74:18 [INFO] [stdout] | [INFO] [stdout] 74 | pub(crate) trait BaseCookieManager: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_exist` is never used [INFO] [stdout] --> src/components/managers/manager.rs:100:19 [INFO] [stdout] | [INFO] [stdout] 84 | impl CookieManager { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | pub(crate) fn is_exist(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WEB_STATIC_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) static WEB_STATIC_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WEB_API_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | pub(crate) static WEB_API_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ACCOUNT_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:49:19 [INFO] [stdout] | [INFO] [stdout] 49 | pub(crate) static ACCOUNT_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BBS_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) static BBS_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BBS_REFERER_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) static BBS_REFERER_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `COMMUNITY_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | pub(crate) static COMMUNITY_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LINEUP_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) static LINEUP_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INFO_LEDGER_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 77 | pub(crate) static INFO_LEDGER_URL: Lazy = Lazy::new(|| GameRoute::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DETAIL_LEDGER_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:87:19 [INFO] [stdout] | [INFO] [stdout] 87 | pub(crate) static DETAIL_LEDGER_URL: Lazy = Lazy::new(|| GameRoute::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `CALCULATOR_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:97:19 [INFO] [stdout] | [INFO] [stdout] 97 | pub(crate) static CALCULATOR_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `CALCULATOR_REFERER_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) static CALCULATOR_REFERER_URL: Lazy = Lazy::new(|| Route::new("https://webstatic.mihoyo.com/ys/event/e20200923adopt_cal... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TEAPOT_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:102:19 [INFO] [stdout] | [INFO] [stdout] 102 | pub(crate) static TEAPOT_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WIKI_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:106:19 [INFO] [stdout] | [INFO] [stdout] 106 | pub(crate) static WIKI_URL: Lazy = Lazy::new(|| Route::new("https://sg-wiki-api.hoyolab.com/hoyowiki/wapi")); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `HK4E_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 107 | pub(crate) static HK4E_URL: Lazy = Lazy::new(|| Route::new("https://sg-hk4e-api.hoyoverse.com/common/hk4e_global/")); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `REWARD_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 108 | pub(crate) static REWARD_URL: Lazy = Lazy::new(|| GameRoute::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `CODE_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:120:19 [INFO] [stdout] | [INFO] [stdout] 120 | pub(crate) static CODE_URL: Lazy = Lazy::new(|| GameRoute::new( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GACHA_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | pub(crate) static GACHA_URL: Lazy = Lazy::new(|| GameRoute::new( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `YSULOG_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:137:19 [INFO] [stdout] | [INFO] [stdout] 137 | pub(crate) static YSULOG_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `MI18N` is never used [INFO] [stdout] --> src/components/utils/constant.rs:141:19 [INFO] [stdout] | [INFO] [stdout] 141 | pub(crate) static MI18N: Lazy src/components/utils/route.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) trait GameTrait { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Route` is never constructed [INFO] [stdout] --> src/components/utils/route.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) struct Route(String); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameRoute` is never constructed [INFO] [stdout] --> src/components/utils/route.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) struct GameRoute(HashMap>); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_url` are never used [INFO] [stdout] --> src/components/utils/route.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 18 | impl Route { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 19 | pub(crate) fn new(url: &str) -> Route { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub(crate) fn get_url(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_url` are never used [INFO] [stdout] --> src/components/utils/route.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 44 | impl GameRoute { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 45 | pub(crate) fn new(overseas: Option<&[(Game, &str)]>, chinese: Option<&[(Game, &str)]>) -> GameRoute { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub(crate) fn get_url(&self, region: &Region, game: &Game) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recognize_genshin_server` is never used [INFO] [stdout] --> src/components/utils/uid.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn recognize_genshin_server(uid: &u32) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recognize_honkai_server` is never used [INFO] [stdout] --> src/components/utils/uid.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) fn recognize_honkai_server(uid: &u32) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recognize_server` is never used [INFO] [stdout] --> src/components/utils/uid.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn recognize_server(uid: &u32, game: Game) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WEEK` is never used [INFO] [stdout] --> src/components/cache.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const WEEK: f32 = DAY * 7.; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CacheKey` is never constructed [INFO] [stdout] --> src/components/cache.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) struct CacheKey; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cache`, `maxsize`, `ttl`, and `static_ttl` are never read [INFO] [stdout] --> src/components/cache.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) struct Cache { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 54 | pub(crate) cache: Dict, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 55 | pub(crate) maxsize: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 56 | pub(crate) ttl: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] 57 | pub(crate) static_ttl: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cache` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `len`, `get_static`, and `set_static` are never used [INFO] [stdout] --> src/components/cache.rs:61:19 [INFO] [stdout] | [INFO] [stdout] 60 | impl Cache { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 61 | pub(crate) fn new(maxsize: Option, ttl: Option, static_ttl: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub(crate) fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | async fn get_static(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | async fn set_static(&self, key: &str, value: reqwest::Response) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChronicleClient` is never constructed [INFO] [stdout] --> src/components/chronicle/mod.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) struct ChronicleClient(pub(crate) T) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BaseError` is never used [INFO] [stdout] --> src/error.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | trait BaseError {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ERRORS` is never used [INFO] [stdout] --> src/error.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | static ERRORS: Lazy> = Lazy::new(|| { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `miHoYo_API` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `mi_ho_yo_api` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uid` [INFO] [stdout] --> src/lib.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let uid = accounts.get(0).unwrap().get_uid(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_uid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut client = Client::new().set_from_env(None)?; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `retcode` and `message` are never read [INFO] [stdout] --> src/components/models/mod.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) struct Base { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 10 | pub(crate) retcode: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | pub(crate) message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Base` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `list` is never read [INFO] [stdout] --> src/components/models/hoyolab/record.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct RecordCardList { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 40 | pub list: Vec [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordCardList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/components/models/hoyolab/record.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct RecordCard { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 45 | pub has_role: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 46 | pub game_id: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 47 | pub game_role_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 48 | pub nickname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 49 | pub region: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | pub level: i8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | pub background_image: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | pub is_public: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 53 | pub data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 54 | #[serde(rename = "region_name")] [INFO] [stdout] 55 | pub server_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 56 | pub url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 57 | pub data_switches: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 58 | // pub h5_data_switches: serde_json::Value, [INFO] [stdout] 59 | pub background_color: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordCard` 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 `name`, `type_name`, and `value` are never read [INFO] [stdout] --> src/components/models/hoyolab/record.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct RecordData { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 64 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | #[serde(rename = "type")] [INFO] [stdout] 66 | pub type_name: i8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 67 | pub value: String [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordData` 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 `switch_id`, `is_public`, and `switch_name` are never read [INFO] [stdout] --> src/components/models/hoyolab/record.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct DataSwitch { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 72 | pub switch_id: i8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 73 | pub is_public: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 74 | pub switch_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataSwitch` 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 `cache`, `lang`, `hoyolab_id`, `auth_key`, and `proxy` are never read [INFO] [stdout] --> src/components/base.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) struct InnerClient { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 15 | pub(crate) cookie_manager: CookieType, [INFO] [stdout] 16 | pub(crate) cache: super::cache::Cache, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | pub(crate) lang: Languages, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub(crate) hoyolab_id: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | pub(crate) auth_key: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | pub(crate) proxy: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `request_web_static` and `get_record_cards` are never used [INFO] [stdout] --> src/components/base.rs:120:25 [INFO] [stdout] | [INFO] [stdout] 43 | impl InnerClient { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 120 | pub(crate) async fn request_web_static( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub(crate) async fn get_record_cards(&self, hoyolab_id: Option, lang: Option) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_cookie_identifier` is never used [INFO] [stdout] --> src/components/managers/manager.rs:62:15 [INFO] [stdout] | [INFO] [stdout] 62 | pub(crate) fn get_cookie_identifier(cookie: Dict) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BaseCookieManager` is never used [INFO] [stdout] --> src/components/managers/manager.rs:74:18 [INFO] [stdout] | [INFO] [stdout] 74 | pub(crate) trait BaseCookieManager: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_exist` is never used [INFO] [stdout] --> src/components/managers/manager.rs:100:19 [INFO] [stdout] | [INFO] [stdout] 84 | impl CookieManager { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | pub(crate) fn is_exist(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WEB_STATIC_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) static WEB_STATIC_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WEB_API_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | pub(crate) static WEB_API_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ACCOUNT_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:49:19 [INFO] [stdout] | [INFO] [stdout] 49 | pub(crate) static ACCOUNT_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BBS_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) static BBS_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BBS_REFERER_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) static BBS_REFERER_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `COMMUNITY_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | pub(crate) static COMMUNITY_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LINEUP_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) static LINEUP_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INFO_LEDGER_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 77 | pub(crate) static INFO_LEDGER_URL: Lazy = Lazy::new(|| GameRoute::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DETAIL_LEDGER_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:87:19 [INFO] [stdout] | [INFO] [stdout] 87 | pub(crate) static DETAIL_LEDGER_URL: Lazy = Lazy::new(|| GameRoute::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `CALCULATOR_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:97:19 [INFO] [stdout] | [INFO] [stdout] 97 | pub(crate) static CALCULATOR_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `CALCULATOR_REFERER_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) static CALCULATOR_REFERER_URL: Lazy = Lazy::new(|| Route::new("https://webstatic.mihoyo.com/ys/event/e20200923adopt_cal... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TEAPOT_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:102:19 [INFO] [stdout] | [INFO] [stdout] 102 | pub(crate) static TEAPOT_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WIKI_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:106:19 [INFO] [stdout] | [INFO] [stdout] 106 | pub(crate) static WIKI_URL: Lazy = Lazy::new(|| Route::new("https://sg-wiki-api.hoyolab.com/hoyowiki/wapi")); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `HK4E_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 107 | pub(crate) static HK4E_URL: Lazy = Lazy::new(|| Route::new("https://sg-hk4e-api.hoyoverse.com/common/hk4e_global/")); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `REWARD_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 108 | pub(crate) static REWARD_URL: Lazy = Lazy::new(|| GameRoute::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `CODE_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:120:19 [INFO] [stdout] | [INFO] [stdout] 120 | pub(crate) static CODE_URL: Lazy = Lazy::new(|| GameRoute::new( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GACHA_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | pub(crate) static GACHA_URL: Lazy = Lazy::new(|| GameRoute::new( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `YSULOG_URL` is never used [INFO] [stdout] --> src/components/utils/constant.rs:137:19 [INFO] [stdout] | [INFO] [stdout] 137 | pub(crate) static YSULOG_URL: Lazy = Lazy::new(|| InternationalRoute::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `MI18N` is never used [INFO] [stdout] --> src/components/utils/constant.rs:141:19 [INFO] [stdout] | [INFO] [stdout] 141 | pub(crate) static MI18N: Lazy src/components/utils/route.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) trait GameTrait { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Route` is never constructed [INFO] [stdout] --> src/components/utils/route.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) struct Route(String); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameRoute` is never constructed [INFO] [stdout] --> src/components/utils/route.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) struct GameRoute(HashMap>); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_url` are never used [INFO] [stdout] --> src/components/utils/route.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 18 | impl Route { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 19 | pub(crate) fn new(url: &str) -> Route { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub(crate) fn get_url(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_url` are never used [INFO] [stdout] --> src/components/utils/route.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 44 | impl GameRoute { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 45 | pub(crate) fn new(overseas: Option<&[(Game, &str)]>, chinese: Option<&[(Game, &str)]>) -> GameRoute { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub(crate) fn get_url(&self, region: &Region, game: &Game) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recognize_genshin_server` is never used [INFO] [stdout] --> src/components/utils/uid.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn recognize_genshin_server(uid: &u32) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recognize_honkai_server` is never used [INFO] [stdout] --> src/components/utils/uid.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) fn recognize_honkai_server(uid: &u32) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recognize_server` is never used [INFO] [stdout] --> src/components/utils/uid.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn recognize_server(uid: &u32, game: Game) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WEEK` is never used [INFO] [stdout] --> src/components/cache.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const WEEK: f32 = DAY * 7.; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CacheKey` is never constructed [INFO] [stdout] --> src/components/cache.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) struct CacheKey; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cache`, `maxsize`, `ttl`, and `static_ttl` are never read [INFO] [stdout] --> src/components/cache.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) struct Cache { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 54 | pub(crate) cache: Dict, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 55 | pub(crate) maxsize: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 56 | pub(crate) ttl: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] 57 | pub(crate) static_ttl: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cache` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `len`, `get_static`, and `set_static` are never used [INFO] [stdout] --> src/components/cache.rs:61:19 [INFO] [stdout] | [INFO] [stdout] 60 | impl Cache { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 61 | pub(crate) fn new(maxsize: Option, ttl: Option, static_ttl: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub(crate) fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | async fn get_static(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | async fn set_static(&self, key: &str, value: reqwest::Response) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChronicleClient` is never constructed [INFO] [stdout] --> src/components/chronicle/mod.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) struct ChronicleClient(pub(crate) T) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BaseError` is never used [INFO] [stdout] --> src/error.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | trait BaseError {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ERRORS` is never used [INFO] [stdout] --> src/error.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | static ERRORS: Lazy> = Lazy::new(|| { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 23s [INFO] running `Command { std: "docker" "inspect" "7dfc2cd37e61fce38c4e4d696c84e836dc35a9014a25ed4418dca1c2453b7c2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7dfc2cd37e61fce38c4e4d696c84e836dc35a9014a25ed4418dca1c2453b7c2c", kill_on_drop: false }` [INFO] [stdout] 7dfc2cd37e61fce38c4e4d696c84e836dc35a9014a25ed4418dca1c2453b7c2c