[INFO] cloning repository https://github.com/YagirProtect/Rust-Terrain-Voxel [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/YagirProtect/Rust-Terrain-Voxel" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYagirProtect%2FRust-Terrain-Voxel", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYagirProtect%2FRust-Terrain-Voxel'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e939e00c800705eb2c0444110c8079cee703c739 [INFO] checking YagirProtect/Rust-Terrain-Voxel/e939e00c800705eb2c0444110c8079cee703c739 against master#49b6ac01d6f4c3da812039ae846407a20961aa4c for pr-154887 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYagirProtect%2FRust-Terrain-Voxel" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/YagirProtect/Rust-Terrain-Voxel [INFO] finished tweaking git repo https://github.com/YagirProtect/Rust-Terrain-Voxel [INFO] tweaked toml for git repo https://github.com/YagirProtect/Rust-Terrain-Voxel written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/YagirProtect/Rust-Terrain-Voxel on toolchain 49b6ac01d6f4c3da812039ae846407a20961aa4c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+49b6ac01d6f4c3da812039ae846407a20961aa4c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/YagirProtect/Rust-Terrain-Voxel 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" "+49b6ac01d6f4c3da812039ae846407a20961aa4c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded minifb v0.28.0 [INFO] [stderr] Downloaded lerp v0.5.0 [INFO] [stderr] Downloaded sdl2 v0.38.0 [INFO] [stderr] Downloaded sdl2-sys v0.38.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+49b6ac01d6f4c3da812039ae846407a20961aa4c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ee04c7b08780c5140f05665d2de27252ea6cc4367c203008352a394b24dd9dac [INFO] running `Command { std: "docker" "start" "-a" "ee04c7b08780c5140f05665d2de27252ea6cc4367c203008352a394b24dd9dac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ee04c7b08780c5140f05665d2de27252ea6cc4367c203008352a394b24dd9dac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee04c7b08780c5140f05665d2de27252ea6cc4367c203008352a394b24dd9dac", kill_on_drop: false }` [INFO] [stdout] ee04c7b08780c5140f05665d2de27252ea6cc4367c203008352a394b24dd9dac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+49b6ac01d6f4c3da812039ae846407a20961aa4c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da6e1568bf0640642f650b75050589d6c57c18b880d2def2718551a569b722a1 [INFO] running `Command { std: "docker" "start" "-a" "da6e1568bf0640642f650b75050589d6c57c18b880d2def2718551a569b722a1", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling libc v0.2.183 [INFO] [stderr] Compiling xml-rs v0.8.28 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking libloading v0.8.9 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling zerocopy v0.8.42 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking as-slice v0.2.1 [INFO] [stderr] Checking bitflags v2.11.0 [INFO] [stderr] Compiling built v0.8.0 [INFO] [stderr] Compiling av-scenechange v0.14.1 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking core2 v0.4.0 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Checking aligned v0.4.3 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Checking dlib v0.5.3 [INFO] [stderr] Checking y4m v0.8.0 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling pastey v0.1.1 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Checking bitstream-io v4.9.0 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking imgref v1.12.0 [INFO] [stderr] Checking linux-raw-sys v0.12.1 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Checking zune-jpeg v0.5.13 [INFO] [stderr] Checking loop9 v0.1.5 [INFO] [stderr] Checking avif-serialize v0.8.8 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling rav1e v0.8.1 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking pxfm v0.1.28 [INFO] [stderr] Checking rgb v0.8.53 [INFO] [stderr] Checking bit_field v0.10.3 [INFO] [stderr] Checking lebe v0.5.3 [INFO] [stderr] Checking image-webp v0.2.4 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking png v0.18.1 [INFO] [stderr] Checking raw-window-handle v0.6.2 [INFO] [stderr] Compiling TERRAIN-RENDERER v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking lerp v0.5.0 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling minifb v0.28.0 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking tempfile v3.27.0 [INFO] [stderr] Checking moxcms v0.8.1 [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling zerocopy-derive v0.8.42 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling fax_derive v0.2.0 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Checking fax v0.2.6 [INFO] [stderr] Checking equator v0.4.2 [INFO] [stderr] Checking aligned-vec v0.6.4 [INFO] [stderr] Checking v_frame v0.3.9 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking av1-grain v0.2.5 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking exr v1.74.0 [INFO] [stderr] Checking tiff v0.11.3 [INFO] [stderr] Checking ravif v0.13.0 [INFO] [stderr] Checking image v0.25.10 [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/input.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | if (window.is_key_down(Key::A)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - if (window.is_key_down(Key::A)) { [INFO] [stdout] 10 + if window.is_key_down(Key::A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/input.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | if (window.is_key_down(Key::D)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 13 - if (window.is_key_down(Key::D)) { [INFO] [stdout] 13 + if window.is_key_down(Key::D) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/input.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | if (window.is_key_down(Key::W)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - if (window.is_key_down(Key::W)) { [INFO] [stdout] 20 + if window.is_key_down(Key::W) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/input.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | if (window.is_key_down(Key::S)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - if (window.is_key_down(Key::S)) { [INFO] [stdout] 24 + if window.is_key_down(Key::S) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/input.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | if (window.is_key_down(Key::Space)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - if (window.is_key_down(Key::Space)) { [INFO] [stdout] 29 + if window.is_key_down(Key::Space) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/input.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | if (window.is_key_down(Key::LeftShift)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - if (window.is_key_down(Key::LeftShift)) { [INFO] [stdout] 32 + if window.is_key_down(Key::LeftShift) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImageBuffer` [INFO] [stdout] --> src/resources.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{GenericImageView, ImageBuffer}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `u32_to_rgb` [INFO] [stdout] --> src/renderer.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::misc::{from_u8_rgb, u32_to_rgb}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lerp::Lerp` [INFO] [stdout] --> src/renderer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use lerp::Lerp; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::misc` [INFO] [stdout] --> src/renderer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::misc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/renderer.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | if (ytop < 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - if (ytop < 0.0) { [INFO] [stdout] 12 + if ytop < 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/renderer.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | if (ytop > ybottom) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if (ytop > ybottom) { [INFO] [stdout] 15 + if ytop > ybottom { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/renderer.rs:85:16 [INFO] [stdout] | [INFO] [stdout] 85 | if (heightonscreen < height_screen) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 85 - if (heightonscreen < height_screen) { [INFO] [stdout] 85 + if heightonscreen < height_screen { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pixel` [INFO] [stdout] --> src/types/DataBufferType.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{ImageBuffer, Pixel}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::misc` [INFO] [stdout] --> src/types/DataBufferType.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::misc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/input.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | if (window.is_key_down(Key::A)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - if (window.is_key_down(Key::A)) { [INFO] [stdout] 10 + if window.is_key_down(Key::A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/input.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | if (window.is_key_down(Key::D)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 13 - if (window.is_key_down(Key::D)) { [INFO] [stdout] 13 + if window.is_key_down(Key::D) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/input.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | if (window.is_key_down(Key::W)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - if (window.is_key_down(Key::W)) { [INFO] [stdout] 20 + if window.is_key_down(Key::W) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/input.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | if (window.is_key_down(Key::S)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - if (window.is_key_down(Key::S)) { [INFO] [stdout] 24 + if window.is_key_down(Key::S) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/input.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | if (window.is_key_down(Key::Space)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - if (window.is_key_down(Key::Space)) { [INFO] [stdout] 29 + if window.is_key_down(Key::Space) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/input.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | if (window.is_key_down(Key::LeftShift)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - if (window.is_key_down(Key::LeftShift)) { [INFO] [stdout] 32 + if window.is_key_down(Key::LeftShift) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImageBuffer` [INFO] [stdout] --> src/resources.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{GenericImageView, ImageBuffer}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `u32_to_rgb` [INFO] [stdout] --> src/renderer.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::misc::{from_u8_rgb, u32_to_rgb}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lerp::Lerp` [INFO] [stdout] --> src/renderer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use lerp::Lerp; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::misc` [INFO] [stdout] --> src/renderer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::misc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/renderer.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | if (ytop < 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - if (ytop < 0.0) { [INFO] [stdout] 12 + if ytop < 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/renderer.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | if (ytop > ybottom) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if (ytop > ybottom) { [INFO] [stdout] 15 + if ytop > ybottom { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/renderer.rs:85:16 [INFO] [stdout] | [INFO] [stdout] 85 | if (heightonscreen < height_screen) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 85 - if (heightonscreen < height_screen) { [INFO] [stdout] 85 + if heightonscreen < height_screen { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pixel` [INFO] [stdout] --> src/types/DataBufferType.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{ImageBuffer, Pixel}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::misc` [INFO] [stdout] --> src/types/DataBufferType.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::misc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImageView` [INFO] [stdout] --> src/resources.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{GenericImageView, ImageBuffer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImageView` [INFO] [stdout] --> src/resources.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{GenericImageView, ImageBuffer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/resources.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut colors_buffer = color.to_rgba8(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/resources.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut heights_buffer = height.to_rgba8(); [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/resources.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut data_buffer = DataBufferT::new(colors_buffer, heights_buffer, color.width()); [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/resources.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut colors_buffer = color.to_rgba8(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/resources.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut heights_buffer = height.to_rgba8(); [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/resources.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut data_buffer = DataBufferT::new(colors_buffer, heights_buffer, color.width()); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/renderer.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | for k in ytop as i32..ybottom as i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/renderer.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | for k in ytop as i32..ybottom as i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/renderer.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | let mut heightonscreen = ((camera_pos.z - (buffers_data.get_height(x, y) as f32 * SCALE_FACTOR)) * invz + 100.0).round(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/renderer.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | for k in height_screen as i32..heightonscreen as i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/renderer.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | let mut heightonscreen = ((camera_pos.z - (buffers_data.get_height(x, y) as f32 * SCALE_FACTOR)) * invz + 100.0).round(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/renderer.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | for k in height_screen as i32..heightonscreen as i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u32_to_rgb` is never used [INFO] [stdout] --> src/misc.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) fn u32_to_rgb(x: u32) -> [u8; 3] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u32_to_rgb` is never used [INFO] [stdout] --> src/misc.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) fn u32_to_rgb(x: u32) -> [u8; 3] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `horizon` is never read [INFO] [stdout] --> src/types/CameraType.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CameraT { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | horizon: f32 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_position` and `set_zfar` are never used [INFO] [stdout] --> src/types/CameraType.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl CameraT { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub(crate) fn set_position(&mut self, vector: Vector) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub(crate) fn set_zfar(&mut self, z_far: f32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_buffer_length` is never used [INFO] [stdout] --> src/types/DataBufferType.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl DataBufferT { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn get_buffer_length(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x`, `y`, `z`, and `mult` are never used [INFO] [stdout] --> src/types/VectorType.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Vector{ [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn x(&self)->f32{self.x} [INFO] [stdout] | ^ [INFO] [stdout] 15 | pub fn y(&self)->f32{self.y} [INFO] [stdout] | ^ [INFO] [stdout] 16 | pub fn z(&self)->f32{self.z} [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) fn mult(&self, val: f32) -> Vector { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `horizon` is never read [INFO] [stdout] --> src/types/CameraType.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CameraT { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | horizon: f32 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_position` and `set_zfar` are never used [INFO] [stdout] --> src/types/CameraType.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl CameraT { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub(crate) fn set_position(&mut self, vector: Vector) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub(crate) fn set_zfar(&mut self, z_far: f32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_buffer_length` is never used [INFO] [stdout] --> src/types/DataBufferType.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl DataBufferT { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn get_buffer_length(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x`, `y`, `z`, and `mult` are never used [INFO] [stdout] --> src/types/VectorType.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Vector{ [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn x(&self)->f32{self.x} [INFO] [stdout] | ^ [INFO] [stdout] 15 | pub fn y(&self)->f32{self.y} [INFO] [stdout] | ^ [INFO] [stdout] 16 | pub fn z(&self)->f32{self.z} [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) fn mult(&self, val: f32) -> Vector { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `CameraType` should have a snake case name [INFO] [stdout] --> src/types.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) mod CameraType; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `camera_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DataBufferType` should have a snake case name [INFO] [stdout] --> src/types.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) mod DataBufferType; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `data_buffer_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `VectorType` should have a snake case name [INFO] [stdout] --> src/types.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) mod VectorType; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `vector_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `WindowDataType` should have a snake case name [INFO] [stdout] --> src/types.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) mod WindowDataType; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `window_data_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `CameraType` should have a snake case name [INFO] [stdout] --> src/types.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) mod CameraType; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `camera_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DataBufferType` should have a snake case name [INFO] [stdout] --> src/types.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) mod DataBufferType; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `data_buffer_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `VectorType` should have a snake case name [INFO] [stdout] --> src/types.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) mod VectorType; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `vector_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `WindowDataType` should have a snake case name [INFO] [stdout] --> src/types.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) mod WindowDataType; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `window_data_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 46.19s [INFO] running `Command { std: "docker" "inspect" "da6e1568bf0640642f650b75050589d6c57c18b880d2def2718551a569b722a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da6e1568bf0640642f650b75050589d6c57c18b880d2def2718551a569b722a1", kill_on_drop: false }` [INFO] [stdout] da6e1568bf0640642f650b75050589d6c57c18b880d2def2718551a569b722a1