[INFO] cloning repository https://github.com/Draco-GitHub/calendar-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Draco-GitHub/calendar-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDraco-GitHub%2Fcalendar-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDraco-GitHub%2Fcalendar-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 68c0288eeb0198fdc708673e1227487670d3757d [INFO] checking Draco-GitHub/calendar-rust against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDraco-GitHub%2Fcalendar-rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Draco-GitHub/calendar-rust [INFO] finished tweaking git repo https://github.com/Draco-GitHub/calendar-rust [INFO] tweaked toml for git repo https://github.com/Draco-GitHub/calendar-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Draco-GitHub/calendar-rust on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Draco-GitHub/calendar-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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rustls-pki-types v1.9.0 [INFO] [stderr] Downloaded warp v0.4.2 [INFO] [stderr] Downloaded reqwest v0.12.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0f3c027e15a091fc2c865ac0ec0cec40d826ff9785d3c363eaaee19ad2ff73e9 [INFO] running `Command { std: "docker" "start" "-a" "0f3c027e15a091fc2c865ac0ec0cec40d826ff9785d3c363eaaee19ad2ff73e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f3c027e15a091fc2c865ac0ec0cec40d826ff9785d3c363eaaee19ad2ff73e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f3c027e15a091fc2c865ac0ec0cec40d826ff9785d3c363eaaee19ad2ff73e9", kill_on_drop: false }` [INFO] [stdout] 0f3c027e15a091fc2c865ac0ec0cec40d826ff9785d3c363eaaee19ad2ff73e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a368ef5deb74f7391137d395d8711685734ee22bd800b68f50baffbf2615b522 [INFO] running `Command { std: "docker" "start" "-a" "a368ef5deb74f7391137d395d8711685734ee22bd800b68f50baffbf2615b522", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling cc v1.1.21 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking unicode-bidi v0.3.17 [INFO] [stderr] Checking rustls-pki-types v1.9.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking headers-core v0.3.0 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Checking headers v0.4.1 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking ipnet v2.10.1 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking serde v1.0.210 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking h2 v0.4.6 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.16 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking warp v0.4.2 [INFO] [stderr] Checking reqwest v0.12.8 [INFO] [stderr] Checking Api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/calendar/calendar.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, Duration, Utc}; [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: `Duration` [INFO] [stdout] --> src/calendar/calendar.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, Duration, Utc}; [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 imports: `ArmorType`, `Armor`, `AuctionItem`, `AuctionListing`, and `Pet` [INFO] [stdout] --> src/api/auctions.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | Armor, ArmorType, AuctionItem, AuctionListing, HypixelAuction, Pet, [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/api/auctions.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/api/auctions.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArmorType`, `Armor`, `AuctionItem`, `AuctionListing`, and `Pet` [INFO] [stdout] --> src/api/auctions.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | Armor, ArmorType, AuctionItem, AuctionListing, HypixelAuction, Pet, [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/api/auctions.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/api/auctions.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Election` is more private than the item `SkyblockDay::get_events` [INFO] [stdout] --> src/calendar/skyblock.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn get_events(&mut self, previous_events: &Vec, previous_elections: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `SkyblockDay::get_events` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Election` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/calendar/skyblock.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | struct Election { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seconds_to_dhm` is never used [INFO] [stdout] --> src/main.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn seconds_to_dhm(seconds: i64) -> (i64, i64, i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_json_from_file` is never used [INFO] [stdout] --> src/helpers.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn read_json_from_file>(path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Calendar` is never constructed [INFO] [stdout] --> src/calendar/calendar.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Calendar { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/calendar/calendar.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Calendar { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 28 | pub fn new(title: String, description: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn get_id(&self) -> &Uuid { &self.id } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | pub fn add_event(&mut self, event: Event) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn get_event(&self, event_id: Uuid) -> Option<&Event> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_description(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn list_events(&self) -> Vec<&Event> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn find_upcoming_events(&self, date: DateTime) -> Vec<&Event> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SkyblockDay` is never constructed [INFO] [stdout] --> src/calendar/skyblock.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct SkyblockDay { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `as_datetime`, `date_to_skyblock`, `get_events`, `get_next_skyblock_day`, and `get_election` are never used [INFO] [stdout] --> src/calendar/skyblock.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl SkyblockDay { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new( day: i8, month: i8, year: i16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn as_datetime(&self) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn date_to_skyblock(date: DateTime) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_events(&mut self, previous_events: &Vec, previous_elections: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn get_next_skyblock_day(date: DateTime) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn get_election(sb_year: i16, previous_elections: &Vec) -> Option<&Election> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Election` is never constructed [INFO] [stdout] --> src/calendar/skyblock.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | struct Election { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_ongoing_election` and `get_events` are never used [INFO] [stdout] --> src/calendar/skyblock.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 95 | impl Election { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 96 | [INFO] [stdout] 97 | async fn get_ongoing_election() -> Election { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn get_events(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_calendar` is never used [INFO] [stdout] --> src/calendar/skyblock.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn generate_calendar(from: DateTime, to: DateTime) -> Calendar { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/calendar/database.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_id`, `get_name`, `add_calendar`, `get_calendar`, and `list_calendars` are never used [INFO] [stdout] --> src/calendar/database.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl User { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 28 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_id(&self) -> Uuid { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn get_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn add_calendar(&mut self, calendar: Calendar) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_calendar(&self, id: &Uuid) -> Option<&Calendar> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn list_calendars(&self) -> Vec<&Calendar> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataBase` is never constructed [INFO] [stdout] --> src/calendar/database.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct DataBase { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `init`, `add_user`, `get_user`, and `list_users` are never used [INFO] [stdout] --> src/calendar/database.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl DataBase { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 57 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn init(mut self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn add_user(&mut self, user: User) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn get_user(&self, user_id:Uuid) -> Option<&User> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn list_users(&self) -> Vec<&User> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `modulo`, `is_upcoming`, `get_start_time`, and `next_occurrence` are never used [INFO] [stdout] --> src/calendar/event.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Event { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn modulo(&self, date:DateTime) -> i64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub(crate) fn is_upcoming(&self, date: DateTime) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub(crate) fn get_start_time(&self) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn next_occurrence(&self, date:DateTime) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AuctionItem` is never used [INFO] [stdout] --> src/api/auction_items.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum AuctionItem { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pet` is never constructed [INFO] [stdout] --> src/api/auction_items.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Pet { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/api/auction_items.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Pet { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(name: String, level: i16, exp: i32, candy: i8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ArmorType` is never used [INFO] [stdout] --> src/api/auction_items.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ArmorType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Armor` is never constructed [INFO] [stdout] --> src/api/auction_items.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Armor { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/api/auction_items.rs:49:19 [INFO] [stdout] | [INFO] [stdout] 48 | impl Armor { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 49 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `totalPages` should have a snake case name [INFO] [stdout] --> src/api/auction_items.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | totalPages: usize, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `total_pages` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `totalAuctions` should have a snake case name [INFO] [stdout] --> src/api/auction_items.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | totalAuctions: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `total_auctions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `lastUpdated` should have a snake case name [INFO] [stdout] --> src/api/auction_items.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | lastUpdated: usize, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `last_updated` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Election` is more private than the item `SkyblockDay::get_events` [INFO] [stdout] --> src/calendar/skyblock.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn get_events(&mut self, previous_events: &Vec, previous_elections: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `SkyblockDay::get_events` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Election` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/calendar/skyblock.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | struct Election { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seconds_to_dhm` is never used [INFO] [stdout] --> src/main.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn seconds_to_dhm(seconds: i64) -> (i64, i64, i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_json_from_file` is never used [INFO] [stdout] --> src/helpers.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn read_json_from_file>(path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Calendar` is never constructed [INFO] [stdout] --> src/calendar/calendar.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Calendar { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/calendar/calendar.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Calendar { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 28 | pub fn new(title: String, description: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn get_id(&self) -> &Uuid { &self.id } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | pub fn add_event(&mut self, event: Event) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn get_event(&self, event_id: Uuid) -> Option<&Event> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_description(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn list_events(&self) -> Vec<&Event> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn find_upcoming_events(&self, date: DateTime) -> Vec<&Event> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SkyblockDay` is never constructed [INFO] [stdout] --> src/calendar/skyblock.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct SkyblockDay { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `as_datetime`, `date_to_skyblock`, `get_events`, `get_next_skyblock_day`, and `get_election` are never used [INFO] [stdout] --> src/calendar/skyblock.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl SkyblockDay { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new( day: i8, month: i8, year: i16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn as_datetime(&self) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn date_to_skyblock(date: DateTime) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_events(&mut self, previous_events: &Vec, previous_elections: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn get_next_skyblock_day(date: DateTime) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn get_election(sb_year: i16, previous_elections: &Vec) -> Option<&Election> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Election` is never constructed [INFO] [stdout] --> src/calendar/skyblock.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | struct Election { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_ongoing_election` and `get_events` are never used [INFO] [stdout] --> src/calendar/skyblock.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 95 | impl Election { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 96 | [INFO] [stdout] 97 | async fn get_ongoing_election() -> Election { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn get_events(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_calendar` is never used [INFO] [stdout] --> src/calendar/skyblock.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn generate_calendar(from: DateTime, to: DateTime) -> Calendar { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/calendar/database.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_id`, `get_name`, `add_calendar`, `get_calendar`, and `list_calendars` are never used [INFO] [stdout] --> src/calendar/database.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl User { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 28 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_id(&self) -> Uuid { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn get_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn add_calendar(&mut self, calendar: Calendar) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_calendar(&self, id: &Uuid) -> Option<&Calendar> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn list_calendars(&self) -> Vec<&Calendar> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataBase` is never constructed [INFO] [stdout] --> src/calendar/database.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct DataBase { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `init`, `add_user`, `get_user`, and `list_users` are never used [INFO] [stdout] --> src/calendar/database.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl DataBase { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 57 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn init(mut self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn add_user(&mut self, user: User) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn get_user(&self, user_id:Uuid) -> Option<&User> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn list_users(&self) -> Vec<&User> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `modulo`, `is_upcoming`, `get_start_time`, and `next_occurrence` are never used [INFO] [stdout] --> src/calendar/event.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Event { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn modulo(&self, date:DateTime) -> i64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub(crate) fn is_upcoming(&self, date: DateTime) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub(crate) fn get_start_time(&self) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn next_occurrence(&self, date:DateTime) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AuctionItem` is never used [INFO] [stdout] --> src/api/auction_items.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum AuctionItem { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pet` is never constructed [INFO] [stdout] --> src/api/auction_items.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Pet { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/api/auction_items.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Pet { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(name: String, level: i16, exp: i32, candy: i8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ArmorType` is never used [INFO] [stdout] --> src/api/auction_items.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ArmorType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Armor` is never constructed [INFO] [stdout] --> src/api/auction_items.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Armor { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/api/auction_items.rs:49:19 [INFO] [stdout] | [INFO] [stdout] 48 | impl Armor { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 49 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `totalPages` should have a snake case name [INFO] [stdout] --> src/api/auction_items.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | totalPages: usize, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `total_pages` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `totalAuctions` should have a snake case name [INFO] [stdout] --> src/api/auction_items.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | totalAuctions: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `total_auctions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `lastUpdated` should have a snake case name [INFO] [stdout] --> src/api/auction_items.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | lastUpdated: usize, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `last_updated` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 54.08s [INFO] running `Command { std: "docker" "inspect" "a368ef5deb74f7391137d395d8711685734ee22bd800b68f50baffbf2615b522", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a368ef5deb74f7391137d395d8711685734ee22bd800b68f50baffbf2615b522", kill_on_drop: false }` [INFO] [stdout] a368ef5deb74f7391137d395d8711685734ee22bd800b68f50baffbf2615b522