[INFO] cloning repository https://github.com/INDA22PlusPlus/dstrombe-raytracer
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/INDA22PlusPlus/dstrombe-raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FINDA22PlusPlus%2Fdstrombe-raytracer", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FINDA22PlusPlus%2Fdstrombe-raytracer'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 09a3a2b312e338f84658d1117b4da5cacce61790
[INFO] checking INDA22PlusPlus/dstrombe-raytracer against 1.95.0 for pr-155915
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FINDA22PlusPlus%2Fdstrombe-raytracer" "/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/INDA22PlusPlus/dstrombe-raytracer
[INFO] finished tweaking git repo https://github.com/INDA22PlusPlus/dstrombe-raytracer
[INFO] tweaked toml for git repo https://github.com/INDA22PlusPlus/dstrombe-raytracer written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/INDA22PlusPlus/dstrombe-raytracer on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/INDA22PlusPlus/dstrombe-raytracer already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded winit_input_helper v0.13.0
[INFO] [stderr]   Downloaded ultraviolet v0.9.0
[INFO] [stderr]   Downloaded pixels v0.11.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" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a033e85971fd5086fbf3c7493594b713fa0270f0147360558fddeaf9adf57155
[INFO] running `Command { std: "docker" "start" "-a" "a033e85971fd5086fbf3c7493594b713fa0270f0147360558fddeaf9adf57155", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a033e85971fd5086fbf3c7493594b713fa0270f0147360558fddeaf9adf57155", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a033e85971fd5086fbf3c7493594b713fa0270f0147360558fddeaf9adf57155", kill_on_drop: false }`
[INFO] [stdout] a033e85971fd5086fbf3c7493594b713fa0270f0147360558fddeaf9adf57155
[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" "+1.95.0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 85e3957ac87eee1a9b699a454b1ccfab23b4347e9d32ff5475ef3611ea50378b
[INFO] running `Command { std: "docker" "start" "-a" "85e3957ac87eee1a9b699a454b1ccfab23b4347e9d32ff5475ef3611ea50378b", kill_on_drop: false }`
[INFO] [stderr]    Compiling cmake v0.1.49
[INFO] [stderr]     Checking smallvec v1.10.0
[INFO] [stderr]    Compiling xml-rs v0.8.4
[INFO] [stderr]    Compiling thiserror-impl v1.0.38
[INFO] [stderr]    Compiling wayland-sys v0.29.5
[INFO] [stderr]     Checking bytemuck v1.12.3
[INFO] [stderr]     Checking dlib v0.5.0
[INFO] [stderr]     Checking getrandom v0.2.8
[INFO] [stderr]    Compiling parking_lot_core v0.9.6
[INFO] [stderr]     Checking nix v0.24.3
[INFO] [stderr]    Compiling servo-fontconfig-sys v5.1.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.14
[INFO] [stderr]     Checking miniz_oxide v0.6.2
[INFO] [stderr]     Checking raw-window-handle v0.5.0
[INFO] [stderr]    Compiling ash v0.37.2+1.3.238
[INFO] [stderr]     Checking spirv v0.2.0+1.5.4
[INFO] [stderr]     Checking nix v0.25.1
[INFO] [stderr]    Compiling foreign-types-macros v0.2.2
[INFO] [stderr]    Compiling crossfont v0.5.1
[INFO] [stderr]    Compiling smithay-client-toolkit v0.16.0
[INFO] [stderr]     Checking ahash v0.7.6
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.13
[INFO] [stderr]     Checking flate2 v1.0.25
[INFO] [stderr]     Checking tiny-skia-path v0.7.0
[INFO] [stderr]    Compiling wgpu-core v0.14.2
[INFO] [stderr]     Checking safe_arch v0.5.2
[INFO] [stderr]     Checking memoffset v0.7.1
[INFO] [stderr]     Checking png v0.17.7
[INFO] [stderr]     Checking hashbrown v0.12.3
[INFO] [stderr]     Checking khronos-egl v4.1.0
[INFO] [stderr]     Checking foreign-types v0.5.0
[INFO] [stderr]     Checking wgpu-types v0.14.1
[INFO] [stderr]    Compiling x11-dl v2.20.1
[INFO] [stderr]    Compiling freetype-sys v0.13.1
[INFO] [stderr]    Compiling expat-sys v2.1.6
[INFO] [stderr]     Checking parking_lot v0.12.1
[INFO] [stderr]     Checking memmap2 v0.5.8
[INFO] [stderr]    Compiling wayland-scanner v0.29.5
[INFO] [stderr]     Checking tiny-skia v0.7.0
[INFO] [stderr]     Checking indexmap v1.9.2
[INFO] [stderr]     Checking gpu-descriptor v0.2.3
[INFO] [stderr]     Checking safe_arch v0.6.0
[INFO] [stderr]    Compiling rayon-core v1.10.1
[INFO] [stderr]     Checking crossbeam-channel v0.5.6
[INFO] [stderr]     Checking mio v0.8.5
[INFO] [stderr]     Checking crossbeam-deque v0.8.2
[INFO] [stderr]     Checking pollster v0.2.5
[INFO] [stderr]     Checking freetype-rs v0.26.0
[INFO] [stderr]     Checking thiserror v1.0.38
[INFO] [stderr]     Checking servo-fontconfig v0.5.1
[INFO] [stderr]     Checking wide v0.7.5
[INFO] [stderr]     Checking naga v0.10.0
[INFO] [stderr]     Checking calloop v0.10.5
[INFO] [stderr]     Checking rayon v1.6.1
[INFO] [stderr]     Checking wayland-commons v0.29.5
[INFO] [stderr]    Compiling wayland-client v0.29.5
[INFO] [stderr]    Compiling wayland-protocols v0.29.5
[INFO] [stderr]     Checking ultraviolet v0.9.0
[INFO] [stderr]     Checking wayland-cursor v0.29.5
[INFO] [stderr]     Checking wgpu-hal v0.14.1
[INFO] [stderr]     Checking wgpu v0.14.2
[INFO] [stderr]     Checking pixels v0.11.0
[INFO] [stderr]     Checking sctk-adwaita v0.4.3
[INFO] [stderr]     Checking winit v0.27.5
[INFO] [stderr]     Checking winit_input_helper v0.13.0
[INFO] [stderr]     Checking dstrombe-raytracer v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/color.rs:76:30
[INFO] [stdout]    |
[INFO] [stdout] 76 |         let mut raw_invert = (Col3::white() - *self);
[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] 76 -         let mut raw_invert = (Col3::white() - *self);
[INFO] [stdout] 76 +         let mut raw_invert = Col3::white() - *self ;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Col4`
[INFO] [stdout]  --> src/ray.rs:2:26
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::color::{Col3, Col4};
[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: `crate::color::Col3`
[INFO] [stdout]  --> src/plane.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::color::Col3;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]   --> src/scene.rs:70:22
[INFO] [stdout]    |
[INFO] [stdout] 70 |             for x in (0..self.camera.size_x) {
[INFO] [stdout]    |                      ^                     ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 70 -             for x in (0..self.camera.size_x) {
[INFO] [stdout] 70 +             for x in 0..self.camera.size_x  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/scene.rs:83:34
[INFO] [stdout]    |
[INFO] [stdout] 83 |                     r : u64::min((pix_col_r / self.camera.rays_per_pixel as u64), 255) as u8,
[INFO] [stdout]    |                                  ^                                             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 83 -                     r : u64::min((pix_col_r / self.camera.rays_per_pixel as u64), 255) as u8,
[INFO] [stdout] 83 +                     r : u64::min(pix_col_r / self.camera.rays_per_pixel as u64 , 255) as u8,
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/scene.rs:84:34
[INFO] [stdout]    |
[INFO] [stdout] 84 |                     g : u64::min((pix_col_g / self.camera.rays_per_pixel as u64), 255) as u8,
[INFO] [stdout]    |                                  ^                                             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 84 -                     g : u64::min((pix_col_g / self.camera.rays_per_pixel as u64), 255) as u8,
[INFO] [stdout] 84 +                     g : u64::min(pix_col_g / self.camera.rays_per_pixel as u64 , 255) as u8,
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/scene.rs:85:34
[INFO] [stdout]    |
[INFO] [stdout] 85 |                     b : u64::min((pix_col_b / self.camera.rays_per_pixel as u64), 255) as u8,
[INFO] [stdout]    |                                  ^                                             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 85 -                     b : u64::min((pix_col_b / self.camera.rays_per_pixel as u64), 255) as u8,
[INFO] [stdout] 85 +                     b : u64::min(pix_col_b / self.camera.rays_per_pixel as u64 , 255) as u8,
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::color::Col3`
[INFO] [stdout]  --> src/sphere.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::color::Col3;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/sphere.rs:39:46
[INFO] [stdout]    |
[INFO] [stdout] 39 | ...(f64::sqrt( (self.radius as f64 * self.radius as f64 - dist_closest_to_center as f64 * dist_closest_to_center as f64)) as f64) as...
[INFO] [stdout]    |                ^                                                                                                       ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 39 -             let dist_to_interx = (f64::sqrt( (self.radius as f64 * self.radius as f64 - dist_closest_to_center as f64 * dist_closest_to_center as f64)) as f64) as f32;
[INFO] [stdout] 39 +             let dist_to_interx = (f64::sqrt( self.radius as f64 * self.radius as f64 - dist_closest_to_center as f64 * dist_closest_to_center as f64 ) as f64) as f32;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/material.rs:51:25
[INFO] [stdout]    |
[INFO] [stdout] 51 |         let rand_disk = (basis_t * f32::cos(fastrand::f32() * pi) + basis_s * f32::cos(fastrand::f32() * pi));
[INFO] [stdout]    |                         ^                                                                                   ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 51 -         let rand_disk = (basis_t * f32::cos(fastrand::f32() * pi) + basis_s * f32::cos(fastrand::f32() * pi));
[INFO] [stdout] 51 +         let rand_disk = basis_t * f32::cos(fastrand::f32() * pi) + basis_s * f32::cos(fastrand::f32() * pi) ;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `scene::Scene`
[INFO] [stdout]   --> src/main.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use scene::Scene;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ray::Ray`
[INFO] [stdout]   --> src/main.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | use ray::Ray;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `plane::Plane`
[INFO] [stdout]   --> src/main.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | use plane::Plane;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `shape::RayTraceShape`
[INFO] [stdout]   --> src/main.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 26 | use shape::RayTraceShape;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/main.rs:158:17
[INFO] [stdout]     |
[INFO] [stdout] 157 |                 panic!("pixels.render() failed: {err}");
[INFO] [stdout]     |                 --------------------------------------- any code following this expression is unreachable
[INFO] [stdout] 158 |                 *control_flow = ControlFlow::Exit;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/main.rs:219:21
[INFO] [stdout]     |
[INFO] [stdout] 218 |                     panic!("pixels.resize_surface() failed: {err}");
[INFO] [stdout]     |                     ----------------------------------------------- any code following this expression is unreachable
[INFO] [stdout] 219 |                     *control_flow = ControlFlow::Exit;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rayon::prelude`
[INFO] [stdout]  --> src/scene.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use rayon::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/color.rs:76:13
[INFO] [stdout]    |
[INFO] [stdout] 76 |         let mut raw_invert = (Col3::white() - *self);
[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/scene.rs:37:13
[INFO] [stdout]    |
[INFO] [stdout] 37 |         let mut viewport_interx_camera_space = self.viewport_anchor + self.location;         //randomness, to prevent outlier rays
[INFO] [stdout]    |             ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/scene.rs:50:13
[INFO] [stdout]    |
[INFO] [stdout] 50 |         for i in 0..self.rays_per_pixel {
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[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/sphere.rs:35:17
[INFO] [stdout]    |
[INFO] [stdout] 35 |             let mut flag = false;
[INFO] [stdout]    |                 ----^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `intrinsic`
[INFO] [stdout]   --> src/material.rs:37:13
[INFO] [stdout]    |
[INFO] [stdout] 37 |         let intrinsic = self.color;
[INFO] [stdout]    |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intrinsic`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/main.rs:148:21
[INFO] [stdout]     |
[INFO] [stdout] 148 |                 let x = (i % WIDTH as usize) as i16;
[INFO] [stdout]     |                     ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]    --> src/main.rs:149:21
[INFO] [stdout]     |
[INFO] [stdout] 149 |                 let y = (i / WIDTH as usize) as i16;
[INFO] [stdout]     |                     ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `img` is never read
[INFO] [stdout]    --> src/main.rs:146:13
[INFO] [stdout]     |
[INFO] [stdout] 146 |             img = scene.render();
[INFO] [stdout]     |             ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: did you mean to capture by reference instead?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `draw` is never used
[INFO] [stdout]    --> src/main.rs:260:8
[INFO] [stdout]     |
[INFO] [stdout] 232 | impl World {
[INFO] [stdout]     | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 260 |     fn draw(&self, frame: &mut [u8]) {
[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 `Col4` is never constructed
[INFO] [stdout]  --> src/color.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub struct Col4 {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/ray.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Ray {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] 14 |     pub fn new(origin : V3, dir : V3, color : Col3, bounce_depth : u16, step_timeout : u16) -> Ray {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `project` is never used
[INFO] [stdout]   --> src/plane.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Plane {
[INFO] [stdout]    | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 20 |     pub fn project(&self, source : V3) -> V3 {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `albedo` is never read
[INFO] [stdout]  --> src/material.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Material {
[INFO] [stdout]   |            -------- field in this struct
[INFO] [stdout] 7 |     pub albedo : f32,
[INFO] [stdout]   |         ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Material` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `rotation_z` is never used
[INFO] [stdout]   --> src/matrix.rs:27:12
[INFO] [stdout]    |
[INFO] [stdout]  7 | impl Matrix3 {
[INFO] [stdout]    | ------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub fn rotation_z(theta : f32) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/color.rs:76:30
[INFO] [stdout]    |
[INFO] [stdout] 76 |         let mut raw_invert = (Col3::white() - *self);
[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] 76 -         let mut raw_invert = (Col3::white() - *self);
[INFO] [stdout] 76 +         let mut raw_invert = Col3::white() - *self ;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Col4`
[INFO] [stdout]  --> src/ray.rs:2:26
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::color::{Col3, Col4};
[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: `crate::color::Col3`
[INFO] [stdout]  --> src/plane.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::color::Col3;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]   --> src/scene.rs:70:22
[INFO] [stdout]    |
[INFO] [stdout] 70 |             for x in (0..self.camera.size_x) {
[INFO] [stdout]    |                      ^                     ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 70 -             for x in (0..self.camera.size_x) {
[INFO] [stdout] 70 +             for x in 0..self.camera.size_x  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/scene.rs:83:34
[INFO] [stdout]    |
[INFO] [stdout] 83 |                     r : u64::min((pix_col_r / self.camera.rays_per_pixel as u64), 255) as u8,
[INFO] [stdout]    |                                  ^                                             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 83 -                     r : u64::min((pix_col_r / self.camera.rays_per_pixel as u64), 255) as u8,
[INFO] [stdout] 83 +                     r : u64::min(pix_col_r / self.camera.rays_per_pixel as u64 , 255) as u8,
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/scene.rs:84:34
[INFO] [stdout]    |
[INFO] [stdout] 84 |                     g : u64::min((pix_col_g / self.camera.rays_per_pixel as u64), 255) as u8,
[INFO] [stdout]    |                                  ^                                             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 84 -                     g : u64::min((pix_col_g / self.camera.rays_per_pixel as u64), 255) as u8,
[INFO] [stdout] 84 +                     g : u64::min(pix_col_g / self.camera.rays_per_pixel as u64 , 255) as u8,
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/scene.rs:85:34
[INFO] [stdout]    |
[INFO] [stdout] 85 |                     b : u64::min((pix_col_b / self.camera.rays_per_pixel as u64), 255) as u8,
[INFO] [stdout]    |                                  ^                                             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 85 -                     b : u64::min((pix_col_b / self.camera.rays_per_pixel as u64), 255) as u8,
[INFO] [stdout] 85 +                     b : u64::min(pix_col_b / self.camera.rays_per_pixel as u64 , 255) as u8,
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::color::Col3`
[INFO] [stdout]  --> src/sphere.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::color::Col3;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/sphere.rs:39:46
[INFO] [stdout]    |
[INFO] [stdout] 39 | ...(f64::sqrt( (self.radius as f64 * self.radius as f64 - dist_closest_to_center as f64 * dist_closest_to_center as f64)) as f64) as...
[INFO] [stdout]    |                ^                                                                                                       ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 39 -             let dist_to_interx = (f64::sqrt( (self.radius as f64 * self.radius as f64 - dist_closest_to_center as f64 * dist_closest_to_center as f64)) as f64) as f32;
[INFO] [stdout] 39 +             let dist_to_interx = (f64::sqrt( self.radius as f64 * self.radius as f64 - dist_closest_to_center as f64 * dist_closest_to_center as f64 ) as f64) as f32;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/material.rs:51:25
[INFO] [stdout]    |
[INFO] [stdout] 51 |         let rand_disk = (basis_t * f32::cos(fastrand::f32() * pi) + basis_s * f32::cos(fastrand::f32() * pi));
[INFO] [stdout]    |                         ^                                                                                   ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 51 -         let rand_disk = (basis_t * f32::cos(fastrand::f32() * pi) + basis_s * f32::cos(fastrand::f32() * pi));
[INFO] [stdout] 51 +         let rand_disk = basis_t * f32::cos(fastrand::f32() * pi) + basis_s * f32::cos(fastrand::f32() * pi) ;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `scene::Scene`
[INFO] [stdout]   --> src/main.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use scene::Scene;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ray::Ray`
[INFO] [stdout]   --> src/main.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | use ray::Ray;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `plane::Plane`
[INFO] [stdout]   --> src/main.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | use plane::Plane;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `shape::RayTraceShape`
[INFO] [stdout]   --> src/main.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 26 | use shape::RayTraceShape;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/main.rs:158:17
[INFO] [stdout]     |
[INFO] [stdout] 157 |                 panic!("pixels.render() failed: {err}");
[INFO] [stdout]     |                 --------------------------------------- any code following this expression is unreachable
[INFO] [stdout] 158 |                 *control_flow = ControlFlow::Exit;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/main.rs:219:21
[INFO] [stdout]     |
[INFO] [stdout] 218 |                     panic!("pixels.resize_surface() failed: {err}");
[INFO] [stdout]     |                     ----------------------------------------------- any code following this expression is unreachable
[INFO] [stdout] 219 |                     *control_flow = ControlFlow::Exit;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rayon::prelude`
[INFO] [stdout]  --> src/scene.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use rayon::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/color.rs:76:13
[INFO] [stdout]    |
[INFO] [stdout] 76 |         let mut raw_invert = (Col3::white() - *self);
[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/scene.rs:37:13
[INFO] [stdout]    |
[INFO] [stdout] 37 |         let mut viewport_interx_camera_space = self.viewport_anchor + self.location;         //randomness, to prevent outlier rays
[INFO] [stdout]    |             ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/scene.rs:50:13
[INFO] [stdout]    |
[INFO] [stdout] 50 |         for i in 0..self.rays_per_pixel {
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[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/sphere.rs:35:17
[INFO] [stdout]    |
[INFO] [stdout] 35 |             let mut flag = false;
[INFO] [stdout]    |                 ----^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `intrinsic`
[INFO] [stdout]   --> src/material.rs:37:13
[INFO] [stdout]    |
[INFO] [stdout] 37 |         let intrinsic = self.color;
[INFO] [stdout]    |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intrinsic`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/main.rs:148:21
[INFO] [stdout]     |
[INFO] [stdout] 148 |                 let x = (i % WIDTH as usize) as i16;
[INFO] [stdout]     |                     ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]    --> src/main.rs:149:21
[INFO] [stdout]     |
[INFO] [stdout] 149 |                 let y = (i / WIDTH as usize) as i16;
[INFO] [stdout]     |                     ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `img` is never read
[INFO] [stdout]    --> src/main.rs:146:13
[INFO] [stdout]     |
[INFO] [stdout] 146 |             img = scene.render();
[INFO] [stdout]     |             ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: did you mean to capture by reference instead?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `draw` is never used
[INFO] [stdout]    --> src/main.rs:260:8
[INFO] [stdout]     |
[INFO] [stdout] 232 | impl World {
[INFO] [stdout]     | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 260 |     fn draw(&self, frame: &mut [u8]) {
[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 `Col4` is never constructed
[INFO] [stdout]  --> src/color.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub struct Col4 {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/ray.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Ray {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] 14 |     pub fn new(origin : V3, dir : V3, color : Col3, bounce_depth : u16, step_timeout : u16) -> Ray {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `project` is never used
[INFO] [stdout]   --> src/plane.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Plane {
[INFO] [stdout]    | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 20 |     pub fn project(&self, source : V3) -> V3 {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `albedo` is never read
[INFO] [stdout]  --> src/material.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Material {
[INFO] [stdout]   |            -------- field in this struct
[INFO] [stdout] 7 |     pub albedo : f32,
[INFO] [stdout]   |         ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Material` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `rotation_z` is never used
[INFO] [stdout]   --> src/matrix.rs:27:12
[INFO] [stdout]    |
[INFO] [stdout]  7 | impl Matrix3 {
[INFO] [stdout]    | ------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub fn rotation_z(theta : f32) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 53.53s
[INFO] running `Command { std: "docker" "inspect" "85e3957ac87eee1a9b699a454b1ccfab23b4347e9d32ff5475ef3611ea50378b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "85e3957ac87eee1a9b699a454b1ccfab23b4347e9d32ff5475ef3611ea50378b", kill_on_drop: false }`
[INFO] [stdout] 85e3957ac87eee1a9b699a454b1ccfab23b4347e9d32ff5475ef3611ea50378b
