[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#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDavidPZ142%2FRust_httpClient" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-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-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/DavidPZ142/Rust_httpClient on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded env_logger v0.11.7 [INFO] [stderr] Downloaded time-macros v0.2.21 [INFO] [stderr] Downloaded time v0.3.40 [INFO] [stderr] Downloaded jiff-static v0.2.4 [INFO] [stderr] Downloaded ureq-proto v0.3.5 [INFO] [stderr] Downloaded yaml-rust2 v0.10.0 [INFO] [stderr] Downloaded ureq v3.0.10 [INFO] [stderr] Downloaded jiff v0.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 819bb0ff135dcf73d3c246240aedb8f7e7f2cd63989238f6e6d457ab1fcac3ca [INFO] running `Command { std: "docker" "start" "-a" "819bb0ff135dcf73d3c246240aedb8f7e7f2cd63989238f6e6d457ab1fcac3ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "819bb0ff135dcf73d3c246240aedb8f7e7f2cd63989238f6e6d457ab1fcac3ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "819bb0ff135dcf73d3c246240aedb8f7e7f2cd63989238f6e6d457ab1fcac3ca", kill_on_drop: false }` [INFO] [stdout] 819bb0ff135dcf73d3c246240aedb8f7e7f2cd63989238f6e6d457ab1fcac3ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6891c4e10e6e40c20a192263e821ca8a4ca5a3a71430288c43e19773391130e6 [INFO] running `Command { std: "docker" "start" "-a" "6891c4e10e6e40c20a192263e821ca8a4ca5a3a71430288c43e19773391130e6", kill_on_drop: false }` [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling pest v2.7.15 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling winnow v0.7.4 [INFO] [stderr] Compiling rustls v0.23.25 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling arraydeque v0.5.1 [INFO] [stderr] Compiling trim-in-place v0.1.7 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling yaml-rust2 v0.10.0 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling ureq-proto v0.3.5 [INFO] [stderr] Compiling flate2 v1.1.0 [INFO] [stderr] Compiling webpki-roots v0.26.8 [INFO] [stderr] Compiling jiff v0.2.4 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling pest_meta v2.7.15 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling regex-automata v0.4.9 [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 toml_edit v0.22.24 [INFO] [stderr] Compiling pest_generator v2.7.15 [INFO] [stderr] Compiling rust-ini v0.21.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling pest_derive v2.7.15 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling toml v0.8.20 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling config v0.15.11 [INFO] [stderr] Compiling rustls-webpki v0.103.0 [INFO] [stderr] Compiling env_logger v0.11.7 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.8 [INFO] [stderr] Compiling ureq v3.0.10 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [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 59.52s [INFO] running `Command { std: "docker" "inspect" "6891c4e10e6e40c20a192263e821ca8a4ca5a3a71430288c43e19773391130e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6891c4e10e6e40c20a192263e821ca8a4ca5a3a71430288c43e19773391130e6", kill_on_drop: false }` [INFO] [stdout] 6891c4e10e6e40c20a192263e821ca8a4ca5a3a71430288c43e19773391130e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 627a406be153a2139494fe9f9de123a8e26d8f569babb1f24ac9ed4bd0e507f3 [INFO] running `Command { std: "docker" "start" "-a" "627a406be153a2139494fe9f9de123a8e26d8f569babb1f24ac9ed4bd0e507f3", 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.33s [INFO] running `Command { std: "docker" "inspect" "627a406be153a2139494fe9f9de123a8e26d8f569babb1f24ac9ed4bd0e507f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "627a406be153a2139494fe9f9de123a8e26d8f569babb1f24ac9ed4bd0e507f3", kill_on_drop: false }` [INFO] [stdout] 627a406be153a2139494fe9f9de123a8e26d8f569babb1f24ac9ed4bd0e507f3