[INFO] cloning repository https://github.com/ChangedNameTo/tt-herald-discord [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ChangedNameTo/tt-herald-discord" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChangedNameTo%2Ftt-herald-discord", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChangedNameTo%2Ftt-herald-discord'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3475be6f6c292a59abbe65c586018c32042ec703 [INFO] checking ChangedNameTo/tt-herald-discord against master#b3f8586fb1e4859678d6b231e780ff81801d2282 for pr-147589 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChangedNameTo%2Ftt-herald-discord" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ChangedNameTo/tt-herald-discord [INFO] finished tweaking git repo https://github.com/ChangedNameTo/tt-herald-discord [INFO] tweaked toml for git repo https://github.com/ChangedNameTo/tt-herald-discord written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ChangedNameTo/tt-herald-discord on toolchain b3f8586fb1e4859678d6b231e780ff81801d2282 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b3f8586fb1e4859678d6b231e780ff81801d2282" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ChangedNameTo/tt-herald-discord 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" "+b3f8586fb1e4859678d6b231e780ff81801d2282" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded command_attr v0.3.8 [INFO] [stderr] Downloaded typemap_rev v0.1.5 [INFO] [stderr] Downloaded async-tungstenite v0.11.0 [INFO] [stderr] Downloaded webpki-roots v0.20.0 [INFO] [stderr] Downloaded serenity v0.10.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+b3f8586fb1e4859678d6b231e780ff81801d2282" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b8364dfe8a56c86cd8cf80961bd0ab17636dcb10660ec40a92b840332ab1bb4 [INFO] running `Command { std: "docker" "start" "-a" "1b8364dfe8a56c86cd8cf80961bd0ab17636dcb10660ec40a92b840332ab1bb4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b8364dfe8a56c86cd8cf80961bd0ab17636dcb10660ec40a92b840332ab1bb4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b8364dfe8a56c86cd8cf80961bd0ab17636dcb10660ec40a92b840332ab1bb4", kill_on_drop: false }` [INFO] [stdout] 1b8364dfe8a56c86cd8cf80961bd0ab17636dcb10660ec40a92b840332ab1bb4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+b3f8586fb1e4859678d6b231e780ff81801d2282" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 33a33d663a4207edd51e882ac0e18f3779edc758ae0aedfb8b1ff2b349d8af1c [INFO] running `Command { std: "docker" "start" "-a" "33a33d663a4207edd51e882ac0e18f3779edc758ae0aedfb8b1ff2b349d8af1c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking input_buffer v0.3.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Compiling serenity v0.10.10 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking uwl v0.6.0 [INFO] [stderr] Checking typemap_rev v0.1.5 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking webpki-roots v0.20.0 [INFO] [stderr] Compiling command_attr v0.3.8 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Checking tungstenite v0.11.1 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking async-tungstenite v0.11.0 [INFO] [stderr] Checking sqlx-sqlite v0.7.4 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking rust-discord-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `user_id` and `country_code` are never read [INFO] [stdout] --> src/api/herald.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Owner { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 10 | #[serde(rename = "userId")] [INFO] [stdout] 11 | pub user_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub country_code: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Owner` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `address`, `zip_code`, and `country_code` are never read [INFO] [stdout] --> src/api/herald.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Location { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 24 | pub name: String, [INFO] [stdout] 25 | pub address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 26 | #[serde(rename = "zipCode")] [INFO] [stdout] 27 | pub zip_code: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub country_code: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Location` 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/api/herald.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Tournament { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | pub created_date: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub number_of_prospects: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub number_of_teams: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 58 | #[serde(rename = "numberOfRegisteredTeams")] [INFO] [stdout] 59 | pub number_of_registered_teams: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 60 | #[serde(rename = "numberOfApprovedTeams")] [INFO] [stdout] 61 | pub number_of_approved_teams: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 62 | #[serde(rename = "numberOfCheckedInTeams")] [INFO] [stdout] 63 | pub number_of_checked_in_teams: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 64 | #[serde(rename = "requiredActiveRosterSize")] [INFO] [stdout] 65 | pub required_active_roster_size: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub image_url: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tournament` 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: fields `total_elements` and `total_pages` are never read [INFO] [stdout] --> src/api/herald.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct TournamentSearchResponse { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] 99 | pub content: Vec, [INFO] [stdout] 100 | pub total_elements: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 101 | pub total_pages: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TournamentSearchResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_tournament_by_id` is never used [INFO] [stdout] --> src/api/herald.rs:279:18 [INFO] [stdout] | [INFO] [stdout] 136 | impl HeraldClient { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 279 | pub async fn get_tournament_by_id(&self, tournament_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_pairings` is never used [INFO] [stdout] --> src/api/herald.rs:400:14 [INFO] [stdout] | [INFO] [stdout] 400 | pub async fn get_pairings() -> Result, ApiError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_matchups` is never used [INFO] [stdout] --> src/api/herald.rs:413:14 [INFO] [stdout] | [INFO] [stdout] 413 | pub async fn get_matchups() -> Result, ApiError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_scores` is never used [INFO] [stdout] --> src/api/herald.rs:426:14 [INFO] [stdout] | [INFO] [stdout] 426 | pub async fn get_scores() -> Result, ApiError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rankings` is never used [INFO] [stdout] --> src/api/herald.rs:439:14 [INFO] [stdout] | [INFO] [stdout] 439 | pub async fn get_rankings() -> Result, ApiError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tournament_by_id` is never used [INFO] [stdout] --> src/api/herald.rs:473:14 [INFO] [stdout] | [INFO] [stdout] 473 | pub async fn get_tournament_by_id(tournament_id: &str) -> Result, ApiError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tournaments` is never used [INFO] [stdout] --> src/api/herald.rs:483:14 [INFO] [stdout] | [INFO] [stdout] 483 | pub async fn get_tournaments() -> Result, ApiError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserMapping` is never constructed [INFO] [stdout] --> src/database.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct UserMapping { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserTournament` is never constructed [INFO] [stdout] --> src/database.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct UserTournament { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_user_registered` is never used [INFO] [stdout] --> src/database.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 24 | impl Database { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn is_user_registered(&self, discord_user_id: UserId) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_scores` are never used [INFO] [stdout] --> src/models/pairing.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Pairing { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 16 | pub fn new(player_one: String, player_two: String, round: u32, match_id: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn set_scores(&mut self, score_one: u32, score_two: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update_score` are never used [INFO] [stdout] --> src/models/matchup.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Matchup { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 16 | pub fn new(player_one: String, player_two: String, round: u32, match_id: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn update_score(&mut self, score_one: u32, score_two: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/score.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Score { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(player_name: String, score: u32, match_id: String, timestamp: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/ranking.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Ranking { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 15 | pub fn new(player_name: String, score: u32, rank: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user_id` and `country_code` are never read [INFO] [stdout] --> src/api/herald.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Owner { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 10 | #[serde(rename = "userId")] [INFO] [stdout] 11 | pub user_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub country_code: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Owner` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `address`, `zip_code`, and `country_code` are never read [INFO] [stdout] --> src/api/herald.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Location { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 24 | pub name: String, [INFO] [stdout] 25 | pub address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 26 | #[serde(rename = "zipCode")] [INFO] [stdout] 27 | pub zip_code: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub country_code: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Location` 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/api/herald.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Tournament { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | pub created_date: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub number_of_prospects: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub number_of_teams: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 58 | #[serde(rename = "numberOfRegisteredTeams")] [INFO] [stdout] 59 | pub number_of_registered_teams: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 60 | #[serde(rename = "numberOfApprovedTeams")] [INFO] [stdout] 61 | pub number_of_approved_teams: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 62 | #[serde(rename = "numberOfCheckedInTeams")] [INFO] [stdout] 63 | pub number_of_checked_in_teams: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 64 | #[serde(rename = "requiredActiveRosterSize")] [INFO] [stdout] 65 | pub required_active_roster_size: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub image_url: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tournament` 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: fields `total_elements` and `total_pages` are never read [INFO] [stdout] --> src/api/herald.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct TournamentSearchResponse { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] 99 | pub content: Vec, [INFO] [stdout] 100 | pub total_elements: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 101 | pub total_pages: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TournamentSearchResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_tournament_by_id` is never used [INFO] [stdout] --> src/api/herald.rs:279:18 [INFO] [stdout] | [INFO] [stdout] 136 | impl HeraldClient { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 279 | pub async fn get_tournament_by_id(&self, tournament_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_pairings` is never used [INFO] [stdout] --> src/api/herald.rs:400:14 [INFO] [stdout] | [INFO] [stdout] 400 | pub async fn get_pairings() -> Result, ApiError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_matchups` is never used [INFO] [stdout] --> src/api/herald.rs:413:14 [INFO] [stdout] | [INFO] [stdout] 413 | pub async fn get_matchups() -> Result, ApiError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_scores` is never used [INFO] [stdout] --> src/api/herald.rs:426:14 [INFO] [stdout] | [INFO] [stdout] 426 | pub async fn get_scores() -> Result, ApiError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rankings` is never used [INFO] [stdout] --> src/api/herald.rs:439:14 [INFO] [stdout] | [INFO] [stdout] 439 | pub async fn get_rankings() -> Result, ApiError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tournament_by_id` is never used [INFO] [stdout] --> src/api/herald.rs:473:14 [INFO] [stdout] | [INFO] [stdout] 473 | pub async fn get_tournament_by_id(tournament_id: &str) -> Result, ApiError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tournaments` is never used [INFO] [stdout] --> src/api/herald.rs:483:14 [INFO] [stdout] | [INFO] [stdout] 483 | pub async fn get_tournaments() -> Result, ApiError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserMapping` is never constructed [INFO] [stdout] --> src/database.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct UserMapping { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserTournament` is never constructed [INFO] [stdout] --> src/database.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct UserTournament { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_user_registered` is never used [INFO] [stdout] --> src/database.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 24 | impl Database { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn is_user_registered(&self, discord_user_id: UserId) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_scores` are never used [INFO] [stdout] --> src/models/pairing.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Pairing { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 16 | pub fn new(player_one: String, player_two: String, round: u32, match_id: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn set_scores(&mut self, score_one: u32, score_two: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update_score` are never used [INFO] [stdout] --> src/models/matchup.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Matchup { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 16 | pub fn new(player_one: String, player_two: String, round: u32, match_id: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn update_score(&mut self, score_one: u32, score_two: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/score.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Score { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(player_name: String, score: u32, match_id: String, timestamp: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/ranking.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Ranking { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 15 | pub fn new(player_name: String, score: u32, rank: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 23s [INFO] running `Command { std: "docker" "inspect" "33a33d663a4207edd51e882ac0e18f3779edc758ae0aedfb8b1ff2b349d8af1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33a33d663a4207edd51e882ac0e18f3779edc758ae0aedfb8b1ff2b349d8af1c", kill_on_drop: false }` [INFO] [stdout] 33a33d663a4207edd51e882ac0e18f3779edc758ae0aedfb8b1ff2b349d8af1c