[INFO] fetching crate our_economy_engine 0.4.0...
[INFO] building our_economy_engine-0.4.0 against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1
[INFO] extracting crate our_economy_engine 0.4.0 into /workspace/builds/worker-1-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-1-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate our_economy_engine 0.4.0 on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "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-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 58e7798aa3d589d58a67442519913576b0fbcb812640cfd6f4264e8162246097
[INFO] running `Command { std: "docker" "start" "-a" "58e7798aa3d589d58a67442519913576b0fbcb812640cfd6f4264e8162246097", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "58e7798aa3d589d58a67442519913576b0fbcb812640cfd6f4264e8162246097", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "58e7798aa3d589d58a67442519913576b0fbcb812640cfd6f4264e8162246097", kill_on_drop: false }`
[INFO] [stdout] 58e7798aa3d589d58a67442519913576b0fbcb812640cfd6f4264e8162246097
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f78461557896fee94ac5fbdff68f77baa4121ac39f2b0dc747c72cef9793e8db
[INFO] running `Command { std: "docker" "start" "-a" "f78461557896fee94ac5fbdff68f77baa4121ac39f2b0dc747c72cef9793e8db", kill_on_drop: false }`
[INFO] [stderr]    Compiling libsqlite3-sys v0.34.0
[INFO] [stderr]    Compiling fallible-streaming-iterator v0.1.9
[INFO] [stderr]    Compiling iana-time-zone v0.1.63
[INFO] [stderr]    Compiling bitflags v2.9.1
[INFO] [stderr]    Compiling fallible-iterator v0.3.0
[INFO] [stderr]    Compiling json v0.12.4
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling rusqlite v0.36.0
[INFO] [stderr]    Compiling 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<Connection> {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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<Material> {
[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<u32>, 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<u32> {
[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<Option<Self>> {
[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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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 `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<Material> {
[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<u32>, 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<u32> {
[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<Option<Self>> {
[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 3.38s
[INFO] running `Command { std: "docker" "inspect" "f78461557896fee94ac5fbdff68f77baa4121ac39f2b0dc747c72cef9793e8db", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f78461557896fee94ac5fbdff68f77baa4121ac39f2b0dc747c72cef9793e8db", kill_on_drop: false }`
[INFO] [stdout] f78461557896fee94ac5fbdff68f77baa4121ac39f2b0dc747c72cef9793e8db
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 73afc9cb3698fe0bc2d7730ee98273e650782c8462d1566ccf1571b2f9236b04
[INFO] running `Command { std: "docker" "start" "-a" "73afc9cb3698fe0bc2d7730ee98273e650782c8462d1566ccf1571b2f9236b04", kill_on_drop: false }`
[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<Connection> {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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<Material> {
[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<u32>, amount: i16) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling our_economy_engine v0.4.0 (/opt/rustwide/workdir)
[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<u32> {
[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<Option<Self>> {
[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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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 `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<Material> {
[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<u32>, 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<u32> {
[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<Option<Self>> {
[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<Connection> {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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<Material> {
[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<u32>, 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<u32> {
[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<Option<Self>> {
[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 `test` profile [unoptimized + debuginfo] target(s) in 0.41s
[INFO] running `Command { std: "docker" "inspect" "73afc9cb3698fe0bc2d7730ee98273e650782c8462d1566ccf1571b2f9236b04", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "73afc9cb3698fe0bc2d7730ee98273e650782c8462d1566ccf1571b2f9236b04", kill_on_drop: false }`
[INFO] [stdout] 73afc9cb3698fe0bc2d7730ee98273e650782c8462d1566ccf1571b2f9236b04
