[INFO] cloning repository https://github.com/eatrero/rust_ray_tracer
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eatrero/rust_ray_tracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Featrero%2Frust_ray_tracer", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Featrero%2Frust_ray_tracer'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e3dd00992a35b6552a66d65d26a9f3a1a3c4740b
[INFO] checking eatrero/rust_ray_tracer against try#14e4661efa5acbf985e4fe564baae04683366cc1 for pr-157696
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Featrero%2Frust_ray_tracer" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/eatrero/rust_ray_tracer
[INFO] finished tweaking git repo https://github.com/eatrero/rust_ray_tracer
[INFO] tweaked toml for git repo https://github.com/eatrero/rust_ray_tracer written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/eatrero/rust_ray_tracer on toolchain 14e4661efa5acbf985e4fe564baae04683366cc1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+14e4661efa5acbf985e4fe564baae04683366cc1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/eatrero/rust_ray_tracer 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" "+14e4661efa5acbf985e4fe564baae04683366cc1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] ddc10a9de6ee3b1f8b4aed584aa137a0deeccc273af1d9d67388509e8af7c6fc
[INFO] running `Command { std: "docker" "start" "ddc10a9de6ee3b1f8b4aed584aa137a0deeccc273af1d9d67388509e8af7c6fc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ddc10a9de6ee3b1f8b4aed584aa137a0deeccc273af1d9d67388509e8af7c6fc" "/opt/rustwide/cargo-home/bin/cargo" "+14e4661efa5acbf985e4fe564baae04683366cc1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ddc10a9de6ee3b1f8b4aed584aa137a0deeccc273af1d9d67388509e8af7c6fc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ddc10a9de6ee3b1f8b4aed584aa137a0deeccc273af1d9d67388509e8af7c6fc" "/opt/rustwide/cargo-home/bin/cargo" "+14e4661efa5acbf985e4fe564baae04683366cc1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking rand_core v0.4.0 (https://github.com/rust-lang/rand#8d7d0b6d)
[INFO] [stderr]    Compiling crossbeam-utils v0.8.5
[INFO] [stderr]    Compiling libc v0.2.50
[INFO] [stderr]    Compiling memoffset v0.6.5
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.5
[INFO] [stderr]    Compiling rayon-core v1.9.1
[INFO] [stderr]     Checking scopeguard v1.1.0
[INFO] [stderr]    Compiling rand_pcg v0.1.2 (https://github.com/rust-lang/rand#8d7d0b6d)
[INFO] [stderr]    Compiling rand_chacha v0.1.1 (https://github.com/rust-lang/rand#8d7d0b6d)
[INFO] [stderr]    Compiling rayon v1.5.1
[INFO] [stderr]    Compiling rand v0.6.5 (https://github.com/rust-lang/rand#8d7d0b6d)
[INFO] [stderr]     Checking either v1.5.2
[INFO] [stderr]     Checking rand_hc v0.1.0 (https://github.com/rust-lang/rand#8d7d0b6d)
[INFO] [stderr]     Checking rand_jitter v0.1.3 (https://github.com/rust-lang/rand#8d7d0b6d)
[INFO] [stderr]     Checking rand_isaac v0.1.1 (https://github.com/rust-lang/rand#8d7d0b6d)
[INFO] [stderr]     Checking rand_xorshift v0.1.1 (https://github.com/rust-lang/rand#8d7d0b6d)
[INFO] [stderr]     Checking crossbeam-channel v0.5.1
[INFO] [stderr]     Checking num_cpus v1.10.0
[INFO] [stderr]     Checking rand_os v0.1.3 (https://github.com/rust-lang/rand#8d7d0b6d)
[INFO] [stderr]     Checking crossbeam-deque v0.8.1
[INFO] [stderr]     Checking ray_tracer v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::material::Material`
[INFO] [stdout]  --> src/world/mod.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::material::Material;
[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::matrix::Matrix`
[INFO] [stdout]  --> src/world/mod.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::matrix::Matrix;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `PatternType` and `Pattern`
[INFO] [stdout]  --> src/world/mod.rs:8:22
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::pattern::{Pattern, PatternType};
[INFO] [stdout]   |                      ^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::shape::sphere::Sphere`
[INFO] [stdout]   --> src/world/mod.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::shape::sphere::Sphere;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `vector`
[INFO] [stdout]   --> src/world/mod.rs:13:34
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::vectors::{dot, point, vector, Tuple};
[INFO] [stdout]    |                                  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `canvas::Canvas`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use canvas::Canvas;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `point` and `vector`
[INFO] [stdout]  --> src/transform/mod.rs:3:29
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::vectors::{cross, point, vector};
[INFO] [stdout]   |                             ^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::shape::plane::Plane`
[INFO] [stdout]  --> src/intersections/mod.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::shape::plane::Plane;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::shape::sphere::Sphere`
[INFO] [stdout]  --> src/intersections/mod.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::shape::sphere::Sphere;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ShapeType`
[INFO] [stdout]  --> src/intersections/mod.rs:4:27
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::shape::{Shape, ShapeType};
[INFO] [stdout]   |                           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::transform::Transform`
[INFO] [stdout]  --> src/intersections/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::transform::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `point` and `vector`
[INFO] [stdout]  --> src/intersections/mod.rs:6:27
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::vectors::{dot, point, reflect, vector, Tuple};
[INFO] [stdout]   |                           ^^^^^           ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::transform::Transform`
[INFO] [stdout]  --> src/ray/mod.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::transform::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `point` and `vector`
[INFO] [stdout]  --> src/ray/mod.rs:4:22
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::vectors::{point, vector};
[INFO] [stdout]   |                      ^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ray::Ray`
[INFO] [stdout]   --> src/main.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use ray::Ray;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::colors::Color`
[INFO] [stdout]  --> src/shape/mod.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::colors::Color;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Intersection` and `prepare_computations`
[INFO] [stdout]  --> src/shape/mod.rs:2:28
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::intersections::{prepare_computations, Intersection, Intersections};
[INFO] [stdout]   |                            ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::transform::Transform`
[INFO] [stdout]  --> src/shape/mod.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::transform::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `dot`
[INFO] [stdout]  --> src/shape/mod.rs:7:22
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::vectors::{dot, point, vector, Tuple};
[INFO] [stdout]   |                      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::f64`
[INFO] [stdout]  --> src/shape/mod.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::f64;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::colors::Color`
[INFO] [stdout]  --> src/shape/plane.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::colors::Color;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::transform::Transform`
[INFO] [stdout]  --> src/shape/plane.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::transform::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `dot` and `point`
[INFO] [stdout]  --> src/shape/plane.rs:8:22
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::vectors::{dot, point, vector, Tuple};
[INFO] [stdout]   |                      ^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::f64`
[INFO] [stdout]   --> src/shape/plane.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::f64;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/shape/plane.rs:30:8
[INFO] [stdout]    |
[INFO] [stdout] 30 |     if (ray.direction.y.abs() < 1e-10) {
[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] 30 -     if (ray.direction.y.abs() < 1e-10) {
[INFO] [stdout] 30 +     if ray.direction.y.abs() < 1e-10  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::colors::Color`
[INFO] [stdout]  --> src/shape/sphere.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::colors::Color;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ShapeType`
[INFO] [stdout]  --> src/shape/sphere.rs:6:27
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::shape::{Shape, ShapeType};
[INFO] [stdout]   |                           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::transform::Transform`
[INFO] [stdout]  --> src/shape/sphere.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::transform::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `vector`
[INFO] [stdout]  --> src/shape/sphere.rs:8:34
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::vectors::{dot, point, vector, Tuple};
[INFO] [stdout]   |                                  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ShapeType`
[INFO] [stdout]  --> src/light/mod.rs:3:27
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::shape::{Shape, ShapeType};
[INFO] [stdout]   |                           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `point` and `vector`
[INFO] [stdout]  --> src/light/mod.rs:4:27
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::vectors::{dot, point, reflect, vector, Tuple};
[INFO] [stdout]   |                           ^^^^^           ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/light/mod.rs:60:6
[INFO] [stdout]    |
[INFO] [stdout] 60 |   if (is_in_shadow) {
[INFO] [stdout]    |      ^            ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 60 -   if (is_in_shadow) {
[INFO] [stdout] 60 +   if is_in_shadow  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `lighting`
[INFO] [stdout]   --> src/main.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 25 | use light::{lighting, PointLight};
[INFO] [stdout]    |             ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::transform::Transform`
[INFO] [stdout]  --> src/camera/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::transform::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Tuple` and `vector`
[INFO] [stdout]  --> src/camera/mod.rs:6:29
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                             ^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/camera/mod.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]   --> src/camera/mod.rs:90:14
[INFO] [stdout]    |
[INFO] [stdout] 90 |     for y in (0..self.vsize) {
[INFO] [stdout]    |              ^             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 90 -     for y in (0..self.vsize) {
[INFO] [stdout] 90 +     for y in 0..self.vsize  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]   --> src/camera/mod.rs:91:16
[INFO] [stdout]    |
[INFO] [stdout] 91 |       for x in (0..self.hsize) {
[INFO] [stdout]    |                ^             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 91 -       for x in (0..self.hsize) {
[INFO] [stdout] 91 +       for x in 0..self.hsize  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `PointLight` and `lighting`
[INFO] [stdout]  --> src/material/mod.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::light::{lighting, PointLight};
[INFO] [stdout]   |                    ^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PatternType`
[INFO] [stdout]  --> src/material/mod.rs:3:31
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::pattern::{Pattern, PatternType};
[INFO] [stdout]   |                               ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ShapeType` and `Shape`
[INFO] [stdout]  --> src/material/mod.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::shape::{Shape, ShapeType};
[INFO] [stdout]   |                    ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Tuple`, `point`, and `vector`
[INFO] [stdout]  --> src/material/mod.rs:5:22
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                      ^^^^^  ^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Duration`
[INFO] [stdout]   --> src/main.rs:30:17
[INFO] [stdout]    |
[INFO] [stdout] 30 | use std::time::{Duration, Instant};
[INFO] [stdout]    |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ShapeType`
[INFO] [stdout]  --> src/pattern/mod.rs:3:27
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::shape::{Shape, ShapeType};
[INFO] [stdout]   |                           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `point` and `vector`
[INFO] [stdout]  --> src/pattern/mod.rs:4:22
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                      ^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::Transform`
[INFO] [stdout]  --> src/pattern/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::matrix::Matrix`
[INFO] [stdout]  --> src/pattern/checker.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::matrix::Matrix;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PatternType`
[INFO] [stdout]  --> src/pattern/checker.rs:3:31
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::pattern::{Pattern, PatternType};
[INFO] [stdout]   |                               ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ShapeType` and `Shape`
[INFO] [stdout]  --> src/pattern/checker.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::shape::{Shape, ShapeType};
[INFO] [stdout]   |                    ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `point` and `vector`
[INFO] [stdout]  --> src/pattern/checker.rs:5:22
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                      ^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::Transform`
[INFO] [stdout]  --> src/pattern/checker.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::matrix::Matrix`
[INFO] [stdout]  --> src/pattern/gradient.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::matrix::Matrix;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PatternType`
[INFO] [stdout]  --> src/pattern/gradient.rs:3:31
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::pattern::{Pattern, PatternType};
[INFO] [stdout]   |                               ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::material::Material`
[INFO] [stdout]  --> src/world/mod.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::material::Material;
[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: `ShapeType` and `Shape`
[INFO] [stdout]  --> src/pattern/gradient.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::shape::{Shape, ShapeType};
[INFO] [stdout]   |                    ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `point` and `vector`
[INFO] [stdout]  --> src/pattern/gradient.rs:5:22
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                      ^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::matrix::Matrix`
[INFO] [stdout]  --> src/world/mod.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::matrix::Matrix;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::Transform`
[INFO] [stdout]  --> src/pattern/gradient.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::shape::sphere::Sphere`
[INFO] [stdout]   --> src/world/mod.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::shape::sphere::Sphere;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::matrix::Matrix`
[INFO] [stdout]  --> src/pattern/ring.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::matrix::Matrix;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `canvas::Canvas`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use canvas::Canvas;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::shape::plane::Plane`
[INFO] [stdout]  --> src/intersections/mod.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::shape::plane::Plane;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PatternType`
[INFO] [stdout]  --> src/pattern/ring.rs:3:31
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::pattern::{Pattern, PatternType};
[INFO] [stdout]   |                               ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::shape::sphere::Sphere`
[INFO] [stdout]  --> src/intersections/mod.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::shape::sphere::Sphere;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ShapeType` and `Shape`
[INFO] [stdout]  --> src/pattern/ring.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::shape::{Shape, ShapeType};
[INFO] [stdout]   |                    ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ray::Ray`
[INFO] [stdout]   --> src/main.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use ray::Ray;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::colors::Color`
[INFO] [stdout]  --> src/shape/mod.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::colors::Color;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `point` and `vector`
[INFO] [stdout]  --> src/pattern/ring.rs:5:22
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                      ^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `dot`
[INFO] [stdout]  --> src/shape/mod.rs:7:22
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::vectors::{dot, point, vector, Tuple};
[INFO] [stdout]   |                      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::Transform`
[INFO] [stdout]  --> src/pattern/ring.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::f64`
[INFO] [stdout]  --> src/shape/mod.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::f64;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::matrix::Matrix`
[INFO] [stdout]  --> src/pattern/stripe.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::matrix::Matrix;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::colors::Color`
[INFO] [stdout]  --> src/shape/plane.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::colors::Color;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PatternType`
[INFO] [stdout]  --> src/pattern/stripe.rs:3:31
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::pattern::{Pattern, PatternType};
[INFO] [stdout]   |                               ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::transform::Transform`
[INFO] [stdout]  --> src/shape/plane.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::transform::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ShapeType` and `Shape`
[INFO] [stdout]  --> src/pattern/stripe.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::shape::{Shape, ShapeType};
[INFO] [stdout]   |                    ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `dot` and `point`
[INFO] [stdout]  --> src/shape/plane.rs:8:22
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::vectors::{dot, point, vector, Tuple};
[INFO] [stdout]   |                      ^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::f64`
[INFO] [stdout]   --> src/shape/plane.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::f64;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/shape/plane.rs:30:8
[INFO] [stdout]    |
[INFO] [stdout] 30 |     if (ray.direction.y.abs() < 1e-10) {
[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] 30 -     if (ray.direction.y.abs() < 1e-10) {
[INFO] [stdout] 30 +     if ray.direction.y.abs() < 1e-10  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/light/mod.rs:60:6
[INFO] [stdout]    |
[INFO] [stdout] 60 |   if (is_in_shadow) {
[INFO] [stdout]    |      ^            ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 60 -   if (is_in_shadow) {
[INFO] [stdout] 60 +   if is_in_shadow  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `lighting`
[INFO] [stdout]   --> src/main.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 25 | use light::{lighting, PointLight};
[INFO] [stdout]    |             ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Tuple`
[INFO] [stdout]  --> src/camera/mod.rs:6:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/camera/mod.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]   --> src/camera/mod.rs:90:14
[INFO] [stdout]    |
[INFO] [stdout] 90 |     for y in (0..self.vsize) {
[INFO] [stdout]    |              ^             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 90 -     for y in (0..self.vsize) {
[INFO] [stdout] 90 +     for y in 0..self.vsize  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]   --> src/camera/mod.rs:91:16
[INFO] [stdout]    |
[INFO] [stdout] 91 |       for x in (0..self.hsize) {
[INFO] [stdout]    |                ^             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 91 -       for x in (0..self.hsize) {
[INFO] [stdout] 91 +       for x in 0..self.hsize  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Tuple`
[INFO] [stdout]  --> src/material/mod.rs:5:37
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Duration`
[INFO] [stdout]   --> src/main.rs:30:17
[INFO] [stdout]    |
[INFO] [stdout] 30 | use std::time::{Duration, Instant};
[INFO] [stdout]    |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `vector`
[INFO] [stdout]  --> src/pattern/mod.rs:4:29
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                             ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::matrix::Matrix`
[INFO] [stdout]  --> src/pattern/checker.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::matrix::Matrix;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `point` and `vector`
[INFO] [stdout]  --> src/pattern/stripe.rs:5:22
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                      ^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::Transform`
[INFO] [stdout]  --> src/pattern/stripe.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ShapeType` and `Shape`
[INFO] [stdout]  --> src/pattern/checker.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::shape::{Shape, ShapeType};
[INFO] [stdout]   |                    ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `vector`
[INFO] [stdout]  --> src/pattern/checker.rs:5:29
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                             ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::Transform`
[INFO] [stdout]  --> src/pattern/checker.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::matrix::Matrix`
[INFO] [stdout]  --> src/pattern/gradient.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::matrix::Matrix;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ShapeType` and `Shape`
[INFO] [stdout]  --> src/pattern/gradient.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::shape::{Shape, ShapeType};
[INFO] [stdout]   |                    ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `vector`
[INFO] [stdout]  --> src/pattern/gradient.rs:5:29
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                             ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::Transform`
[INFO] [stdout]  --> src/pattern/gradient.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::matrix::Matrix`
[INFO] [stdout]  --> src/pattern/ring.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::matrix::Matrix;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ShapeType` and `Shape`
[INFO] [stdout]  --> src/pattern/ring.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::shape::{Shape, ShapeType};
[INFO] [stdout]   |                    ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `vector`
[INFO] [stdout]  --> src/pattern/ring.rs:5:29
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                             ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::Transform`
[INFO] [stdout]  --> src/pattern/ring.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::matrix::Matrix`
[INFO] [stdout]  --> src/pattern/stripe.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::matrix::Matrix;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ShapeType` and `Shape`
[INFO] [stdout]  --> src/pattern/stripe.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::shape::{Shape, ShapeType};
[INFO] [stdout]   |                    ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `vector`
[INFO] [stdout]  --> src/pattern/stripe.rs:5:29
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::vectors::{point, vector, Tuple};
[INFO] [stdout]   |                             ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::Transform`
[INFO] [stdout]  --> src/pattern/stripe.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::Transform;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/world/mod.rs:198:5
[INFO] [stdout]     |
[INFO] [stdout] 196 |     return Color::mult(color, comps.object.material.transparency);
[INFO] [stdout]     |     ------------------------------------------------------------- any code following this expression is unreachable
[INFO] [stdout] 197 |
[INFO] [stdout] 198 |     return color;
[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: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> src/canvas/mod.rs:42:65
[INFO] [stdout]    |
[INFO] [stdout] 42 |       Err(why) => panic!("couldn't create {}: {}", display, why.description()),
[INFO] [stdout]    |                                                                 ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> src/canvas/mod.rs:49:67
[INFO] [stdout]    |
[INFO] [stdout] 49 |       Err(why) => panic!("couldn't write to {}: {}", display, why.description()),
[INFO] [stdout]    |                                                                   ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/world/mod.rs:198:5
[INFO] [stdout]     |
[INFO] [stdout] 196 |     return Color::mult(color, comps.object.material.transparency);
[INFO] [stdout]     |     ------------------------------------------------------------- any code following this expression is unreachable
[INFO] [stdout] 197 |
[INFO] [stdout] 198 |     return color;
[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: unused variable: `hit`
[INFO] [stdout]   --> src/intersections/mod.rs:64:7
[INFO] [stdout]    |
[INFO] [stdout] 64 |   let hit = xs.hit();
[INFO] [stdout]    |       ^^^ help: if this is intentional, prefix it with an underscore: `_hit`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `object`
[INFO] [stdout]   --> src/shape/plane.rs:46:20
[INFO] [stdout]    |
[INFO] [stdout] 46 |   pub fn normal_at(object: &Shape, local_point: Tuple) -> Tuple {
[INFO] [stdout]    |                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `local_point`
[INFO] [stdout]   --> src/shape/plane.rs:46:36
[INFO] [stdout]    |
[INFO] [stdout] 46 |   pub fn normal_at(object: &Shape, local_point: Tuple) -> Tuple {
[INFO] [stdout]    |                                    ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `object`
[INFO] [stdout]   --> src/shape/sphere.rs:69:20
[INFO] [stdout]    |
[INFO] [stdout] 69 |   pub fn normal_at(object: &Shape, object_point: Tuple) -> Tuple {
[INFO] [stdout]    |                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/light/mod.rs:30:7
[INFO] [stdout]    |
[INFO] [stdout] 30 |   let mut diffuse;
[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/light/mod.rs:31:7
[INFO] [stdout]    |
[INFO] [stdout] 31 |   let mut specular;
[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/camera/mod.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let mut half_width;
[INFO] [stdout]    |         ----^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/camera/mod.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let mut half_height;
[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/camera/mod.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let mut half_view = (fov / 2.0).tan();
[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:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let mut floor_pattern = Pattern::new(
[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:72:9
[INFO] [stdout]    |
[INFO] [stdout] 72 |     let mut pattern = Pattern::new(
[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:89:9
[INFO] [stdout]    |
[INFO] [stdout] 89 |     let mut pattern = Pattern::new(
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `is_a_point`, `is_a_vector`, `equals`, and `approx_equals` are never used
[INFO] [stdout]   --> src/vectors/mod.rs:19:10
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl Tuple {
[INFO] [stdout]    | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 19 |   pub fn is_a_point(&self) -> bool {
[INFO] [stdout]    |          ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 22 |   pub fn is_a_vector(&self) -> bool {
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 25 |   pub fn equals(&self, p: Tuple) -> bool {
[INFO] [stdout]    |          ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 |   pub fn approx_equals(&self, p: Tuple) -> bool {
[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 `Proj` is never constructed
[INFO] [stdout]   --> src/world/mod.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct Proj {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/world/mod.rs:22:10
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl Proj {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 22 |   pub fn new(pos: Tuple, vel: Tuple) -> Proj {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Env` is never constructed
[INFO] [stdout]   --> src/world/mod.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct Env {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/world/mod.rs:34:10
[INFO] [stdout]    |
[INFO] [stdout] 33 | impl Env {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] 34 |   pub fn new(wind: Tuple, grav: Tuple) -> Env {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `tick` is never used
[INFO] [stdout]   --> src/world/mod.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn tick(env: Env, proj: Proj) -> Proj {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `default_world` and `default_world2` are never used
[INFO] [stdout]   --> src/world/mod.rs:68:10
[INFO] [stdout]    |
[INFO] [stdout] 52 | impl World {
[INFO] [stdout]    | ---------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 68 |   pub fn default_world() -> World {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 87 |   pub fn default_world2() -> World {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `negate`, `div`, `equals`, and `approx_equals` are never used
[INFO] [stdout]   --> src/colors/mod.rs:19:10
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl Color {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 19 |   pub fn negate(&self) -> Color {
[INFO] [stdout]    |          ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 28 |   pub fn div(c: Color, a: f64) -> Color {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 |   pub fn equals(a: Color, b: Color) -> bool {
[INFO] [stdout]    |          ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |   pub fn approx_equals(a: Color, b: Color) -> bool {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get` is never used
[INFO] [stdout]   --> src/canvas/mod.rs:28:10
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Canvas {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 28 |   pub fn get(&mut self, x: usize, y: usize) -> Color {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `set`, `equals`, `approx_equals`, and `minor` are never used
[INFO] [stdout]    --> src/matrix/mod.rs:23:10
[INFO] [stdout]     |
[INFO] [stdout]  10 | impl Matrix {
[INFO] [stdout]     | ----------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  23 |   pub fn set(&mut self, r: usize, c: usize, d: f64) {
[INFO] [stdout]     |          ^^^
[INFO] [stdout] ...
[INFO] [stdout]  27 |   pub fn equals(a: &Matrix, b: &Matrix) -> bool {
[INFO] [stdout]     |          ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  41 |   pub fn approx_equals(a: &Matrix, b: &Matrix) -> bool {
[INFO] [stdout]     |          ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 140 |   pub fn minor(a: &Matrix, row: usize, col: usize) -> f64 {
[INFO] [stdout]     |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `rotate_z` and `shear` are never used
[INFO] [stdout]    --> src/transform/mod.rs:83:10
[INFO] [stdout]     |
[INFO] [stdout]  10 | impl Transform {
[INFO] [stdout]     | -------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  83 |   pub fn rotate_z(&self, rot: f64) -> Transform {
[INFO] [stdout]     |          ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 108 |   pub fn shear(&self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Transform {
[INFO] [stdout]     |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `t` and `inside` are never read
[INFO] [stdout]   --> src/intersections/mod.rs:30:7
[INFO] [stdout]    |
[INFO] [stdout] 29 | pub struct Computations {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] 30 |   pub t: f64,
[INFO] [stdout]    |       ^
[INFO] [stdout] ...
[INFO] [stdout] 36 |   pub inside: bool,
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Computations` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Test` is never constructed
[INFO] [stdout]   --> src/shape/mod.rs:18:3
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub enum ShapeType {
[INFO] [stdout]    |          --------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 18 |   Test,
[INFO] [stdout]    |   ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ShapeType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> src/canvas/mod.rs:42:65
[INFO] [stdout]    |
[INFO] [stdout] 42 |       Err(why) => panic!("couldn't create {}: {}", display, why.description()),
[INFO] [stdout]    |                                                                 ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `origin` is never read
[INFO] [stdout]   --> src/shape/mod.rs:24:7
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct Shape {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] 23 |   pub shape_type: ShapeType,
[INFO] [stdout] 24 |   pub origin: Tuple,
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Shape` 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 items `glass_sphere` and `set_transform` are never used
[INFO] [stdout]   --> src/shape/mod.rs:42:10
[INFO] [stdout]    |
[INFO] [stdout] 30 | impl Shape {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 42 |   pub fn glass_sphere() -> Shape {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 61 |   pub fn set_transform(&mut self, transform: Matrix) {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `handle`, `transform`, and `material` are never read
[INFO] [stdout]   --> src/shape/plane.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Plane {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] 14 |   pub handle: u32,
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 15 |   pub transform: Matrix,
[INFO] [stdout]    |       ^^^^^^^^^
[INFO] [stdout] 16 |   pub material: Material,
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Plane` 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 functions `new` and `set_transform` are never used
[INFO] [stdout]   --> src/shape/plane.rs:20:10
[INFO] [stdout]    |
[INFO] [stdout] 19 | impl Plane {
[INFO] [stdout]    | ---------- associated functions in this implementation
[INFO] [stdout] 20 |   pub fn new() -> Plane {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] ...
[INFO] [stdout] 42 |   pub fn set_transform(object: &mut Shape, transform: Matrix) {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `origin`, `radius`, `handle`, `transform`, and `material` are never read
[INFO] [stdout]   --> src/shape/sphere.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Sphere {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] 14 |   pub origin: Tuple,
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 15 |   pub radius: f64,
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 16 |   pub handle: u32,
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 17 |   pub transform: Matrix,
[INFO] [stdout]    |       ^^^^^^^^^
[INFO] [stdout] 18 |   pub material: Material,
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Sphere` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> src/canvas/mod.rs:49:67
[INFO] [stdout]    |
[INFO] [stdout] 49 |       Err(why) => panic!("couldn't write to {}: {}", display, why.description()),
[INFO] [stdout]    |                                                                   ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `new` and `set_transform` are never used
[INFO] [stdout]   --> src/shape/sphere.rs:22:10
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl Sphere {
[INFO] [stdout]    | ----------- associated functions in this implementation
[INFO] [stdout] 22 |   pub fn new(origin: Tuple, radius: f64) -> Sphere {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] ...
[INFO] [stdout] 65 |   pub fn set_transform(object: &mut Shape, transform: Matrix) {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `fov` is never read
[INFO] [stdout]   --> src/camera/mod.rs:18:3
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Camera {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 18 |   fov: f64,
[INFO] [stdout]    |   ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Gradient`, `Ring`, `Stripe`, and `Test` are never constructed
[INFO] [stdout]   --> src/pattern/mod.rs:15:3
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub enum PatternType {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout] 14 |   Checker,
[INFO] [stdout] 15 |   Gradient,
[INFO] [stdout]    |   ^^^^^^^^
[INFO] [stdout] 16 |   Ring,
[INFO] [stdout]    |   ^^^^
[INFO] [stdout] 17 |   Stripe,
[INFO] [stdout]    |   ^^^^^^
[INFO] [stdout] 18 |   Test,
[INFO] [stdout]    |   ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PatternType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `set_transform` is never used
[INFO] [stdout]   --> src/pattern/mod.rs:55:10
[INFO] [stdout]    |
[INFO] [stdout] 29 | impl Pattern {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 55 |   pub fn set_transform(&mut self, transform: Matrix) {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `a` and `b` are never read
[INFO] [stdout]   --> src/pattern/checker.rs:10:3
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct Checker {
[INFO] [stdout]    |            ------- fields in this struct
[INFO] [stdout] 10 |   a: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout] 11 |   b: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Checker` 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 `new` is never used
[INFO] [stdout]   --> src/pattern/checker.rs:15:10
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Checker {
[INFO] [stdout]    | ------------ associated function in this implementation
[INFO] [stdout] 15 |   pub fn new(color1: Color, color2: Color) -> Checker {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `a` and `b` are never read
[INFO] [stdout]   --> src/pattern/gradient.rs:10:3
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct Gradient {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 10 |   a: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout] 11 |   b: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Gradient` 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 `new` is never used
[INFO] [stdout]   --> src/pattern/gradient.rs:15:10
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Gradient {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] 15 |   pub fn new(color1: Color, color2: Color) -> Gradient {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `a` and `b` are never read
[INFO] [stdout]   --> src/pattern/ring.rs:10:3
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct Ring {
[INFO] [stdout]    |            ---- fields in this struct
[INFO] [stdout] 10 |   a: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout] 11 |   b: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Ring` 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 `new` is never used
[INFO] [stdout]   --> src/pattern/ring.rs:15:10
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Ring {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 15 |   pub fn new(color1: Color, color2: Color) -> Ring {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `a` and `b` are never read
[INFO] [stdout]   --> src/pattern/stripe.rs:10:3
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct Stripe {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] 10 |   a: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout] 11 |   b: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Stripe` 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 `new` is never used
[INFO] [stdout]   --> src/pattern/stripe.rs:15:10
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Stripe {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 15 |   pub fn new(color1: Color, color2: Color) -> Stripe {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/world/mod.rs:320:7
[INFO] [stdout]     |
[INFO] [stdout] 320 |   let mut world = World::default_world2();
[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/world/mod.rs:330:7
[INFO] [stdout]     |
[INFO] [stdout] 330 |   let mut world = World::default_world();
[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/world/mod.rs:339:7
[INFO] [stdout]     |
[INFO] [stdout] 339 |   let mut world = World::default_world();
[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/world/mod.rs:348:7
[INFO] [stdout]     |
[INFO] [stdout] 348 |   let mut world = World::default_world();
[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/world/mod.rs:357:7
[INFO] [stdout]     |
[INFO] [stdout] 357 |   let mut world = World::default_world();
[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/world/mod.rs:366:7
[INFO] [stdout]     |
[INFO] [stdout] 366 |   let mut world = World::default_world();
[INFO] [stdout]     |       ----^^^^^
[INFO] [stdout]     |       |
[INFO] [stdout]     |       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `xs`
[INFO] [stdout]    --> src/world/mod.rs:525:7
[INFO] [stdout]     |
[INFO] [stdout] 525 |   let xs = world.intersect_world(r).intersections;
[INFO] [stdout]     |       ^^ help: if this is intentional, prefix it with an underscore: `_xs`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hit`
[INFO] [stdout]   --> src/intersections/mod.rs:64:7
[INFO] [stdout]    |
[INFO] [stdout] 64 |   let hit = xs.hit();
[INFO] [stdout]    |       ^^^ help: if this is intentional, prefix it with an underscore: `_hit`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `object`
[INFO] [stdout]   --> src/shape/plane.rs:46:20
[INFO] [stdout]    |
[INFO] [stdout] 46 |   pub fn normal_at(object: &Shape, local_point: Tuple) -> Tuple {
[INFO] [stdout]    |                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `local_point`
[INFO] [stdout]   --> src/shape/plane.rs:46:36
[INFO] [stdout]    |
[INFO] [stdout] 46 |   pub fn normal_at(object: &Shape, local_point: Tuple) -> Tuple {
[INFO] [stdout]    |                                    ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `object`
[INFO] [stdout]   --> src/shape/sphere.rs:69:20
[INFO] [stdout]    |
[INFO] [stdout] 69 |   pub fn normal_at(object: &Shape, object_point: Tuple) -> Tuple {
[INFO] [stdout]    |                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/shape/sphere.rs:253:7
[INFO] [stdout]     |
[INFO] [stdout] 253 |   let mut s = Sphere::new(point(0., 0., 0.), 1.);
[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/light/mod.rs:30:7
[INFO] [stdout]    |
[INFO] [stdout] 30 |   let mut diffuse;
[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/light/mod.rs:31:7
[INFO] [stdout]    |
[INFO] [stdout] 31 |   let mut specular;
[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/camera/mod.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let mut half_width;
[INFO] [stdout]    |         ----^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/camera/mod.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let mut half_height;
[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/camera/mod.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let mut half_view = (fov / 2.0).tan();
[INFO] [stdout]    |         ----^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/pattern/stripe.rs:113:7
[INFO] [stdout]     |
[INFO] [stdout] 113 |   let x = Stripe::pattern_at(&pattern, point(-0.1, 0., 0.));
[INFO] [stdout]     |       ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let mut floor_pattern = Pattern::new(
[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:72:9
[INFO] [stdout]    |
[INFO] [stdout] 72 |     let mut pattern = Pattern::new(
[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:89:9
[INFO] [stdout]    |
[INFO] [stdout] 89 |     let mut pattern = Pattern::new(
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Proj` is never constructed
[INFO] [stdout]   --> src/world/mod.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct Proj {
[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/world/mod.rs:22:10
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl Proj {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 22 |   pub fn new(pos: Tuple, vel: Tuple) -> Proj {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Env` is never constructed
[INFO] [stdout]   --> src/world/mod.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct Env {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/world/mod.rs:34:10
[INFO] [stdout]    |
[INFO] [stdout] 33 | impl Env {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] 34 |   pub fn new(wind: Tuple, grav: Tuple) -> Env {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `tick` is never used
[INFO] [stdout]   --> src/world/mod.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn tick(env: Env, proj: Proj) -> Proj {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `negate` and `div` are never used
[INFO] [stdout]   --> src/colors/mod.rs:19:10
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl Color {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 19 |   pub fn negate(&self) -> Color {
[INFO] [stdout]    |          ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 28 |   pub fn div(c: Color, a: f64) -> Color {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `set` is never used
[INFO] [stdout]   --> src/matrix/mod.rs:23:10
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl Matrix {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 23 |   pub fn set(&mut self, r: usize, c: usize, d: f64) {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `origin` is never read
[INFO] [stdout]   --> src/shape/mod.rs:24:7
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct Shape {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] 23 |   pub shape_type: ShapeType,
[INFO] [stdout] 24 |   pub origin: Tuple,
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Shape` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `handle`, `transform`, and `material` are never read
[INFO] [stdout]   --> src/shape/plane.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Plane {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] 14 |   pub handle: u32,
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 15 |   pub transform: Matrix,
[INFO] [stdout]    |       ^^^^^^^^^
[INFO] [stdout] 16 |   pub material: Material,
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Plane` 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 `new` is never used
[INFO] [stdout]   --> src/shape/plane.rs:20:10
[INFO] [stdout]    |
[INFO] [stdout] 19 | impl Plane {
[INFO] [stdout]    | ---------- associated function in this implementation
[INFO] [stdout] 20 |   pub fn new() -> Plane {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `origin`, `radius`, `handle`, and `transform` are never read
[INFO] [stdout]   --> src/shape/sphere.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Sphere {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] 14 |   pub origin: Tuple,
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 15 |   pub radius: f64,
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 16 |   pub handle: u32,
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 17 |   pub transform: Matrix,
[INFO] [stdout]    |       ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Sphere` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `a` and `b` are never read
[INFO] [stdout]   --> src/pattern/checker.rs:10:3
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct Checker {
[INFO] [stdout]    |            ------- fields in this struct
[INFO] [stdout] 10 |   a: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout] 11 |   b: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Checker` 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 `new` is never used
[INFO] [stdout]   --> src/pattern/checker.rs:15:10
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Checker {
[INFO] [stdout]    | ------------ associated function in this implementation
[INFO] [stdout] 15 |   pub fn new(color1: Color, color2: Color) -> Checker {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `a` and `b` are never read
[INFO] [stdout]   --> src/pattern/gradient.rs:10:3
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct Gradient {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 10 |   a: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout] 11 |   b: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Gradient` 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 `new` is never used
[INFO] [stdout]   --> src/pattern/gradient.rs:15:10
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Gradient {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] 15 |   pub fn new(color1: Color, color2: Color) -> Gradient {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `a` and `b` are never read
[INFO] [stdout]   --> src/pattern/ring.rs:10:3
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct Ring {
[INFO] [stdout]    |            ---- fields in this struct
[INFO] [stdout] 10 |   a: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout] 11 |   b: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Ring` 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 `new` is never used
[INFO] [stdout]   --> src/pattern/ring.rs:15:10
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Ring {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 15 |   pub fn new(color1: Color, color2: Color) -> Ring {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `a` and `b` are never read
[INFO] [stdout]   --> src/pattern/stripe.rs:10:3
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct Stripe {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] 10 |   a: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout] 11 |   b: Color,
[INFO] [stdout]    |   ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Stripe` 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 `new` is never used
[INFO] [stdout]   --> src/pattern/stripe.rs:15:10
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Stripe {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 15 |   pub fn new(color1: Color, color2: Color) -> Stripe {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.18s
[INFO] running `Command { std: "docker" "inspect" "ddc10a9de6ee3b1f8b4aed584aa137a0deeccc273af1d9d67388509e8af7c6fc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ddc10a9de6ee3b1f8b4aed584aa137a0deeccc273af1d9d67388509e8af7c6fc", kill_on_drop: false }`
[INFO] [stdout] ddc10a9de6ee3b1f8b4aed584aa137a0deeccc273af1d9d67388509e8af7c6fc
