[INFO] cloning repository https://github.com/G2309/GC_Proyecto1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/G2309/GC_Proyecto1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FG2309%2FGC_Proyecto1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FG2309%2FGC_Proyecto1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 54d5e4519cfa420f75b6bc80fc3290d200811e85 [INFO] testing G2309/GC_Proyecto1 against 1.84.0 for beta-1.85-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FG2309%2FGC_Proyecto1" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/G2309/GC_Proyecto1 on toolchain 1.84.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.84.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/G2309/GC_Proyecto1 [INFO] finished tweaking git repo https://github.com/G2309/GC_Proyecto1 [INFO] tweaked toml for git repo https://github.com/G2309/GC_Proyecto1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/G2309/GC_Proyecto1 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.84.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nalgebra-glm v0.16.0 [INFO] [stderr] Downloaded xml-rs v0.8.21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d47b84c2c3627de1170d17fe2ac4d0b2f1fd2c6384d72d2cb96a78531115d670 [INFO] running `Command { std: "docker" "start" "-a" "d47b84c2c3627de1170d17fe2ac4d0b2f1fd2c6384d72d2cb96a78531115d670", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d47b84c2c3627de1170d17fe2ac4d0b2f1fd2c6384d72d2cb96a78531115d670", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d47b84c2c3627de1170d17fe2ac4d0b2f1fd2c6384d72d2cb96a78531115d670", kill_on_drop: false }` [INFO] [stdout] d47b84c2c3627de1170d17fe2ac4d0b2f1fd2c6384d72d2cb96a78531115d670 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7e8e225f40f18f77e3c279ecf6f4c32bd84322fd3815a638884854667c4b8a41 [INFO] running `Command { std: "docker" "start" "-a" "7e8e225f40f18f77e3c279ecf6f4c32bd84322fd3815a638884854667c4b8a41", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling bytemuck v1.17.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling xml-rs v0.8.21 [INFO] [stderr] Compiling cc v1.1.10 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling safe_arch v0.7.2 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling built v0.7.4 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling syn v2.0.74 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling aligned-vec v0.5.0 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling wide v0.7.28 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling downcast-rs v1.2.1 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling v_frame v0.3.8 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling nix v0.23.2 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling quick-error v2.0.1 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling bitstream-io v2.5.3 [INFO] [stderr] Compiling imgref v1.10.1 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling cpal v0.13.5 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling loop9 v0.1.5 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling simba v0.7.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling slice-deque v0.3.0 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling minifb v0.27.0 [INFO] [stderr] Compiling avif-serialize v0.8.1 [INFO] [stderr] Compiling rgb v0.8.50 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling fdeflate v0.3.5 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling half v2.4.1 [INFO] [stderr] Compiling jpeg-decoder v0.3.1 [INFO] [stderr] Compiling bit_field v0.10.2 [INFO] [stderr] Compiling byteorder-lite v0.1.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling xcursor v0.3.8 [INFO] [stderr] Compiling zune-core v0.4.12 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling av1-grain v0.2.3 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling ttf-parser v0.15.2 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling image-webp v0.1.3 [INFO] [stderr] Compiling exr v1.72.0 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling zune-jpeg v0.4.13 [INFO] [stderr] Compiling gif v0.13.1 [INFO] [stderr] Compiling png v0.17.14 [INFO] [stderr] Compiling alsa v0.6.0 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling simba v0.9.0 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling owned_ttf_parser v0.15.2 [INFO] [stderr] Compiling hound v3.5.1 [INFO] [stderr] Compiling raw-window-handle v0.6.2 [INFO] [stderr] Compiling rusttype v0.9.3 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling profiling-procmacros v1.0.15 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Compiling profiling v1.0.15 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling minimp3 v0.5.1 [INFO] [stderr] Compiling rodio v0.15.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling nalgebra v0.30.1 [INFO] [stderr] Compiling nalgebra v0.33.0 [INFO] [stderr] Compiling ravif v0.11.10 [INFO] [stderr] Compiling image v0.25.2 [INFO] [stderr] Compiling nalgebra-glm v0.16.0 [INFO] [stderr] Compiling Proyecto-01 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::texture::Texture` [INFO] [stdout] --> src/player.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::texture::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::texture::Texture` [INFO] [stdout] --> src/enemy.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::texture::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Decoder` [INFO] [stdout] --> src/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | use rodio::{Decoder, OutputStream, Sink, Source}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `adjusted_y` [INFO] [stdout] --> src/framebuffer.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let adjusted_y = self.height - 1 - y; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_adjusted_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_x` [INFO] [stdout] --> src/framebuffer.rs:70:10 [INFO] [stdout] | [INFO] [stdout] 70 | let (min_x, max_x, min_y, max_y) = self.get_max_limits(&vec); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_min_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_x` [INFO] [stdout] --> src/framebuffer.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let (min_x, max_x, min_y, max_y) = self.get_max_limits(&vec); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_max_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combat_state` [INFO] [stdout] --> src/combat.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn player_attack(combat_state: &mut CombatState, enemiesdata: &mut EnemiesData) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combat_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy_index` [INFO] [stdout] --> src/main.rs:437:31 [INFO] [stdout] | [INFO] [stdout] 437 | GameState::Combat(enemy_index) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/framebuffer.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl FrameBuffer { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn set_background_color(&mut self, color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_color(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn write_to_bmp(&self, file_path: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn polygon(&mut self, vec: Vec<[usize; 2]>) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn draw_filled_polygon(&mut self, vec: Vec<[usize; 2]>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_max_limits(&self, vec: &Vec<[usize; 2]>) -> (usize, usize, usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn line(&mut self, x0: usize, y0: usize, x1: usize, y1: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_hex`, `to_hex`, `add`, `multiply`, and `print` are never used [INFO] [stdout] --> src/color.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Color { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn from_hex(hex: u32) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn to_hex(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn add(&self, other: &Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn multiply(&self, factor: f32) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BMP_HEADER_SIZE` is never used [INFO] [stdout] --> src/bitmap.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const BMP_HEADER_SIZE: usize = 54; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BMP_PIXEL_OFFSET` is never used [INFO] [stdout] --> src/bitmap.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const BMP_PIXEL_OFFSET: usize = 54; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BMP_BITS_PER_PIXEL` is never used [INFO] [stdout] --> src/bitmap.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const BMP_BITS_PER_PIXEL: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_bmp_file` is never used [INFO] [stdout] --> src/bitmap.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn write_bmp_file( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_bmp_header` is never used [INFO] [stdout] --> src/bitmap.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn write_bmp_header( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_pixel_data` is never used [INFO] [stdout] --> src/bitmap.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn write_pixel_data( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_map` is never used [INFO] [stdout] --> src/map_loader.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn print_map(map: &Vec>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_mp`, `mp`, and `spells` are never read [INFO] [stdout] --> src/enemiesParty.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct EnemyBattle { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub max_mp: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | pub mp: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 13 | pub spells: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `enemiesParty` should have a snake case name [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod enemiesParty; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `enemies_party` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw2D_texture` should have a snake case name [INFO] [stdout] --> src/framebuffer.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn draw2D_texture(&mut self, texture: &Texture, x: usize, y: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `draw2_d_texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `move_speed` should have an upper case name [INFO] [stdout] --> src/player.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | const move_speed: f32 = 6.5; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `MOVE_SPEED` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rotation_speed` should have an upper case name [INFO] [stdout] --> src/player.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | const rotation_speed: f32 = 0.1; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `ROTATION_SPEED` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 14s [INFO] running `Command { std: "docker" "inspect" "7e8e225f40f18f77e3c279ecf6f4c32bd84322fd3815a638884854667c4b8a41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e8e225f40f18f77e3c279ecf6f4c32bd84322fd3815a638884854667c4b8a41", kill_on_drop: false }` [INFO] [stdout] 7e8e225f40f18f77e3c279ecf6f4c32bd84322fd3815a638884854667c4b8a41 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8caa2a8dc1d1daa0ae4c079957c341c91b60a21992f70e990f73d6c33f4adfab [INFO] running `Command { std: "docker" "start" "-a" "8caa2a8dc1d1daa0ae4c079957c341c91b60a21992f70e990f73d6c33f4adfab", kill_on_drop: false }` [INFO] [stderr] Compiling Proyecto-01 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::texture::Texture` [INFO] [stdout] --> src/player.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::texture::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::texture::Texture` [INFO] [stdout] --> src/enemy.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::texture::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Decoder` [INFO] [stdout] --> src/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | use rodio::{Decoder, OutputStream, Sink, Source}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `adjusted_y` [INFO] [stdout] --> src/framebuffer.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let adjusted_y = self.height - 1 - y; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_adjusted_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_x` [INFO] [stdout] --> src/framebuffer.rs:70:10 [INFO] [stdout] | [INFO] [stdout] 70 | let (min_x, max_x, min_y, max_y) = self.get_max_limits(&vec); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_min_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_x` [INFO] [stdout] --> src/framebuffer.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let (min_x, max_x, min_y, max_y) = self.get_max_limits(&vec); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_max_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combat_state` [INFO] [stdout] --> src/combat.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn player_attack(combat_state: &mut CombatState, enemiesdata: &mut EnemiesData) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combat_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy_index` [INFO] [stdout] --> src/main.rs:437:31 [INFO] [stdout] | [INFO] [stdout] 437 | GameState::Combat(enemy_index) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/framebuffer.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl FrameBuffer { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn set_background_color(&mut self, color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_color(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn write_to_bmp(&self, file_path: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn polygon(&mut self, vec: Vec<[usize; 2]>) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn draw_filled_polygon(&mut self, vec: Vec<[usize; 2]>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_max_limits(&self, vec: &Vec<[usize; 2]>) -> (usize, usize, usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn line(&mut self, x0: usize, y0: usize, x1: usize, y1: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_hex`, `to_hex`, `add`, `multiply`, and `print` are never used [INFO] [stdout] --> src/color.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Color { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn from_hex(hex: u32) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn to_hex(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn add(&self, other: &Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn multiply(&self, factor: f32) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BMP_HEADER_SIZE` is never used [INFO] [stdout] --> src/bitmap.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const BMP_HEADER_SIZE: usize = 54; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BMP_PIXEL_OFFSET` is never used [INFO] [stdout] --> src/bitmap.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const BMP_PIXEL_OFFSET: usize = 54; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BMP_BITS_PER_PIXEL` is never used [INFO] [stdout] --> src/bitmap.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const BMP_BITS_PER_PIXEL: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_bmp_file` is never used [INFO] [stdout] --> src/bitmap.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn write_bmp_file( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_bmp_header` is never used [INFO] [stdout] --> src/bitmap.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn write_bmp_header( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_pixel_data` is never used [INFO] [stdout] --> src/bitmap.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn write_pixel_data( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_map` is never used [INFO] [stdout] --> src/map_loader.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn print_map(map: &Vec>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_mp`, `mp`, and `spells` are never read [INFO] [stdout] --> src/enemiesParty.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct EnemyBattle { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub max_mp: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | pub mp: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 13 | pub spells: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `enemiesParty` should have a snake case name [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod enemiesParty; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `enemies_party` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw2D_texture` should have a snake case name [INFO] [stdout] --> src/framebuffer.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn draw2D_texture(&mut self, texture: &Texture, x: usize, y: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `draw2_d_texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `move_speed` should have an upper case name [INFO] [stdout] --> src/player.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | const move_speed: f32 = 6.5; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `MOVE_SPEED` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rotation_speed` should have an upper case name [INFO] [stdout] --> src/player.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | const rotation_speed: f32 = 0.1; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `ROTATION_SPEED` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.16s [INFO] running `Command { std: "docker" "inspect" "8caa2a8dc1d1daa0ae4c079957c341c91b60a21992f70e990f73d6c33f4adfab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8caa2a8dc1d1daa0ae4c079957c341c91b60a21992f70e990f73d6c33f4adfab", kill_on_drop: false }` [INFO] [stdout] 8caa2a8dc1d1daa0ae4c079957c341c91b60a21992f70e990f73d6c33f4adfab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 19d6c68184ea920daeedb6f07e1f2f149419acca96b89f65aacd5ba33fc0653a [INFO] running `Command { std: "docker" "start" "-a" "19d6c68184ea920daeedb6f07e1f2f149419acca96b89f65aacd5ba33fc0653a", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `crate::texture::Texture` [INFO] [stderr] --> src/player.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::texture::Texture; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::texture::Texture` [INFO] [stderr] --> src/enemy.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::texture::Texture; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Decoder` [INFO] [stderr] --> src/main.rs:26:13 [INFO] [stderr] | [INFO] [stderr] 26 | use rodio::{Decoder, OutputStream, Sink, Source}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `adjusted_y` [INFO] [stderr] --> src/framebuffer.rs:34:13 [INFO] [stderr] | [INFO] [stderr] 34 | let adjusted_y = self.height - 1 - y; [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_adjusted_y` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `min_x` [INFO] [stderr] --> src/framebuffer.rs:70:10 [INFO] [stderr] | [INFO] [stderr] 70 | let (min_x, max_x, min_y, max_y) = self.get_max_limits(&vec); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_min_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `max_x` [INFO] [stderr] --> src/framebuffer.rs:70:17 [INFO] [stderr] | [INFO] [stderr] 70 | let (min_x, max_x, min_y, max_y) = self.get_max_limits(&vec); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_max_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `combat_state` [INFO] [stderr] --> src/combat.rs:123:22 [INFO] [stderr] | [INFO] [stderr] 123 | pub fn player_attack(combat_state: &mut CombatState, enemiesdata: &mut EnemiesData) { [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combat_state` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `enemy_index` [INFO] [stderr] --> src/main.rs:437:31 [INFO] [stderr] | [INFO] [stderr] 437 | GameState::Combat(enemy_index) => { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_index` [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/framebuffer.rs:40:12 [INFO] [stderr] | [INFO] [stderr] 16 | impl FrameBuffer { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 40 | pub fn set_background_color(&mut self, color: Color) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 44 | pub fn get_color(&self, x: usize, y: usize) -> Color { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 52 | pub fn write_to_bmp(&self, file_path: &str) -> std::io::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 57 | pub fn polygon(&mut self, vec: Vec<[usize; 2]>) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 69 | pub fn draw_filled_polygon(&mut self, vec: Vec<[usize; 2]>) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 107 | pub fn get_max_limits(&self, vec: &Vec<[usize; 2]>) -> (usize, usize, usize, usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 117 | fn line(&mut self, x0: usize, y0: usize, x1: usize, y1: usize) { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `from_hex`, `to_hex`, `add`, `multiply`, and `print` are never used [INFO] [stderr] --> src/color.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 11 | impl Color { [INFO] [stderr] | ---------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 18 | pub fn from_hex(hex: u32) -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 26 | pub fn to_hex(&self) -> u32 { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 31 | pub fn add(&self, other: &Color) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 40 | pub fn multiply(&self, factor: f32) -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 49 | pub fn print(&self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `BMP_HEADER_SIZE` is never used [INFO] [stderr] --> src/bitmap.rs:7:7 [INFO] [stderr] | [INFO] [stderr] 7 | const BMP_HEADER_SIZE: usize = 54; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `BMP_PIXEL_OFFSET` is never used [INFO] [stderr] --> src/bitmap.rs:8:7 [INFO] [stderr] | [INFO] [stderr] 8 | const BMP_PIXEL_OFFSET: usize = 54; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `BMP_BITS_PER_PIXEL` is never used [INFO] [stderr] --> src/bitmap.rs:9:7 [INFO] [stderr] | [INFO] [stderr] 9 | const BMP_BITS_PER_PIXEL: usize = 32; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_bmp_file` is never used [INFO] [stderr] --> src/bitmap.rs:11:8 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn write_bmp_file( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_bmp_header` is never used [INFO] [stderr] --> src/bitmap.rs:26:4 [INFO] [stderr] | [INFO] [stderr] 26 | fn write_bmp_header( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_pixel_data` is never used [INFO] [stderr] --> src/bitmap.rs:53:4 [INFO] [stderr] | [INFO] [stderr] 53 | fn write_pixel_data( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `print_map` is never used [INFO] [stderr] --> src/map_loader.rs:50:8 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn print_map(map: &Vec>) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `max_mp`, `mp`, and `spells` are never read [INFO] [stderr] --> src/enemiesParty.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct EnemyBattle { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 11 | pub max_mp: i32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 12 | pub mp: i32, [INFO] [stderr] | ^^ [INFO] [stderr] 13 | pub spells: Vec, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: module `enemiesParty` should have a snake case name [INFO] [stderr] --> src/main.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | mod enemiesParty; [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `enemies_party` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `draw2D_texture` should have a snake case name [INFO] [stderr] --> src/framebuffer.rs:141:12 [INFO] [stderr] | [INFO] [stderr] 141 | pub fn draw2D_texture(&mut self, texture: &Texture, x: usize, y: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `draw2_d_texture` [INFO] [stderr] [INFO] [stderr] warning: constant `move_speed` should have an upper case name [INFO] [stderr] --> src/player.rs:12:11 [INFO] [stderr] | [INFO] [stderr] 12 | const move_speed: f32 = 6.5; [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to upper case: `MOVE_SPEED` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `rotation_speed` should have an upper case name [INFO] [stderr] --> src/player.rs:13:11 [INFO] [stderr] | [INFO] [stderr] 13 | const rotation_speed: f32 = 0.1; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `ROTATION_SPEED` [INFO] [stderr] [INFO] [stderr] warning: `Proyecto-01` (bin "Proyecto-01" test) generated 22 warnings (run `cargo fix --bin "Proyecto-01" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/Proyecto_01-f3bc041602e7f49e) [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" "19d6c68184ea920daeedb6f07e1f2f149419acca96b89f65aacd5ba33fc0653a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19d6c68184ea920daeedb6f07e1f2f149419acca96b89f65aacd5ba33fc0653a", kill_on_drop: false }` [INFO] [stdout] 19d6c68184ea920daeedb6f07e1f2f149419acca96b89f65aacd5ba33fc0653a