[INFO] cloning repository https://github.com/gabrielmorais4/Raytracer
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gabrielmorais4/Raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgabrielmorais4%2FRaytracer", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgabrielmorais4%2FRaytracer'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] cd63db5121041fc3f05bce0719bb50ada8799f87
[INFO] checking gabrielmorais4/Raytracer against 1.95.0 for pr-155915
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgabrielmorais4%2FRaytracer" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/gabrielmorais4/Raytracer
[INFO] finished tweaking git repo https://github.com/gabrielmorais4/Raytracer
[INFO] tweaked toml for git repo https://github.com/gabrielmorais4/Raytracer written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/gabrielmorais4/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/gabrielmorais4/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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ba5632200d88dba5737e60e1211f8119bfd7a7c80d1be56cf3f7cc849043e9db
[INFO] running `Command { std: "docker" "start" "-a" "ba5632200d88dba5737e60e1211f8119bfd7a7c80d1be56cf3f7cc849043e9db", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ba5632200d88dba5737e60e1211f8119bfd7a7c80d1be56cf3f7cc849043e9db", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ba5632200d88dba5737e60e1211f8119bfd7a7c80d1be56cf3f7cc849043e9db", kill_on_drop: false }`
[INFO] [stdout] ba5632200d88dba5737e60e1211f8119bfd7a7c80d1be56cf3f7cc849043e9db
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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] 81b42e10e83bbc8fd33fda45e06e2a1eeb44a89f0c7475c58c145eddebd66e5c
[INFO] running `Command { std: "docker" "start" "-a" "81b42e10e83bbc8fd33fda45e06e2a1eeb44a89f0c7475c58c145eddebd66e5c", kill_on_drop: false }`
[INFO] [stderr]    Compiling crossbeam-utils v0.8.15
[INFO] [stderr]    Compiling memoffset v0.8.0
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.14
[INFO] [stderr]    Compiling libc v0.2.144
[INFO] [stderr]    Compiling proc-macro2 v1.0.56
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]    Compiling quote v1.0.26
[INFO] [stderr]    Compiling rayon-core v1.11.0
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling miniz_oxide v0.4.4
[INFO] [stderr]    Compiling serde_derive v1.0.160
[INFO] [stderr]     Checking either v1.8.1
[INFO] [stderr]    Compiling num-iter v0.1.43
[INFO] [stderr]    Compiling num-rational v0.3.2
[INFO] [stderr]     Checking weezl v0.1.7
[INFO] [stderr]    Compiling serde v1.0.160
[INFO] [stderr]     Checking deflate v0.8.6
[INFO] [stderr]     Checking scoped_threadpool v0.1.9
[INFO] [stderr]     Checking png v0.16.8
[INFO] [stderr]     Checking gif v0.11.4
[INFO] [stderr]     Checking num_cpus v1.15.0
[INFO] [stderr]    Compiling syn v2.0.15
[INFO] [stderr]     Checking crossbeam-channel v0.5.8
[INFO] [stderr]     Checking crossbeam-deque v0.8.3
[INFO] [stderr]     Checking rayon v1.7.0
[INFO] [stderr]     Checking jpeg-decoder v0.1.22
[INFO] [stderr]     Checking tiff v0.6.1
[INFO] [stderr]     Checking image v0.23.14
[INFO] [stderr]     Checking serde_json v1.0.96
[INFO] [stderr]     Checking raytracer v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/object.rs:122:12
[INFO] [stdout]     |
[INFO] [stdout] 122 |         if (self.axis == "Z") {
[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] 122 -         if (self.axis == "Z") {
[INFO] [stdout] 122 +         if self.axis == "Z"  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/object.rs:124:16
[INFO] [stdout]     |
[INFO] [stdout] 124 |             if (value.abs() < (ray.direction.z + value).abs()) {
[INFO] [stdout]     |                ^                                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 124 -             if (value.abs() < (ray.direction.z + value).abs()) {
[INFO] [stdout] 124 +             if value.abs() < (ray.direction.z + value).abs()  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/object.rs:138:12
[INFO] [stdout]     |
[INFO] [stdout] 138 |         if (self.axis == "Y") {
[INFO] [stdout]     |            ^                ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 138 -         if (self.axis == "Y") {
[INFO] [stdout] 138 +         if self.axis == "Y"  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/object.rs:140:16
[INFO] [stdout]     |
[INFO] [stdout] 140 |             if (value.abs() < (ray.direction.y * -1.0 + value).abs()) {
[INFO] [stdout]     |                ^                                                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 140 -             if (value.abs() < (ray.direction.y * -1.0 + value).abs()) {
[INFO] [stdout] 140 +             if value.abs() < (ray.direction.y * -1.0 + value).abs()  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/object.rs:154:12
[INFO] [stdout]     |
[INFO] [stdout] 154 |         if (self.axis == "X") {
[INFO] [stdout]     |            ^                ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 154 -         if (self.axis == "X") {
[INFO] [stdout] 154 +         if self.axis == "X"  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/object.rs:156:16
[INFO] [stdout]     |
[INFO] [stdout] 156 |             if (value.abs() < (ray.direction.x + value).abs()) {
[INFO] [stdout]     |                ^                                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 156 -             if (value.abs() < (ray.direction.x + value).abs()) {
[INFO] [stdout] 156 +             if value.abs() < (ray.direction.x + value).abs()  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `DirectionalLight`
[INFO] [stdout]  --> src/raytracer.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::light::{DirectionalLight, Light};
[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: `HitResult` and `Sphere`
[INFO] [stdout]  --> src/raytracer.rs:6:21
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::object::{HitResult, Object, Plane, Sphere};
[INFO] [stdout]   |                     ^^^^^^^^^                 ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Point3D` and `Vector3D`
[INFO] [stdout]  --> src/main.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | use math::{Point3D, Vector3D};
[INFO] [stdout]   |            ^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize`
[INFO] [stdout]  --> src/main.rs:8:13
[INFO] [stdout]   |
[INFO] [stdout] 8 | use serde::{Deserialize, Serialize};
[INFO] [stdout]   |             ^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::Value`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use serde_json::Value;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]   --> src/main.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::env;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Read`
[INFO] [stdout]   --> src/main.rs:12:15
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::io::{Read, Write};
[INFO] [stdout]    |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread::sleep_ms`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::thread::sleep_ms;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AmbientLight`, `DirectionalLight`, and `PointLight`
[INFO] [stdout]   --> src/main.rs:15:13
[INFO] [stdout]    |
[INFO] [stdout] 15 | use light::{DirectionalLight, Light, PointLight, AmbientLight};
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^         ^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Cylinder` and `Sphere`
[INFO] [stdout]   --> src/main.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 | use object::{Cylinder, Object, Plane, Sphere};
[INFO] [stdout]    |              ^^^^^^^^                 ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Rectangle3D`
[INFO] [stdout]   --> src/main.rs:19:32
[INFO] [stdout]    |
[INFO] [stdout] 19 | use crate::raytracer::{Camera, Rectangle3D, Scene};
[INFO] [stdout]    |                                ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]   --> src/main.rs:13:18
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::thread::sleep_ms;
[INFO] [stdout]    |                  ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/object.rs:122:12
[INFO] [stdout]     |
[INFO] [stdout] 122 |         if (self.axis == "Z") {
[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] 122 -         if (self.axis == "Z") {
[INFO] [stdout] 122 +         if self.axis == "Z"  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/object.rs:124:16
[INFO] [stdout]     |
[INFO] [stdout] 124 |             if (value.abs() < (ray.direction.z + value).abs()) {
[INFO] [stdout]     |                ^                                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 124 -             if (value.abs() < (ray.direction.z + value).abs()) {
[INFO] [stdout] 124 +             if value.abs() < (ray.direction.z + value).abs()  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/object.rs:138:12
[INFO] [stdout]     |
[INFO] [stdout] 138 |         if (self.axis == "Y") {
[INFO] [stdout]     |            ^                ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 138 -         if (self.axis == "Y") {
[INFO] [stdout] 138 +         if self.axis == "Y"  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/object.rs:140:16
[INFO] [stdout]     |
[INFO] [stdout] 140 |             if (value.abs() < (ray.direction.y * -1.0 + value).abs()) {
[INFO] [stdout]     |                ^                                                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 140 -             if (value.abs() < (ray.direction.y * -1.0 + value).abs()) {
[INFO] [stdout] 140 +             if value.abs() < (ray.direction.y * -1.0 + value).abs()  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/object.rs:154:12
[INFO] [stdout]     |
[INFO] [stdout] 154 |         if (self.axis == "X") {
[INFO] [stdout]     |            ^                ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 154 -         if (self.axis == "X") {
[INFO] [stdout] 154 +         if self.axis == "X"  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/object.rs:156:16
[INFO] [stdout]     |
[INFO] [stdout] 156 |             if (value.abs() < (ray.direction.x + value).abs()) {
[INFO] [stdout]     |                ^                                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 156 -             if (value.abs() < (ray.direction.x + value).abs()) {
[INFO] [stdout] 156 +             if value.abs() < (ray.direction.x + value).abs()  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `DirectionalLight`
[INFO] [stdout]  --> src/raytracer.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::light::{DirectionalLight, Light};
[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: `HitResult` and `Sphere`
[INFO] [stdout]  --> src/raytracer.rs:6:21
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::object::{HitResult, Object, Plane, Sphere};
[INFO] [stdout]   |                     ^^^^^^^^^                 ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Point3D` and `Vector3D`
[INFO] [stdout]  --> src/main.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | use math::{Point3D, Vector3D};
[INFO] [stdout]   |            ^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize`
[INFO] [stdout]  --> src/main.rs:8:13
[INFO] [stdout]   |
[INFO] [stdout] 8 | use serde::{Deserialize, Serialize};
[INFO] [stdout]   |             ^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::Value`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use serde_json::Value;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]   --> src/main.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::env;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Read`
[INFO] [stdout]   --> src/main.rs:12:15
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::io::{Read, Write};
[INFO] [stdout]    |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread::sleep_ms`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::thread::sleep_ms;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AmbientLight`, `DirectionalLight`, and `PointLight`
[INFO] [stdout]   --> src/main.rs:15:13
[INFO] [stdout]    |
[INFO] [stdout] 15 | use light::{DirectionalLight, Light, PointLight, AmbientLight};
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^         ^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Cylinder` and `Sphere`
[INFO] [stdout]   --> src/main.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 | use object::{Cylinder, Object, Plane, Sphere};
[INFO] [stdout]    |              ^^^^^^^^                 ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Rectangle3D`
[INFO] [stdout]   --> src/main.rs:19:32
[INFO] [stdout]    |
[INFO] [stdout] 19 | use crate::raytracer::{Camera, Rectangle3D, Scene};
[INFO] [stdout]    |                                ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]   --> src/main.rs:13:18
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::thread::sleep_ms;
[INFO] [stdout]    |                  ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `image::DynamicImage::to_rgb`: replaced by `to_rgb8`
[INFO] [stdout]   --> src/main.rs:26:10
[INFO] [stdout]    |
[INFO] [stdout] 26 |         .to_rgb();
[INFO] [stdout]    |          ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hit_point`
[INFO] [stdout]   --> src/object.rs:69:26
[INFO] [stdout]    |
[INFO] [stdout] 69 |     fn get_albedo(&self, hit_point: &Point3D, light_dir: &Vector3D) -> Vector3D {
[INFO] [stdout]    |                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_point`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `value` is never read
[INFO] [stdout]    --> src/object.rs:121:25
[INFO] [stdout]     |
[INFO] [stdout] 121 |         let mut value = 0.0;
[INFO] [stdout]     |                         ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hit_point`
[INFO] [stdout]    --> src/object.rs:181:26
[INFO] [stdout]     |
[INFO] [stdout] 181 |     fn get_albedo(&self, hit_point: &Point3D, light_dir: &Vector3D) -> Vector3D {
[INFO] [stdout]     |                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `light_dir`
[INFO] [stdout]    --> src/object.rs:181:47
[INFO] [stdout]     |
[INFO] [stdout] 181 |     fn get_albedo(&self, hit_point: &Point3D, light_dir: &Vector3D) -> Vector3D {
[INFO] [stdout]     |                                               ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_light_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `position_value`
[INFO] [stdout]    --> src/object.rs:195:13
[INFO] [stdout]     |
[INFO] [stdout] 195 |         let position_value = match axis {
[INFO] [stdout]     |             ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hit_point`
[INFO] [stdout]    --> src/object.rs:244:26
[INFO] [stdout]     |
[INFO] [stdout] 244 |     fn get_albedo(&self, hit_point: &Point3D, light_dir: &Vector3D) -> Vector3D {
[INFO] [stdout]     |                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ray`
[INFO] [stdout]    --> src/raytracer.rs:186:9
[INFO] [stdout]     |
[INFO] [stdout] 186 |         ray: &Ray,
[INFO] [stdout]     |         ^^^ help: if this is intentional, prefix it with an underscore: `_ray`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `color` is never read
[INFO] [stdout]    --> src/raytracer.rs:193:35
[INFO] [stdout]     |
[INFO] [stdout] 193 |         let mut color: Vector3D = Vector3D::new(0.0, 0.0, 0.0);
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `image::DynamicImage::to_rgb`: replaced by `to_rgb8`
[INFO] [stdout]   --> src/main.rs:26:10
[INFO] [stdout]    |
[INFO] [stdout] 26 |         .to_rgb();
[INFO] [stdout]    |          ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hit_point`
[INFO] [stdout]   --> src/object.rs:69:26
[INFO] [stdout]    |
[INFO] [stdout] 69 |     fn get_albedo(&self, hit_point: &Point3D, light_dir: &Vector3D) -> Vector3D {
[INFO] [stdout]    |                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_point`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `value` is never read
[INFO] [stdout]    --> src/object.rs:121:25
[INFO] [stdout]     |
[INFO] [stdout] 121 |         let mut value = 0.0;
[INFO] [stdout]     |                         ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hit_point`
[INFO] [stdout]    --> src/object.rs:181:26
[INFO] [stdout]     |
[INFO] [stdout] 181 |     fn get_albedo(&self, hit_point: &Point3D, light_dir: &Vector3D) -> Vector3D {
[INFO] [stdout]     |                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `light_dir`
[INFO] [stdout]    --> src/object.rs:181:47
[INFO] [stdout]     |
[INFO] [stdout] 181 |     fn get_albedo(&self, hit_point: &Point3D, light_dir: &Vector3D) -> Vector3D {
[INFO] [stdout]     |                                               ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_light_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `position_value`
[INFO] [stdout]    --> src/object.rs:195:13
[INFO] [stdout]     |
[INFO] [stdout] 195 |         let position_value = match axis {
[INFO] [stdout]     |             ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hit_point`
[INFO] [stdout]    --> src/object.rs:244:26
[INFO] [stdout]     |
[INFO] [stdout] 244 |     fn get_albedo(&self, hit_point: &Point3D, light_dir: &Vector3D) -> Vector3D {
[INFO] [stdout]     |                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rotation_json`
[INFO] [stdout]    --> src/parser.rs:293:13
[INFO] [stdout]     |
[INFO] [stdout] 293 |         let rotation_json = camera_json
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotation_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `screen`
[INFO] [stdout]    --> src/parser.rs:298:13
[INFO] [stdout]     |
[INFO] [stdout] 298 |         let screen: Rectangle3D = Rectangle3D::new(
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:69:9
[INFO] [stdout]    |
[INFO] [stdout] 69 |     let mut objects: Vec<Box<dyn Object>> = Parser::get_objects_data();
[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: struct `AmbientLight` is never constructed
[INFO] [stdout]   --> src/light.rs:67:12
[INFO] [stdout]    |
[INFO] [stdout] 67 | pub struct AmbientLight {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/light.rs:73:12
[INFO] [stdout]    |
[INFO] [stdout] 72 | impl AmbientLight {
[INFO] [stdout]    | ----------------- associated function in this implementation
[INFO] [stdout] 73 |     pub fn new(color: Vector3D, intensity: f64) -> AmbientLight {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from` is never used
[INFO] [stdout]   --> src/math.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl Vector3D {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 19 |     pub fn from(other: &Vector3D) -> Vector3D {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from` is never used
[INFO] [stdout]    --> src/math.rs:180:12
[INFO] [stdout]     |
[INFO] [stdout] 176 | impl Point3D {
[INFO] [stdout]     | ------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 180 |     pub fn from(other: &Point3D) -> Point3D {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `HitResult` is never used
[INFO] [stdout]  --> src/object.rs:4:10
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum HitResult {
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_albedo` is never used
[INFO] [stdout]   --> src/object.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub trait Object {
[INFO] [stdout]    |           ------ method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 15 |     fn get_albedo(&self, hit_point: &Point3D, light_dir: &Vector3D) -> Vector3D;
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `rotate` is never used
[INFO] [stdout]    --> src/object.rs:101:12
[INFO] [stdout]     |
[INFO] [stdout]  91 | impl Plane {
[INFO] [stdout]     | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub fn rotate(&mut self, axis: String, angle: f64) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from` is never used
[INFO] [stdout]   --> src/raytracer.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 22 | impl Ray {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn from(other: Ray) -> Ray {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `plane` is never read
[INFO] [stdout]    --> src/raytracer.rs:124:9
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub struct Scene {
[INFO] [stdout]     |            ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 124 |     pub plane: Plane,                  // plane of the scene
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `add_object`, `add_light`, `add_plane`, and `add_size` are never used
[INFO] [stdout]    --> src/raytracer.rs:158:12
[INFO] [stdout]     |
[INFO] [stdout] 140 | impl Scene {
[INFO] [stdout]     | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 158 |     pub fn add_object(&mut self, object: Box<dyn Object>) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 161 |     pub fn add_light(&mut self, light: Box<dyn Light>) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 164 |     pub fn add_plane(&mut self, plane: Plane) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 167 |     pub fn add_size(&mut self, width: u32, height: u32) {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `camera`, `objects`, `width_height`, and `lights` are never read
[INFO] [stdout]   --> src/parser.rs:9:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Parser {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout]  9 |     pub camera: Camera,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 10 |     pub objects: Vec<Box<dyn Object>>,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 11 |     pub width_height: (u32, u32),
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 12 |     pub lights: Vec<Box<dyn Light>>,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `firstPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:127:17
[INFO] [stdout]     |
[INFO] [stdout] 127 |             let firstPoint = Point3D::new(100.0, 200.0, self.position as f64);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `first_point`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `secondPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:128:17
[INFO] [stdout]     |
[INFO] [stdout] 128 |             let secondPoint = Point3D::new(200.0, -100.0, self.position as f64);
[INFO] [stdout]     |                 ^^^^^^^^^^^ help: convert the identifier to snake case: `second_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `thirdPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:129:17
[INFO] [stdout]     |
[INFO] [stdout] 129 |             let thirdPoint = Point3D::new(-30.0, -50.0, self.position as f64);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `third_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `firstVec` should have a snake case name
[INFO] [stdout]    --> src/object.rs:130:17
[INFO] [stdout]     |
[INFO] [stdout] 130 |             let firstVec = firstPoint - secondPoint;
[INFO] [stdout]     |                 ^^^^^^^^ help: convert the identifier to snake case: `first_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `secondVec` should have a snake case name
[INFO] [stdout]    --> src/object.rs:131:17
[INFO] [stdout]     |
[INFO] [stdout] 131 |             let secondVec = thirdPoint - secondPoint;
[INFO] [stdout]     |                 ^^^^^^^^^ help: convert the identifier to snake case: `second_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `firstPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:143:17
[INFO] [stdout]     |
[INFO] [stdout] 143 |             let firstPoint = Point3D::new(100.0, self.position as f64, 200.0);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `first_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `secondPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:144:17
[INFO] [stdout]     |
[INFO] [stdout] 144 |             let secondPoint = Point3D::new(200.0, self.position as f64, -100.0);
[INFO] [stdout]     |                 ^^^^^^^^^^^ help: convert the identifier to snake case: `second_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `thirdPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:145:17
[INFO] [stdout]     |
[INFO] [stdout] 145 |             let thirdPoint = Point3D::new(-30.0, self.position as f64, -50.0);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `third_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `firstVec` should have a snake case name
[INFO] [stdout]    --> src/object.rs:146:17
[INFO] [stdout]     |
[INFO] [stdout] 146 |             let firstVec = firstPoint - secondPoint;
[INFO] [stdout]     |                 ^^^^^^^^ help: convert the identifier to snake case: `first_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `secondVec` should have a snake case name
[INFO] [stdout]    --> src/object.rs:147:17
[INFO] [stdout]     |
[INFO] [stdout] 147 |             let secondVec = thirdPoint - secondPoint;
[INFO] [stdout]     |                 ^^^^^^^^^ help: convert the identifier to snake case: `second_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `firstPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:159:17
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let firstPoint = Point3D::new(self.position as f64, 100.0, 200.0);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `first_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `secondPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:160:17
[INFO] [stdout]     |
[INFO] [stdout] 160 |             let secondPoint = Point3D::new(self.position as f64, 200.0, -100.0);
[INFO] [stdout]     |                 ^^^^^^^^^^^ help: convert the identifier to snake case: `second_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `thirdPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:161:17
[INFO] [stdout]     |
[INFO] [stdout] 161 |             let thirdPoint = Point3D::new(self.position as f64, -30.0, -50.0);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `third_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `firstVec` should have a snake case name
[INFO] [stdout]    --> src/object.rs:162:17
[INFO] [stdout]     |
[INFO] [stdout] 162 |             let firstVec = firstPoint - secondPoint;
[INFO] [stdout]     |                 ^^^^^^^^ help: convert the identifier to snake case: `first_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `secondVec` should have a snake case name
[INFO] [stdout]    --> src/object.rs:163:17
[INFO] [stdout]     |
[INFO] [stdout] 163 |             let secondVec = thirdPoint - secondPoint;
[INFO] [stdout]     |                 ^^^^^^^^^ help: convert the identifier to snake case: `second_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ray`
[INFO] [stdout]    --> src/raytracer.rs:186:9
[INFO] [stdout]     |
[INFO] [stdout] 186 |         ray: &Ray,
[INFO] [stdout]     |         ^^^ help: if this is intentional, prefix it with an underscore: `_ray`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `color` is never read
[INFO] [stdout]    --> src/raytracer.rs:193:35
[INFO] [stdout]     |
[INFO] [stdout] 193 |         let mut color: Vector3D = Vector3D::new(0.0, 0.0, 0.0);
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rotation_json`
[INFO] [stdout]    --> src/parser.rs:293:13
[INFO] [stdout]     |
[INFO] [stdout] 293 |         let rotation_json = camera_json
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotation_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `screen`
[INFO] [stdout]    --> src/parser.rs:298:13
[INFO] [stdout]     |
[INFO] [stdout] 298 |         let screen: Rectangle3D = Rectangle3D::new(
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:69:9
[INFO] [stdout]    |
[INFO] [stdout] 69 |     let mut objects: Vec<Box<dyn Object>> = Parser::get_objects_data();
[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: struct `AmbientLight` is never constructed
[INFO] [stdout]   --> src/light.rs:67:12
[INFO] [stdout]    |
[INFO] [stdout] 67 | pub struct AmbientLight {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/light.rs:73:12
[INFO] [stdout]    |
[INFO] [stdout] 72 | impl AmbientLight {
[INFO] [stdout]    | ----------------- associated function in this implementation
[INFO] [stdout] 73 |     pub fn new(color: Vector3D, intensity: f64) -> AmbientLight {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from` is never used
[INFO] [stdout]   --> src/math.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl Vector3D {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 19 |     pub fn from(other: &Vector3D) -> Vector3D {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from` is never used
[INFO] [stdout]    --> src/math.rs:180:12
[INFO] [stdout]     |
[INFO] [stdout] 176 | impl Point3D {
[INFO] [stdout]     | ------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 180 |     pub fn from(other: &Point3D) -> Point3D {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `HitResult` is never used
[INFO] [stdout]  --> src/object.rs:4:10
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum HitResult {
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_albedo` is never used
[INFO] [stdout]   --> src/object.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub trait Object {
[INFO] [stdout]    |           ------ method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 15 |     fn get_albedo(&self, hit_point: &Point3D, light_dir: &Vector3D) -> Vector3D;
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `rotate` is never used
[INFO] [stdout]    --> src/object.rs:101:12
[INFO] [stdout]     |
[INFO] [stdout]  91 | impl Plane {
[INFO] [stdout]     | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub fn rotate(&mut self, axis: String, angle: f64) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from` is never used
[INFO] [stdout]   --> src/raytracer.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 22 | impl Ray {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn from(other: Ray) -> Ray {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `plane` is never read
[INFO] [stdout]    --> src/raytracer.rs:124:9
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub struct Scene {
[INFO] [stdout]     |            ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 124 |     pub plane: Plane,                  // plane of the scene
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `add_object`, `add_light`, `add_plane`, and `add_size` are never used
[INFO] [stdout]    --> src/raytracer.rs:158:12
[INFO] [stdout]     |
[INFO] [stdout] 140 | impl Scene {
[INFO] [stdout]     | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 158 |     pub fn add_object(&mut self, object: Box<dyn Object>) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 161 |     pub fn add_light(&mut self, light: Box<dyn Light>) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 164 |     pub fn add_plane(&mut self, plane: Plane) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 167 |     pub fn add_size(&mut self, width: u32, height: u32) {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `camera`, `objects`, `width_height`, and `lights` are never read
[INFO] [stdout]   --> src/parser.rs:9:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Parser {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout]  9 |     pub camera: Camera,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 10 |     pub objects: Vec<Box<dyn Object>>,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 11 |     pub width_height: (u32, u32),
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 12 |     pub lights: Vec<Box<dyn Light>>,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `firstPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:127:17
[INFO] [stdout]     |
[INFO] [stdout] 127 |             let firstPoint = Point3D::new(100.0, 200.0, self.position as f64);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `first_point`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `secondPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:128:17
[INFO] [stdout]     |
[INFO] [stdout] 128 |             let secondPoint = Point3D::new(200.0, -100.0, self.position as f64);
[INFO] [stdout]     |                 ^^^^^^^^^^^ help: convert the identifier to snake case: `second_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `thirdPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:129:17
[INFO] [stdout]     |
[INFO] [stdout] 129 |             let thirdPoint = Point3D::new(-30.0, -50.0, self.position as f64);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `third_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `firstVec` should have a snake case name
[INFO] [stdout]    --> src/object.rs:130:17
[INFO] [stdout]     |
[INFO] [stdout] 130 |             let firstVec = firstPoint - secondPoint;
[INFO] [stdout]     |                 ^^^^^^^^ help: convert the identifier to snake case: `first_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `secondVec` should have a snake case name
[INFO] [stdout]    --> src/object.rs:131:17
[INFO] [stdout]     |
[INFO] [stdout] 131 |             let secondVec = thirdPoint - secondPoint;
[INFO] [stdout]     |                 ^^^^^^^^^ help: convert the identifier to snake case: `second_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `firstPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:143:17
[INFO] [stdout]     |
[INFO] [stdout] 143 |             let firstPoint = Point3D::new(100.0, self.position as f64, 200.0);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `first_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `secondPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:144:17
[INFO] [stdout]     |
[INFO] [stdout] 144 |             let secondPoint = Point3D::new(200.0, self.position as f64, -100.0);
[INFO] [stdout]     |                 ^^^^^^^^^^^ help: convert the identifier to snake case: `second_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `thirdPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:145:17
[INFO] [stdout]     |
[INFO] [stdout] 145 |             let thirdPoint = Point3D::new(-30.0, self.position as f64, -50.0);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `third_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `firstVec` should have a snake case name
[INFO] [stdout]    --> src/object.rs:146:17
[INFO] [stdout]     |
[INFO] [stdout] 146 |             let firstVec = firstPoint - secondPoint;
[INFO] [stdout]     |                 ^^^^^^^^ help: convert the identifier to snake case: `first_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `secondVec` should have a snake case name
[INFO] [stdout]    --> src/object.rs:147:17
[INFO] [stdout]     |
[INFO] [stdout] 147 |             let secondVec = thirdPoint - secondPoint;
[INFO] [stdout]     |                 ^^^^^^^^^ help: convert the identifier to snake case: `second_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `firstPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:159:17
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let firstPoint = Point3D::new(self.position as f64, 100.0, 200.0);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `first_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `secondPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:160:17
[INFO] [stdout]     |
[INFO] [stdout] 160 |             let secondPoint = Point3D::new(self.position as f64, 200.0, -100.0);
[INFO] [stdout]     |                 ^^^^^^^^^^^ help: convert the identifier to snake case: `second_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `thirdPoint` should have a snake case name
[INFO] [stdout]    --> src/object.rs:161:17
[INFO] [stdout]     |
[INFO] [stdout] 161 |             let thirdPoint = Point3D::new(self.position as f64, -30.0, -50.0);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `third_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `firstVec` should have a snake case name
[INFO] [stdout]    --> src/object.rs:162:17
[INFO] [stdout]     |
[INFO] [stdout] 162 |             let firstVec = firstPoint - secondPoint;
[INFO] [stdout]     |                 ^^^^^^^^ help: convert the identifier to snake case: `first_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `secondVec` should have a snake case name
[INFO] [stdout]    --> src/object.rs:163:17
[INFO] [stdout]     |
[INFO] [stdout] 163 |             let secondVec = thirdPoint - secondPoint;
[INFO] [stdout]     |                 ^^^^^^^^^ help: convert the identifier to snake case: `second_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.67s
[INFO] running `Command { std: "docker" "inspect" "81b42e10e83bbc8fd33fda45e06e2a1eeb44a89f0c7475c58c145eddebd66e5c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "81b42e10e83bbc8fd33fda45e06e2a1eeb44a89f0c7475c58c145eddebd66e5c", kill_on_drop: false }`
[INFO] [stdout] 81b42e10e83bbc8fd33fda45e06e2a1eeb44a89f0c7475c58c145eddebd66e5c
