[INFO] cloning repository https://github.com/megahomyak/netschoolapi_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/megahomyak/netschoolapi_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmegahomyak%2Fnetschoolapi_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmegahomyak%2Fnetschoolapi_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 88a425a326f48326e7a4cb3dc72622801d4d6503 [INFO] checking megahomyak/netschoolapi_rust against try#377afada703be70d3fdff9164a481570a3cba7fe for pr-113240 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmegahomyak%2Fnetschoolapi_rust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/megahomyak/netschoolapi_rust on toolchain 377afada703be70d3fdff9164a481570a3cba7fe [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+377afada703be70d3fdff9164a481570a3cba7fe" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/megahomyak/netschoolapi_rust [INFO] finished tweaking git repo https://github.com/megahomyak/netschoolapi_rust [INFO] tweaked toml for git repo https://github.com/megahomyak/netschoolapi_rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/megahomyak/netschoolapi_rust 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" "+377afada703be70d3fdff9164a481570a3cba7fe" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+377afada703be70d3fdff9164a481570a3cba7fe" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41eba493b9c12c4beeed33d6eed3f339d511d531f6c6bc52ba2eef98c3d77df6 [INFO] running `Command { std: "docker" "start" "-a" "41eba493b9c12c4beeed33d6eed3f339d511d531f6c6bc52ba2eef98c3d77df6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41eba493b9c12c4beeed33d6eed3f339d511d531f6c6bc52ba2eef98c3d77df6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41eba493b9c12c4beeed33d6eed3f339d511d531f6c6bc52ba2eef98c3d77df6", kill_on_drop: false }` [INFO] [stdout] 41eba493b9c12c4beeed33d6eed3f339d511d531f6c6bc52ba2eef98c3d77df6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+377afada703be70d3fdff9164a481570a3cba7fe" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d800895d0f22a957949744624026883487c7da5c6a7e32cbc74ae0b4c9b6a1ee [INFO] running `Command { std: "docker" "start" "-a" "d800895d0f22a957949744624026883487c7da5c6a7e32cbc74ae0b4c9b6a1ee", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Checking once_cell v1.13.1 [INFO] [stderr] Compiling futures-core v0.3.23 [INFO] [stderr] Compiling tokio v1.20.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling futures-task v0.3.23 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking encoding_index_tests v0.1.4 [INFO] [stderr] Compiling futures-util v0.3.23 [INFO] [stderr] Compiling futures-channel v0.3.23 [INFO] [stderr] Checking futures-sink v0.3.23 [INFO] [stderr] Compiling cookie v0.16.0 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Checking time v0.3.13 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking tracing-core v0.1.29 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking publicsuffix v2.2.2 [INFO] [stderr] Compiling async-trait v0.1.57 [INFO] [stderr] Checking encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Checking encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-korean v1.20141219.5 [INFO] [stderr] Checking encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-japanese v1.20141219.5 [INFO] [stderr] Checking tracing v0.1.36 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Checking encoding v0.2.33 [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stderr] Checking tokio-util v0.7.3 [INFO] [stderr] Checking h2 v0.3.14 [INFO] [stderr] Compiling serde_derive v1.0.144 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling concat_strs_impl v1.0.1 [INFO] [stderr] Checking openssl v0.10.41 [INFO] [stderr] Checking concat_strs v1.0.2 [INFO] [stderr] Checking hyper v0.14.20 [INFO] [stderr] Checking serde v1.0.144 [INFO] [stderr] Checking native-tls v0.2.10 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking cookie_store v0.16.1 [INFO] [stderr] Checking reqwest v0.11.11 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking netschoolapi_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated items `new` and `log_out` are never used [INFO] [stdout] --> src/web_clients/logged_in_web_client.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl LoggedInWebClient { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 13 | pub const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn log_out(self) -> LoggedOutWebClient { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `log_out` are never used [INFO] [stdout] --> src/web_clients/logged_in_web_client.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl LoggedInWebClient { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 13 | pub const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn log_out(self) -> LoggedOutWebClient { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `log_in` are never used [INFO] [stdout] --> src/web_clients/logged_out_web_client.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl LoggedOutWebClient { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 12 | pub const fn new(inner_client: WebClientWithCookies, base_url: UrlWithApiBaseRoute) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn log_in(self, access_token: reqwest::header::HeaderValue) -> LoggedInWebClient { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `log_in` are never used [INFO] [stdout] --> src/web_clients/logged_out_web_client.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl LoggedOutWebClient { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 12 | pub const fn new(inner_client: WebClientWithCookies, base_url: UrlWithApiBaseRoute) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn log_in(self, access_token: reqwest::header::HeaderValue) -> LoggedInWebClient { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RequestBuilder` is never constructed [INFO] [stdout] --> src/web_clients/request_builder.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct RequestBuilder(reqwest::RequestBuilder); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `send`, `json`, `new`, and `query` are never used [INFO] [stdout] --> src/web_clients/request_builder.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 5 | impl RequestBuilder { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 6 | pub async fn send(self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn json(mut self, json: &T) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub const fn new(inner: reqwest::RequestBuilder) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn query(mut self, query: &T) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `inner` is never used [INFO] [stdout] --> src/web_clients/url_with_api_base_route.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 5 | impl UrlWithApiBaseRoute { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] 6 | pub const fn inner(&self) -> &reqwest::Url { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `inner` are never used [INFO] [stdout] --> src/web_clients/web_client_with_cookies.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl WebClientWithCookies { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 4 | pub fn new(client_builder: reqwest::ClientBuilder) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub const fn inner(&self) -> &reqwest::Client { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `IllFormedUrl` is never constructed [INFO] [stdout] --> src/web_clients/web_client_trait.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RequestError { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 7 | IllFormedUrl, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` 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`, `request`, `get`, `post`, and `into_inner` are never used [INFO] [stdout] --> src/web_clients/web_client_wrapper.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl WebClientWrapper { [INFO] [stdout] | ---------------------------------------------- associated items in this implementation [INFO] [stdout] 11 | pub const fn new(inner: Inner) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn request( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get(&self, url: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn post(&self, url: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn into_inner(self) -> Inner { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LoggedInClient` is never constructed [INFO] [stdout] --> src/net_school_clients/logged_in_client.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct LoggedInClient { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net_school_clients/logged_in_client.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl LoggedInClient { [INFO] [stdout] | ----------------------------------------------------------- associated function in this implementation [INFO] [stdout] 15 | pub const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `log_out_anyway` and `log_out` are never used [INFO] [stdout] --> src/net_school_clients/logged_in_client.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 26 | impl LoggedInClient { [INFO] [stdout] | ----------------------------------------------------------------------- methods in this implementation [INFO] [stdout] 27 | pub async fn log_out_anyway( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn log_out( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `auth_data` and `web_client` are never read [INFO] [stdout] --> src/net_school_clients/inactive_client.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct InactiveClient { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 19 | auth_data: AuthData, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | web_client: WebClientWrapper, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidCharactersInPassword` and `InvalidCredentials` are never constructed [INFO] [stdout] --> src/net_school_clients/inactive_client.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum AuthError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | InvalidCharactersInPassword, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | InvalidCredentials(reqwest::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RequestError` and `InvalidJsonInServerResponse` are never constructed [INFO] [stdout] --> src/net_school_clients/inactive_client.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum SchoolsGettingError { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 43 | RequestError(reqwest::Error), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 44 | /// It's either the response is not JSON at all, or it does not match the expected structure. [INFO] [stdout] 45 | InvalidJsonInServerResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SchoolNotFound` is never constructed [INFO] [stdout] --> src/net_school_clients/inactive_client.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub enum SchoolByNameGettingError { [INFO] [stdout] | ------------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 51 | SchoolNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_auth_data` is never used [INFO] [stdout] --> src/net_school_clients/inactive_client.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl InactiveClient { [INFO] [stdout] | ----------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn set_auth_data(&mut self, auth_data: AuthData) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `schools`, `school_by_name`, and `log_in` are never used [INFO] [stdout] --> src/net_school_clients/inactive_client.rs:79:18 [INFO] [stdout] | [INFO] [stdout] 76 | / impl + Send + Sync, Password: Borrow + Send + Sync> [INFO] [stdout] 77 | | InactiveClient [INFO] [stdout] | |______________________________________- methods in this implementation [INFO] [stdout] 78 | { [INFO] [stdout] 79 | pub async fn schools(&self) -> Result, SchoolsGettingError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub async fn school_by_name( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub async fn log_in(mut self) -> Result, (AuthError, Self)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net_school_clients/logged_out_client.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl LoggedOutClient { [INFO] [stdout] | ------------------------------------------------------------ associated function in this implementation [INFO] [stdout] 17 | pub const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `student_id`, `year_id`, and `assignment_types` are never read [INFO] [stdout] --> src/user_data.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct UserData { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 12 | student_id: BigInt, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | year_id: BigInt, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | assignment_types: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RequestError` and `InvalidJsonInServerResponse` are never constructed [INFO] [stdout] --> src/user_data.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum MakingError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 19 | RequestError(reqwest::Error), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 20 | /// It's either the response is not JSON at all, or it does not match the expected structure. [INFO] [stdout] 21 | InvalidJsonInServerResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `make` is never used [INFO] [stdout] --> src/user_data.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 24 | impl UserData { [INFO] [stdout] | ----------------------------------------------------------------- associated function in this implementation [INFO] [stdout] 25 | pub async fn make( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `student_id`, `year_id`, `assignment_types`, and `auth_data` are never used [INFO] [stdout] --> src/user_data.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 92 | impl UserData { [INFO] [stdout] | ----------------------------------------------------- methods in this implementation [INFO] [stdout] 93 | pub const fn student_id(&self) -> &BigInt { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub const fn year_id(&self) -> &BigInt { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub const fn assignment_types(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub const fn auth_data(&self) -> &AuthData { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Regular` is never constructed [INFO] [stdout] --> src/schemas.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum LoginType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 11 | /// With username and password. [INFO] [stdout] 12 | Regular = 1, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RequestBuilder` is never constructed [INFO] [stdout] --> src/web_clients/request_builder.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct RequestBuilder(reqwest::RequestBuilder); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `send`, `json`, `new`, and `query` are never used [INFO] [stdout] --> src/web_clients/request_builder.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 5 | impl RequestBuilder { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 6 | pub async fn send(self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn json(mut self, json: &T) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub const fn new(inner: reqwest::RequestBuilder) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn query(mut self, query: &T) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `inner` is never used [INFO] [stdout] --> src/web_clients/url_with_api_base_route.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 5 | impl UrlWithApiBaseRoute { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] 6 | pub const fn inner(&self) -> &reqwest::Url { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `inner` are never used [INFO] [stdout] --> src/web_clients/web_client_with_cookies.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl WebClientWithCookies { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 4 | pub fn new(client_builder: reqwest::ClientBuilder) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub const fn inner(&self) -> &reqwest::Client { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `IllFormedUrl` is never constructed [INFO] [stdout] --> src/web_clients/web_client_trait.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RequestError { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 7 | IllFormedUrl, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` 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`, `request`, `get`, `post`, and `into_inner` are never used [INFO] [stdout] --> src/web_clients/web_client_wrapper.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl WebClientWrapper { [INFO] [stdout] | ---------------------------------------------- associated items in this implementation [INFO] [stdout] 11 | pub const fn new(inner: Inner) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn request( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get(&self, url: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn post(&self, url: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn into_inner(self) -> Inner { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LoggedInClient` is never constructed [INFO] [stdout] --> src/net_school_clients/logged_in_client.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct LoggedInClient { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net_school_clients/logged_in_client.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl LoggedInClient { [INFO] [stdout] | ----------------------------------------------------------- associated function in this implementation [INFO] [stdout] 15 | pub const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `log_out_anyway` and `log_out` are never used [INFO] [stdout] --> src/net_school_clients/logged_in_client.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 26 | impl LoggedInClient { [INFO] [stdout] | ----------------------------------------------------------------------- methods in this implementation [INFO] [stdout] 27 | pub async fn log_out_anyway( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn log_out( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `auth_data` and `web_client` are never read [INFO] [stdout] --> src/net_school_clients/inactive_client.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct InactiveClient { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 19 | auth_data: AuthData, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | web_client: WebClientWrapper, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidCharactersInPassword` and `InvalidCredentials` are never constructed [INFO] [stdout] --> src/net_school_clients/inactive_client.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum AuthError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | InvalidCharactersInPassword, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | InvalidCredentials(reqwest::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RequestError` and `InvalidJsonInServerResponse` are never constructed [INFO] [stdout] --> src/net_school_clients/inactive_client.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum SchoolsGettingError { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 43 | RequestError(reqwest::Error), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 44 | /// It's either the response is not JSON at all, or it does not match the expected structure. [INFO] [stdout] 45 | InvalidJsonInServerResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SchoolNotFound` is never constructed [INFO] [stdout] --> src/net_school_clients/inactive_client.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub enum SchoolByNameGettingError { [INFO] [stdout] | ------------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 51 | SchoolNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_auth_data` is never used [INFO] [stdout] --> src/net_school_clients/inactive_client.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl InactiveClient { [INFO] [stdout] | ----------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn set_auth_data(&mut self, auth_data: AuthData) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `schools`, `school_by_name`, and `log_in` are never used [INFO] [stdout] --> src/net_school_clients/inactive_client.rs:79:18 [INFO] [stdout] | [INFO] [stdout] 76 | / impl + Send + Sync, Password: Borrow + Send + Sync> [INFO] [stdout] 77 | | InactiveClient [INFO] [stdout] | |______________________________________- methods in this implementation [INFO] [stdout] 78 | { [INFO] [stdout] 79 | pub async fn schools(&self) -> Result, SchoolsGettingError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub async fn school_by_name( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub async fn log_in(mut self) -> Result, (AuthError, Self)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net_school_clients/logged_out_client.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl LoggedOutClient { [INFO] [stdout] | ------------------------------------------------------------ associated function in this implementation [INFO] [stdout] 17 | pub const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `student_id`, `year_id`, and `assignment_types` are never read [INFO] [stdout] --> src/user_data.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct UserData { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 12 | student_id: BigInt, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | year_id: BigInt, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | assignment_types: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RequestError` and `InvalidJsonInServerResponse` are never constructed [INFO] [stdout] --> src/user_data.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum MakingError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 19 | RequestError(reqwest::Error), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 20 | /// It's either the response is not JSON at all, or it does not match the expected structure. [INFO] [stdout] 21 | InvalidJsonInServerResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `make` is never used [INFO] [stdout] --> src/user_data.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 24 | impl UserData { [INFO] [stdout] | ----------------------------------------------------------------- associated function in this implementation [INFO] [stdout] 25 | pub async fn make( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `student_id`, `year_id`, `assignment_types`, and `auth_data` are never used [INFO] [stdout] --> src/user_data.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 92 | impl UserData { [INFO] [stdout] | ----------------------------------------------------- methods in this implementation [INFO] [stdout] 93 | pub const fn student_id(&self) -> &BigInt { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub const fn year_id(&self) -> &BigInt { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub const fn assignment_types(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub const fn auth_data(&self) -> &AuthData { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Regular` is never constructed [INFO] [stdout] --> src/schemas.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum LoginType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 11 | /// With username and password. [INFO] [stdout] 12 | Regular = 1, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 15.78s [INFO] running `Command { std: "docker" "inspect" "d800895d0f22a957949744624026883487c7da5c6a7e32cbc74ae0b4c9b6a1ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d800895d0f22a957949744624026883487c7da5c6a7e32cbc74ae0b4c9b6a1ee", kill_on_drop: false }` [INFO] [stdout] d800895d0f22a957949744624026883487c7da5c6a7e32cbc74ae0b4c9b6a1ee