[INFO] cloning repository https://github.com/HectorSchreiner/Meshworks-master [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HectorSchreiner/Meshworks-master" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHectorSchreiner%2FMeshworks-master", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHectorSchreiner%2FMeshworks-master'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 45c06901f9a26757fb1561071e089454a9c9de6f [INFO] checking HectorSchreiner/Meshworks-master against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHectorSchreiner%2FMeshworks-master" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/HectorSchreiner/Meshworks-master [INFO] finished tweaking git repo https://github.com/HectorSchreiner/Meshworks-master [INFO] tweaked toml for git repo https://github.com/HectorSchreiner/Meshworks-master written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/HectorSchreiner/Meshworks-master on toolchain b1f2594eac607c1f051534800237eeedb5590a49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/HectorSchreiner/Meshworks-master 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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e8eea32873e9a7e39bb27f7bfb9578d7e2713cd63c627fd04feee551d51558f [INFO] running `Command { std: "docker" "start" "-a" "9e8eea32873e9a7e39bb27f7bfb9578d7e2713cd63c627fd04feee551d51558f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e8eea32873e9a7e39bb27f7bfb9578d7e2713cd63c627fd04feee551d51558f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e8eea32873e9a7e39bb27f7bfb9578d7e2713cd63c627fd04feee551d51558f", kill_on_drop: false }` [INFO] [stdout] 9e8eea32873e9a7e39bb27f7bfb9578d7e2713cd63c627fd04feee551d51558f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b84b599f2dfa5d07182c2349fe1f972487d3760b674bf7c7847f2c06d6e76989 [INFO] running `Command { std: "docker" "start" "-a" "b84b599f2dfa5d07182c2349fe1f972487d3760b674bf7c7847f2c06d6e76989", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking once_cell v1.13.1 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking libloading v0.7.3 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling minifb v0.23.0 [INFO] [stderr] Checking fastrand v1.8.0 [INFO] [stderr] Checking dlib v0.5.0 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking raw-window-handle v0.4.3 [INFO] [stderr] Compiling wayland-sys v0.29.4 [INFO] [stderr] Compiling x11-dl v2.20.0 [INFO] [stderr] Checking nom v7.1.1 [INFO] [stderr] Compiling wayland-scanner v0.29.4 [INFO] [stderr] Checking line_drawing v1.0.0 [INFO] [stderr] Checking nix v0.22.3 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Compiling wayland-client v0.29.4 [INFO] [stderr] Compiling wayland-protocols v0.29.4 [INFO] [stderr] Checking xcursor v0.3.4 [INFO] [stderr] Checking wayland-commons v0.29.4 [INFO] [stderr] Checking wayland-cursor v0.29.4 [INFO] [stderr] Checking Meshworks v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `KeyRepeat` [INFO] [stdout] --> src/main.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use minifb::{Key, KeyRepeat, Window, WindowOptions}; [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 imports: `Line` and `Square` [INFO] [stdout] --> src/main.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use renderer::{Line, Renderer, Square}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PI` [INFO] [stdout] --> src/renderer.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils::{Color, Position, HEIGHT, PI, WIDTH}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DARK_GREY` should have an upper camel case name [INFO] [stdout] --> src/utils.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | DARK_GREY = 0x202020, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `DarkGrey` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | if (self.fPlayerA > PI * 2.0) { [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] 50 - if (self.fPlayerA > PI * 2.0) { [INFO] [stdout] 50 + if self.fPlayerA > PI * 2.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | if (self.fPlayerA < 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 53 - if (self.fPlayerA < 0.0) { [INFO] [stdout] 53 + if self.fPlayerA < 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | if (window.is_key_down(Key::A)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 56 - if (window.is_key_down(Key::A)) { [INFO] [stdout] 56 + if window.is_key_down(Key::A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | if (window.is_key_down(Key::D)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - if (window.is_key_down(Key::D)) { [INFO] [stdout] 59 + if window.is_key_down(Key::D) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | if (window.is_key_down(Key::W)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - if (window.is_key_down(Key::W)) { [INFO] [stdout] 68 + if window.is_key_down(Key::W) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | if (window.is_key_down(Key::S)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 72 - if (window.is_key_down(Key::S)) { [INFO] [stdout] 72 + if window.is_key_down(Key::S) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyRepeat` [INFO] [stdout] --> src/main.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use minifb::{Key, KeyRepeat, Window, WindowOptions}; [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 imports: `Line` and `Square` [INFO] [stdout] --> src/main.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use renderer::{Line, Renderer, Square}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PI` [INFO] [stdout] --> src/renderer.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils::{Color, Position, HEIGHT, PI, WIDTH}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DARK_GREY` should have an upper camel case name [INFO] [stdout] --> src/utils.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | DARK_GREY = 0x202020, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `DarkGrey` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | if (self.fPlayerA > PI * 2.0) { [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] 50 - if (self.fPlayerA > PI * 2.0) { [INFO] [stdout] 50 + if self.fPlayerA > PI * 2.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | if (self.fPlayerA < 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 53 - if (self.fPlayerA < 0.0) { [INFO] [stdout] 53 + if self.fPlayerA < 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | if (window.is_key_down(Key::A)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 56 - if (window.is_key_down(Key::A)) { [INFO] [stdout] 56 + if window.is_key_down(Key::A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | if (window.is_key_down(Key::D)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - if (window.is_key_down(Key::D)) { [INFO] [stdout] 59 + if window.is_key_down(Key::D) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | if (window.is_key_down(Key::W)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - if (window.is_key_down(Key::W)) { [INFO] [stdout] 68 + if window.is_key_down(Key::W) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | if (window.is_key_down(Key::S)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 72 - if (window.is_key_down(Key::S)) { [INFO] [stdout] 72 + if window.is_key_down(Key::S) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | let mut fRayAngle = (self.fPlayerA - fFOV / 2.0) + (x as f32 / WIDTH as f32) * fFOV; [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/main.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let mut fEyeX = fRayAngle.sin(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut fEyeY = fRayAngle.cos(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | let mut fRayAngle = (self.fPlayerA - fFOV / 2.0) + (x as f32 / WIDTH as f32) * fFOV; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:104:21 [INFO] [stdout] | [INFO] [stdout] 104 | let mut nTestX = (self.fPlayerX + fEyeX * fDistanceToWall) as i32; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | let mut nTestY = (self.fPlayerY + fEyeY * fDistanceToWall) as i32; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:120:21 [INFO] [stdout] | [INFO] [stdout] 120 | let mut nCeiling = (HEIGHT as f32 / 2.0) - (HEIGHT as f32 / fDistanceToWall); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:121:21 [INFO] [stdout] | [INFO] [stdout] 121 | let mut nFloor = HEIGHT as f32 - nCeiling; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fRayAngle` [INFO] [stdout] --> src/main.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | let mut fRayAngle = (self.fPlayerA - fFOV / 2.0) + (x as f32 / WIDTH as f32) * fFOV; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fRayAngle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `rect` and `line` are never used [INFO] [stdout] --> src/renderer.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Renderer { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn rect(&mut self, square: &Square, color: Color) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn line(&mut self, line: &Line, color: Color) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Square` is never constructed [INFO] [stdout] --> src/renderer.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Square { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/renderer.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 55 | impl Square { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 56 | fn new(lenght: u32, height: u32, position: impl Into) -> Square { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Line` is never constructed [INFO] [stdout] --> src/renderer.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Line { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `length_of_line` are never used [INFO] [stdout] --> src/renderer.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl Line { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 70 | pub fn new(pos_1: impl Into, pos_2: impl Into) -> Line { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn length_of_line(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RED`, `GREEN`, and `BLUE` are never constructed [INFO] [stdout] --> src/utils.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Color { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | RED = 0xff0000, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | GREEN = 0x00ff00, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | BLUE = 0x0000ff, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fPlayerX` should have a snake case name [INFO] [stdout] --> src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | fPlayerX: f32, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `f_player_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fPlayerY` should have a snake case name [INFO] [stdout] --> src/main.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | fPlayerY: f32, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `f_player_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fPlayerA` should have a snake case name [INFO] [stdout] --> src/main.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | fPlayerA: f32, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `f_player_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nMapHeight` should have a snake case name [INFO] [stdout] --> src/main.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let nMapHeight = 16; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `n_map_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nMapWidth` should have a snake case name [INFO] [stdout] --> src/main.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let nMapWidth = 16; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `n_map_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fFOV` should have a snake case name [INFO] [stdout] --> src/main.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let fFOV = PI / 4.0; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `f_fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fDepth` should have a snake case name [INFO] [stdout] --> src/main.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let fDepth = 16.0; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `f_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mapString` should have a snake case name [INFO] [stdout] --> src/main.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mapString = [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `map_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mapCode` should have a snake case name [INFO] [stdout] --> src/main.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let mapCode: Vec<_> = mapString.chars().collect(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `map_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fRayAngle` should have a snake case name [INFO] [stdout] --> src/main.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let mut fRayAngle = (self.fPlayerA - fFOV / 2.0) + (x as f32 / WIDTH as f32) * fFOV; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `f_ray_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fDistanceToWall` should have a snake case name [INFO] [stdout] --> src/main.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | let mut fDistanceToWall = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `f_distance_to_wall` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bHitWall` should have a snake case name [INFO] [stdout] --> src/main.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | let mut bHitWall = false; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `b_hit_wall` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fEyeX` should have a snake case name [INFO] [stdout] --> src/main.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | let mut fEyeX = fRayAngle.sin(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `f_eye_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fEyeY` should have a snake case name [INFO] [stdout] --> src/main.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | let mut fEyeY = fRayAngle.cos(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `f_eye_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fRayAngle` should have a snake case name [INFO] [stdout] --> src/main.rs:103:25 [INFO] [stdout] | [INFO] [stdout] 103 | let mut fRayAngle = (self.fPlayerA - fFOV / 2.0) + (x as f32 / WIDTH as f32) * fFOV; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `f_ray_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nTestX` should have a snake case name [INFO] [stdout] --> src/main.rs:104:25 [INFO] [stdout] | [INFO] [stdout] 104 | let mut nTestX = (self.fPlayerX + fEyeX * fDistanceToWall) as i32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `n_test_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nTestY` should have a snake case name [INFO] [stdout] --> src/main.rs:105:25 [INFO] [stdout] | [INFO] [stdout] 105 | let mut nTestY = (self.fPlayerY + fEyeY * fDistanceToWall) as i32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `n_test_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | let mut fRayAngle = (self.fPlayerA - fFOV / 2.0) + (x as f32 / WIDTH as f32) * fFOV; [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 `nCeiling` should have a snake case name [INFO] [stdout] --> src/main.rs:120:25 [INFO] [stdout] | [INFO] [stdout] 120 | let mut nCeiling = (HEIGHT as f32 / 2.0) - (HEIGHT as f32 / fDistanceToWall); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `n_ceiling` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nFloor` should have a snake case name [INFO] [stdout] --> src/main.rs:121:25 [INFO] [stdout] | [INFO] [stdout] 121 | let mut nFloor = HEIGHT as f32 - nCeiling; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `n_floor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/main.rs:125:25 [INFO] [stdout] | [INFO] [stdout] 125 | / &renderer.draw_pixel( [INFO] [stdout] 126 | | Position { [INFO] [stdout] 127 | | x: x as u32, [INFO] [stdout] 128 | | y: y as u32, [INFO] [stdout] 129 | | }, [INFO] [stdout] 130 | | Color::BLACK, [INFO] [stdout] 131 | | ); [INFO] [stdout] | |_________________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 125 | let _ = &renderer.draw_pixel( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/main.rs:133:25 [INFO] [stdout] | [INFO] [stdout] 133 | / &renderer.draw_pixel( [INFO] [stdout] 134 | | Position { [INFO] [stdout] 135 | | x: x as u32, [INFO] [stdout] 136 | | y: y as u32, [INFO] [stdout] 137 | | }, [INFO] [stdout] 138 | | Color::WHITE, [INFO] [stdout] 139 | | ); [INFO] [stdout] | |_________________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 133 | let _ = &renderer.draw_pixel( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/main.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | / &renderer.draw_pixel( [INFO] [stdout] 142 | | Position { [INFO] [stdout] 143 | | x: x as u32, [INFO] [stdout] 144 | | y: y as u32, [INFO] [stdout] 145 | | }, [INFO] [stdout] 146 | | Color::DARK_GREY, [INFO] [stdout] 147 | | ); [INFO] [stdout] | |_________________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 141 | let _ = &renderer.draw_pixel( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let mut fEyeX = fRayAngle.sin(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut fEyeY = fRayAngle.cos(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | let mut fRayAngle = (self.fPlayerA - fFOV / 2.0) + (x as f32 / WIDTH as f32) * fFOV; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:104:21 [INFO] [stdout] | [INFO] [stdout] 104 | let mut nTestX = (self.fPlayerX + fEyeX * fDistanceToWall) as i32; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | let mut nTestY = (self.fPlayerY + fEyeY * fDistanceToWall) as i32; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:120:21 [INFO] [stdout] | [INFO] [stdout] 120 | let mut nCeiling = (HEIGHT as f32 / 2.0) - (HEIGHT as f32 / fDistanceToWall); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:121:21 [INFO] [stdout] | [INFO] [stdout] 121 | let mut nFloor = HEIGHT as f32 - nCeiling; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fRayAngle` [INFO] [stdout] --> src/main.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | let mut fRayAngle = (self.fPlayerA - fFOV / 2.0) + (x as f32 / WIDTH as f32) * fFOV; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fRayAngle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `rect` and `line` are never used [INFO] [stdout] --> src/renderer.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Renderer { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn rect(&mut self, square: &Square, color: Color) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn line(&mut self, line: &Line, color: Color) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Square` is never constructed [INFO] [stdout] --> src/renderer.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Square { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/renderer.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 55 | impl Square { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 56 | fn new(lenght: u32, height: u32, position: impl Into) -> Square { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Line` is never constructed [INFO] [stdout] --> src/renderer.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Line { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `length_of_line` are never used [INFO] [stdout] --> src/renderer.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl Line { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 70 | pub fn new(pos_1: impl Into, pos_2: impl Into) -> Line { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn length_of_line(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RED`, `GREEN`, and `BLUE` are never constructed [INFO] [stdout] --> src/utils.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Color { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | RED = 0xff0000, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | GREEN = 0x00ff00, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | BLUE = 0x0000ff, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fPlayerX` should have a snake case name [INFO] [stdout] --> src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | fPlayerX: f32, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `f_player_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fPlayerY` should have a snake case name [INFO] [stdout] --> src/main.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | fPlayerY: f32, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `f_player_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fPlayerA` should have a snake case name [INFO] [stdout] --> src/main.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | fPlayerA: f32, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `f_player_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nMapHeight` should have a snake case name [INFO] [stdout] --> src/main.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let nMapHeight = 16; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `n_map_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nMapWidth` should have a snake case name [INFO] [stdout] --> src/main.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let nMapWidth = 16; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `n_map_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fFOV` should have a snake case name [INFO] [stdout] --> src/main.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let fFOV = PI / 4.0; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `f_fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fDepth` should have a snake case name [INFO] [stdout] --> src/main.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let fDepth = 16.0; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `f_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mapString` should have a snake case name [INFO] [stdout] --> src/main.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mapString = [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `map_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mapCode` should have a snake case name [INFO] [stdout] --> src/main.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let mapCode: Vec<_> = mapString.chars().collect(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `map_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fRayAngle` should have a snake case name [INFO] [stdout] --> src/main.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let mut fRayAngle = (self.fPlayerA - fFOV / 2.0) + (x as f32 / WIDTH as f32) * fFOV; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `f_ray_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fDistanceToWall` should have a snake case name [INFO] [stdout] --> src/main.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | let mut fDistanceToWall = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `f_distance_to_wall` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bHitWall` should have a snake case name [INFO] [stdout] --> src/main.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | let mut bHitWall = false; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `b_hit_wall` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fEyeX` should have a snake case name [INFO] [stdout] --> src/main.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | let mut fEyeX = fRayAngle.sin(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `f_eye_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fEyeY` should have a snake case name [INFO] [stdout] --> src/main.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | let mut fEyeY = fRayAngle.cos(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `f_eye_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fRayAngle` should have a snake case name [INFO] [stdout] --> src/main.rs:103:25 [INFO] [stdout] | [INFO] [stdout] 103 | let mut fRayAngle = (self.fPlayerA - fFOV / 2.0) + (x as f32 / WIDTH as f32) * fFOV; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `f_ray_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nTestX` should have a snake case name [INFO] [stdout] --> src/main.rs:104:25 [INFO] [stdout] | [INFO] [stdout] 104 | let mut nTestX = (self.fPlayerX + fEyeX * fDistanceToWall) as i32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `n_test_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nTestY` should have a snake case name [INFO] [stdout] --> src/main.rs:105:25 [INFO] [stdout] | [INFO] [stdout] 105 | let mut nTestY = (self.fPlayerY + fEyeY * fDistanceToWall) as i32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `n_test_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nCeiling` should have a snake case name [INFO] [stdout] --> src/main.rs:120:25 [INFO] [stdout] | [INFO] [stdout] 120 | let mut nCeiling = (HEIGHT as f32 / 2.0) - (HEIGHT as f32 / fDistanceToWall); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `n_ceiling` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nFloor` should have a snake case name [INFO] [stdout] --> src/main.rs:121:25 [INFO] [stdout] | [INFO] [stdout] 121 | let mut nFloor = HEIGHT as f32 - nCeiling; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `n_floor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/main.rs:125:25 [INFO] [stdout] | [INFO] [stdout] 125 | / &renderer.draw_pixel( [INFO] [stdout] 126 | | Position { [INFO] [stdout] 127 | | x: x as u32, [INFO] [stdout] 128 | | y: y as u32, [INFO] [stdout] 129 | | }, [INFO] [stdout] 130 | | Color::BLACK, [INFO] [stdout] 131 | | ); [INFO] [stdout] | |_________________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 125 | let _ = &renderer.draw_pixel( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/main.rs:133:25 [INFO] [stdout] | [INFO] [stdout] 133 | / &renderer.draw_pixel( [INFO] [stdout] 134 | | Position { [INFO] [stdout] 135 | | x: x as u32, [INFO] [stdout] 136 | | y: y as u32, [INFO] [stdout] 137 | | }, [INFO] [stdout] 138 | | Color::WHITE, [INFO] [stdout] 139 | | ); [INFO] [stdout] | |_________________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 133 | let _ = &renderer.draw_pixel( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/main.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | / &renderer.draw_pixel( [INFO] [stdout] 142 | | Position { [INFO] [stdout] 143 | | x: x as u32, [INFO] [stdout] 144 | | y: y as u32, [INFO] [stdout] 145 | | }, [INFO] [stdout] 146 | | Color::DARK_GREY, [INFO] [stdout] 147 | | ); [INFO] [stdout] | |_________________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 141 | let _ = &renderer.draw_pixel( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 32.17s [INFO] running `Command { std: "docker" "inspect" "b84b599f2dfa5d07182c2349fe1f972487d3760b674bf7c7847f2c06d6e76989", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b84b599f2dfa5d07182c2349fe1f972487d3760b674bf7c7847f2c06d6e76989", kill_on_drop: false }` [INFO] [stdout] b84b599f2dfa5d07182c2349fe1f972487d3760b674bf7c7847f2c06d6e76989