[INFO] cloning repository https://github.com/Nayr8/map-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nayr8/map-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNayr8%2Fmap-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNayr8%2Fmap-game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9b230503d08d3a5daea3c706edfbfdd670d0e56d [INFO] testing Nayr8/map-game against 1.73.0 for beta-1.74-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNayr8%2Fmap-game" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nayr8/map-game on toolchain 1.73.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.73.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Nayr8/map-game [INFO] finished tweaking git repo https://github.com/Nayr8/map-game [INFO] tweaked toml for git repo https://github.com/Nayr8/map-game written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Nayr8/map-game 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" "+1.73.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wgpu-types v0.14.0 [INFO] [stderr] Downloaded wgpu-hal v0.14.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f62eaf5291772762388d8be0f58fef12fd8139d15c15960b66c29b2fd811d50e [INFO] running `Command { std: "docker" "start" "-a" "f62eaf5291772762388d8be0f58fef12fd8139d15c15960b66c29b2fd811d50e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f62eaf5291772762388d8be0f58fef12fd8139d15c15960b66c29b2fd811d50e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f62eaf5291772762388d8be0f58fef12fd8139d15c15960b66c29b2fd811d50e", kill_on_drop: false }` [INFO] [stdout] f62eaf5291772762388d8be0f58fef12fd8139d15c15960b66c29b2fd811d50e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b2dcfb8ee77b55a04272df197d666e0450ddaa220a14b7e4adc326d367e88efa [INFO] running `Command { std: "docker" "start" "-a" "b2dcfb8ee77b55a04272df197d666e0450ddaa220a14b7e4adc326d367e88efa", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.134 [INFO] [stderr] Compiling proc-macro2 v1.0.46 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.4 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling syn v1.0.101 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling once_cell v1.15.0 [INFO] [stderr] Compiling libloading v0.7.3 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling cmake v0.1.48 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling thiserror v1.0.37 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.12 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling miniz_oxide v0.5.4 [INFO] [stderr] Compiling nix v0.24.2 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.11 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling flate2 v1.0.24 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling servo-fontconfig-sys v5.1.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling slotmap v1.0.6 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling raw-window-handle v0.5.0 [INFO] [stderr] Compiling png v0.17.6 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.0 [INFO] [stderr] Compiling crossfont v0.5.0 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling foreign-types-shared v0.3.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling futures-core v0.3.24 [INFO] [stderr] Compiling ash v0.37.0+1.3.209 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling servo-fontconfig v0.5.1 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling freetype-rs v0.26.0 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling x11-dl v2.20.0 [INFO] [stderr] Compiling memmap2 v0.5.7 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.1 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling hexf-parse v0.2.1 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling wgpu-core v0.14.0 [INFO] [stderr] Compiling gpu-alloc v0.5.3 [INFO] [stderr] Compiling gpu-descriptor v0.2.3 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling spin v0.9.4 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling wgpu-types v0.14.0 [INFO] [stderr] Compiling renderdoc-sys v0.7.1 [INFO] [stderr] Compiling profiling v1.0.6 [INFO] [stderr] Compiling futures-sink v0.3.24 [INFO] [stderr] Compiling serde v1.0.145 [INFO] [stderr] Compiling glow v0.11.2 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling weezl v0.1.7 [INFO] [stderr] Compiling jpeg-decoder v0.2.6 [INFO] [stderr] Compiling raw-window-handle v0.4.3 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling mio v0.8.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling serde_json v1.0.87 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling half v1.8.2 [INFO] [stderr] Compiling bit_field v0.10.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling gif v0.11.4 [INFO] [stderr] Compiling tiff v0.7.3 [INFO] [stderr] Compiling approx v0.4.0 [INFO] [stderr] Compiling ryu v1.0.11 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling itoa v1.0.4 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pollster v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.37 [INFO] [stderr] Compiling bytemuck_derive v1.2.1 [INFO] [stderr] Compiling foreign-types-macros v0.2.2 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling bytemuck v1.12.1 [INFO] [stderr] Compiling safe_arch v0.5.2 [INFO] [stderr] Compiling tiny-skia-path v0.7.0 [INFO] [stderr] Compiling foreign-types v0.5.0 [INFO] [stderr] Compiling calloop v0.10.1 [INFO] [stderr] Compiling naga v0.10.0 [INFO] [stderr] Compiling tiny-skia v0.7.0 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling flume v0.10.14 [INFO] [stderr] Compiling exr v1.5.1 [INFO] [stderr] Compiling wgpu-hal v0.14.0 [INFO] [stderr] Compiling image v0.24.4 [INFO] [stderr] Compiling wgpu v0.14.0 [INFO] [stderr] Compiling sctk-adwaita v0.4.2 [INFO] [stderr] Compiling winit v0.27.3 [INFO] [stderr] Compiling winit_input_helper v0.13.0 [INFO] [stderr] Compiling map-game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/map/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/map/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::num_traits::FloatConst` [INFO] [stdout] --> src/map/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use cgmath::num_traits::FloatConst; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DynamicImage` [INFO] [stdout] --> src/map/mod.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use image::{DynamicImage, GenericImageView}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BuildingSlotCoast`, `BuildingSlotInland`, `BuildingSlot` [INFO] [stdout] --> src/map/mod.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::map::buildings::{BuildingSlot, BuildingSlotCoast, BuildingSlotInland}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Population` [INFO] [stdout] --> src/map/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::Population; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::Matrix4` [INFO] [stdout] --> src/camera.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use cgmath::Matrix4; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::num_traits::FloatConst` [INFO] [stdout] --> src/camera.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use cgmath::num_traits::FloatConst; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ImageFormat`, `ImageResult` [INFO] [stdout] --> src/render/ui_textures.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use image::{EncodableLayout, ImageFormat, ImageResult}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::num_traits::FloatConst` [INFO] [stdout] --> src/state/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use cgmath::num_traits::FloatConst; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Biome`, `Tile` [INFO] [stdout] --> src/state/mod.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::map::{Biome, Tile}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image::imageops::tile` [INFO] [stdout] --> src/state/game_state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use image::imageops::tile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winit::event::VirtualKeyCode::T` [INFO] [stdout] --> src/state/ui_state/ui_object.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use winit::event::VirtualKeyCode::T; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BindGroupsID` [INFO] [stdout] --> src/state/ui_state/ui_object.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::render::render_pipeline_manager::{BindGroupsID, RenderPipelineID}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IDStores` [INFO] [stdout] --> src/state/ui_state/ui_object.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::render::{IDStores, Renderer}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/state/ui_state/player_tile_menu.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Map` [INFO] [stdout] --> src/state/ui_state/player_tile_menu.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{Game, Map}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameStage` [INFO] [stdout] --> src/state/ui_state/player_tile_menu.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::state::game_state::{GameStage, GameState}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::state::ui_state::nation_creation_panel::NationCreationPanel` [INFO] [stdout] --> src/state/ui_state/player_tile_menu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::state::ui_state::nation_creation_panel::NationCreationPanel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ElementState`, `KeyboardInput`, `VirtualKeyCode` [INFO] [stdout] --> src/main.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use winit::event::{ElementState, Event, KeyboardInput, VirtualKeyCode, WindowEvent}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/state/mod.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut game = Game { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged [INFO] [stdout] --> src/state/ui_state/nation_creation_panel.rs:256:24 [INFO] [stdout] | [INFO] [stdout] 256 | if input.modifiers.shift() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImageView` [INFO] [stdout] --> src/map/mod.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use image::{DynamicImage, GenericImageView}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rotation2` [INFO] [stdout] --> src/camera.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let rotation2 = cgmath::Matrix4::new( [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotation2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bind_group_layout_2d` [INFO] [stdout] --> src/state/ui_state/nation_creation_panel.rs:94:104 [INFO] [stdout] | [INFO] [stdout] 94 | ...ec) {let bind_group_layout_2d = renderer.gpu.create_texture_bind_group_layout(wgpu::TextureViewDimension::D2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bind_group_layout_2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/state/ui_state/ui_object.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | _ => panic!() [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/state/ui_state/player_tile_menu.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut bind_group_creation_fns: HashMap (Vec, Vec)> = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `renderer` [INFO] [stdout] --> src/state/ui_state.rs:491:35 [INFO] [stdout] | [INFO] [stdout] 491 | pub fn select_tile(&mut self, renderer: &mut Renderer, tile: &Tile, nations: &Nations) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tile` [INFO] [stdout] --> src/state/ui_state.rs:491:60 [INFO] [stdout] | [INFO] [stdout] 491 | pub fn select_tile(&mut self, renderer: &mut Renderer, tile: &Tile, nations: &Nations) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nations` [INFO] [stdout] --> src/state/ui_state.rs:491:73 [INFO] [stdout] | [INFO] [stdout] 491 | pub fn select_tile(&mut self, renderer: &mut Renderer, tile: &Tile, nations: &Nations) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/state/mod.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | let (mut x_game_space, y_game_space) = self.calculate_world_space_position_from_screen_position(&self.mouse_position); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/state/mod.rs:176:34 [INFO] [stdout] | [INFO] [stdout] 176 | ... if let Some((mut x, y, flipped)) = self.calculate_map_relative_position_from_world_space_position(x_game_space, y_game_space) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `UNFLIPPED_MOD`, `FLIPPED_MOD`, `aspect_ratio`, and `advance_month` are never used [INFO] [stdout] --> src/map/mod.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 79 | impl Map { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 80 | pub const MAP_WORLD_SPACE_HEIGHT: f32 = 0.95; [INFO] [stdout] 81 | pub const UNFLIPPED_MOD: f32 = 0.17578125; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 82 | pub const FLIPPED_MOD: f32 = 0.32421875; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn aspect_ratio(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn advance_month(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Housing`, `Farms`, `Workshops`, `Barracks`, and `Mine` are never constructed [INFO] [stdout] --> src/map/buildings.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum BuildingSlotInland { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 5 | Empty, Housing(Housing), Farms(Farms), Workshops(Workshops), [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^^^^^^ [INFO] [stdout] 6 | Barracks(Barracks), Mine(Mine) [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BuildingSlotInland` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Port` and `Housing` are never constructed [INFO] [stdout] --> src/map/buildings.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum BuildingSlotCoast { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 11 | Empty, Port(Port), Housing(Housing) [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BuildingSlotCoast` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `material`, `density`, and `size` are never read [INFO] [stdout] --> src/map/buildings.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Housing { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 22 | material: HousingMaterial, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 23 | density: usize, // How many houses // 4 people a house?? maybe more [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 24 | size: HouseSize, // Bigger increases comfort but decreases max density [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Housing` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MubBrick`, `Wood`, `Stone`, `Thatch`, `Brick`, and `InsulatedBrick` are never constructed [INFO] [stdout] --> src/map/buildings.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum HousingMaterial { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 29 | Tents, MubBrick, Wood, Stone, Thatch, Brick, InsulatedBrick [INFO] [stdout] | ^^^^^^^^ ^^^^ ^^^^^ ^^^^^^ ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HousingMaterial` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Small`, `Breathable`, `Spacious`, and `Luxury` are never constructed [INFO] [stdout] --> src/map/buildings.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum HouseSize { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 40 | Cramped, Small, Breathable, Spacious, Luxury [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HouseSize` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `farm_type` and `size` are never read [INFO] [stdout] --> src/map/buildings.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Farms { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 51 | farm_type: FarmType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 52 | size: usize, // Indicates max number of workers each worker produces x output [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Farms` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `WoolAndFood` and `LeatherAndFood` are never constructed [INFO] [stdout] --> src/map/buildings.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 56 | pub enum FarmType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 57 | FoodCrops, WoolAndFood, LeatherAndFood [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FarmType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `workshop_type` and `size` are never read [INFO] [stdout] --> src/map/buildings.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Workshops { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 68 | workshop_type: WorkshopType, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 69 | size: usize, // Indicates max number of workers each worker produces x output [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Workshops` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/map/buildings.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 73 | pub enum WorkshopType { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 74 | Weapons, Armor, Clothing, Furniture, LumberMill, StoneWorks, Brick, Tools [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WorkshopType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `material` and `size` are never read [INFO] [stdout] --> src/map/buildings.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct Barracks { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 85 | material: HousingMaterial, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 86 | size: usize, // Indicates max number of workers each worker produces x output [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Barracks` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ore_type` and `size` are never read [INFO] [stdout] --> src/map/buildings.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct Mine { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 91 | ore_type: OreType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | size: usize, // Indicates max number of workers each worker produces x output (Capped quite low) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mine` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Iron`, `Tin`, `Copper`, `Aluminium`, `Gold`, and `Silver` are never constructed [INFO] [stdout] --> src/map/buildings.rs:97:11 [INFO] [stdout] | [INFO] [stdout] 96 | pub enum OreType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 97 | Coal, Iron, Tin, Copper, Aluminium, Gold, Silver, [INFO] [stdout] | ^^^^ ^^^ ^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OreType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size` is never read [INFO] [stdout] --> src/map/buildings.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct HuntingArea { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 108 | size: usize, // Indicates max number of workers each worker produces x output - slowly depletes wildlife count if too big [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HuntingArea` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `port_type` and `size` are never read [INFO] [stdout] --> src/map/buildings.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct Port { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 115 | port_type: PortType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 116 | size: usize, // Indicates max number of workers each worker produces x capacity [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Port` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Trade` and `Fishing` are never constructed [INFO] [stdout] --> src/map/buildings.rs:121:15 [INFO] [stdout] | [INFO] [stdout] 120 | pub enum PortType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 121 | Military, Trade, Fishing [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PortType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_id`, `get_population`, `get_population_mut`, `init_pop`, `get_building_slot`, and `get_building_slot_mut` are never used [INFO] [stdout] --> src/map/tile.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Tile { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 19 | pub fn get_id(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn get_population(&self) -> &Population { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_population_mut (&mut self) -> &mut Population { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn init_pop(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn get_building_slot(&self, slot: usize) -> &BuildingSlot { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn get_building_slot_mut(&mut self, slot: usize) -> &mut BuildingSlot { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `NOT_COAST` is never used [INFO] [stdout] --> src/map/coast.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 31 | impl Coast { [INFO] [stdout] | ---------- associated constant in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | const NOT_COAST: u8 = 255; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_rotation` and `get_rotation` are never used [INFO] [stdout] --> src/camera.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Camera { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn set_rotation(&mut self, rotation: Option) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn get_rotation(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `advance_month` is never used [INFO] [stdout] --> src/nations.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Nations { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn advance_month(&mut self, map: &mut Map) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/nations.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Nation { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 60 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `advance_month` is never used [INFO] [stdout] --> src/nations.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Nation { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 69 | pub fn advance_month(&mut self, map: &mut Map) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/render/mod.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 264 | impl Renderer { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn get_component_position(&self, component_id: UIComponentID) -> &UIComponentPosition { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn set_component_position(&mut self, component_id: UIComponentID, position: UIComponentPosition) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn get_component_dimensions(&self, component_id: UIComponentID) -> &UIComponentDimensions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn set_component_dimensions(&mut self, component_id: UIComponentID, dimensions: UIComponentDimensions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub fn get_component_interactions(&self, component_id: UIComponentID) -> &Interactions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub fn set_component_interactions(&mut self, component_id: UIComponentID, interactions: Interactions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | pub fn set_component_pipeline(&mut self, component_id: UIComponentID, render_pipeline_id: RenderPipelineID) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 317 | pub fn swap_bind_groups(&mut self, component_id: UIComponentID, bind_groups_id: BindGroupsID, bind_groups_unique: Vec,) -> (Bin... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | pub fn get_component_edges(&self, component_id: UIComponentID) -> Edges { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tile_map_diffuse_texture` is never read [INFO] [stdout] --> src/render/mod.rs:331:5 [INFO] [stdout] | [INFO] [stdout] 330 | pub struct TileTextures { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 331 | tile_map_diffuse_texture: Texture, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `num_vertices` is never read [INFO] [stdout] --> src/render/mod.rs:443:5 [INFO] [stdout] | [INFO] [stdout] 441 | struct MapQuad { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 442 | vertex_buffer: wgpu::Buffer, [INFO] [stdout] 443 | num_vertices: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `VERT_REPEATS` is never used [INFO] [stdout] --> src/render/mod.rs:454:11 [INFO] [stdout] | [INFO] [stdout] 448 | impl MapQuad { [INFO] [stdout] | ------------ associated constant in this implementation [INFO] [stdout] ... [INFO] [stdout] 454 | const VERT_REPEATS: f32 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/render/ui.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl UIManager { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 204 | pub fn get_component_position(&self, component_id: UIComponentID) -> &UIComponentPosition { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | pub fn set_component_position(&mut self, gpu: &GPU, component_id: UIComponentID, position: UIComponentPosition) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn get_component_dimensions(&self, component_id: UIComponentID) -> &UIComponentDimensions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn set_component_dimensions(&mut self, gpu: &GPU, component_id: UIComponentID, dimensions: UIComponentDimensions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn get_component_interactions(&self, component_id: UIComponentID) -> &Interactions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn set_component_interactions(&mut self, component_id: UIComponentID, interactions: Interactions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn set_component_pipeline(&mut self, component_id: UIComponentID, render_pipeline_id: RenderPipelineID) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn swap_bind_groups(&mut self, component_id: UIComponentID, mut bind_groups_id: BindGroupsID, mut bind_groups_unique: Vec,)... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn get_component_edges(&self, component_id: UIComponentID) -> Edges { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `on_hover` and `on_leave` are never read [INFO] [stdout] --> src/render/ui.rs:481:16 [INFO] [stdout] | [INFO] [stdout] 480 | pub struct Interactions { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 481 | pub(crate) on_hover: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 482 | pub(crate) on_leave: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Interactions` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hovering` is never read [INFO] [stdout] --> src/render/ui.rs:491:5 [INFO] [stdout] | [INFO] [stdout] 490 | struct InteractionsTracking { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 491 | hovering: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `read_and_create_texture` and `old_new` are never used [INFO] [stdout] --> src/render/ui_textures.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 77 | impl UITextures { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | fn read_and_create_texture(gpu: &GPU, texture_manager: &mut TextureManager, bind_group_layout: &wgpu::BindGroupLayout, path: impl AsR... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn old_new(gpu: &GPU, texture_manager: &mut TextureManager) -> UITextures { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mut` is never used [INFO] [stdout] --> src/render/render_pipeline_manager.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl BindGroupManager { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn get_mut(&mut self, bind_groups_id: BindGroupsID) -> &mut Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `delete_pipeline` is never used [INFO] [stdout] --> src/render/render_pipeline_manager.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl RenderPipelineManager { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn delete_pipeline(&mut self, render_pipeline_id: RenderPipelineID) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `has_pop`, `birthrate`, and `death_rate_for_old` are never read [INFO] [stdout] --> src/population.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Population { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | has_pop: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | [INFO] [stdout] 14 | birthrate: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | death_rate_for_old: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Population` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_pop`, `init`, `advance_month`, `young_population`, `adult_population`, and `elderly_population` are never used [INFO] [stdout] --> src/population.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Population { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn has_pop(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn advance_month(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn young_population(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn adult_population(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn elderly_population(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `advance_month` is never used [INFO] [stdout] --> src/state/mod.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | fn advance_month(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `advance_month` is never used [INFO] [stdout] --> src/state/game_state.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl GameState { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn advance_month(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOW_PANEL_LAYER` is never used [INFO] [stdout] --> src/state/ui_state.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const LOW_PANEL_LAYER: usize = 30; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TILE_UI_BASE_LAYER` is never used [INFO] [stdout] --> src/state/ui_state.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const TILE_UI_BASE_LAYER: usize = 70; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `time_elapsed`, `top_panel`, and `currently_selected_tile` are never read [INFO] [stdout] --> src/state/ui_state.rs:461:5 [INFO] [stdout] | [INFO] [stdout] 454 | pub struct UIState { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 461 | time_elapsed: UIComponentID, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 462 | top_panel: UIComponentID, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 463 | [INFO] [stdout] 464 | currently_selected_tile: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `select_tile` and `advance_month` are never used [INFO] [stdout] --> src/state/ui_state.rs:491:12 [INFO] [stdout] | [INFO] [stdout] 467 | impl UIState { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 491 | pub fn select_tile(&mut self, renderer: &mut Renderer, tile: &Tile, nations: &Nations) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 519 | pub fn advance_month(&mut self, renderer: &mut Renderer, months_elapsed: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `virtual_keycode_to_number` is never used [INFO] [stdout] --> src/helper_fns.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn virtual_keycode_to_number(key_code: VirtualKeyCode) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 73 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7m 58s [INFO] running `Command { std: "docker" "inspect" "b2dcfb8ee77b55a04272df197d666e0450ddaa220a14b7e4adc326d367e88efa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2dcfb8ee77b55a04272df197d666e0450ddaa220a14b7e4adc326d367e88efa", kill_on_drop: false }` [INFO] [stdout] b2dcfb8ee77b55a04272df197d666e0450ddaa220a14b7e4adc326d367e88efa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 883e230bd2f5695e29fe2bb7acd44ee6456f82a80b8c62e4f43b853f07629410 [INFO] running `Command { std: "docker" "start" "-a" "883e230bd2f5695e29fe2bb7acd44ee6456f82a80b8c62e4f43b853f07629410", kill_on_drop: false }` [INFO] [stderr] Compiling map-game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/map/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/map/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::num_traits::FloatConst` [INFO] [stdout] --> src/map/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use cgmath::num_traits::FloatConst; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DynamicImage` [INFO] [stdout] --> src/map/mod.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use image::{DynamicImage, GenericImageView}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BuildingSlotCoast`, `BuildingSlotInland`, `BuildingSlot` [INFO] [stdout] --> src/map/mod.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::map::buildings::{BuildingSlot, BuildingSlotCoast, BuildingSlotInland}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Population` [INFO] [stdout] --> src/map/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::Population; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::Matrix4` [INFO] [stdout] --> src/camera.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use cgmath::Matrix4; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::num_traits::FloatConst` [INFO] [stdout] --> src/camera.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use cgmath::num_traits::FloatConst; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ImageFormat`, `ImageResult` [INFO] [stdout] --> src/render/ui_textures.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use image::{EncodableLayout, ImageFormat, ImageResult}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::num_traits::FloatConst` [INFO] [stdout] --> src/state/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use cgmath::num_traits::FloatConst; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Biome`, `Tile` [INFO] [stdout] --> src/state/mod.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::map::{Biome, Tile}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image::imageops::tile` [INFO] [stdout] --> src/state/game_state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use image::imageops::tile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winit::event::VirtualKeyCode::T` [INFO] [stdout] --> src/state/ui_state/ui_object.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use winit::event::VirtualKeyCode::T; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BindGroupsID` [INFO] [stdout] --> src/state/ui_state/ui_object.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::render::render_pipeline_manager::{BindGroupsID, RenderPipelineID}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IDStores` [INFO] [stdout] --> src/state/ui_state/ui_object.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::render::{IDStores, Renderer}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/state/ui_state/player_tile_menu.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Map` [INFO] [stdout] --> src/state/ui_state/player_tile_menu.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{Game, Map}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameStage` [INFO] [stdout] --> src/state/ui_state/player_tile_menu.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::state::game_state::{GameStage, GameState}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::state::ui_state::nation_creation_panel::NationCreationPanel` [INFO] [stdout] --> src/state/ui_state/player_tile_menu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::state::ui_state::nation_creation_panel::NationCreationPanel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ElementState`, `KeyboardInput`, `VirtualKeyCode` [INFO] [stdout] --> src/main.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use winit::event::{ElementState, Event, KeyboardInput, VirtualKeyCode, WindowEvent}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/state/mod.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut game = Game { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged [INFO] [stdout] --> src/state/ui_state/nation_creation_panel.rs:256:24 [INFO] [stdout] | [INFO] [stdout] 256 | if input.modifiers.shift() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImageView` [INFO] [stdout] --> src/map/mod.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use image::{DynamicImage, GenericImageView}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rotation2` [INFO] [stdout] --> src/camera.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let rotation2 = cgmath::Matrix4::new( [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotation2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bind_group_layout_2d` [INFO] [stdout] --> src/state/ui_state/nation_creation_panel.rs:94:104 [INFO] [stdout] | [INFO] [stdout] 94 | ...ec) {let bind_group_layout_2d = renderer.gpu.create_texture_bind_group_layout(wgpu::TextureViewDimension::D2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bind_group_layout_2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/state/ui_state/ui_object.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | _ => panic!() [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/state/ui_state/player_tile_menu.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut bind_group_creation_fns: HashMap (Vec, Vec)> = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `renderer` [INFO] [stdout] --> src/state/ui_state.rs:491:35 [INFO] [stdout] | [INFO] [stdout] 491 | pub fn select_tile(&mut self, renderer: &mut Renderer, tile: &Tile, nations: &Nations) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tile` [INFO] [stdout] --> src/state/ui_state.rs:491:60 [INFO] [stdout] | [INFO] [stdout] 491 | pub fn select_tile(&mut self, renderer: &mut Renderer, tile: &Tile, nations: &Nations) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nations` [INFO] [stdout] --> src/state/ui_state.rs:491:73 [INFO] [stdout] | [INFO] [stdout] 491 | pub fn select_tile(&mut self, renderer: &mut Renderer, tile: &Tile, nations: &Nations) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/state/mod.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | let (mut x_game_space, y_game_space) = self.calculate_world_space_position_from_screen_position(&self.mouse_position); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/state/mod.rs:176:34 [INFO] [stdout] | [INFO] [stdout] 176 | ... if let Some((mut x, y, flipped)) = self.calculate_map_relative_position_from_world_space_position(x_game_space, y_game_space) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `UNFLIPPED_MOD`, `FLIPPED_MOD`, `aspect_ratio`, and `advance_month` are never used [INFO] [stdout] --> src/map/mod.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 79 | impl Map { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 80 | pub const MAP_WORLD_SPACE_HEIGHT: f32 = 0.95; [INFO] [stdout] 81 | pub const UNFLIPPED_MOD: f32 = 0.17578125; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 82 | pub const FLIPPED_MOD: f32 = 0.32421875; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn aspect_ratio(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn advance_month(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Housing`, `Farms`, `Workshops`, `Barracks`, and `Mine` are never constructed [INFO] [stdout] --> src/map/buildings.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum BuildingSlotInland { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 5 | Empty, Housing(Housing), Farms(Farms), Workshops(Workshops), [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^^^^^^ [INFO] [stdout] 6 | Barracks(Barracks), Mine(Mine) [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BuildingSlotInland` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Port` and `Housing` are never constructed [INFO] [stdout] --> src/map/buildings.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum BuildingSlotCoast { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 11 | Empty, Port(Port), Housing(Housing) [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BuildingSlotCoast` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `material`, `density`, and `size` are never read [INFO] [stdout] --> src/map/buildings.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Housing { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 22 | material: HousingMaterial, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 23 | density: usize, // How many houses // 4 people a house?? maybe more [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 24 | size: HouseSize, // Bigger increases comfort but decreases max density [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Housing` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MubBrick`, `Wood`, `Stone`, `Thatch`, `Brick`, and `InsulatedBrick` are never constructed [INFO] [stdout] --> src/map/buildings.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum HousingMaterial { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 29 | Tents, MubBrick, Wood, Stone, Thatch, Brick, InsulatedBrick [INFO] [stdout] | ^^^^^^^^ ^^^^ ^^^^^ ^^^^^^ ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HousingMaterial` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Small`, `Breathable`, `Spacious`, and `Luxury` are never constructed [INFO] [stdout] --> src/map/buildings.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum HouseSize { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 40 | Cramped, Small, Breathable, Spacious, Luxury [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HouseSize` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `farm_type` and `size` are never read [INFO] [stdout] --> src/map/buildings.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Farms { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 51 | farm_type: FarmType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 52 | size: usize, // Indicates max number of workers each worker produces x output [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Farms` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `WoolAndFood` and `LeatherAndFood` are never constructed [INFO] [stdout] --> src/map/buildings.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 56 | pub enum FarmType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 57 | FoodCrops, WoolAndFood, LeatherAndFood [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FarmType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `workshop_type` and `size` are never read [INFO] [stdout] --> src/map/buildings.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Workshops { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 68 | workshop_type: WorkshopType, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 69 | size: usize, // Indicates max number of workers each worker produces x output [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Workshops` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/map/buildings.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 73 | pub enum WorkshopType { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 74 | Weapons, Armor, Clothing, Furniture, LumberMill, StoneWorks, Brick, Tools [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WorkshopType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `material` and `size` are never read [INFO] [stdout] --> src/map/buildings.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct Barracks { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 85 | material: HousingMaterial, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 86 | size: usize, // Indicates max number of workers each worker produces x output [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Barracks` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ore_type` and `size` are never read [INFO] [stdout] --> src/map/buildings.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct Mine { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 91 | ore_type: OreType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | size: usize, // Indicates max number of workers each worker produces x output (Capped quite low) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mine` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Iron`, `Tin`, `Copper`, `Aluminium`, `Gold`, and `Silver` are never constructed [INFO] [stdout] --> src/map/buildings.rs:97:11 [INFO] [stdout] | [INFO] [stdout] 96 | pub enum OreType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 97 | Coal, Iron, Tin, Copper, Aluminium, Gold, Silver, [INFO] [stdout] | ^^^^ ^^^ ^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OreType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size` is never read [INFO] [stdout] --> src/map/buildings.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct HuntingArea { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 108 | size: usize, // Indicates max number of workers each worker produces x output - slowly depletes wildlife count if too big [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HuntingArea` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `port_type` and `size` are never read [INFO] [stdout] --> src/map/buildings.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct Port { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 115 | port_type: PortType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 116 | size: usize, // Indicates max number of workers each worker produces x capacity [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Port` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Trade` and `Fishing` are never constructed [INFO] [stdout] --> src/map/buildings.rs:121:15 [INFO] [stdout] | [INFO] [stdout] 120 | pub enum PortType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 121 | Military, Trade, Fishing [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PortType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_id`, `get_population`, `get_population_mut`, `init_pop`, `get_building_slot`, and `get_building_slot_mut` are never used [INFO] [stdout] --> src/map/tile.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Tile { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 19 | pub fn get_id(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn get_population(&self) -> &Population { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_population_mut (&mut self) -> &mut Population { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn init_pop(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn get_building_slot(&self, slot: usize) -> &BuildingSlot { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn get_building_slot_mut(&mut self, slot: usize) -> &mut BuildingSlot { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `NOT_COAST` is never used [INFO] [stdout] --> src/map/coast.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 31 | impl Coast { [INFO] [stdout] | ---------- associated constant in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | const NOT_COAST: u8 = 255; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_rotation` and `get_rotation` are never used [INFO] [stdout] --> src/camera.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Camera { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn set_rotation(&mut self, rotation: Option) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn get_rotation(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `advance_month` is never used [INFO] [stdout] --> src/nations.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Nations { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn advance_month(&mut self, map: &mut Map) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/nations.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Nation { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 60 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `advance_month` is never used [INFO] [stdout] --> src/nations.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Nation { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 69 | pub fn advance_month(&mut self, map: &mut Map) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/render/mod.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 264 | impl Renderer { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn get_component_position(&self, component_id: UIComponentID) -> &UIComponentPosition { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn set_component_position(&mut self, component_id: UIComponentID, position: UIComponentPosition) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn get_component_dimensions(&self, component_id: UIComponentID) -> &UIComponentDimensions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn set_component_dimensions(&mut self, component_id: UIComponentID, dimensions: UIComponentDimensions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub fn get_component_interactions(&self, component_id: UIComponentID) -> &Interactions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub fn set_component_interactions(&mut self, component_id: UIComponentID, interactions: Interactions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | pub fn set_component_pipeline(&mut self, component_id: UIComponentID, render_pipeline_id: RenderPipelineID) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 317 | pub fn swap_bind_groups(&mut self, component_id: UIComponentID, bind_groups_id: BindGroupsID, bind_groups_unique: Vec,) -> (Bin... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | pub fn get_component_edges(&self, component_id: UIComponentID) -> Edges { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tile_map_diffuse_texture` is never read [INFO] [stdout] --> src/render/mod.rs:331:5 [INFO] [stdout] | [INFO] [stdout] 330 | pub struct TileTextures { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 331 | tile_map_diffuse_texture: Texture, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `num_vertices` is never read [INFO] [stdout] --> src/render/mod.rs:443:5 [INFO] [stdout] | [INFO] [stdout] 441 | struct MapQuad { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 442 | vertex_buffer: wgpu::Buffer, [INFO] [stdout] 443 | num_vertices: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `VERT_REPEATS` is never used [INFO] [stdout] --> src/render/mod.rs:454:11 [INFO] [stdout] | [INFO] [stdout] 448 | impl MapQuad { [INFO] [stdout] | ------------ associated constant in this implementation [INFO] [stdout] ... [INFO] [stdout] 454 | const VERT_REPEATS: f32 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/render/ui.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl UIManager { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 204 | pub fn get_component_position(&self, component_id: UIComponentID) -> &UIComponentPosition { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | pub fn set_component_position(&mut self, gpu: &GPU, component_id: UIComponentID, position: UIComponentPosition) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn get_component_dimensions(&self, component_id: UIComponentID) -> &UIComponentDimensions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn set_component_dimensions(&mut self, gpu: &GPU, component_id: UIComponentID, dimensions: UIComponentDimensions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn get_component_interactions(&self, component_id: UIComponentID) -> &Interactions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn set_component_interactions(&mut self, component_id: UIComponentID, interactions: Interactions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn set_component_pipeline(&mut self, component_id: UIComponentID, render_pipeline_id: RenderPipelineID) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn swap_bind_groups(&mut self, component_id: UIComponentID, mut bind_groups_id: BindGroupsID, mut bind_groups_unique: Vec,)... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn get_component_edges(&self, component_id: UIComponentID) -> Edges { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `on_hover` and `on_leave` are never read [INFO] [stdout] --> src/render/ui.rs:481:16 [INFO] [stdout] | [INFO] [stdout] 480 | pub struct Interactions { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 481 | pub(crate) on_hover: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 482 | pub(crate) on_leave: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Interactions` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hovering` is never read [INFO] [stdout] --> src/render/ui.rs:491:5 [INFO] [stdout] | [INFO] [stdout] 490 | struct InteractionsTracking { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 491 | hovering: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `read_and_create_texture` and `old_new` are never used [INFO] [stdout] --> src/render/ui_textures.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 77 | impl UITextures { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | fn read_and_create_texture(gpu: &GPU, texture_manager: &mut TextureManager, bind_group_layout: &wgpu::BindGroupLayout, path: impl AsR... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn old_new(gpu: &GPU, texture_manager: &mut TextureManager) -> UITextures { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mut` is never used [INFO] [stdout] --> src/render/render_pipeline_manager.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl BindGroupManager { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn get_mut(&mut self, bind_groups_id: BindGroupsID) -> &mut Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `delete_pipeline` is never used [INFO] [stdout] --> src/render/render_pipeline_manager.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl RenderPipelineManager { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn delete_pipeline(&mut self, render_pipeline_id: RenderPipelineID) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `has_pop`, `birthrate`, and `death_rate_for_old` are never read [INFO] [stdout] --> src/population.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Population { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | has_pop: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | [INFO] [stdout] 14 | birthrate: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | death_rate_for_old: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Population` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_pop`, `init`, `advance_month`, `young_population`, `adult_population`, and `elderly_population` are never used [INFO] [stdout] --> src/population.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Population { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn has_pop(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn advance_month(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn young_population(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn adult_population(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn elderly_population(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `advance_month` is never used [INFO] [stdout] --> src/state/mod.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | fn advance_month(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `advance_month` is never used [INFO] [stdout] --> src/state/game_state.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl GameState { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn advance_month(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOW_PANEL_LAYER` is never used [INFO] [stdout] --> src/state/ui_state.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const LOW_PANEL_LAYER: usize = 30; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TILE_UI_BASE_LAYER` is never used [INFO] [stdout] --> src/state/ui_state.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const TILE_UI_BASE_LAYER: usize = 70; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `time_elapsed`, `top_panel`, and `currently_selected_tile` are never read [INFO] [stdout] --> src/state/ui_state.rs:461:5 [INFO] [stdout] | [INFO] [stdout] 454 | pub struct UIState { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 461 | time_elapsed: UIComponentID, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 462 | top_panel: UIComponentID, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 463 | [INFO] [stdout] 464 | currently_selected_tile: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `select_tile` and `advance_month` are never used [INFO] [stdout] --> src/state/ui_state.rs:491:12 [INFO] [stdout] | [INFO] [stdout] 467 | impl UIState { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 491 | pub fn select_tile(&mut self, renderer: &mut Renderer, tile: &Tile, nations: &Nations) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 519 | pub fn advance_month(&mut self, renderer: &mut Renderer, months_elapsed: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `virtual_keycode_to_number` is never used [INFO] [stdout] --> src/helper_fns.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn virtual_keycode_to_number(key_code: VirtualKeyCode) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 73 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.53s [INFO] running `Command { std: "docker" "inspect" "883e230bd2f5695e29fe2bb7acd44ee6456f82a80b8c62e4f43b853f07629410", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "883e230bd2f5695e29fe2bb7acd44ee6456f82a80b8c62e4f43b853f07629410", kill_on_drop: false }` [INFO] [stdout] 883e230bd2f5695e29fe2bb7acd44ee6456f82a80b8c62e4f43b853f07629410 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 06ada4be7a355417efdeab1c00cc7e0774cf6d1fc4ebd71bdc3ad4bada6b66f1 [INFO] running `Command { std: "docker" "start" "-a" "06ada4be7a355417efdeab1c00cc7e0774cf6d1fc4ebd71bdc3ad4bada6b66f1", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::cmp::max` [INFO] [stderr] --> src/map/mod.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::cmp::max; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fmt::Debug` [INFO] [stderr] --> src/map/mod.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::fmt::Debug; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cgmath::num_traits::FloatConst` [INFO] [stderr] --> src/map/mod.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use cgmath::num_traits::FloatConst; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `DynamicImage` [INFO] [stderr] --> src/map/mod.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | use image::{DynamicImage, GenericImageView}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BuildingSlotCoast`, `BuildingSlotInland`, `BuildingSlot` [INFO] [stderr] --> src/map/mod.rs:7:29 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::map::buildings::{BuildingSlot, BuildingSlotCoast, BuildingSlotInland}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::Population` [INFO] [stderr] --> src/map/mod.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::Population; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cgmath::Matrix4` [INFO] [stderr] --> src/camera.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use cgmath::Matrix4; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cgmath::num_traits::FloatConst` [INFO] [stderr] --> src/camera.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::num_traits::FloatConst; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ImageFormat`, `ImageResult` [INFO] [stderr] --> src/render/ui_textures.rs:3:30 [INFO] [stderr] | [INFO] [stderr] 3 | use image::{EncodableLayout, ImageFormat, ImageResult}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cgmath::num_traits::FloatConst` [INFO] [stderr] --> src/state/mod.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::num_traits::FloatConst; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Biome`, `Tile` [INFO] [stderr] --> src/state/mod.rs:7:18 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::map::{Biome, Tile}; [INFO] [stderr] | ^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `image::imageops::tile` [INFO] [stderr] --> src/state/game_state.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use image::imageops::tile; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winit::event::VirtualKeyCode::T` [INFO] [stderr] --> src/state/ui_state/ui_object.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use winit::event::VirtualKeyCode::T; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BindGroupsID` [INFO] [stderr] --> src/state/ui_state/ui_object.rs:5:46 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::render::render_pipeline_manager::{BindGroupsID, RenderPipelineID}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `IDStores` [INFO] [stderr] --> src/state/ui_state/ui_object.rs:6:21 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::render::{IDStores, Renderer}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/state/ui_state/player_tile_menu.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Map` [INFO] [stderr] --> src/state/ui_state/player_tile_menu.rs:3:19 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::{Game, Map}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `GameStage` [INFO] [stderr] --> src/state/ui_state/player_tile_menu.rs:8:32 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::state::game_state::{GameStage, GameState}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::state::ui_state::nation_creation_panel::NationCreationPanel` [INFO] [stderr] --> src/state/ui_state/player_tile_menu.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::state::ui_state::nation_creation_panel::NationCreationPanel; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ElementState`, `KeyboardInput`, `VirtualKeyCode` [INFO] [stderr] --> src/main.rs:13:20 [INFO] [stderr] | [INFO] [stderr] 13 | use winit::event::{ElementState, Event, KeyboardInput, VirtualKeyCode, WindowEvent}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/state/mod.rs:37:13 [INFO] [stderr] | [INFO] [stderr] 37 | let mut game = Game { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged [INFO] [stderr] --> src/state/ui_state/nation_creation_panel.rs:256:24 [INFO] [stderr] | [INFO] [stderr] 256 | if input.modifiers.shift() { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `GenericImageView` [INFO] [stderr] --> src/map/mod.rs:6:27 [INFO] [stderr] | [INFO] [stderr] 6 | use image::{DynamicImage, GenericImageView}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rotation2` [INFO] [stderr] --> src/camera.rs:140:13 [INFO] [stderr] | [INFO] [stderr] 140 | let rotation2 = cgmath::Matrix4::new( [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotation2` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bind_group_layout_2d` [INFO] [stderr] --> src/state/ui_state/nation_creation_panel.rs:94:104 [INFO] [stderr] | [INFO] [stderr] 94 | ...ec) {let bind_group_layout_2d = renderer.gpu.create_texture_bind_group_layout(wgpu::TextureViewDimension::D2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bind_group_layout_2d` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/state/ui_state/ui_object.rs:228:13 [INFO] [stderr] | [INFO] [stderr] 228 | _ => panic!() [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/state/ui_state/player_tile_menu.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | let mut bind_group_creation_fns: HashMap (Vec, Vec)> = HashMap::new(); [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `renderer` [INFO] [stderr] --> src/state/ui_state.rs:491:35 [INFO] [stderr] | [INFO] [stderr] 491 | pub fn select_tile(&mut self, renderer: &mut Renderer, tile: &Tile, nations: &Nations) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tile` [INFO] [stderr] --> src/state/ui_state.rs:491:60 [INFO] [stderr] | [INFO] [stderr] 491 | pub fn select_tile(&mut self, renderer: &mut Renderer, tile: &Tile, nations: &Nations) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `nations` [INFO] [stderr] --> src/state/ui_state.rs:491:73 [INFO] [stderr] | [INFO] [stderr] 491 | pub fn select_tile(&mut self, renderer: &mut Renderer, tile: &Tile, nations: &Nations) { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nations` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/state/mod.rs:175:26 [INFO] [stderr] | [INFO] [stderr] 175 | let (mut x_game_space, y_game_space) = self.calculate_world_space_position_from_screen_position(&self.mouse_position); [INFO] [stderr] | ----^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/state/mod.rs:176:34 [INFO] [stderr] | [INFO] [stderr] 176 | ... if let Some((mut x, y, flipped)) = self.calculate_map_relative_position_from_world_space_position(x_game_space, y_game_space) { [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated items `UNFLIPPED_MOD`, `FLIPPED_MOD`, `aspect_ratio`, and `advance_month` are never used [INFO] [stderr] --> src/map/mod.rs:81:16 [INFO] [stderr] | [INFO] [stderr] 79 | impl Map { [INFO] [stderr] | -------- associated items in this implementation [INFO] [stderr] 80 | pub const MAP_WORLD_SPACE_HEIGHT: f32 = 0.95; [INFO] [stderr] 81 | pub const UNFLIPPED_MOD: f32 = 0.17578125; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 82 | pub const FLIPPED_MOD: f32 = 0.32421875; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 96 | pub fn aspect_ratio(&self) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 100 | pub fn advance_month(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variants `Housing`, `Farms`, `Workshops`, `Barracks`, and `Mine` are never constructed [INFO] [stderr] --> src/map/buildings.rs:5:12 [INFO] [stderr] | [INFO] [stderr] 4 | pub enum BuildingSlotInland { [INFO] [stderr] | ------------------ variants in this enum [INFO] [stderr] 5 | Empty, Housing(Housing), Farms(Farms), Workshops(Workshops), [INFO] [stderr] | ^^^^^^^ ^^^^^ ^^^^^^^^^ [INFO] [stderr] 6 | Barracks(Barracks), Mine(Mine) [INFO] [stderr] | ^^^^^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BuildingSlotInland` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `Port` and `Housing` are never constructed [INFO] [stderr] --> src/map/buildings.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 10 | pub enum BuildingSlotCoast { [INFO] [stderr] | ----------------- variants in this enum [INFO] [stderr] 11 | Empty, Port(Port), Housing(Housing) [INFO] [stderr] | ^^^^ ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BuildingSlotCoast` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `material`, `density`, and `size` are never read [INFO] [stderr] --> src/map/buildings.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 21 | pub struct Housing { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] 22 | material: HousingMaterial, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 23 | density: usize, // How many houses // 4 people a house?? maybe more [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 24 | size: HouseSize, // Bigger increases comfort but decreases max density [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Housing` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `MubBrick`, `Wood`, `Stone`, `Thatch`, `Brick`, and `InsulatedBrick` are never constructed [INFO] [stderr] --> src/map/buildings.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 28 | pub enum HousingMaterial { [INFO] [stderr] | --------------- variants in this enum [INFO] [stderr] 29 | Tents, MubBrick, Wood, Stone, Thatch, Brick, InsulatedBrick [INFO] [stderr] | ^^^^^^^^ ^^^^ ^^^^^ ^^^^^^ ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `HousingMaterial` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `Small`, `Breathable`, `Spacious`, and `Luxury` are never constructed [INFO] [stderr] --> src/map/buildings.rs:40:14 [INFO] [stderr] | [INFO] [stderr] 39 | pub enum HouseSize { [INFO] [stderr] | --------- variants in this enum [INFO] [stderr] 40 | Cramped, Small, Breathable, Spacious, Luxury [INFO] [stderr] | ^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `HouseSize` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `farm_type` and `size` are never read [INFO] [stderr] --> src/map/buildings.rs:51:5 [INFO] [stderr] | [INFO] [stderr] 50 | pub struct Farms { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] 51 | farm_type: FarmType, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 52 | size: usize, // Indicates max number of workers each worker produces x output [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Farms` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `WoolAndFood` and `LeatherAndFood` are never constructed [INFO] [stderr] --> src/map/buildings.rs:57:16 [INFO] [stderr] | [INFO] [stderr] 56 | pub enum FarmType { [INFO] [stderr] | -------- variants in this enum [INFO] [stderr] 57 | FoodCrops, WoolAndFood, LeatherAndFood [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FarmType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `workshop_type` and `size` are never read [INFO] [stderr] --> src/map/buildings.rs:68:5 [INFO] [stderr] | [INFO] [stderr] 67 | pub struct Workshops { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 68 | workshop_type: WorkshopType, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 69 | size: usize, // Indicates max number of workers each worker produces x output [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Workshops` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple variants are never constructed [INFO] [stderr] --> src/map/buildings.rs:74:14 [INFO] [stderr] | [INFO] [stderr] 73 | pub enum WorkshopType { [INFO] [stderr] | ------------ variants in this enum [INFO] [stderr] 74 | Weapons, Armor, Clothing, Furniture, LumberMill, StoneWorks, Brick, Tools [INFO] [stderr] | ^^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^ ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `WorkshopType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `material` and `size` are never read [INFO] [stderr] --> src/map/buildings.rs:85:5 [INFO] [stderr] | [INFO] [stderr] 84 | pub struct Barracks { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 85 | material: HousingMaterial, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 86 | size: usize, // Indicates max number of workers each worker produces x output [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Barracks` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `ore_type` and `size` are never read [INFO] [stderr] --> src/map/buildings.rs:91:5 [INFO] [stderr] | [INFO] [stderr] 90 | pub struct Mine { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 91 | ore_type: OreType, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 92 | size: usize, // Indicates max number of workers each worker produces x output (Capped quite low) [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Mine` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `Iron`, `Tin`, `Copper`, `Aluminium`, `Gold`, and `Silver` are never constructed [INFO] [stderr] --> src/map/buildings.rs:97:11 [INFO] [stderr] | [INFO] [stderr] 96 | pub enum OreType { [INFO] [stderr] | ------- variants in this enum [INFO] [stderr] 97 | Coal, Iron, Tin, Copper, Aluminium, Gold, Silver, [INFO] [stderr] | ^^^^ ^^^ ^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `OreType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `size` is never read [INFO] [stderr] --> src/map/buildings.rs:108:5 [INFO] [stderr] | [INFO] [stderr] 107 | pub struct HuntingArea { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] 108 | size: usize, // Indicates max number of workers each worker produces x output - slowly depletes wildlife count if too big [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `HuntingArea` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `port_type` and `size` are never read [INFO] [stderr] --> src/map/buildings.rs:115:5 [INFO] [stderr] | [INFO] [stderr] 114 | pub struct Port { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 115 | port_type: PortType, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 116 | size: usize, // Indicates max number of workers each worker produces x capacity [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Port` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `Trade` and `Fishing` are never constructed [INFO] [stderr] --> src/map/buildings.rs:121:15 [INFO] [stderr] | [INFO] [stderr] 120 | pub enum PortType { [INFO] [stderr] | -------- variants in this enum [INFO] [stderr] 121 | Military, Trade, Fishing [INFO] [stderr] | ^^^^^ ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PortType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `get_id`, `get_population`, `get_population_mut`, `init_pop`, `get_building_slot`, and `get_building_slot_mut` are never used [INFO] [stderr] --> src/map/tile.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl Tile { [INFO] [stderr] | --------- methods in this implementation [INFO] [stderr] 19 | pub fn get_id(&self) -> usize { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 23 | pub fn get_population(&self) -> &Population { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 27 | pub fn get_population_mut (&mut self) -> &mut Population { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 167 | pub fn init_pop(&mut self) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 171 | pub fn get_building_slot(&self, slot: usize) -> &BuildingSlot { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 175 | pub fn get_building_slot_mut(&mut self, slot: usize) -> &mut BuildingSlot { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant `NOT_COAST` is never used [INFO] [stderr] --> src/map/coast.rs:65:11 [INFO] [stderr] | [INFO] [stderr] 31 | impl Coast { [INFO] [stderr] | ---------- associated constant in this implementation [INFO] [stderr] ... [INFO] [stderr] 65 | const NOT_COAST: u8 = 255; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `set_rotation` and `get_rotation` are never used [INFO] [stderr] --> src/camera.rs:110:12 [INFO] [stderr] | [INFO] [stderr] 24 | impl Camera { [INFO] [stderr] | ----------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 110 | pub fn set_rotation(&mut self, rotation: Option) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 114 | pub fn get_rotation(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `advance_month` is never used [INFO] [stderr] --> src/nations.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 11 | impl Nations { [INFO] [stderr] | ------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 22 | pub fn advance_month(&mut self, map: &mut Map) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/nations.rs:60:5 [INFO] [stderr] | [INFO] [stderr] 59 | pub struct Nation { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] 60 | id: usize, [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: method `advance_month` is never used [INFO] [stderr] --> src/nations.rs:69:12 [INFO] [stderr] | [INFO] [stderr] 68 | impl Nation { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] 69 | pub fn advance_month(&mut self, map: &mut Map) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/render/mod.rs:285:12 [INFO] [stderr] | [INFO] [stderr] 264 | impl Renderer { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 285 | pub fn get_component_position(&self, component_id: UIComponentID) -> &UIComponentPosition { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 289 | pub fn set_component_position(&mut self, component_id: UIComponentID, position: UIComponentPosition) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 293 | pub fn get_component_dimensions(&self, component_id: UIComponentID) -> &UIComponentDimensions { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 297 | pub fn set_component_dimensions(&mut self, component_id: UIComponentID, dimensions: UIComponentDimensions) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 301 | pub fn get_component_interactions(&self, component_id: UIComponentID) -> &Interactions { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 305 | pub fn set_component_interactions(&mut self, component_id: UIComponentID, interactions: Interactions) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 309 | pub fn set_component_pipeline(&mut self, component_id: UIComponentID, render_pipeline_id: RenderPipelineID) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 317 | pub fn swap_bind_groups(&mut self, component_id: UIComponentID, bind_groups_id: BindGroupsID, bind_groups_unique: Vec,) -> (Bin... [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 321 | pub fn get_component_edges(&self, component_id: UIComponentID) -> Edges { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `tile_map_diffuse_texture` is never read [INFO] [stderr] --> src/render/mod.rs:331:5 [INFO] [stderr] | [INFO] [stderr] 330 | pub struct TileTextures { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 331 | tile_map_diffuse_texture: Texture, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `num_vertices` is never read [INFO] [stderr] --> src/render/mod.rs:443:5 [INFO] [stderr] | [INFO] [stderr] 441 | struct MapQuad { [INFO] [stderr] | ------- field in this struct [INFO] [stderr] 442 | vertex_buffer: wgpu::Buffer, [INFO] [stderr] 443 | num_vertices: u32, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant `VERT_REPEATS` is never used [INFO] [stderr] --> src/render/mod.rs:454:11 [INFO] [stderr] | [INFO] [stderr] 448 | impl MapQuad { [INFO] [stderr] | ------------ associated constant in this implementation [INFO] [stderr] ... [INFO] [stderr] 454 | const VERT_REPEATS: f32 = 1.0; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/render/ui.rs:204:12 [INFO] [stderr] | [INFO] [stderr] 35 | impl UIManager { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 204 | pub fn get_component_position(&self, component_id: UIComponentID) -> &UIComponentPosition { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 208 | pub fn set_component_position(&mut self, gpu: &GPU, component_id: UIComponentID, position: UIComponentPosition) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 214 | pub fn get_component_dimensions(&self, component_id: UIComponentID) -> &UIComponentDimensions { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 218 | pub fn set_component_dimensions(&mut self, gpu: &GPU, component_id: UIComponentID, dimensions: UIComponentDimensions) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 224 | pub fn get_component_interactions(&self, component_id: UIComponentID) -> &Interactions { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 228 | pub fn set_component_interactions(&mut self, component_id: UIComponentID, interactions: Interactions) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 233 | pub fn set_component_pipeline(&mut self, component_id: UIComponentID, render_pipeline_id: RenderPipelineID) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 246 | pub fn swap_bind_groups(&mut self, component_id: UIComponentID, mut bind_groups_id: BindGroupsID, mut bind_groups_unique: Vec,)... [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 254 | pub fn get_component_edges(&self, component_id: UIComponentID) -> Edges { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `on_hover` and `on_leave` are never read [INFO] [stderr] --> src/render/ui.rs:481:16 [INFO] [stderr] | [INFO] [stderr] 480 | pub struct Interactions { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 481 | pub(crate) on_hover: Option, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 482 | pub(crate) on_leave: Option, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Interactions` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `hovering` is never read [INFO] [stderr] --> src/render/ui.rs:491:5 [INFO] [stderr] | [INFO] [stderr] 490 | struct InteractionsTracking { [INFO] [stderr] | -------------------- field in this struct [INFO] [stderr] 491 | hovering: bool, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `read_and_create_texture` and `old_new` are never used [INFO] [stderr] --> src/render/ui_textures.rs:88:8 [INFO] [stderr] | [INFO] [stderr] 77 | impl UITextures { [INFO] [stderr] | --------------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 88 | fn read_and_create_texture(gpu: &GPU, texture_manager: &mut TextureManager, bind_group_layout: &wgpu::BindGroupLayout, path: impl AsR... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 140 | pub fn old_new(gpu: &GPU, texture_manager: &mut TextureManager) -> UITextures { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `get_mut` is never used [INFO] [stderr] --> src/render/render_pipeline_manager.rs:42:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl BindGroupManager { [INFO] [stderr] | --------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 42 | pub fn get_mut(&mut self, bind_groups_id: BindGroupsID) -> &mut Vec { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `delete_pipeline` is never used [INFO] [stderr] --> src/render/render_pipeline_manager.rs:89:12 [INFO] [stderr] | [INFO] [stderr] 61 | impl RenderPipelineManager { [INFO] [stderr] | -------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 89 | pub fn delete_pipeline(&mut self, render_pipeline_id: RenderPipelineID) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `has_pop`, `birthrate`, and `death_rate_for_old` are never read [INFO] [stderr] --> src/population.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct Population { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 12 | has_pop: bool, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 13 | [INFO] [stderr] 14 | birthrate: f64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 15 | death_rate_for_old: f64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Population` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `has_pop`, `init`, `advance_month`, `young_population`, `adult_population`, and `elderly_population` are never used [INFO] [stderr] --> src/population.rs:33:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl Population { [INFO] [stderr] | --------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 33 | pub fn has_pop(&self) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 37 | pub fn init(&mut self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 47 | pub fn advance_month(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 84 | pub fn young_population(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 88 | pub fn adult_population(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 92 | pub fn elderly_population(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `advance_month` is never used [INFO] [stderr] --> src/state/mod.rs:77:8 [INFO] [stderr] | [INFO] [stderr] 31 | impl Game { [INFO] [stderr] | --------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 77 | fn advance_month(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `advance_month` is never used [INFO] [stderr] --> src/state/game_state.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl GameState { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 29 | pub fn advance_month(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `LOW_PANEL_LAYER` is never used [INFO] [stderr] --> src/state/ui_state.rs:14:11 [INFO] [stderr] | [INFO] [stderr] 14 | pub const LOW_PANEL_LAYER: usize = 30; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `TILE_UI_BASE_LAYER` is never used [INFO] [stderr] --> src/state/ui_state.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | const TILE_UI_BASE_LAYER: usize = 70; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `time_elapsed`, `top_panel`, and `currently_selected_tile` are never read [INFO] [stderr] --> src/state/ui_state.rs:461:5 [INFO] [stderr] | [INFO] [stderr] 454 | pub struct UIState { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 461 | time_elapsed: UIComponentID, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 462 | top_panel: UIComponentID, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 463 | [INFO] [stderr] 464 | currently_selected_tile: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `select_tile` and `advance_month` are never used [INFO] [stderr] --> src/state/ui_state.rs:491:12 [INFO] [stderr] | [INFO] [stderr] 467 | impl UIState { [INFO] [stderr] | ------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 491 | pub fn select_tile(&mut self, renderer: &mut Renderer, tile: &Tile, nations: &Nations) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 519 | pub fn advance_month(&mut self, renderer: &mut Renderer, months_elapsed: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `virtual_keycode_to_number` is never used [INFO] [stderr] --> src/helper_fns.rs:41:8 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn virtual_keycode_to_number(key_code: VirtualKeyCode) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `map-game` (bin "map-game" test) generated 73 warnings (run `cargo fix --bin "map-game" --tests` to apply 29 suggestions) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/map_game-7d97ccd131c3d507) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "06ada4be7a355417efdeab1c00cc7e0774cf6d1fc4ebd71bdc3ad4bada6b66f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06ada4be7a355417efdeab1c00cc7e0774cf6d1fc4ebd71bdc3ad4bada6b66f1", kill_on_drop: false }` [INFO] [stdout] 06ada4be7a355417efdeab1c00cc7e0774cf6d1fc4ebd71bdc3ad4bada6b66f1