[INFO] cloning repository https://github.com/vanitysemptiness/tiny-neo-space [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vanitysemptiness/tiny-neo-space" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvanitysemptiness%2Ftiny-neo-space", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvanitysemptiness%2Ftiny-neo-space'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 81e2d9d3b2e2d9501add057b231288900f7d9f63 [INFO] checking vanitysemptiness/tiny-neo-space against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvanitysemptiness%2Ftiny-neo-space" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vanitysemptiness/tiny-neo-space [INFO] finished tweaking git repo https://github.com/vanitysemptiness/tiny-neo-space [INFO] tweaked toml for git repo https://github.com/vanitysemptiness/tiny-neo-space written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vanitysemptiness/tiny-neo-space on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vanitysemptiness/tiny-neo-space 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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded macroquad_macro v0.1.8 [INFO] [stderr] Downloaded fontdue v0.7.3 [INFO] [stderr] Downloaded miniquad v0.4.5 [INFO] [stderr] Downloaded macroquad v0.4.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e99c23ac81080f6615a932f229b5e8981f3eedd19505d24b1adcfaa93be07b69 [INFO] running `Command { std: "docker" "start" "-a" "e99c23ac81080f6615a932f229b5e8981f3eedd19505d24b1adcfaa93be07b69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e99c23ac81080f6615a932f229b5e8981f3eedd19505d24b1adcfaa93be07b69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e99c23ac81080f6615a932f229b5e8981f3eedd19505d24b1adcfaa93be07b69", kill_on_drop: false }` [INFO] [stdout] e99c23ac81080f6615a932f229b5e8981f3eedd19505d24b1adcfaa93be07b69 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c310080c5584904a20e82b477086714613ee0e3eb90a9da71b57168e09444ca [INFO] running `Command { std: "docker" "start" "-a" "7c310080c5584904a20e82b477086714613ee0e3eb90a9da71b57168e09444ca", kill_on_drop: false }` [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Compiling miniquad v0.4.5 [INFO] [stderr] Checking ttf-parser v0.15.2 [INFO] [stderr] Checking bytemuck v1.16.1 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking glam v0.27.0 [INFO] [stderr] Checking bumpalo v3.16.0 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Checking quad-rand v0.2.1 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking fontdue v0.7.3 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking macroquad v0.4.11 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.92 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.92 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.92 [INFO] [stderr] Checking wasm-bindgen v0.2.92 [INFO] [stderr] Checking js-sys v0.3.69 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.42 [INFO] [stderr] Checking tiny-neo-space v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `constants::*` [INFO] [stdout] --> src/core/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use constants::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `camera::*` [INFO] [stdout] --> src/core/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use camera::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `color::*` [INFO] [stdout] --> src/core/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use color::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CellChange` [INFO] [stdout] --> src/input/clipboard.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::state::{ApplicationState, CellChange}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `apply_changes_and_record` and `undo_last` [INFO] [stdout] --> src/input/mod.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | pub use dispatcher::{handle_input, handle_zoom, apply_changes_and_record, undo_last}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handle_select_tool` [INFO] [stdout] --> src/input/mod.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub use selection::{handle_select_tool, delete_selection}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clipboard::*` [INFO] [stdout] --> src/input/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use clipboard::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `constants::*` [INFO] [stdout] --> src/core/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use constants::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `camera::*` [INFO] [stdout] --> src/core/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use camera::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `color::*` [INFO] [stdout] --> src/core/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use color::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CellChange` [INFO] [stdout] --> src/input/clipboard.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::state::{ApplicationState, CellChange}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `apply_changes_and_record` and `undo_last` [INFO] [stdout] --> src/input/mod.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | pub use dispatcher::{handle_input, handle_zoom, apply_changes_and_record, undo_last}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handle_select_tool` [INFO] [stdout] --> src/input/mod.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub use selection::{handle_select_tool, delete_selection}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clipboard::*` [INFO] [stdout] --> src/input/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use clipboard::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/core/selection.rs:200:16 [INFO] [stdout] | [INFO] [stdout] 200 | if let SelectionKind::Cells(coords) = &mut sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/rendering/selection.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if let SelectionKind::Cells(cell_set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 94 | if let SelectionKind::Cells(existing) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | if let SelectionKind::Cells(ref cell_set) = selection.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:137:16 [INFO] [stdout] | [INFO] [stdout] 137 | if let SelectionKind::Cells(ref cell_set) = sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | if let SelectionKind::Cells(set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 203 | if let SelectionKind::Cells(coords) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/clipboard.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | if let SelectionKind::Cells(set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/clipboard.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | if let SelectionKind::Cells(set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/core/selection.rs:200:16 [INFO] [stdout] | [INFO] [stdout] 200 | if let SelectionKind::Cells(coords) = &mut sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRID_SIZE` is never used [INFO] [stdout] --> src/core/constants.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const GRID_SIZE: f32 = 10.0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRID_THICKNESS` is never used [INFO] [stdout] --> src/core/constants.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const GRID_THICKNESS: f32 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grid_color` is never used [INFO] [stdout] --> src/core/constants.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn grid_color() -> macroquad::prelude::Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grid_position_to_cell_coords` is never used [INFO] [stdout] --> src/core/cell.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn grid_position_to_cell_coords(pos: &Vec2, grid_size: f32) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pan_by` is never used [INFO] [stdout] --> src/core/camera.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Camera { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn pan_by(&mut self, delta_world: Vec2) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_mq_color` is never used [INFO] [stdout] --> src/core/color.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Rgba { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn from_mq_color(c: macroquad::color::Color) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `width` and `height` are never used [INFO] [stdout] --> src/core/selection.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl SelectionRect { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn width(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn height(&self) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clear`, `finalize_drag`, `start_move`, and `finalize_move` are never used [INFO] [stdout] --> src/core/selection.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl SelectionState { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn finalize_drag(&mut self, cells: &CellGrid) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn start_move(&mut self, mouse_world: (f32, f32)) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn finalize_move(&mut self) -> Option<(i32, i32)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `after` is never read [INFO] [stdout] --> src/state/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct CellChange { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 51 | pub after: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max` is never read [INFO] [stdout] --> src/state/mod.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct History { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 61 | pub stack: Vec, [INFO] [stdout] 62 | pub max: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push` is never used [INFO] [stdout] --> src/state/mod.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl History { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn push(&mut self, cmd: Command) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `cell_to_local` is never used [INFO] [stdout] --> src/rendering/canvas.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl CanvasRenderer { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | fn cell_to_local(cell_x: i32, cell_y: i32) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `apply_changes_and_record` is never used [INFO] [stdout] --> src/input/dispatcher.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn apply_changes_and_record( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/rendering/selection.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if let SelectionKind::Cells(cell_set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 94 | if let SelectionKind::Cells(existing) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | if let SelectionKind::Cells(ref cell_set) = selection.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:137:16 [INFO] [stdout] | [INFO] [stdout] 137 | if let SelectionKind::Cells(ref cell_set) = sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | if let SelectionKind::Cells(set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 203 | if let SelectionKind::Cells(coords) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/clipboard.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | if let SelectionKind::Cells(set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/clipboard.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | if let SelectionKind::Cells(set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRID_SIZE` is never used [INFO] [stdout] --> src/core/constants.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const GRID_SIZE: f32 = 10.0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRID_THICKNESS` is never used [INFO] [stdout] --> src/core/constants.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const GRID_THICKNESS: f32 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grid_color` is never used [INFO] [stdout] --> src/core/constants.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn grid_color() -> macroquad::prelude::Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grid_position_to_cell_coords` is never used [INFO] [stdout] --> src/core/cell.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn grid_position_to_cell_coords(pos: &Vec2, grid_size: f32) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pan_by` is never used [INFO] [stdout] --> src/core/camera.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Camera { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn pan_by(&mut self, delta_world: Vec2) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_mq_color` is never used [INFO] [stdout] --> src/core/color.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Rgba { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn from_mq_color(c: macroquad::color::Color) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `width` and `height` are never used [INFO] [stdout] --> src/core/selection.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl SelectionRect { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn width(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn height(&self) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clear`, `finalize_drag`, `start_move`, and `finalize_move` are never used [INFO] [stdout] --> src/core/selection.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl SelectionState { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn finalize_drag(&mut self, cells: &CellGrid) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn start_move(&mut self, mouse_world: (f32, f32)) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn finalize_move(&mut self) -> Option<(i32, i32)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `after` is never read [INFO] [stdout] --> src/state/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct CellChange { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 51 | pub after: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max` is never read [INFO] [stdout] --> src/state/mod.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct History { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 61 | pub stack: Vec, [INFO] [stdout] 62 | pub max: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push` is never used [INFO] [stdout] --> src/state/mod.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl History { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn push(&mut self, cmd: Command) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `cell_to_local` is never used [INFO] [stdout] --> src/rendering/canvas.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl CanvasRenderer { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | fn cell_to_local(cell_x: i32, cell_y: i32) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `apply_changes_and_record` is never used [INFO] [stdout] --> src/input/dispatcher.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn apply_changes_and_record( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `constants::*` [INFO] [stdout] --> src/core/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use constants::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `camera::*` [INFO] [stdout] --> src/core/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use camera::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `color::*` [INFO] [stdout] --> src/core/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use color::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CellChange` [INFO] [stdout] --> src/input/clipboard.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::state::{ApplicationState, CellChange}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `apply_changes_and_record` and `undo_last` [INFO] [stdout] --> src/input/mod.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | pub use dispatcher::{handle_input, handle_zoom, apply_changes_and_record, undo_last}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handle_select_tool` [INFO] [stdout] --> src/input/mod.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub use selection::{handle_select_tool, delete_selection}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clipboard::*` [INFO] [stdout] --> src/input/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use clipboard::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `constants::*` [INFO] [stdout] --> src/core/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use constants::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `camera::*` [INFO] [stdout] --> src/core/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use camera::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `color::*` [INFO] [stdout] --> src/core/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use color::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CellChange` [INFO] [stdout] --> src/input/clipboard.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::state::{ApplicationState, CellChange}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `apply_changes_and_record` and `undo_last` [INFO] [stdout] --> src/input/mod.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | pub use dispatcher::{handle_input, handle_zoom, apply_changes_and_record, undo_last}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handle_select_tool` [INFO] [stdout] --> src/input/mod.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub use selection::{handle_select_tool, delete_selection}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clipboard::*` [INFO] [stdout] --> src/input/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use clipboard::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/core/selection.rs:200:16 [INFO] [stdout] | [INFO] [stdout] 200 | if let SelectionKind::Cells(coords) = &mut sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/rendering/selection.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if let SelectionKind::Cells(cell_set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 94 | if let SelectionKind::Cells(existing) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | if let SelectionKind::Cells(ref cell_set) = selection.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:137:16 [INFO] [stdout] | [INFO] [stdout] 137 | if let SelectionKind::Cells(ref cell_set) = sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | if let SelectionKind::Cells(set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 203 | if let SelectionKind::Cells(coords) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/clipboard.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | if let SelectionKind::Cells(set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/clipboard.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | if let SelectionKind::Cells(set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRID_SIZE` is never used [INFO] [stdout] --> src/core/constants.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const GRID_SIZE: f32 = 10.0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRID_THICKNESS` is never used [INFO] [stdout] --> src/core/constants.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const GRID_THICKNESS: f32 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grid_color` is never used [INFO] [stdout] --> src/core/constants.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn grid_color() -> macroquad::prelude::Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grid_position_to_cell_coords` is never used [INFO] [stdout] --> src/core/cell.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn grid_position_to_cell_coords(pos: &Vec2, grid_size: f32) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pan_by` is never used [INFO] [stdout] --> src/core/camera.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Camera { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn pan_by(&mut self, delta_world: Vec2) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_mq_color` is never used [INFO] [stdout] --> src/core/color.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Rgba { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn from_mq_color(c: macroquad::color::Color) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `width` and `height` are never used [INFO] [stdout] --> src/core/selection.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl SelectionRect { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn width(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn height(&self) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clear`, `finalize_drag`, `start_move`, and `finalize_move` are never used [INFO] [stdout] --> src/core/selection.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl SelectionState { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn finalize_drag(&mut self, cells: &CellGrid) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn start_move(&mut self, mouse_world: (f32, f32)) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn finalize_move(&mut self) -> Option<(i32, i32)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `after` is never read [INFO] [stdout] --> src/state/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct CellChange { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 51 | pub after: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/core/selection.rs:200:16 [INFO] [stdout] | [INFO] [stdout] 200 | if let SelectionKind::Cells(coords) = &mut sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max` is never read [INFO] [stdout] --> src/state/mod.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct History { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 61 | pub stack: Vec, [INFO] [stdout] 62 | pub max: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push` is never used [INFO] [stdout] --> src/state/mod.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl History { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn push(&mut self, cmd: Command) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `cell_to_local` is never used [INFO] [stdout] --> src/rendering/canvas.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl CanvasRenderer { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | fn cell_to_local(cell_x: i32, cell_y: i32) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `apply_changes_and_record` is never used [INFO] [stdout] --> src/input/dispatcher.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn apply_changes_and_record( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/rendering/selection.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if let SelectionKind::Cells(cell_set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 94 | if let SelectionKind::Cells(existing) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | if let SelectionKind::Cells(ref cell_set) = selection.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:137:16 [INFO] [stdout] | [INFO] [stdout] 137 | if let SelectionKind::Cells(ref cell_set) = sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | if let SelectionKind::Cells(set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/selection.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 203 | if let SelectionKind::Cells(coords) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/clipboard.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | if let SelectionKind::Cells(set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/input/clipboard.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | if let SelectionKind::Cells(set) = &sel.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRID_SIZE` is never used [INFO] [stdout] --> src/core/constants.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const GRID_SIZE: f32 = 10.0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRID_THICKNESS` is never used [INFO] [stdout] --> src/core/constants.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const GRID_THICKNESS: f32 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grid_color` is never used [INFO] [stdout] --> src/core/constants.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn grid_color() -> macroquad::prelude::Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grid_position_to_cell_coords` is never used [INFO] [stdout] --> src/core/cell.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn grid_position_to_cell_coords(pos: &Vec2, grid_size: f32) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pan_by` is never used [INFO] [stdout] --> src/core/camera.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Camera { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn pan_by(&mut self, delta_world: Vec2) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_mq_color` is never used [INFO] [stdout] --> src/core/color.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Rgba { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn from_mq_color(c: macroquad::color::Color) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `width` and `height` are never used [INFO] [stdout] --> src/core/selection.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl SelectionRect { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn width(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn height(&self) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clear`, `finalize_drag`, `start_move`, and `finalize_move` are never used [INFO] [stdout] --> src/core/selection.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl SelectionState { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn finalize_drag(&mut self, cells: &CellGrid) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn start_move(&mut self, mouse_world: (f32, f32)) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn finalize_move(&mut self) -> Option<(i32, i32)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `after` is never read [INFO] [stdout] --> src/state/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct CellChange { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 51 | pub after: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max` is never read [INFO] [stdout] --> src/state/mod.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct History { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 61 | pub stack: Vec, [INFO] [stdout] 62 | pub max: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push` is never used [INFO] [stdout] --> src/state/mod.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl History { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn push(&mut self, cmd: Command) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `cell_to_local` is never used [INFO] [stdout] --> src/rendering/canvas.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl CanvasRenderer { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | fn cell_to_local(cell_x: i32, cell_y: i32) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `apply_changes_and_record` is never used [INFO] [stdout] --> src/input/dispatcher.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn apply_changes_and_record( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.48s [INFO] running `Command { std: "docker" "inspect" "7c310080c5584904a20e82b477086714613ee0e3eb90a9da71b57168e09444ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c310080c5584904a20e82b477086714613ee0e3eb90a9da71b57168e09444ca", kill_on_drop: false }` [INFO] [stdout] 7c310080c5584904a20e82b477086714613ee0e3eb90a9da71b57168e09444ca