[INFO] cloning repository https://github.com/SZ-Bandoriee-Fans/chord-forge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SZ-Bandoriee-Fans/chord-forge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSZ-Bandoriee-Fans%2Fchord-forge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSZ-Bandoriee-Fans%2Fchord-forge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 794e03fb1fc36bdfec8212c7861be3949d11d755 [INFO] building SZ-Bandoriee-Fans/chord-forge against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSZ-Bandoriee-Fans%2Fchord-forge" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-6-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/SZ-Bandoriee-Fans/chord-forge [INFO] finished tweaking git repo https://github.com/SZ-Bandoriee-Fans/chord-forge [INFO] tweaked toml for git repo https://github.com/SZ-Bandoriee-Fans/chord-forge written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SZ-Bandoriee-Fans/chord-forge on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SZ-Bandoriee-Fans/chord-forge 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded worker-sys v0.5.0 [INFO] [stderr] Downloaded worker-kv v0.7.0 [INFO] [stderr] Downloaded worker-macros v0.5.0 [INFO] [stderr] Downloaded serde-wasm-bindgen v0.5.0 [INFO] [stderr] Downloaded serde-wasm-bindgen v0.6.5 [INFO] [stderr] Downloaded utoipa-redoc v6.0.0 [INFO] [stderr] Downloaded wasm-streams v0.4.2 [INFO] [stderr] Downloaded tracing-serde v0.2.0 [INFO] [stderr] Downloaded downcast-rs v2.0.1 [INFO] [stderr] Downloaded utoipa-axum v0.2.0 [INFO] [stderr] Downloaded windows-strings v0.3.1 [INFO] [stderr] Downloaded anstyle-wincon v3.0.8 [INFO] [stderr] Downloaded windows-registry v0.4.0 [INFO] [stderr] Downloaded tracing-web v0.1.3 [INFO] [stderr] Downloaded hyper-rustls v0.27.6 [INFO] [stderr] Downloaded clap v4.5.38 [INFO] [stderr] Downloaded worker v0.5.0 [INFO] [stderr] Downloaded cc v1.2.24 [INFO] [stderr] Downloaded reqwest v0.12.15 [INFO] [stderr] Downloaded utoipa v5.3.1 [INFO] [stderr] Downloaded clap_builder v4.5.38 [INFO] [stderr] Downloaded utoipa-gen v5.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aace4198ad1e9a585c69d70edecf939f33f394c522f32f016ab6d45c340066f7 [INFO] running `Command { std: "docker" "start" "-a" "aace4198ad1e9a585c69d70edecf939f33f394c522f32f016ab6d45c340066f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aace4198ad1e9a585c69d70edecf939f33f394c522f32f016ab6d45c340066f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aace4198ad1e9a585c69d70edecf939f33f394c522f32f016ab6d45c340066f7", kill_on_drop: false }` [INFO] [stdout] aace4198ad1e9a585c69d70edecf939f33f394c522f32f016ab6d45c340066f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19a630ddbcc64e367a50528ffe2d67343933a89831a8a82e1d12b2831c30a6c4 [INFO] running `Command { std: "docker" "start" "-a" "19a630ddbcc64e367a50528ffe2d67343933a89831a8a82e1d12b2831c30a6c4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling cc v1.2.24 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling openssl v0.10.72 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling openssl-sys v0.9.108 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling clap_builder v4.5.38 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling downcast-rs v2.0.1 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling js-sys v0.3.77 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling utoipa-gen v5.3.1 [INFO] [stderr] Compiling web-sys v0.3.77 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.50 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling h2 v0.4.10 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling serde-wasm-bindgen v0.5.0 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling worker-sys v0.5.0 [INFO] [stderr] Compiling worker-kv v0.7.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling wasm-streams v0.4.2 [INFO] [stderr] Compiling worker-macros v0.5.0 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling serde-wasm-bindgen v0.6.5 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling tracing-web v0.1.3 [INFO] [stderr] Compiling console_error_panic_hook v0.1.7 [INFO] [stderr] Compiling clap v4.5.38 [INFO] [stderr] Compiling hyper-util v0.1.12 [INFO] [stderr] Compiling utoipa v5.3.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling utoipa-axum v0.2.0 [INFO] [stderr] Compiling utoipa-redoc v6.0.0 [INFO] [stderr] Compiling worker v0.5.0 [INFO] [stderr] Compiling chord-forge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tower_service::Service` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tower_service::Service; [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: `fmt::Display` [INFO] [stdout] --> src/domain/aigc_detect.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, fmt::Display}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TRACING_INIT` is never used [INFO] [stdout] --> src/lib.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | static TRACING_INIT: std::sync::Once = std::sync::Once::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `router` is never used [INFO] [stdout] --> src/lib.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn router() -> Router{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpenApiDoc` is never constructed [INFO] [stdout] --> src/lib.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct OpenApiDoc; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SecurityAddon` is never constructed [INFO] [stdout] --> src/lib.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct SecurityAddon; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AIGCService` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait AIGCService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `APIClientConfig` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait APIClientConfig: DowncastSend {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `APIClientParams` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait APIClientParams: DowncastSend {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `APIClientResponse` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait APIClientResponse: DowncastSend { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AIGCImgDetectRiskLevel` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum AIGCImgDetectRiskLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TecentAIGCDetectError` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum TecentAIGCDetectError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `API_VERSION` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | const API_VERSION: &str = "2020-12-29"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PublicParamsV1` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct PublicParamsV1 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fields_without_signature`, and `endpoint` are never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl PublicParamsV1 { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 52 | pub fn new(region: Region, secret_id: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn fields_without_signature(&self) -> Vec<(&str, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn endpoint(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `query_string` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn query_string(host: &str, http_method: axum::http::Method, mut fields: Vec<(&str, String)>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BASE64_ENGINE` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | static BASE64_ENGINE: base64::engine::general_purpose::GeneralPurpose = base64::engine::general_purpose::STANDARD; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hmac_sha1` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn hmac_sha1(secret_key: &str, str2sign: String) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_body` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn post_body(host: &str, secret_key: &str, public_params: &PublicParamsV1, input_params: &InputParams) -> Result src/infra/aigc_detect/tencent.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub struct InputParams { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fields` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 129 | impl InputParams { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 130 | fn fields(&self) -> Vec<(&str, String)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Region` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:144:10 [INFO] [stdout] | [INFO] [stdout] 144 | pub enum Region { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:164:10 [INFO] [stdout] | [INFO] [stdout] 164 | async fn post( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Response` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct Response { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseInner` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct ResponseInner { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Suggestion` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | pub enum Suggestion { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TecentAIGCDetectService` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub struct TecentAIGCDetectService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TecentAIGCDetectConfig` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 273 | pub struct TecentAIGCDetectConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_region` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:281:12 [INFO] [stdout] | [INFO] [stdout] 280 | impl TecentAIGCDetectConfig { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 281 | pub fn set_region(&mut self, region: Region) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:287:12 [INFO] [stdout] | [INFO] [stdout] 286 | impl TecentAIGCDetectConfig { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 287 | pub fn new(secret_id: String, secret_key: String, region: Region, biz_type: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TecentAIGCDetectParams` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:300:12 [INFO] [stdout] | [INFO] [stdout] 300 | pub struct TecentAIGCDetectParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMAGE_MODERATION` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:36:15 [INFO] [stdout] | [INFO] [stdout] 36 | pub const IMAGE_MODERATION: &str = "ImageModeration"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 00s [INFO] running `Command { std: "docker" "inspect" "19a630ddbcc64e367a50528ffe2d67343933a89831a8a82e1d12b2831c30a6c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19a630ddbcc64e367a50528ffe2d67343933a89831a8a82e1d12b2831c30a6c4", kill_on_drop: false }` [INFO] [stdout] 19a630ddbcc64e367a50528ffe2d67343933a89831a8a82e1d12b2831c30a6c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dcdc97a8ed3d02b9ecaf605dbe424fee64853c1e65ce877eac172187b0b80e07 [INFO] running `Command { std: "docker" "start" "-a" "dcdc97a8ed3d02b9ecaf605dbe424fee64853c1e65ce877eac172187b0b80e07", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `tower_service::Service` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tower_service::Service; [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: `fmt::Display` [INFO] [stdout] --> src/domain/aigc_detect.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, fmt::Display}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TRACING_INIT` is never used [INFO] [stdout] --> src/lib.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | static TRACING_INIT: std::sync::Once = std::sync::Once::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `router` is never used [INFO] [stdout] --> src/lib.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn router() -> Router{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpenApiDoc` is never constructed [INFO] [stdout] --> src/lib.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct OpenApiDoc; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SecurityAddon` is never constructed [INFO] [stdout] --> src/lib.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct SecurityAddon; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AIGCService` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait AIGCService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `APIClientConfig` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait APIClientConfig: DowncastSend {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `APIClientParams` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait APIClientParams: DowncastSend {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `APIClientResponse` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait APIClientResponse: DowncastSend { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AIGCImgDetectRiskLevel` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum AIGCImgDetectRiskLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TecentAIGCDetectError` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum TecentAIGCDetectError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `API_VERSION` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | const API_VERSION: &str = "2020-12-29"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PublicParamsV1` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct PublicParamsV1 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fields_without_signature`, and `endpoint` are never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl PublicParamsV1 { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 52 | pub fn new(region: Region, secret_id: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn fields_without_signature(&self) -> Vec<(&str, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn endpoint(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `query_string` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn query_string(host: &str, http_method: axum::http::Method, mut fields: Vec<(&str, String)>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BASE64_ENGINE` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | static BASE64_ENGINE: base64::engine::general_purpose::GeneralPurpose = base64::engine::general_purpose::STANDARD; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hmac_sha1` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn hmac_sha1(secret_key: &str, str2sign: String) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_body` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn post_body(host: &str, secret_key: &str, public_params: &PublicParamsV1, input_params: &InputParams) -> Result src/infra/aigc_detect/tencent.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub struct InputParams { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fields` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 129 | impl InputParams { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 130 | fn fields(&self) -> Vec<(&str, String)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Region` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:144:10 [INFO] [stdout] | [INFO] [stdout] 144 | pub enum Region { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:164:10 [INFO] [stdout] | [INFO] [stdout] 164 | async fn post( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Response` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct Response { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseInner` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct ResponseInner { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Suggestion` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | pub enum Suggestion { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling chord-forge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `TecentAIGCDetectService` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub struct TecentAIGCDetectService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TecentAIGCDetectConfig` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 273 | pub struct TecentAIGCDetectConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_region` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:281:12 [INFO] [stdout] | [INFO] [stdout] 280 | impl TecentAIGCDetectConfig { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 281 | pub fn set_region(&mut self, region: Region) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:287:12 [INFO] [stdout] | [INFO] [stdout] 286 | impl TecentAIGCDetectConfig { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 287 | pub fn new(secret_id: String, secret_key: String, region: Region, biz_type: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TecentAIGCDetectParams` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:300:12 [INFO] [stdout] | [INFO] [stdout] 300 | pub struct TecentAIGCDetectParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMAGE_MODERATION` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:36:15 [INFO] [stdout] | [INFO] [stdout] 36 | pub const IMAGE_MODERATION: &str = "ImageModeration"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower_service::Service` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tower_service::Service; [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: `fmt::Display` [INFO] [stdout] --> src/domain/aigc_detect.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, fmt::Display}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TRACING_INIT` is never used [INFO] [stdout] --> src/lib.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | static TRACING_INIT: std::sync::Once = std::sync::Once::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `router` is never used [INFO] [stdout] --> src/lib.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn router() -> Router{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpenApiDoc` is never constructed [INFO] [stdout] --> src/lib.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct OpenApiDoc; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SecurityAddon` is never constructed [INFO] [stdout] --> src/lib.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct SecurityAddon; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AIGCService` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait AIGCService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `APIClientConfig` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait APIClientConfig: DowncastSend {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `APIClientParams` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait APIClientParams: DowncastSend {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `APIClientResponse` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait APIClientResponse: DowncastSend { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AIGCImgDetectRiskLevel` is never used [INFO] [stdout] --> src/domain/aigc_detect.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum AIGCImgDetectRiskLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConfigTypeError`, `ParamsTypeError`, `ServiceNotInitialized`, `ApiError`, and `DowncastError` are never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum TecentAIGCDetectError { [INFO] [stdout] | --------------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 22 | ConfigTypeError, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | #[error("Invalid params type, expected TecentAIGCDetectParams")] [INFO] [stdout] 24 | ParamsTypeError, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | #[error("Service not initialized")] [INFO] [stdout] 26 | ServiceNotInitialized, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | #[error("API error: {0}")] [INFO] [stdout] 28 | ApiError(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | #[error("Downcast to {0} error")] [INFO] [stdout] 30 | DowncastError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TecentAIGCDetectError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ApBeijing`, `ApNanjing`, `ApShanghai`, and `ApSingapore` are never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:145:5 [INFO] [stdout] | [INFO] [stdout] 144 | pub enum Region { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 145 | ApBeijing, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 146 | ApGuangzhou, [INFO] [stdout] 147 | ApNanjing, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 148 | ApShanghai, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 149 | ApSingapore, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Region` 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 `response` is never read [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct Response { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 181 | #[serde(rename = "Response")] [INFO] [stdout] 182 | pub response: ResponseInner, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Response` 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: multiple fields are never read [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:198:5 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct ResponseInner { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 198 | request_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 199 | data_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 200 | hit_flag: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 201 | hit_type: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 202 | suggestion: Suggestion, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 203 | label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 204 | sub_label: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 205 | score: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 206 | label_results: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 207 | object_results: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 208 | ocr_results: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 209 | lib_results: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 210 | recognition_results: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 211 | extra: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResponseInner` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TecentAIGCDetectService` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub struct TecentAIGCDetectService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TecentAIGCDetectConfig` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 273 | pub struct TecentAIGCDetectConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_region` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:281:12 [INFO] [stdout] | [INFO] [stdout] 280 | impl TecentAIGCDetectConfig { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 281 | pub fn set_region(&mut self, region: Region) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:287:12 [INFO] [stdout] | [INFO] [stdout] 286 | impl TecentAIGCDetectConfig { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 287 | pub fn new(secret_id: String, secret_key: String, region: Region, biz_type: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TecentAIGCDetectParams` is never constructed [INFO] [stdout] --> src/infra/aigc_detect/tencent.rs:300:12 [INFO] [stdout] | [INFO] [stdout] 300 | pub struct TecentAIGCDetectParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.41s [INFO] running `Command { std: "docker" "inspect" "dcdc97a8ed3d02b9ecaf605dbe424fee64853c1e65ce877eac172187b0b80e07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dcdc97a8ed3d02b9ecaf605dbe424fee64853c1e65ce877eac172187b0b80e07", kill_on_drop: false }` [INFO] [stdout] dcdc97a8ed3d02b9ecaf605dbe424fee64853c1e65ce877eac172187b0b80e07