[INFO] cloning repository https://github.com/stianeklund/pacman-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/stianeklund/pacman-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstianeklund%2Fpacman-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstianeklund%2Fpacman-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1f14cba485b261fee48bcaad2d11325ec509ad2a [INFO] checking stianeklund/pacman-rs against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstianeklund%2Fpacman-rs" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/stianeklund/pacman-rs on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/stianeklund/pacman-rs [INFO] finished tweaking git repo https://github.com/stianeklund/pacman-rs [INFO] tweaked toml for git repo https://github.com/stianeklund/pacman-rs written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/stianeklund/pacman-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/stianeklund/z80-rs` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d396a866d118e794d7108af3ce3e6e9855e6c343f1cbeebad2192c8ec76ab23b [INFO] running `Command { std: "docker" "start" "-a" "d396a866d118e794d7108af3ce3e6e9855e6c343f1cbeebad2192c8ec76ab23b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d396a866d118e794d7108af3ce3e6e9855e6c343f1cbeebad2192c8ec76ab23b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d396a866d118e794d7108af3ce3e6e9855e6c343f1cbeebad2192c8ec76ab23b", kill_on_drop: false }` [INFO] [stdout] d396a866d118e794d7108af3ce3e6e9855e6c343f1cbeebad2192c8ec76ab23b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 590542e6f58ec06f93368a4edea231175b62de5a4b8fed5ddc7b34ab9a89c036 [INFO] running `Command { std: "docker" "start" "-a" "590542e6f58ec06f93368a4edea231175b62de5a4b8fed5ddc7b34ab9a89c036", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.100 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling bindgen v0.56.0 [INFO] [stderr] Compiling minimal-lexical v0.1.2 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling cc v1.0.52 [INFO] [stderr] Checking z80-rs v0.1.0 (https://github.com/stianeklund/z80-rs?branch=master#563f6195) [INFO] [stderr] Compiling clang-sys v1.2.1 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling nom v7.0.0 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling thiserror-impl v1.0.26 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling minifb v0.19.3 [INFO] [stderr] Checking thiserror v1.0.26 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking nix v0.20.1 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking xcursor v0.3.4 [INFO] [stderr] Checking flexi_logger v0.15.12 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking wayland-commons v0.28.6 [INFO] [stderr] Checking wayland-cursor v0.28.6 [INFO] [stderr] Compiling xkbcommon-sys v0.7.5 [INFO] [stderr] Checking xkb v0.2.1 [INFO] [stderr] Checking pacman-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/pacman_arcade/display.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt, thread}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/pacman_arcade/display.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/pacman_arcade/display.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/pacman_arcade/display.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyRepeat`, `Key` [INFO] [stdout] --> src/pacman_arcade/keypad.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use minifb::{Key, KeyRepeat, Window}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `warn` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{Error, Read}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/pacman_arcade/display.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt, thread}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/pacman_arcade/display.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/pacman_arcade/display.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/pacman_arcade/display.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyRepeat`, `Key` [INFO] [stdout] --> src/pacman_arcade/keypad.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use minifb::{Key, KeyRepeat, Window}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `warn` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{Error, Read}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pal_no` [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let pal_no = 1; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pal_no` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pal` [INFO] [stdout] --> src/pacman_arcade/display.rs:157:76 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn draw_slice(&mut self, x: usize, mut y: usize, mut index: usize, pal: usize) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/pacman_arcade/display.rs:235:66 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn draw_pixel(&mut self, pixel_number: u8, x: u8, y: u8, offset: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:137:37 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn render_sprite(&mut self, x: usize, y: usize, mut index: usize) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:137:47 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn render_sprite(&mut self, x: usize, y: usize, mut index: usize) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pal_no` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let pal_no = self.read(0x4400); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pal_no` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pal_no` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let pal_no = 1; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pal_no` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | let addr = self.fb.sprite_rom[i] * 64; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:202:17 [INFO] [stdout] | [INFO] [stdout] 202 | for row in 0..HEIGHT { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut sprite = 1; [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut x = 0; [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/pacman_arcade/display.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | let mut x = x.wrapping_add(7 - (byte_number % 8)); [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/pacman_arcade/display.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | let mut byte = self.tile_rom[tile_number as usize * 16 + byte_number as usize]; [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/pacman_arcade/display.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | let mut strip: Vec = self.decode_vertical_strip(byte); [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/pacman_arcade/display.rs:157:44 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn draw_slice(&mut self, x: usize, mut y: usize, mut index: usize, pal: usize) { [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/pacman_arcade/display.rs:157:58 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn draw_slice(&mut self, x: usize, mut y: usize, mut index: usize, pal: usize) { [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/pacman_arcade/display.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | let mut x = x.wrapping_add(7 - (byte_number % 8)); [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/pacman_arcade/display.rs:177:36 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn create_slice(&mut self, mut index: usize) -> HashMap> { [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/pacman_arcade/display.rs:188:45 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn draw_sprite(&mut self, x: usize, mut y: usize, mut sprite: usize, offset: usize, pal_no: usize) { [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/pacman_arcade/display.rs:188:59 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn draw_sprite(&mut self, x: usize, mut y: usize, mut sprite: usize, offset: usize, pal_no: usize) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pal_no` [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let pal_no = 1; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pal_no` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pal` [INFO] [stdout] --> src/pacman_arcade/display.rs:157:76 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn draw_slice(&mut self, x: usize, mut y: usize, mut index: usize, pal: usize) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/pacman_arcade/display.rs:235:66 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn draw_pixel(&mut self, pixel_number: u8, x: u8, y: u8, offset: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:137:37 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn render_sprite(&mut self, x: usize, y: usize, mut index: usize) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:137:47 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn render_sprite(&mut self, x: usize, y: usize, mut index: usize) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pal_no` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let pal_no = self.read(0x4400); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pal_no` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pal_no` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let pal_no = 1; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pal_no` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | let addr = self.fb.sprite_rom[i] * 64; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:202:17 [INFO] [stdout] | [INFO] [stdout] 202 | for row in 0..HEIGHT { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pacman_arcade/pacman.rs:200:17 [INFO] [stdout] | [INFO] [stdout] 200 | let mut x = (i & 0x1F) * 8; [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/pacman_arcade/pacman.rs:201:17 [INFO] [stdout] | [INFO] [stdout] 201 | let mut y = ((i & 0x20) >> 5) * 8 + 34; [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/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut sprite = 1; [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut x = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw_tile` [INFO] [stdout] --> src/pacman_arcade/display.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn draw_tile(&mut self, tile_number: u8, x: u8, y: u8, pal_no: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Keypad` [INFO] [stdout] --> src/pacman_arcade/keypad.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Keypad {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pacman_arcade/display.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | let mut x = x.wrapping_add(7 - (byte_number % 8)); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pacman_arcade/keypad.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn new() -> Keypad { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `coins_per_game` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | coins_per_game: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pacman_arcade/display.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | let mut byte = self.tile_rom[tile_number as usize * 16 + byte_number as usize]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `lives_per_game` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | lives_per_game: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pacman_arcade/display.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | let mut strip: Vec = self.decode_vertical_strip(byte); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bonus_extra_life` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | bonus_extra_life: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `difficulty` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | difficulty: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ghost_names` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | ghost_names: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_up` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | joy_up: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_left` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | joy_left: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_right` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | joy_right: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_down` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | joy_down: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_up` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | joy_up: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_left` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | joy_left: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_right` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | joy_right: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_down` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | joy_down: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ram` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | Ram, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render_sprite` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn render_sprite(&mut self, x: usize, y: usize, mut index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pacman_arcade/display.rs:157:44 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn draw_slice(&mut self, x: usize, mut y: usize, mut index: usize, pal: usize) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render_tiles` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:150:19 [INFO] [stdout] | [INFO] [stdout] 150 | pub(crate) fn render_tiles(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pacman_arcade/display.rs:157:58 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn draw_slice(&mut self, x: usize, mut y: usize, mut index: usize, pal: usize) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw_screen` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn draw_screen(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw_fruits` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn draw_fruits(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pacman_arcade/display.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | let mut x = x.wrapping_add(7 - (byte_number % 8)); [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/pacman_arcade/display.rs:177:36 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn create_slice(&mut self, mut index: usize) -> HashMap> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/pacman_arcade/pacman.rs:133:24 [INFO] [stdout] | [INFO] [stdout] 133 | panic!(format!("Attempted to load: {}", path.display())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 133 - panic!(format!("Attempted to load: {}", path.display())); [INFO] [stdout] 133 + panic!("Attempted to load: {}", path.display()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pacman_arcade/display.rs:188:45 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn draw_sprite(&mut self, x: usize, mut y: usize, mut sprite: usize, offset: usize, pal_no: usize) { [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/pacman_arcade/display.rs:188:59 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn draw_sprite(&mut self, x: usize, mut y: usize, mut sprite: usize, offset: usize, pal_no: usize) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/pacman_arcade/pacman.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | self.fb.window.update_with_buffer(&self.fb.raster, WIDTH, HEIGHT); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pacman_arcade/pacman.rs:200:17 [INFO] [stdout] | [INFO] [stdout] 200 | let mut x = (i & 0x1F) * 8; [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/pacman_arcade/pacman.rs:201:17 [INFO] [stdout] | [INFO] [stdout] 201 | let mut y = ((i & 0x20) >> 5) * 8 + 34; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw_tile` [INFO] [stdout] --> src/pacman_arcade/display.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn draw_tile(&mut self, tile_number: u8, x: u8, y: u8, pal_no: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Keypad` [INFO] [stdout] --> src/pacman_arcade/keypad.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Keypad {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pacman_arcade/keypad.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn new() -> Keypad { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `coins_per_game` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | coins_per_game: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `lives_per_game` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | lives_per_game: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bonus_extra_life` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | bonus_extra_life: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `difficulty` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | difficulty: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ghost_names` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | ghost_names: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_up` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | joy_up: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_left` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | joy_left: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_right` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | joy_right: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_down` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | joy_down: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_up` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | joy_up: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_left` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | joy_left: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_right` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | joy_right: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joy_down` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | joy_down: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ram` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | Ram, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render_sprite` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn render_sprite(&mut self, x: usize, y: usize, mut index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render_tiles` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:150:19 [INFO] [stdout] | [INFO] [stdout] 150 | pub(crate) fn render_tiles(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw_screen` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn draw_screen(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw_fruits` [INFO] [stdout] --> src/pacman_arcade/pacman.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn draw_fruits(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/pacman_arcade/pacman.rs:133:24 [INFO] [stdout] | [INFO] [stdout] 133 | panic!(format!("Attempted to load: {}", path.display())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 133 - panic!(format!("Attempted to load: {}", path.display())); [INFO] [stdout] 133 + panic!("Attempted to load: {}", path.display()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/pacman_arcade/pacman.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | self.fb.window.update_with_buffer(&self.fb.raster, WIDTH, HEIGHT); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 38.42s [INFO] running `Command { std: "docker" "inspect" "590542e6f58ec06f93368a4edea231175b62de5a4b8fed5ddc7b34ab9a89c036", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "590542e6f58ec06f93368a4edea231175b62de5a4b8fed5ddc7b34ab9a89c036", kill_on_drop: false }` [INFO] [stdout] 590542e6f58ec06f93368a4edea231175b62de5a4b8fed5ddc7b34ab9a89c036