[INFO] cloning repository https://github.com/DavidPZ142/Rust_httpClient [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DavidPZ142/Rust_httpClient" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDavidPZ142%2FRust_httpClient", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDavidPZ142%2FRust_httpClient'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6b56fe4d5f089d65d2612e00ce65a20a11969c68 [INFO] building DavidPZ142/Rust_httpClient against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDavidPZ142%2FRust_httpClient" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/DavidPZ142/Rust_httpClient [INFO] finished tweaking git repo https://github.com/DavidPZ142/Rust_httpClient [INFO] tweaked toml for git repo https://github.com/DavidPZ142/Rust_httpClient written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/DavidPZ142/Rust_httpClient 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/DavidPZ142/Rust_httpClient 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 once_cell v1.21.1 [INFO] [stderr] Downloaded time-macros v0.2.21 [INFO] [stderr] Downloaded cookie_store v0.21.1 [INFO] [stderr] Downloaded env_logger v0.11.7 [INFO] [stderr] Downloaded ureq-proto v0.3.5 [INFO] [stderr] Downloaded jiff-static v0.2.4 [INFO] [stderr] Downloaded ureq v3.0.10 [INFO] [stderr] Downloaded tempfile v3.19.0 [INFO] [stderr] Downloaded yaml-rust2 v0.10.0 [INFO] [stderr] Downloaded time v0.3.40 [INFO] [stderr] Downloaded rustls-webpki v0.103.0 [INFO] [stderr] Downloaded rustls v0.23.25 [INFO] [stderr] Downloaded jiff v0.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 582e86886f7a17372443dc4272fd5bb4be42310dc242e2434070b2395c442ec8 [INFO] running `Command { std: "docker" "start" "-a" "582e86886f7a17372443dc4272fd5bb4be42310dc242e2434070b2395c442ec8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "582e86886f7a17372443dc4272fd5bb4be42310dc242e2434070b2395c442ec8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "582e86886f7a17372443dc4272fd5bb4be42310dc242e2434070b2395c442ec8", kill_on_drop: false }` [INFO] [stdout] 582e86886f7a17372443dc4272fd5bb4be42310dc242e2434070b2395c442ec8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5c19226808359aea9a7548fa43b15d35ae282cc35eefbf782de1a07544fa2507 [INFO] running `Command { std: "docker" "start" "-a" "5c19226808359aea9a7548fa43b15d35ae282cc35eefbf782de1a07544fa2507", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling winnow v0.7.4 [INFO] [stderr] Compiling rustls v0.23.25 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling trim-in-place v0.1.7 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling ureq-proto v0.3.5 [INFO] [stderr] Compiling jiff v0.2.4 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling webpki-roots v0.26.8 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling flate2 v1.1.0 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling yaml-rust2 v0.10.0 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling dlv-list v0.5.2 [INFO] [stderr] Compiling ordered-multimap v0.7.3 [INFO] [stderr] Compiling rust-ini v0.21.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling env_logger v0.11.7 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling rustls-webpki v0.103.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [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 tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling pest v2.7.15 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling pest_meta v2.7.15 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling pest_generator v2.7.15 [INFO] [stderr] Compiling pest_derive v2.7.15 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.8 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling toml_edit v0.22.24 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling ureq v3.0.10 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling toml v0.8.20 [INFO] [stderr] Compiling config v0.15.11 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling my_rust_project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::infrastructure::http_client::HttpClient` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::infrastructure::http_client::HttpClient; [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: `crate::services::http_service::HttpService` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::services::http_service::HttpService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/infrastructure/http_client_2.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Body` [INFO] [stdout] --> src/infrastructure/http_client_2.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use ureq::{Agent, Body}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ureq::config::Config` [INFO] [stdout] --> src/infrastructure/http_client_2.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ureq::config::Config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ureq::http::Response` [INFO] [stdout] --> src/infrastructure/http_client_2.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ureq::http::Response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/infrastructure/http_client_2.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut config = Agent::config_builder() [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Student` is never constructed [INFO] [stdout] --> src/student.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Student{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `look_info` are never used [INFO] [stdout] --> src/student.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Student { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 6 | pub fn new (name: &str , age : u8) -> Student{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn look_info(&self){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Response` is never constructed [INFO] [stdout] --> src/domain/http/response.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Response { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/domain/http/response.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Response { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new (status : u16, headers: HashMap, body: serde_json::Value) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ResponseError` and `DeserializationError` are never constructed [INFO] [stdout] --> src/errors/http_error.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum HttpError{ [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | ResponseError(u16), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | DeserializationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HttpClient` is never constructed [INFO] [stdout] --> src/infrastructure/http_client.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct HttpClient { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, and `post` are never used [INFO] [stdout] --> src/infrastructure/http_client.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl HttpClient { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(base_url: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub async fn get(&self, endpoint : &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn post(&self, endpoint: &str, data: &T) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/infrastructure/http_client_2.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 15 | impl HttpClient2 { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get(&self, url : &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HttpService` is never constructed [INFO] [stdout] --> src/services/http_service.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HttpService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, and `post` are never used [INFO] [stdout] --> src/services/http_service.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl HttpService { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(client: HttpClient) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub async fn get(&self, endpoint: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub async fn post(&self, endpoint: &str, data: &T) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 22s [INFO] running `Command { std: "docker" "inspect" "5c19226808359aea9a7548fa43b15d35ae282cc35eefbf782de1a07544fa2507", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c19226808359aea9a7548fa43b15d35ae282cc35eefbf782de1a07544fa2507", kill_on_drop: false }` [INFO] [stdout] 5c19226808359aea9a7548fa43b15d35ae282cc35eefbf782de1a07544fa2507 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 578a2e934409bd2b4df59398e012faaeb30455459f44e650b35aab404d37252c [INFO] running `Command { std: "docker" "start" "-a" "578a2e934409bd2b4df59398e012faaeb30455459f44e650b35aab404d37252c", kill_on_drop: false }` [INFO] [stderr] Compiling my_rust_project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::infrastructure::http_client::HttpClient` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::infrastructure::http_client::HttpClient; [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: `crate::services::http_service::HttpService` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::services::http_service::HttpService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/infrastructure/http_client_2.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Body` [INFO] [stdout] --> src/infrastructure/http_client_2.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use ureq::{Agent, Body}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ureq::config::Config` [INFO] [stdout] --> src/infrastructure/http_client_2.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ureq::config::Config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ureq::http::Response` [INFO] [stdout] --> src/infrastructure/http_client_2.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ureq::http::Response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/infrastructure/http_client_2.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut config = Agent::config_builder() [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Student` is never constructed [INFO] [stdout] --> src/student.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Student{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `look_info` are never used [INFO] [stdout] --> src/student.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Student { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 6 | pub fn new (name: &str , age : u8) -> Student{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn look_info(&self){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Response` is never constructed [INFO] [stdout] --> src/domain/http/response.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Response { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/domain/http/response.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Response { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new (status : u16, headers: HashMap, body: serde_json::Value) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ResponseError` and `DeserializationError` are never constructed [INFO] [stdout] --> src/errors/http_error.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum HttpError{ [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | ResponseError(u16), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | DeserializationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HttpClient` is never constructed [INFO] [stdout] --> src/infrastructure/http_client.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct HttpClient { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, and `post` are never used [INFO] [stdout] --> src/infrastructure/http_client.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl HttpClient { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(base_url: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub async fn get(&self, endpoint : &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn post(&self, endpoint: &str, data: &T) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/infrastructure/http_client_2.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 15 | impl HttpClient2 { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get(&self, url : &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HttpService` is never constructed [INFO] [stdout] --> src/services/http_service.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HttpService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, and `post` are never used [INFO] [stdout] --> src/services/http_service.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl HttpService { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(client: HttpClient) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub async fn get(&self, endpoint: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub async fn post(&self, endpoint: &str, data: &T) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.19s [INFO] running `Command { std: "docker" "inspect" "578a2e934409bd2b4df59398e012faaeb30455459f44e650b35aab404d37252c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "578a2e934409bd2b4df59398e012faaeb30455459f44e650b35aab404d37252c", kill_on_drop: false }` [INFO] [stdout] 578a2e934409bd2b4df59398e012faaeb30455459f44e650b35aab404d37252c