[INFO] fetching crate our_economy_engine 0.4.0... [INFO] checking our_economy_engine-0.4.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate our_economy_engine 0.4.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate our_economy_engine 0.4.0 [INFO] finished tweaking crates.io crate our_economy_engine 0.4.0 [INFO] tweaked toml for crates.io crate our_economy_engine 0.4.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate our_economy_engine 0.4.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate our_economy_engine 0.4.0 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rusqlite v0.36.0 [INFO] [stderr] Downloaded libsqlite3-sys v0.34.0 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b16f2b1f70f4c741d2d2c1cd233f0fd54f76a28b414e630404836bf114aa4096 [INFO] running `Command { std: "docker" "start" "-a" "b16f2b1f70f4c741d2d2c1cd233f0fd54f76a28b414e630404836bf114aa4096", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b16f2b1f70f4c741d2d2c1cd233f0fd54f76a28b414e630404836bf114aa4096", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b16f2b1f70f4c741d2d2c1cd233f0fd54f76a28b414e630404836bf114aa4096", kill_on_drop: false }` [INFO] [stdout] b16f2b1f70f4c741d2d2c1cd233f0fd54f76a28b414e630404836bf114aa4096 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5dd87f3b605645ad0131e9b1bb1098ca6ea78c4b0f668bc3d9e427d97eb054bb [INFO] running `Command { std: "docker" "start" "-a" "5dd87f3b605645ad0131e9b1bb1098ca6ea78c4b0f668bc3d9e427d97eb054bb", kill_on_drop: false }` [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Checking fallible-streaming-iterator v0.1.9 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking fallible-iterator v0.3.0 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Checking hashbrown v0.15.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling libsqlite3-sys v0.34.0 [INFO] [stderr] Checking hashlink v0.10.0 [INFO] [stderr] Checking rusqlite v0.36.0 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking our_economy_engine v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `init_db` is never used [INFO] [stdout] --> src/db.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn init_db() -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Offer` is never constructed [INFO] [stdout] --> src/extange/offer.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Offer<'a, 'b> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `valid` is never used [INFO] [stdout] --> src/extange/offer.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a, 'b> Offer<'a, 'b> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 16 | pub fn valid(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `save_to_db` and `load_from_id` are never used [INFO] [stdout] --> src/extange/offer_save.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a, 'b> Offer<'a, 'b> { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 11 | pub(super) fn save_to_db(&self) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn load_from_id( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EntityRef` is never used [INFO] [stdout] --> src/extange/entity_ref.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum EntityRef<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_ref`, `as_mut`, and `into_owned` are never used [INFO] [stdout] --> src/extange/entity_ref.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> EntityRef<'a> { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 10 | pub fn as_ref(&self) -> &ProdInstance { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn as_mut(&mut self) -> &mut ProdInstance { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn into_owned(self) -> ProdInstance { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/extange/offer_exec.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl<'a, 'b> Offer<'a, 'b> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 5 | pub fn execute(&mut self) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `quick_sell` and `quick_buy` are never used [INFO] [stdout] --> src/extange/run_offer.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 5 | pub fn quick_sell(&mut self, conn: &Connection, item: Material, price: f32, amount: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn quick_buy(&mut self, conn: &Connection, item: Material, price: f32, amount: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `buy_needed` is never used [INFO] [stdout] --> src/extange/buy_needed.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 5 | pub fn buy_needed(&mut self, conn: &Connection, units_worth_of: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_sql_query` is never used [INFO] [stdout] --> src/extange/offer_exec_helpers.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn build_sql_query(offer_type: OfferType, price_operator: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_trade` is never used [INFO] [stdout] --> src/extange/offer_exec_helpers.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn process_trade<'a, 'b>( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_db_after_trade` is never used [INFO] [stdout] --> src/extange/offer_exec_helpers.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn update_db_after_trade( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sell_all` is never used [INFO] [stdout] --> src/extange/sell_all.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 5 | pub fn sell_all(&mut self, conn: &Connection) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Material` is never used [INFO] [stdout] --> src/materials/material_macro.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Material { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `unit`, `display_name`, `from_str`, `to_string_key`, and `all` are never used [INFO] [stdout] --> src/materials/material_macro.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 9 | impl Material { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | pub fn unit(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn display_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn from_str(name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn to_string_key(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn all() -> &'static [Material] { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inventory` is never constructed [INFO] [stdout] --> src/materials/material_macro.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Inventory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add` are never used [INFO] [stdout] --> src/materials/material_macro.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 49 | impl Inventory { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 50 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn add(&mut self, mat: Material, amount: u32) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Recipe` is never constructed [INFO] [stdout] --> src/materials/recipies.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Recipe<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `food`, `empty`, and `dynamic` are never used [INFO] [stdout] --> src/materials/recipies.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> Recipe<'a> { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 11 | pub const fn food() -> Recipe<'static> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub const fn empty() -> Recipe<'static> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn dynamic(inputs: Vec<(Material, u32)>) -> Recipe<'static> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `earn`, `spend`, and `edit_shares` are never used [INFO] [stdout] --> src/player/methods.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Player { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 5 | pub fn earn(&mut self, money: u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | pub fn spend(&mut self, amount: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn edit_shares(&mut self, company_id_option: Option, amount: i16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Player` is never constructed [INFO] [stdout] --> src/player/struct.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `blank` and `new` are never used [INFO] [stdout] --> src/player/struct.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Player { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 11 | pub fn blank() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new(username: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Prod` is never constructed [INFO] [stdout] --> src/production/base_prod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Prod { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/production/base_prod.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl Prod { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | pub const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProdInstance` is never constructed [INFO] [stdout] --> src/production/base_prod.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct ProdInstance { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/production/base_prod.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl ProdInstance { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 63 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/production/save.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 6 | pub fn save(&mut self, conn: &Connection) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load` is never used [INFO] [stdout] --> src/production/load.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ProdInstance { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 9 | pub fn load(conn: &Connection, id: u32) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `hire_worker` and `reset_workers` are never used [INFO] [stdout] --> src/production/workers.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 5 | pub fn hire_worker(&mut self, player: &Player) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn reset_workers(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `earn`, `spend`, and `add_material` are never used [INFO] [stdout] --> src/production/misc.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl ProdInstance { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 4 | pub fn earn(&mut self, money: f32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | pub fn spend(&mut self, amount: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn add_material(&mut self, item: Material, amount: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `human_worked` is never used [INFO] [stdout] --> src/production/work.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 4 | pub fn human_worked(&mut self, player: &mut Player) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ALL_PRODS` is never used [INFO] [stdout] --> src/production/prod_list.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub static ALL_PRODS: &[Prod] = &[ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_db` is never used [INFO] [stdout] --> src/db.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn init_db() -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Offer` is never constructed [INFO] [stdout] --> src/extange/offer.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Offer<'a, 'b> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `valid` is never used [INFO] [stdout] --> src/extange/offer.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a, 'b> Offer<'a, 'b> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 16 | pub fn valid(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `save_to_db` and `load_from_id` are never used [INFO] [stdout] --> src/extange/offer_save.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a, 'b> Offer<'a, 'b> { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 11 | pub(super) fn save_to_db(&self) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn load_from_id( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EntityRef` is never used [INFO] [stdout] --> src/extange/entity_ref.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum EntityRef<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_ref`, `as_mut`, and `into_owned` are never used [INFO] [stdout] --> src/extange/entity_ref.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> EntityRef<'a> { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 10 | pub fn as_ref(&self) -> &ProdInstance { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn as_mut(&mut self) -> &mut ProdInstance { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn into_owned(self) -> ProdInstance { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/extange/offer_exec.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl<'a, 'b> Offer<'a, 'b> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 5 | pub fn execute(&mut self) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `quick_sell` and `quick_buy` are never used [INFO] [stdout] --> src/extange/run_offer.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 5 | pub fn quick_sell(&mut self, conn: &Connection, item: Material, price: f32, amount: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn quick_buy(&mut self, conn: &Connection, item: Material, price: f32, amount: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `buy_needed` is never used [INFO] [stdout] --> src/extange/buy_needed.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 5 | pub fn buy_needed(&mut self, conn: &Connection, units_worth_of: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_sql_query` is never used [INFO] [stdout] --> src/extange/offer_exec_helpers.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn build_sql_query(offer_type: OfferType, price_operator: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_trade` is never used [INFO] [stdout] --> src/extange/offer_exec_helpers.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn process_trade<'a, 'b>( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_db_after_trade` is never used [INFO] [stdout] --> src/extange/offer_exec_helpers.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn update_db_after_trade( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sell_all` is never used [INFO] [stdout] --> src/extange/sell_all.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 5 | pub fn sell_all(&mut self, conn: &Connection) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Material` is never used [INFO] [stdout] --> src/materials/material_macro.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Material { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `unit`, `display_name`, `from_str`, `to_string_key`, and `all` are never used [INFO] [stdout] --> src/materials/material_macro.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 9 | impl Material { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | pub fn unit(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn display_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn from_str(name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn to_string_key(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn all() -> &'static [Material] { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inventory` is never constructed [INFO] [stdout] --> src/materials/material_macro.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Inventory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add` are never used [INFO] [stdout] --> src/materials/material_macro.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 49 | impl Inventory { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 50 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn add(&mut self, mat: Material, amount: u32) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Recipe` is never constructed [INFO] [stdout] --> src/materials/recipies.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Recipe<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `food`, `empty`, and `dynamic` are never used [INFO] [stdout] --> src/materials/recipies.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> Recipe<'a> { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 11 | pub const fn food() -> Recipe<'static> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub const fn empty() -> Recipe<'static> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn dynamic(inputs: Vec<(Material, u32)>) -> Recipe<'static> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `earn`, `spend`, and `edit_shares` are never used [INFO] [stdout] --> src/player/methods.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Player { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 5 | pub fn earn(&mut self, money: u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | pub fn spend(&mut self, amount: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn edit_shares(&mut self, company_id_option: Option, amount: i16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Player` is never constructed [INFO] [stdout] --> src/player/struct.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `blank` and `new` are never used [INFO] [stdout] --> src/player/struct.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Player { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 11 | pub fn blank() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new(username: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Prod` is never constructed [INFO] [stdout] --> src/production/base_prod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Prod { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/production/base_prod.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl Prod { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | pub const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProdInstance` is never constructed [INFO] [stdout] --> src/production/base_prod.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct ProdInstance { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/production/base_prod.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl ProdInstance { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 63 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/production/save.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 6 | pub fn save(&mut self, conn: &Connection) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load` is never used [INFO] [stdout] --> src/production/load.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ProdInstance { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 9 | pub fn load(conn: &Connection, id: u32) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `hire_worker` and `reset_workers` are never used [INFO] [stdout] --> src/production/workers.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 5 | pub fn hire_worker(&mut self, player: &Player) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn reset_workers(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `earn`, `spend`, and `add_material` are never used [INFO] [stdout] --> src/production/misc.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl ProdInstance { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 4 | pub fn earn(&mut self, money: f32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | pub fn spend(&mut self, amount: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn add_material(&mut self, item: Material, amount: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `human_worked` is never used [INFO] [stdout] --> src/production/work.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 4 | pub fn human_worked(&mut self, player: &mut Player) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ALL_PRODS` is never used [INFO] [stdout] --> src/production/prod_list.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub static ALL_PRODS: &[Prod] = &[ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let conn = init_db().expect("Db didnt connect"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let conn = init_db().expect("Db didnt connect"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Offer` is never constructed [INFO] [stdout] --> src/extange/offer.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Offer<'a, 'b> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `valid` is never used [INFO] [stdout] --> src/extange/offer.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a, 'b> Offer<'a, 'b> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 16 | pub fn valid(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Offer` is never constructed [INFO] [stdout] --> src/extange/offer.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Offer<'a, 'b> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `valid` is never used [INFO] [stdout] --> src/extange/offer.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a, 'b> Offer<'a, 'b> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 16 | pub fn valid(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `save_to_db` and `load_from_id` are never used [INFO] [stdout] --> src/extange/offer_save.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a, 'b> Offer<'a, 'b> { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 11 | pub(super) fn save_to_db(&self) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn load_from_id( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EntityRef` is never used [INFO] [stdout] --> src/extange/entity_ref.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum EntityRef<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_ref`, `as_mut`, and `into_owned` are never used [INFO] [stdout] --> src/extange/entity_ref.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> EntityRef<'a> { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 10 | pub fn as_ref(&self) -> &ProdInstance { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn as_mut(&mut self) -> &mut ProdInstance { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn into_owned(self) -> ProdInstance { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/extange/offer_exec.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl<'a, 'b> Offer<'a, 'b> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 5 | pub fn execute(&mut self) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `quick_sell` and `quick_buy` are never used [INFO] [stdout] --> src/extange/run_offer.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 5 | pub fn quick_sell(&mut self, conn: &Connection, item: Material, price: f32, amount: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn quick_buy(&mut self, conn: &Connection, item: Material, price: f32, amount: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `buy_needed` is never used [INFO] [stdout] --> src/extange/buy_needed.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 5 | pub fn buy_needed(&mut self, conn: &Connection, units_worth_of: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_sql_query` is never used [INFO] [stdout] --> src/extange/offer_exec_helpers.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn build_sql_query(offer_type: OfferType, price_operator: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_trade` is never used [INFO] [stdout] --> src/extange/offer_exec_helpers.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn process_trade<'a, 'b>( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_db_after_trade` is never used [INFO] [stdout] --> src/extange/offer_exec_helpers.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn update_db_after_trade( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sell_all` is never used [INFO] [stdout] --> src/extange/sell_all.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 5 | pub fn sell_all(&mut self, conn: &Connection) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Material` is never used [INFO] [stdout] --> src/materials/material_macro.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Material { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `save_to_db` and `load_from_id` are never used [INFO] [stdout] --> src/extange/offer_save.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a, 'b> Offer<'a, 'b> { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 11 | pub(super) fn save_to_db(&self) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn load_from_id( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EntityRef` is never used [INFO] [stdout] --> src/extange/entity_ref.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum EntityRef<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_ref`, `as_mut`, and `into_owned` are never used [INFO] [stdout] --> src/extange/entity_ref.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> EntityRef<'a> { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 10 | pub fn as_ref(&self) -> &ProdInstance { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn as_mut(&mut self) -> &mut ProdInstance { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn into_owned(self) -> ProdInstance { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/extange/offer_exec.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl<'a, 'b> Offer<'a, 'b> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 5 | pub fn execute(&mut self) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `quick_sell` and `quick_buy` are never used [INFO] [stdout] --> src/extange/run_offer.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 5 | pub fn quick_sell(&mut self, conn: &Connection, item: Material, price: f32, amount: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn quick_buy(&mut self, conn: &Connection, item: Material, price: f32, amount: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `buy_needed` is never used [INFO] [stdout] --> src/extange/buy_needed.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 5 | pub fn buy_needed(&mut self, conn: &Connection, units_worth_of: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_sql_query` is never used [INFO] [stdout] --> src/extange/offer_exec_helpers.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn build_sql_query(offer_type: OfferType, price_operator: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_trade` is never used [INFO] [stdout] --> src/extange/offer_exec_helpers.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn process_trade<'a, 'b>( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_db_after_trade` is never used [INFO] [stdout] --> src/extange/offer_exec_helpers.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn update_db_after_trade( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sell_all` is never used [INFO] [stdout] --> src/extange/sell_all.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 5 | pub fn sell_all(&mut self, conn: &Connection) -> rusqlite::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Material` is never used [INFO] [stdout] --> src/materials/material_macro.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Material { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `unit`, `display_name`, `from_str`, `to_string_key`, and `all` are never used [INFO] [stdout] --> src/materials/material_macro.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 9 | impl Material { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | pub fn unit(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn display_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn from_str(name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn to_string_key(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn all() -> &'static [Material] { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inventory` is never constructed [INFO] [stdout] --> src/materials/material_macro.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Inventory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add` are never used [INFO] [stdout] --> src/materials/material_macro.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 49 | impl Inventory { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 50 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn add(&mut self, mat: Material, amount: u32) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Recipe` is never constructed [INFO] [stdout] --> src/materials/recipies.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Recipe<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `food`, `empty`, and `dynamic` are never used [INFO] [stdout] --> src/materials/recipies.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> Recipe<'a> { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 11 | pub const fn food() -> Recipe<'static> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub const fn empty() -> Recipe<'static> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn dynamic(inputs: Vec<(Material, u32)>) -> Recipe<'static> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `earn`, `spend`, and `edit_shares` are never used [INFO] [stdout] --> src/player/methods.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Player { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 5 | pub fn earn(&mut self, money: u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | pub fn spend(&mut self, amount: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn edit_shares(&mut self, company_id_option: Option, amount: i16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Player` is never constructed [INFO] [stdout] --> src/player/struct.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `blank` and `new` are never used [INFO] [stdout] --> src/player/struct.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Player { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 11 | pub fn blank() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new(username: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Prod` is never constructed [INFO] [stdout] --> src/production/base_prod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Prod { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/production/base_prod.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl Prod { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | pub const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProdInstance` is never constructed [INFO] [stdout] --> src/production/base_prod.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct ProdInstance { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/production/base_prod.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl ProdInstance { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 63 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/production/save.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 6 | pub fn save(&mut self, conn: &Connection) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load` is never used [INFO] [stdout] --> src/production/load.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ProdInstance { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 9 | pub fn load(conn: &Connection, id: u32) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `hire_worker` and `reset_workers` are never used [INFO] [stdout] --> src/production/workers.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 5 | pub fn hire_worker(&mut self, player: &Player) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn reset_workers(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `earn`, `spend`, and `add_material` are never used [INFO] [stdout] --> src/production/misc.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl ProdInstance { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 4 | pub fn earn(&mut self, money: f32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | pub fn spend(&mut self, amount: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn add_material(&mut self, item: Material, amount: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `human_worked` is never used [INFO] [stdout] --> src/production/work.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 4 | pub fn human_worked(&mut self, player: &mut Player) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ALL_PRODS` is never used [INFO] [stdout] --> src/production/prod_list.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub static ALL_PRODS: &[Prod] = &[ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `unit`, `display_name`, `from_str`, `to_string_key`, and `all` are never used [INFO] [stdout] --> src/materials/material_macro.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 9 | impl Material { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | pub fn unit(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn display_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn from_str(name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn to_string_key(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn all() -> &'static [Material] { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inventory` is never constructed [INFO] [stdout] --> src/materials/material_macro.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Inventory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add` are never used [INFO] [stdout] --> src/materials/material_macro.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 49 | impl Inventory { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 50 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn add(&mut self, mat: Material, amount: u32) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/materials/material.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / define_materials! { [INFO] [stdout] 4 | | Grain => (grain, "kg"), [INFO] [stdout] 5 | | Electricity => (electricity, "kWh"), [INFO] [stdout] 6 | | Water => (water, "liters"), [INFO] [stdout] 7 | | Food => (food, "packages"), [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_materials` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Recipe` is never constructed [INFO] [stdout] --> src/materials/recipies.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Recipe<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `food`, `empty`, and `dynamic` are never used [INFO] [stdout] --> src/materials/recipies.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> Recipe<'a> { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 11 | pub const fn food() -> Recipe<'static> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub const fn empty() -> Recipe<'static> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn dynamic(inputs: Vec<(Material, u32)>) -> Recipe<'static> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `earn`, `spend`, and `edit_shares` are never used [INFO] [stdout] --> src/player/methods.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Player { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 5 | pub fn earn(&mut self, money: u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | pub fn spend(&mut self, amount: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn edit_shares(&mut self, company_id_option: Option, amount: i16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Player` is never constructed [INFO] [stdout] --> src/player/struct.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `blank` and `new` are never used [INFO] [stdout] --> src/player/struct.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Player { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 11 | pub fn blank() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new(username: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Prod` is never constructed [INFO] [stdout] --> src/production/base_prod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Prod { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/production/base_prod.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl Prod { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | pub const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProdInstance` is never constructed [INFO] [stdout] --> src/production/base_prod.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct ProdInstance { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/production/base_prod.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl ProdInstance { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 63 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/production/save.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 6 | pub fn save(&mut self, conn: &Connection) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load` is never used [INFO] [stdout] --> src/production/load.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ProdInstance { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 9 | pub fn load(conn: &Connection, id: u32) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `hire_worker` and `reset_workers` are never used [INFO] [stdout] --> src/production/workers.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl ProdInstance { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 5 | pub fn hire_worker(&mut self, player: &Player) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn reset_workers(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `earn`, `spend`, and `add_material` are never used [INFO] [stdout] --> src/production/misc.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl ProdInstance { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 4 | pub fn earn(&mut self, money: f32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | pub fn spend(&mut self, amount: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn add_material(&mut self, item: Material, amount: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `human_worked` is never used [INFO] [stdout] --> src/production/work.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl ProdInstance { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 4 | pub fn human_worked(&mut self, player: &mut Player) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ALL_PRODS` is never used [INFO] [stdout] --> src/production/prod_list.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub static ALL_PRODS: &[Prod] = &[ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.03s [INFO] running `Command { std: "docker" "inspect" "5dd87f3b605645ad0131e9b1bb1098ca6ea78c4b0f668bc3d9e427d97eb054bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dd87f3b605645ad0131e9b1bb1098ca6ea78c4b0f668bc3d9e427d97eb054bb", kill_on_drop: false }` [INFO] [stdout] 5dd87f3b605645ad0131e9b1bb1098ca6ea78c4b0f668bc3d9e427d97eb054bb