[INFO] cloning repository https://github.com/Headpenguin/HalloweenDemo2021Src [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Headpenguin/HalloweenDemo2021Src" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHeadpenguin%2FHalloweenDemo2021Src", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHeadpenguin%2FHalloweenDemo2021Src'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 94ac6e24004357efa21c7b8cf405f58888a1bc13 [INFO] checking Headpenguin/HalloweenDemo2021Src against try#29194e8f603400afdb2f86c9418e9fccb1628ea0 for pr-135331-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHeadpenguin%2FHalloweenDemo2021Src" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Headpenguin/HalloweenDemo2021Src [INFO] finished tweaking git repo https://github.com/Headpenguin/HalloweenDemo2021Src [INFO] tweaked toml for git repo https://github.com/Headpenguin/HalloweenDemo2021Src written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Headpenguin/HalloweenDemo2021Src on toolchain 29194e8f603400afdb2f86c9418e9fccb1628ea0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Headpenguin/HalloweenDemo2021Src 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" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking Headpenguin/HalloweenDemo2021Src against try#29194e8f603400afdb2f86c9418e9fccb1628ea0 for pr-135331-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHeadpenguin%2FHalloweenDemo2021Src" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Headpenguin/HalloweenDemo2021Src [INFO] finished tweaking git repo https://github.com/Headpenguin/HalloweenDemo2021Src [INFO] tweaked toml for git repo https://github.com/Headpenguin/HalloweenDemo2021Src written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Headpenguin/HalloweenDemo2021Src on toolchain 29194e8f603400afdb2f86c9418e9fccb1628ea0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Headpenguin/HalloweenDemo2021Src 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" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sdl2 v0.34.5 [INFO] [stderr] Downloaded libc v0.2.103 [INFO] [stderr] Downloaded sdl2-sys v0.34.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bc8ebae05235cc2948472482d05c92064aa56b0407f35fb11c310b28dd3e7060 [INFO] running `Command { std: "docker" "start" "-a" "bc8ebae05235cc2948472482d05c92064aa56b0407f35fb11c310b28dd3e7060", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bc8ebae05235cc2948472482d05c92064aa56b0407f35fb11c310b28dd3e7060", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc8ebae05235cc2948472482d05c92064aa56b0407f35fb11c310b28dd3e7060", kill_on_drop: false }` [INFO] [stdout] bc8ebae05235cc2948472482d05c92064aa56b0407f35fb11c310b28dd3e7060 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d2c7773d116a208d726957dafee856d4d128e0d425e082a07a0a0e20b2d8134a [INFO] running `Command { std: "docker" "start" "-a" "d2c7773d116a208d726957dafee856d4d128e0d425e082a07a0a0e20b2d8134a", kill_on_drop: false }` [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling sdl2 v0.34.5 [INFO] [stderr] Compiling sdl2-sys v0.34.5 [INFO] [stderr] Checking HalloweenDemo2021 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::SpriteLoader::Animations` [INFO] [stdout] --> src/SkeletonMod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::SpriteLoader::Animations; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::SpriteLoader::Animation` [INFO] [stdout] --> src/SkeletonMod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::SpriteLoader::Animation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::SpriteLoader::Animations` [INFO] [stdout] --> src/SkeletonMod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::SpriteLoader::Animations; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::SpriteLoader::Animation` [INFO] [stdout] --> src/SkeletonMod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::SpriteLoader::Animation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `PlayerMod` should have a snake case name [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | mod PlayerMod; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `player_mod` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `SpriteLoader` should have a snake case name [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | mod SpriteLoader; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sprite_loader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `MapMod` should have a snake case name [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | mod MapMod; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `map_mod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `CollisionMod` should have a snake case name [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | mod CollisionMod; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `collision_mod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `SkeletonMod` should have a snake case name [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | mod SkeletonMod; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `skeleton_mod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `videoSubsystem` should have a snake case name [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let videoSubsystem = context.video().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `video_subsystem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `keyUpdate` should have a snake case name [INFO] [stdout] --> src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut keyUpdate = false; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `key_update` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `attackTimer` should have a snake case name [INFO] [stdout] --> src/PlayerMod.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | attackTimer: u32, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `attack_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftAttack` should have a snake case name [INFO] [stdout] --> src/PlayerMod.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let leftAttack = Animation::Flip(FlipAnimation::new(4)); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `left_attack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `checkKeyboardInput` should have a snake case name [INFO] [stdout] --> src/PlayerMod.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn checkKeyboardInput(&mut self, state: &KeyboardState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `check_keyboard_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `relTupleToRect` should have a snake case name [INFO] [stdout] --> src/PlayerMod.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | fn relTupleToRect(&self, coords: (i32, i32, u32, u32)) -> Rect { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rel_tuple_to_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `attackCollision` should have a snake case name [INFO] [stdout] --> src/PlayerMod.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn attackCollision(&self, hitbox: Rect) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `attack_collision` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `attackBox` should have a snake case name [INFO] [stdout] --> src/PlayerMod.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let attackBox = self.relTupleToRect(coords); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `attack_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loadSprites` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn loadSprites<'a, 'b> (creator: &'a TextureCreator, filenames: &'b [&'b str]) -> Result>, String> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `load_sprites` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getSprite` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn getSprite(&self, idx: usize) -> &Sprite { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_sprite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/SpriteLoader.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn getSprite(&self, idx: usize) -> &Sprite { [INFO] [stdout] | ^^^^^ ------- [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 36 | pub fn getSprite(&self, idx: usize) -> &Sprite<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `activeAnimation` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | activeAnimation: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `active_animation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `frameCounter` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | frameCounter: usize, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `frame_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAnimation` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn getAnimation<'b>(&'b self) -> &Animation<'b> { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_animation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/SpriteLoader.rs:64:26 [INFO] [stdout] | [INFO] [stdout] 64 | fn getAnimation<'b>(&'b self) -> &Animation<'b> { [INFO] [stdout] | ^^ -------------- [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'b` [INFO] [stdout] | [INFO] [stdout] 64 | fn getAnimation<'b>(&'b self) -> &'b Animation<'b> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `drawNextFrame` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn drawNextFrame(&self, canvas: &mut Canvas, position: Rect) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `draw_next_frame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `changeAnimation` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn changeAnimation(&mut self, idx: usize) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `change_animation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getIndex` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn getIndex(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fromFiles` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn fromFiles<'b> (creator: &'a TextureCreator, filenames: &'b [&'b str], positions: &'b [usize]) -> Result src/SpriteLoader.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn getFrame(&self, counter: usize) -> &Sprite { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_frame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/SpriteLoader.rs:188:21 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn getFrame(&self, counter: usize) -> &Sprite { [INFO] [stdout] | ^^^^^ ------- [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 188 | pub fn getFrame(&self, counter: usize) -> &Sprite<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `flipHorizontal` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:216:65 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn draw(&self, canvas: &mut Canvas, quad: Rect, flipHorizontal: bool, flipVertical: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `flip_horizontal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `flipVertical` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:216:87 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn draw(&self, canvas: &mut Canvas, quad: Rect, flipHorizontal: bool, flipVertical: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `flip_vertical` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `PlayerMod` should have a snake case name [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | mod PlayerMod; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `player_mod` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `SpriteLoader` should have a snake case name [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | mod SpriteLoader; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sprite_loader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `MapMod` should have a snake case name [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | mod MapMod; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `map_mod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `CollisionMod` should have a snake case name [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | mod CollisionMod; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `collision_mod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `SkeletonMod` should have a snake case name [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | mod SkeletonMod; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `skeleton_mod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `videoSubsystem` should have a snake case name [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let videoSubsystem = context.video().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `video_subsystem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `keyUpdate` should have a snake case name [INFO] [stdout] --> src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut keyUpdate = false; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `key_update` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `attackTimer` should have a snake case name [INFO] [stdout] --> src/PlayerMod.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | attackTimer: u32, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `attack_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftAttack` should have a snake case name [INFO] [stdout] --> src/PlayerMod.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let leftAttack = Animation::Flip(FlipAnimation::new(4)); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `left_attack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `checkKeyboardInput` should have a snake case name [INFO] [stdout] --> src/PlayerMod.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn checkKeyboardInput(&mut self, state: &KeyboardState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `check_keyboard_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `relTupleToRect` should have a snake case name [INFO] [stdout] --> src/PlayerMod.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | fn relTupleToRect(&self, coords: (i32, i32, u32, u32)) -> Rect { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rel_tuple_to_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `attackCollision` should have a snake case name [INFO] [stdout] --> src/PlayerMod.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn attackCollision(&self, hitbox: Rect) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `attack_collision` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `attackBox` should have a snake case name [INFO] [stdout] --> src/PlayerMod.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let attackBox = self.relTupleToRect(coords); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `attack_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loadSprites` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn loadSprites<'a, 'b> (creator: &'a TextureCreator, filenames: &'b [&'b str]) -> Result>, String> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `load_sprites` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getSprite` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn getSprite(&self, idx: usize) -> &Sprite { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_sprite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/SpriteLoader.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn getSprite(&self, idx: usize) -> &Sprite { [INFO] [stdout] | ^^^^^ ------- [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 36 | pub fn getSprite(&self, idx: usize) -> &Sprite<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `activeAnimation` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | activeAnimation: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `active_animation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `frameCounter` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | frameCounter: usize, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `frame_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAnimation` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn getAnimation<'b>(&'b self) -> &Animation<'b> { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_animation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/SpriteLoader.rs:64:26 [INFO] [stdout] | [INFO] [stdout] 64 | fn getAnimation<'b>(&'b self) -> &Animation<'b> { [INFO] [stdout] | ^^ -------------- [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'b` [INFO] [stdout] | [INFO] [stdout] 64 | fn getAnimation<'b>(&'b self) -> &'b Animation<'b> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `drawNextFrame` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn drawNextFrame(&self, canvas: &mut Canvas, position: Rect) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `draw_next_frame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `changeAnimation` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn changeAnimation(&mut self, idx: usize) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `change_animation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getIndex` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn getIndex(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fromFiles` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn fromFiles<'b> (creator: &'a TextureCreator, filenames: &'b [&'b str], positions: &'b [usize]) -> Result src/SpriteLoader.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn getFrame(&self, counter: usize) -> &Sprite { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_frame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/SpriteLoader.rs:188:21 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn getFrame(&self, counter: usize) -> &Sprite { [INFO] [stdout] | ^^^^^ ------- [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 188 | pub fn getFrame(&self, counter: usize) -> &Sprite<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `flipHorizontal` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:216:65 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn draw(&self, canvas: &mut Canvas, quad: Rect, flipHorizontal: bool, flipVertical: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `flip_horizontal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `flipVertical` should have a snake case name [INFO] [stdout] --> src/SpriteLoader.rs:216:87 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn draw(&self, canvas: &mut Canvas, quad: Rect, flipHorizontal: bool, flipVertical: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `flip_vertical` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/SpriteLoader.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | canvas.copy_ex(&self.0, None, quad, 0f64, None, true, false); //Render the left half [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 220 | let _ = canvas.copy_ex(&self.0, None, quad, 0f64, None, true, false); //Render the left half [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/SpriteLoader.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | canvas.copy(&self.0, None, quad); //Render the right half [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 222 | let _ = canvas.copy(&self.0, None, quad); //Render the right half [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/SpriteLoader.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | canvas.copy_ex(&self.0, None, quad, 0f64, None, flipHorizontal, flipVertical); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 225 | let _ = canvas.copy_ex(&self.0, None, quad, 0f64, None, flipHorizontal, flipVertical); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `collisionMap` should have a snake case name [INFO] [stdout] --> src/MapMod.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | collisionMap: [[CollisionType; 17]; 12], [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `collision_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/MapMod.rs:50:49 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new(map: [[usize; 17]; 12], creator: &TextureCreator) -> Map { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new(map: [[usize; 17]; 12], creator: &TextureCreator) -> Map<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `collisionMap` should have a snake case name [INFO] [stdout] --> src/MapMod.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut collisionMap: [[CollisionType; 17]; 12] = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `collision_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftBound` should have a snake case name [INFO] [stdout] --> src/MapMod.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let leftBound = (hitbox.x as f32 / 50f32 ).floor() as usize; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `left_bound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightBound` should have a snake case name [INFO] [stdout] --> src/MapMod.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let rightBound = ((hitbox.x + hitbox.w) as f32 / 50f32 ).ceil() as usize; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `right_bound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `topBound` should have a snake case name [INFO] [stdout] --> src/MapMod.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let topBound = (hitbox.y as f32 / 50f32 ).floor() as usize; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `top_bound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bottomBound` should have a snake case name [INFO] [stdout] --> src/MapMod.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let bottomBound = ((hitbox.y + hitbox.h) as f32 / 50f32 ).ceil() as usize; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `bottom_bound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `doesCollide` should have a snake case name [INFO] [stdout] --> src/CollisionMod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn doesCollide(&self, hitbox: Rect) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `does_collide` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `playerIsTrapped` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | playerIsTrapped: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `player_is_trapped` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `gateHitBox` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | gateHitBox: Rect, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `gate_hit_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `gateSound` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | gateSound: Chunk, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `gate_sound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `skeletonDie` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | skeletonDie: Chunk [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `skeleton_die` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/SkeletonMod.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(creator: &TextureCreator, x: i32, y: i32) -> Skeleton { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(creator: &TextureCreator, x: i32, y: i32) -> Skeleton<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gateHitBox` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let gateHitBox = Rect::new(PlayerMod::THRESHOLD - 50 , 150, 50, 50); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `gate_hit_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gateSound` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let gateSound = Chunk::from_file(&"Resources/Music/Gate Sound.wav").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `gate_sound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skeletonDie` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let skeletonDie = Chunk::from_file(&"Resources/Music/Skeleton Die.wav").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `skeleton_die` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `trapPlayer` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn trapPlayer(&mut self, channel: Channel) -> Channel { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `trap_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `doesCollide` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn doesCollide(&self, hitbox: Rect) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `does_collide` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/SpriteLoader.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | canvas.copy_ex(&self.0, None, quad, 0f64, None, true, false); //Render the left half [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 220 | let _ = canvas.copy_ex(&self.0, None, quad, 0f64, None, true, false); //Render the left half [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/SpriteLoader.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | canvas.copy(&self.0, None, quad); //Render the right half [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 222 | let _ = canvas.copy(&self.0, None, quad); //Render the right half [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/SpriteLoader.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | canvas.copy_ex(&self.0, None, quad, 0f64, None, flipHorizontal, flipVertical); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 225 | let _ = canvas.copy_ex(&self.0, None, quad, 0f64, None, flipHorizontal, flipVertical); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `collisionMap` should have a snake case name [INFO] [stdout] --> src/MapMod.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | collisionMap: [[CollisionType; 17]; 12], [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `collision_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/MapMod.rs:50:49 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new(map: [[usize; 17]; 12], creator: &TextureCreator) -> Map { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new(map: [[usize; 17]; 12], creator: &TextureCreator) -> Map<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `collisionMap` should have a snake case name [INFO] [stdout] --> src/MapMod.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut collisionMap: [[CollisionType; 17]; 12] = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `collision_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftBound` should have a snake case name [INFO] [stdout] --> src/MapMod.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let leftBound = (hitbox.x as f32 / 50f32 ).floor() as usize; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `left_bound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightBound` should have a snake case name [INFO] [stdout] --> src/MapMod.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let rightBound = ((hitbox.x + hitbox.w) as f32 / 50f32 ).ceil() as usize; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `right_bound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `topBound` should have a snake case name [INFO] [stdout] --> src/MapMod.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let topBound = (hitbox.y as f32 / 50f32 ).floor() as usize; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `top_bound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bottomBound` should have a snake case name [INFO] [stdout] --> src/MapMod.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let bottomBound = ((hitbox.y + hitbox.h) as f32 / 50f32 ).ceil() as usize; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `bottom_bound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `doesCollide` should have a snake case name [INFO] [stdout] --> src/CollisionMod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn doesCollide(&self, hitbox: Rect) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `does_collide` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `playerIsTrapped` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | playerIsTrapped: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `player_is_trapped` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `gateHitBox` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | gateHitBox: Rect, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `gate_hit_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `gateSound` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | gateSound: Chunk, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `gate_sound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `skeletonDie` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | skeletonDie: Chunk [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `skeleton_die` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/SkeletonMod.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(creator: &TextureCreator, x: i32, y: i32) -> Skeleton { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(creator: &TextureCreator, x: i32, y: i32) -> Skeleton<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gateHitBox` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let gateHitBox = Rect::new(PlayerMod::THRESHOLD - 50 , 150, 50, 50); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `gate_hit_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gateSound` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let gateSound = Chunk::from_file(&"Resources/Music/Gate Sound.wav").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `gate_sound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skeletonDie` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let skeletonDie = Chunk::from_file(&"Resources/Music/Skeleton Die.wav").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `skeleton_die` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `trapPlayer` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn trapPlayer(&mut self, channel: Channel) -> Channel { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `trap_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `doesCollide` should have a snake case name [INFO] [stdout] --> src/SkeletonMod.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn doesCollide(&self, hitbox: Rect) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `does_collide` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.18s [INFO] running `Command { std: "docker" "inspect" "d2c7773d116a208d726957dafee856d4d128e0d425e082a07a0a0e20b2d8134a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2c7773d116a208d726957dafee856d4d128e0d425e082a07a0a0e20b2d8134a", kill_on_drop: false }` [INFO] [stdout] d2c7773d116a208d726957dafee856d4d128e0d425e082a07a0a0e20b2d8134a