[INFO] cloning repository https://github.com/dbearden/Ray-Tracer-Challenge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dbearden/Ray-Tracer-Challenge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdbearden%2FRay-Tracer-Challenge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdbearden%2FRay-Tracer-Challenge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 784d088220536f64b204a6a82a857f3b44ab9f67 [INFO] checking dbearden/Ray-Tracer-Challenge/784d088220536f64b204a6a82a857f3b44ab9f67 against master#8f359beca4e58bc3ae795a666301a8f47023044c for pr-121557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdbearden%2FRay-Tracer-Challenge" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dbearden/Ray-Tracer-Challenge on toolchain 8f359beca4e58bc3ae795a666301a8f47023044c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8f359beca4e58bc3ae795a666301a8f47023044c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dbearden/Ray-Tracer-Challenge [INFO] finished tweaking git repo https://github.com/dbearden/Ray-Tracer-Challenge [INFO] tweaked toml for git repo https://github.com/dbearden/Ray-Tracer-Challenge written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dbearden/Ray-Tracer-Challenge 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" "+8f359beca4e58bc3ae795a666301a8f47023044c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8f359beca4e58bc3ae795a666301a8f47023044c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9a9554fa1df6918a1e4add7091f93bd41f6df914ec01c9ddc86e8b03a2ce8321 [INFO] running `Command { std: "docker" "start" "-a" "9a9554fa1df6918a1e4add7091f93bd41f6df914ec01c9ddc86e8b03a2ce8321", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9a9554fa1df6918a1e4add7091f93bd41f6df914ec01c9ddc86e8b03a2ce8321", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a9554fa1df6918a1e4add7091f93bd41f6df914ec01c9ddc86e8b03a2ce8321", kill_on_drop: false }` [INFO] [stdout] 9a9554fa1df6918a1e4add7091f93bd41f6df914ec01c9ddc86e8b03a2ce8321 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8f359beca4e58bc3ae795a666301a8f47023044c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1defaec4228ad02ff4733891d77da3ebf98deab92375c70ff3985faf570e8913 [INFO] running `Command { std: "docker" "start" "-a" "1defaec4228ad02ff4733891d77da3ebf98deab92375c70ff3985faf570e8913", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Checking ray_tracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch1/tuple.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch2/tuple/point.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch2/tuple/vector.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch2/tuple/point.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch2/tuple/vector.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch6/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch6/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch6/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch7/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch8/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch7/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch7/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch8/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch8/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::is_separator` [INFO] [stdout] --> src/bin/ch8/world.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, path::is_separator, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FRAC_PI_3` [INFO] [stdout] --> src/bin/ch8/main.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `dot` and `cross` are never used [INFO] [stdout] --> src/bin/ch1/tuple.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl Vector { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn dot(&self, other: Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch4/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch4/matrix.rs:313:24 [INFO] [stdout] | [INFO] [stdout] 313 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 314 | [INFO] [stdout] 315 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch4/matrix.rs:313:31 [INFO] [stdout] | [INFO] [stdout] 313 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 314 | [INFO] [stdout] 315 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch10/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch5/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/materials.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch4/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch5/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Stripe` [INFO] [stdout] --> src/bin/ch10/materials.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Stripe, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch4/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch5/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Write` [INFO] [stdout] --> src/bin/ch2/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{io::Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/pattern/stripe.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::Shape` [INFO] [stdout] --> src/bin/ch10/pattern/stripe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | shape::Shape, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transformations::Transformation` [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | transformations::Transformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::world::World` [INFO] [stdout] --> src/bin/ch10/ray.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{f64::EPSILON, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch12/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Intersection`, `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DEFAULT_REFLECTION_COUNT` [INFO] [stdout] --> src/bin/ch12/camera.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | DEFAULT_REFLECTION_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch10/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch12/materials.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch10/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Stripe` [INFO] [stdout] --> src/bin/ch12/materials.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Stripe, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch10/main.rs:21:52 [INFO] [stdout] | [INFO] [stdout] 21 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch12/pattern/stripe.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::Shape` [INFO] [stdout] --> src/bin/ch12/pattern/stripe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | shape::Shape, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch7/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch7/camera.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch7/camera.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch12/pattern/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch7/camera.rs:77:31 [INFO] [stdout] | [INFO] [stdout] 77 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `World` is imported redundantly [INFO] [stdout] --> src/bin/ch7/camera.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | world::World, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `World` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch7/lights.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transformations::Transformation` [INFO] [stdout] --> src/bin/ch12/pattern/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | transformations::Transformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/bin/ch12/ray.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::{Computations, World}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch7/lights.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch7/materials.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Point` [INFO] [stdout] --> src/bin/ch12/shape/cube.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch7/materials.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/bin/ch12/shape/plane.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{f64::EPSILON, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch12/shape/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch7/materials.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch12/shape/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch7/materials.rs:66:31 [INFO] [stdout] | [INFO] [stdout] 66 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch12/shape/sphere.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch7/matrix.rs:313:24 [INFO] [stdout] | [INFO] [stdout] 313 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 314 | [INFO] [stdout] 315 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Intersection`, `pattern::Pattern` [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch7/matrix.rs:313:31 [INFO] [stdout] | [INFO] [stdout] 313 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 314 | [INFO] [stdout] 315 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch12/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch12/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `materials::Material` [INFO] [stdout] --> src/bin/ch12/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use materials::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch7/ray.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | use crate::{matrix::Matrix, shapes::Sphere, transformations::Transformation}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 94 | [INFO] [stdout] 95 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_4`, `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch12/main.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Material` is imported redundantly [INFO] [stdout] --> src/bin/ch7/shapes/sphere.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | materials::Material, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | -------- the item `Material` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Gradient`, `Ring`, `lights::PointLight` [INFO] [stdout] --> src/bin/ch12/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch7/shapes/sphere.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch7/shapes/sphere.rs:64:24 [INFO] [stdout] | [INFO] [stdout] 64 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch7/shapes/sphere.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch7/transformations.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch7/transformations.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch7/transformations.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch7/transformations.rs:33:31 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch7/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch7/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch7/world.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Material` is imported redundantly [INFO] [stdout] --> src/bin/ch7/world.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | materials::Material, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | use super::*; [INFO] [stdout] | -------- the item `Material` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch7/world.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch9/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Intersection` is imported redundantly [INFO] [stdout] --> src/bin/ch7/world.rs:128:15 [INFO] [stdout] | [INFO] [stdout] 128 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | use super::*; [INFO] [stdout] | -------- the item `Intersection` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch7/world.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Sphere` is imported redundantly [INFO] [stdout] --> src/bin/ch7/world.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | shapes::Sphere, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | use super::*; [INFO] [stdout] | -------- the item `Sphere` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Transformation` is imported redundantly [INFO] [stdout] --> src/bin/ch7/world.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | transformations::Transformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | use super::*; [INFO] [stdout] | -------- the item `Transformation` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::world::World` [INFO] [stdout] --> src/bin/ch9/ray.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{f64::EPSILON, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch7/world.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch7/world.rs:131:24 [INFO] [stdout] | [INFO] [stdout] 131 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch7/world.rs:131:31 [INFO] [stdout] | [INFO] [stdout] 131 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch7/world.rs:131:38 [INFO] [stdout] | [INFO] [stdout] 131 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch9/shapes/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch9/shapes/sphere.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch9/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch9/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::is_separator` [INFO] [stdout] --> src/bin/ch9/world.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, path::is_separator, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch9/main.rs:20:52 [INFO] [stdout] | [INFO] [stdout] 20 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `w`, `dot`, and `cross` are never used [INFO] [stdout] --> src/bin/ch2/tuple/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Tuple: Add + Sub + Neg + Mul + Div + Sized { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn w(&self) -> f64; [INFO] [stdout] | ^ [INFO] [stdout] 16 | fn dot(&self, other: Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pixel_at` is never used [INFO] [stdout] --> src/bin/ch2/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Canvas { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &dyn Shape, point: &Point) -> Color { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Write` [INFO] [stdout] --> src/bin/ch2/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{io::Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/ch12/pattern/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &dyn Shape, point: &Point) -> Color { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch13/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DEFAULT_REFLECTION_COUNT` [INFO] [stdout] --> src/bin/ch13/camera.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | DEFAULT_REFLECTION_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch13/materials.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Stripe` [INFO] [stdout] --> src/bin/ch13/materials.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Stripe, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch13/pattern/stripe.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::Shape` [INFO] [stdout] --> src/bin/ch13/pattern/stripe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | shape::Shape, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch13/pattern/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transformations::Transformation` [INFO] [stdout] --> src/bin/ch13/pattern/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | transformations::Transformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/bin/ch13/ray.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::{Computations, World}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Point` [INFO] [stdout] --> src/bin/ch13/shape/cube.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/bin/ch13/shape/plane.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{f64::EPSILON, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch13/shape/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch13/shape/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch13/shape/sphere.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Intersection`, `pattern::Pattern` [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch13/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch13/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::assert_matches::assert_matches` [INFO] [stdout] --> src/bin/ch13/world.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::assert_matches::assert_matches; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `materials::Material` [INFO] [stdout] --> src/bin/ch13/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use materials::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_4`, `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch13/main.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cone`, `Gradient`, `Ring`, `lights::PointLight` [INFO] [stdout] --> src/bin/ch13/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] 35 | shape::{Cone, Cylinder}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `w`, `dot`, and `cross` are never used [INFO] [stdout] --> src/bin/ch2/tuple/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Tuple: Add + Sub + Neg + Mul + Div + Sized { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn w(&self) -> f64; [INFO] [stdout] | ^ [INFO] [stdout] 16 | fn dot(&self, other: Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/ch13/pattern/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &dyn Shape, point: &Point) -> Color { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch13/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch13/camera.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch13/camera.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 78 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch13/camera.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `World` is imported redundantly [INFO] [stdout] --> src/bin/ch13/camera.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | world::World, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | use super::*; [INFO] [stdout] | -------- the item `World` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch13/lights.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch13/lights.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Stripe` [INFO] [stdout] --> src/bin/ch13/materials.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Stripe, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f64::consts::FRAC_2_PI` [INFO] [stdout] --> src/bin/ch13/materials.rs:90:43 [INFO] [stdout] | [INFO] [stdout] 90 | use std::{f64::consts::FRAC_1_SQRT_2, f64::consts::FRAC_2_PI}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Intersection`, `Plane`, `Ray` [INFO] [stdout] --> src/bin/ch13/materials.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^ [INFO] [stdout] 95 | shape::{Plane, Sphere}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch13/materials.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch13/materials.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch13/materials.rs:96:24 [INFO] [stdout] | [INFO] [stdout] 96 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch13/materials.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch13/matrix.rs:319:24 [INFO] [stdout] | [INFO] [stdout] 319 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 320 | [INFO] [stdout] 321 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch13/matrix.rs:319:31 [INFO] [stdout] | [INFO] [stdout] 319 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 320 | [INFO] [stdout] 321 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch13/pattern/ring.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | [INFO] [stdout] 47 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::Shape` [INFO] [stdout] --> src/bin/ch13/pattern/stripe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | shape::Shape, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch13/pattern/stripe.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Shape` is imported redundantly [INFO] [stdout] --> src/bin/ch13/pattern/stripe.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | shape::{Shape, Sphere}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | use super::*; [INFO] [stdout] | -------- the item `Shape` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch13/pattern/stripe.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | tuple::{Color, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch13/pattern/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch13/pattern/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Shape` is imported redundantly [INFO] [stdout] --> src/bin/ch13/pattern/mod.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | shape::{Shape, Sphere}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Shape` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch13/pattern/mod.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Color, Tuple}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/bin/ch13/ray.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::{Computations, World}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DEFAULT_REFLECTION_COUNT`, `tuple::Color` [INFO] [stdout] --> src/bin/ch13/ray.rs:94:73 [INFO] [stdout] | [INFO] [stdout] 94 | matrix::Matrix, shape::Sphere, transformations::Transformation, tuple::Color, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 95 | world::prepare_computations, DEFAULT_REFLECTION_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch9/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch13/ray.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | matrix::Matrix, shape::Sphere, transformations::Transformation, tuple::Color, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch9/camera.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/cone.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | ray::Ray, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch9/camera.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/cone.rs:148:24 [INFO] [stdout] | [INFO] [stdout] 148 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/cone.rs:148:31 [INFO] [stdout] | [INFO] [stdout] 148 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch9/camera.rs:77:31 [INFO] [stdout] | [INFO] [stdout] 77 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Point` [INFO] [stdout] --> src/bin/ch13/shape/cube.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `World` is imported redundantly [INFO] [stdout] --> src/bin/ch9/camera.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | world::World, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `World` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `INFINITY` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/cylinder.rs:138:20 [INFO] [stdout] | [INFO] [stdout] 138 | use std::f64::{INFINITY, NEG_INFINITY}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | use super::*; [INFO] [stdout] | -------- the item `INFINITY` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `NEG_INFINITY` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/cylinder.rs:138:30 [INFO] [stdout] | [INFO] [stdout] 138 | use std::f64::{INFINITY, NEG_INFINITY}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | use super::*; [INFO] [stdout] | -------- the item `NEG_INFINITY` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/cylinder.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | ray::Ray, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/cylinder.rs:144:24 [INFO] [stdout] | [INFO] [stdout] 144 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/cylinder.rs:144:31 [INFO] [stdout] | [INFO] [stdout] 144 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch9/lights.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch13/shape/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/plane.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 72 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/plane.rs:72:31 [INFO] [stdout] | [INFO] [stdout] 72 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch9/lights.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch13/shape/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch13/shape/sphere.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/sphere.rs:94:24 [INFO] [stdout] | [INFO] [stdout] 94 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 95 | [INFO] [stdout] 96 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch9/materials.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/sphere.rs:94:31 [INFO] [stdout] | [INFO] [stdout] 94 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 95 | [INFO] [stdout] 96 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/sphere.rs:94:38 [INFO] [stdout] | [INFO] [stdout] 94 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 95 | [INFO] [stdout] 96 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch9/materials.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::type_name` [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch9/materials.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `RefCell` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | cell::RefCell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | use super::*; [INFO] [stdout] | -------- the item `RefCell` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rc` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | use super::*; [INFO] [stdout] | -------- the item `Rc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | use crate::{ray::Ray, transformations::Transformation, tuple::Tuple}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 70 | [INFO] [stdout] 71 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch9/materials.rs:67:31 [INFO] [stdout] | [INFO] [stdout] 67 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:69:60 [INFO] [stdout] | [INFO] [stdout] 69 | use crate::{ray::Ray, transformations::Transformation, tuple::Tuple}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 70 | [INFO] [stdout] 71 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch13/transformations.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch13/transformations.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch13/transformations.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch13/transformations.rs:33:31 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch9/matrix.rs:319:24 [INFO] [stdout] | [INFO] [stdout] 319 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 320 | [INFO] [stdout] 321 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch9/matrix.rs:319:31 [INFO] [stdout] | [INFO] [stdout] 319 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 320 | [INFO] [stdout] 321 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch13/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch13/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefMut` [INFO] [stdout] --> src/bin/ch13/world.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 276 | cell::RefMut, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch13/world.rs:281:9 [INFO] [stdout] | [INFO] [stdout] 281 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Material` is imported redundantly [INFO] [stdout] --> src/bin/ch13/world.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | materials::Material, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Material` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch13/world.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::world::World` [INFO] [stdout] --> src/bin/ch9/ray.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Intersection` is imported redundantly [INFO] [stdout] --> src/bin/ch13/world.rs:284:30 [INFO] [stdout] | [INFO] [stdout] 284 | ray::{intersections, Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Intersection` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch13/world.rs:284:44 [INFO] [stdout] | [INFO] [stdout] 284 | ray::{intersections, Intersection, Ray}, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Sphere` is imported redundantly [INFO] [stdout] --> src/bin/ch13/world.rs:285:24 [INFO] [stdout] | [INFO] [stdout] 285 | shape::{Plane, Sphere}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Sphere` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Transformation` is imported redundantly [INFO] [stdout] --> src/bin/ch13/world.rs:286:9 [INFO] [stdout] | [INFO] [stdout] 286 | transformations::Transformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Transformation` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch13/world.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch9/ray.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | use crate::{matrix::Matrix, shapes::Sphere, transformations::Transformation}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 73 | [INFO] [stdout] 74 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch13/world.rs:287:24 [INFO] [stdout] | [INFO] [stdout] 287 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch13/world.rs:287:31 [INFO] [stdout] | [INFO] [stdout] 287 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch13/world.rs:287:38 [INFO] [stdout] | [INFO] [stdout] 287 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `materials::Material` [INFO] [stdout] --> src/bin/ch13/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use materials::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_4`, `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch13/main.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | use std::{borrow::BorrowMut, cell::RefCell}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cone`, `Gradient`, `Ring`, `lights::PointLight` [INFO] [stdout] --> src/bin/ch13/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] 35 | shape::{Cone, Cylinder}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:67:31 [INFO] [stdout] | [INFO] [stdout] 67 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch9/shapes/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch9/shapes/sphere.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch9/shapes/sphere.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 79 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 80 | [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch9/shapes/sphere.rs:79:31 [INFO] [stdout] | [INFO] [stdout] 79 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 80 | [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch9/shapes/sphere.rs:79:38 [INFO] [stdout] | [INFO] [stdout] 79 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 80 | [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::type_name` [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `RefCell` is imported redundantly [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | cell::RefCell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | use super::*; [INFO] [stdout] | -------- the item `RefCell` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rc` is imported redundantly [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | use super::*; [INFO] [stdout] | -------- the item `Rc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | use crate::{ray::Ray, transformations::Transformation, tuple::Tuple}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 49 | [INFO] [stdout] 50 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:48:60 [INFO] [stdout] | [INFO] [stdout] 48 | use crate::{ray::Ray, transformations::Transformation, tuple::Tuple}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 49 | [INFO] [stdout] 50 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch9/transformations.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch9/transformations.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch9/transformations.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch9/transformations.rs:33:31 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch9/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch9/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::is_separator` [INFO] [stdout] --> src/bin/ch9/world.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, path::is_separator, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefMut` [INFO] [stdout] --> src/bin/ch9/world.rs:163:34 [INFO] [stdout] | [INFO] [stdout] 163 | use std::{borrow::BorrowMut, cell::RefMut}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch9/world.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Material` is imported redundantly [INFO] [stdout] --> src/bin/ch9/world.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | materials::Material, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | use super::*; [INFO] [stdout] | -------- the item `Material` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch9/world.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Intersection` is imported redundantly [INFO] [stdout] --> src/bin/ch9/world.rs:169:15 [INFO] [stdout] | [INFO] [stdout] 169 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | use super::*; [INFO] [stdout] | -------- the item `Intersection` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch9/world.rs:169:29 [INFO] [stdout] | [INFO] [stdout] 169 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Sphere` is imported redundantly [INFO] [stdout] --> src/bin/ch9/world.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | shapes::Sphere, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | use super::*; [INFO] [stdout] | -------- the item `Sphere` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Transformation` is imported redundantly [INFO] [stdout] --> src/bin/ch9/world.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | transformations::Transformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | use super::*; [INFO] [stdout] | -------- the item `Transformation` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch9/world.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch9/world.rs:172:24 [INFO] [stdout] | [INFO] [stdout] 172 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch9/world.rs:172:31 [INFO] [stdout] | [INFO] [stdout] 172 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch9/world.rs:172:38 [INFO] [stdout] | [INFO] [stdout] 172 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch9/main.rs:20:52 [INFO] [stdout] | [INFO] [stdout] 20 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch3/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch3/tuple/point.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch3/tuple/vector.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vector::Vector` [INFO] [stdout] --> src/bin/ch3/tuple/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use vector::Vector; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch11/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch5/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch5/matrix.rs:313:24 [INFO] [stdout] | [INFO] [stdout] 313 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 314 | [INFO] [stdout] 315 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch11/camera.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch5/matrix.rs:313:31 [INFO] [stdout] | [INFO] [stdout] 313 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 314 | [INFO] [stdout] 315 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch11/camera.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 78 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch5/ray.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | use crate::{matrix::Matrix, shapes::Sphere, transformations::Transformation}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 83 | [INFO] [stdout] 84 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch11/camera.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `World` is imported redundantly [INFO] [stdout] --> src/bin/ch11/camera.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | world::World, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | use super::*; [INFO] [stdout] | -------- the item `World` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch5/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch5/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch11/lights.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch11/lights.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Stripe` [INFO] [stdout] --> src/bin/ch11/materials.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Stripe, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f64::consts::FRAC_2_PI` [INFO] [stdout] --> src/bin/ch11/materials.rs:90:43 [INFO] [stdout] | [INFO] [stdout] 90 | use std::{f64::consts::FRAC_1_SQRT_2, f64::consts::FRAC_2_PI}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Intersection`, `Plane`, `Ray` [INFO] [stdout] --> src/bin/ch11/materials.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^ [INFO] [stdout] 95 | shape::{Plane, Sphere}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch11/materials.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch11/materials.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch11/materials.rs:96:24 [INFO] [stdout] | [INFO] [stdout] 96 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch11/materials.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch11/matrix.rs:319:24 [INFO] [stdout] | [INFO] [stdout] 319 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 320 | [INFO] [stdout] 321 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch11/matrix.rs:319:31 [INFO] [stdout] | [INFO] [stdout] 319 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 320 | [INFO] [stdout] 321 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch11/pattern/ring.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | [INFO] [stdout] 47 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::Shape` [INFO] [stdout] --> src/bin/ch11/pattern/stripe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | shape::Shape, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch11/pattern/stripe.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Shape` is imported redundantly [INFO] [stdout] --> src/bin/ch11/pattern/stripe.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | shape::{Shape, Sphere}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | use super::*; [INFO] [stdout] | -------- the item `Shape` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch11/pattern/stripe.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | tuple::{Color, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Shape` is imported redundantly [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | shape::{Shape, Sphere}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Shape` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Color, Tuple}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/bin/ch11/ray.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::{Computations, World}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pixel_at` is never used [INFO] [stdout] --> src/bin/ch6/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Canvas { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch6/matrix.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 91 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 92 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DEFAULT_REFLECTION_COUNT`, `tuple::Color` [INFO] [stdout] --> src/bin/ch11/ray.rs:94:73 [INFO] [stdout] | [INFO] [stdout] 94 | matrix::Matrix, shape::Sphere, transformations::Transformation, tuple::Color, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 95 | world::prepare_computations, DEFAULT_REFLECTION_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch6/matrix.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 148 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 149 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `intersections` is never used [INFO] [stdout] --> src/bin/ch6/ray.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn intersections(mut vec: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_transform` is never used [INFO] [stdout] --> src/bin/ch6/ray.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn set_transform(s: Rc>, t: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch11/ray.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | matrix::Matrix, shape::Sphere, transformations::Transformation, tuple::Color, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `id` and `set_transform` are never used [INFO] [stdout] --> src/bin/ch6/shapes/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Shape: Debug { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 12 | fn id(&self) -> usize; [INFO] [stdout] | ^^ [INFO] [stdout] 13 | fn transform(&self) -> Matrix<4>; [INFO] [stdout] 14 | fn set_transform(&mut self, transform: Matrix<4>); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 72 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:72:31 [INFO] [stdout] | [INFO] [stdout] 72 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:94:24 [INFO] [stdout] | [INFO] [stdout] 94 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 95 | [INFO] [stdout] 96 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:94:31 [INFO] [stdout] | [INFO] [stdout] 94 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 95 | [INFO] [stdout] 96 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:94:38 [INFO] [stdout] | [INFO] [stdout] 94 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 95 | [INFO] [stdout] 96 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::type_name` [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `RefCell` is imported redundantly [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | cell::RefCell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | use super::*; [INFO] [stdout] | -------- the item `RefCell` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rc` is imported redundantly [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | use super::*; [INFO] [stdout] | -------- the item `Rc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | use crate::{ray::Ray, transformations::Transformation, tuple::Tuple}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 64 | [INFO] [stdout] 65 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:63:60 [INFO] [stdout] | [INFO] [stdout] 63 | use crate::{ray::Ray, transformations::Transformation, tuple::Tuple}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 64 | [INFO] [stdout] 65 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch11/transformations.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch11/transformations.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch11/transformations.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch11/transformations.rs:33:31 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch11/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch11/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefMut` [INFO] [stdout] --> src/bin/ch11/world.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 276 | cell::RefMut, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch11/world.rs:281:9 [INFO] [stdout] | [INFO] [stdout] 281 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Material` is imported redundantly [INFO] [stdout] --> src/bin/ch11/world.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | materials::Material, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Material` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch11/world.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Intersection` is imported redundantly [INFO] [stdout] --> src/bin/ch11/world.rs:284:30 [INFO] [stdout] | [INFO] [stdout] 284 | ray::{intersections, Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Intersection` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch11/world.rs:284:44 [INFO] [stdout] | [INFO] [stdout] 284 | ray::{intersections, Intersection, Ray}, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Sphere` is imported redundantly [INFO] [stdout] --> src/bin/ch11/world.rs:285:24 [INFO] [stdout] | [INFO] [stdout] 285 | shape::{Plane, Sphere}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Sphere` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Transformation` is imported redundantly [INFO] [stdout] --> src/bin/ch11/world.rs:286:9 [INFO] [stdout] | [INFO] [stdout] 286 | transformations::Transformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Transformation` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tuple` [INFO] [stdout] --> src/bin/ch9/ray.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/ray.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch12/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/ch13/pattern/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &dyn Shape, point: &Point) -> Color { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch12/ray.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `translation`, `scaling`, `shearing`, `rotation_x`, `rotation_y`, and `rotation_z` are never used [INFO] [stdout] --> src/bin/ch6/transformations.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Transformation { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] 2 | fn translation(&self, x: f64, y: f64, z: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 3 | fn scaling(&self, x: f64, y: f64, z: f64) -> Self; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | fn shearing(&self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | fn rotation_x(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 6 | fn rotation_y(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | fn rotation_z(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch12/shape/plane.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tuple` [INFO] [stdout] --> src/bin/ch10/ray.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cross` is never used [INFO] [stdout] --> src/bin/ch6/tuple/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Tuple: Add + Sub + Neg + Mul + Div + Sized { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 20 | fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch11/world.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch11/world.rs:287:24 [INFO] [stdout] | [INFO] [stdout] 287 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch11/world.rs:287:31 [INFO] [stdout] | [INFO] [stdout] 287 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch11/world.rs:287:38 [INFO] [stdout] | [INFO] [stdout] 287 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_4`, `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch11/main.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Gradient`, `Ring`, `Stripe`, `lights::PointLight` [INFO] [stdout] --> src/bin/ch11/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pixel_at` is never used [INFO] [stdout] --> src/bin/ch7/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Canvas { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch7/matrix.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 91 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 92 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch7/matrix.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 148 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 149 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_transform` is never used [INFO] [stdout] --> src/bin/ch7/ray.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn set_transform(s: Rc>, t: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_transform` and `get_mut_material` are never used [INFO] [stdout] --> src/bin/ch7/shapes/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Shape: Debug { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn set_transform(&mut self, transform: Matrix<4>); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 15 | fn material(&self) -> Material; [INFO] [stdout] 16 | fn get_mut_material(&mut self) -> &mut Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pixel_at` is never used [INFO] [stdout] --> src/bin/ch5/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Canvas { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shearing` and `rotation_z` are never used [INFO] [stdout] --> src/bin/ch7/transformations.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Transformation { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 9 | fn shearing(&self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn rotation_z(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transpose` is never used [INFO] [stdout] --> src/bin/ch5/matrix.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Matrix { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn transpose(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch7/world.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl World { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 19 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `t` and `inside` are never read [INFO] [stdout] --> src/bin/ch7/world.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct Computations { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 63 | t: f64, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 68 | inside: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Computations` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch5/matrix.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 91 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 92 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch5/matrix.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 148 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 149 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position` is never used [INFO] [stdout] --> src/bin/ch5/ray.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Ray { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn position(&self, t: f64) -> Point { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `object` is never read [INFO] [stdout] --> src/bin/ch5/ray.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Intersection { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 51 | t: f64, [INFO] [stdout] 52 | object: Rc>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Intersection` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `intersections` is never used [INFO] [stdout] --> src/bin/ch5/ray.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn intersections(mut vec: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `id` is never used [INFO] [stdout] --> src/bin/ch5/shapes/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Shape: Debug { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 8 | fn id(&self) -> usize; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shearing`, `rotation_x`, `rotation_y`, and `rotation_z` are never used [INFO] [stdout] --> src/bin/ch5/transformations.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Transformation { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn shearing(&self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | fn rotation_x(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 6 | fn rotation_y(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | fn rotation_z(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cross` is never used [INFO] [stdout] --> src/bin/ch5/tuple/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Tuple: Add + Sub + Neg + Mul + Div + Sized { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 20 | fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch10/pattern/checkerboard.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch10/pattern/gradient.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch10/pattern/ring.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pixel_at` is never used [INFO] [stdout] --> src/bin/ch8/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Canvas { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch8/matrix.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 91 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 92 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch8/matrix.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 148 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 149 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_transform` is never used [INFO] [stdout] --> src/bin/ch8/ray.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn set_transform(s: Rc>, t: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_transform` and `get_mut_material` are never used [INFO] [stdout] --> src/bin/ch8/shapes/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Shape: Debug { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn set_transform(&mut self, transform: Matrix<4>); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 15 | fn material(&self) -> Material; [INFO] [stdout] 16 | fn get_mut_material(&mut self) -> &mut Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shearing` and `rotation_z` are never used [INFO] [stdout] --> src/bin/ch8/transformations.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Transformation { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 9 | fn shearing(&self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn rotation_z(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch8/world.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl World { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `t`, `point`, and `inside` are never read [INFO] [stdout] --> src/bin/ch8/world.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Computations { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 64 | t: f64, [INFO] [stdout] | ^ [INFO] [stdout] 65 | object: Rc>, [INFO] [stdout] 66 | point: Point, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | inside: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Computations` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch12/pattern/checkerboard.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch12/pattern/gradient.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch12/pattern/ring.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &dyn Shape, point: &Point) -> Color { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch12/shape/cube.rs:58:33 [INFO] [stdout] | [INFO] [stdout] 58 | fn set_transform(&mut self, transform: crate::matrix::Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/bin/ch12/shape/cube.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | fn set_material(&mut self, material: crate::materials::Material) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch12/shape/plane.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Canvas` is never constructed [INFO] [stdout] --> src/bin/ch3/canvas/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Canvas { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write`, `pixel_at`, and `to_ppm` are never used [INFO] [stdout] --> src/bin/ch3/canvas/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Canvas { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(width: usize, height: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn write(&mut self, x: usize, y: usize, color: Color) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn to_ppm(&self, filename: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch3/matrix.rs:90:15 [INFO] [stdout] | [INFO] [stdout] 89 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 90 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch3/matrix.rs:147:15 [INFO] [stdout] | [INFO] [stdout] 146 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 147 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `dot`, `cross`, `magnitude`, and `normalize` are never used [INFO] [stdout] --> src/bin/ch3/tuple/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Tuple: Add + Sub + Neg + Mul + Div + Sized { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 16 | fn dot(&self, other: Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn normalize(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ch10/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut pattern = Checkerboard::new(Color::WHITE, Color::BLACK); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pixel_at` is never used [INFO] [stdout] --> src/bin/ch9/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Canvas { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch9/matrix.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 97 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 98 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch9/matrix.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 154 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 155 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pixel_at` is never used [INFO] [stdout] --> src/bin/ch10/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Canvas { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch10/matrix.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 97 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 98 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_transform` and `get_mut_material` are never used [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Shape: Debug { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 18 | fn set_transform(&mut self, transform: Matrix<4>); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 19 | fn get_material(&self) -> Material; [INFO] [stdout] 20 | fn get_mut_material(self: &mut Self) -> &mut Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shearing` and `rotation_z` are never used [INFO] [stdout] --> src/bin/ch9/transformations.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Transformation { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 9 | fn shearing(&self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn rotation_z(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch10/matrix.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 154 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 155 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch9/world.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl World { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `transform` and `set_transform` are never used [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait Pattern: Debug { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | fn transform(&self) -> Matrix<4>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | fn set_transform(&mut self, transform: Matrix<4>); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_transform`, `set_material`, and `get_mut_material` are never used [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait Shape: Debug { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 19 | fn set_transform(&mut self, transform: Matrix<4>); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 20 | fn get_material(&self) -> &Material; [INFO] [stdout] 21 | fn set_material(&mut self, material: Material); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 22 | fn get_mut_material(&mut self) -> &mut Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `t`, `point`, and `inside` are never read [INFO] [stdout] --> src/bin/ch9/world.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct Computations { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 78 | t: f64, [INFO] [stdout] | ^ [INFO] [stdout] 79 | object: Rc>, [INFO] [stdout] 80 | point: Point, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | inside: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Computations` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shearing` and `rotation_z` are never used [INFO] [stdout] --> src/bin/ch10/transformations.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Transformation { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 9 | fn shearing(&self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn rotation_z(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch10/world.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl World { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `t`, `point`, and `inside` are never read [INFO] [stdout] --> src/bin/ch10/world.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct Computations { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 78 | t: f64, [INFO] [stdout] | ^ [INFO] [stdout] 79 | object: Rc>, [INFO] [stdout] 80 | point: Point, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | inside: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Computations` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch13/shape/plane.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch13/ray.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch13/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch4/matrix.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 91 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 92 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch4/matrix.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 148 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 149 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `dot`, `cross`, `magnitude`, and `normalize` are never used [INFO] [stdout] --> src/bin/ch4/tuple/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Tuple: Add + Sub + Neg + Mul + Div + Sized { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 16 | fn dot(&self, other: Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn normalize(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch4/transformations.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch4/transformations.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch4/transformations.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch4/transformations.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `float_cmp` is never used [INFO] [stdout] --> src/bin/ch12/main.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn float_cmp(first: &f64, second: &f64) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pixel_at` is never used [INFO] [stdout] --> src/bin/ch12/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Canvas { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch12/matrix.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 97 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 98 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch12/matrix.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 154 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 155 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transform` is never used [INFO] [stdout] --> src/bin/ch12/pattern/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait Pattern: Debug { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | fn transform(&self) -> Matrix<4>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch12/pattern/gradient.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Gradient { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(a: Color, b: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch12/pattern/ring.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Ring { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(a: Color, b: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_transform`, `set_material`, and `get_mut_material` are never used [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait Shape: Debug { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 21 | fn set_transform(&mut self, transform: Matrix<4>); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 22 | fn get_material(&self) -> &Material; [INFO] [stdout] 23 | fn set_material(&mut self, material: Material); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 24 | fn get_mut_material(&mut self) -> &mut Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shearing`, `rotation_x`, `rotation_y`, and `rotation_z` are never used [INFO] [stdout] --> src/bin/ch12/transformations.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Transformation { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 9 | fn shearing(&self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | fn rotation_x(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | fn rotation_y(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | fn rotation_z(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `magnitude` is never used [INFO] [stdout] --> src/bin/ch12/tuple/color.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Color { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch12/world.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl World { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch11/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DEFAULT_REFLECTION_COUNT` [INFO] [stdout] --> src/bin/ch11/camera.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | DEFAULT_REFLECTION_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/materials.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Stripe` [INFO] [stdout] --> src/bin/ch11/materials.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Stripe, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/pattern/stripe.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::Shape` [INFO] [stdout] --> src/bin/ch11/pattern/stripe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | shape::Shape, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch1/tuple.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transformations::Transformation` [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | transformations::Transformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/bin/ch11/ray.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::{Computations, World}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{f64::EPSILON, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Intersection`, `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/pattern/checkerboard.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch11/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/pattern/gradient.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch11/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_4`, `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch11/main.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/pattern/ring.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Gradient`, `Ring`, `Stripe`, `lights::PointLight` [INFO] [stdout] --> src/bin/ch11/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/shape/cone.rs:75:33 [INFO] [stdout] | [INFO] [stdout] 75 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/bin/ch13/shape/cone.rs:83:32 [INFO] [stdout] | [INFO] [stdout] 83 | fn set_material(&mut self, material: Material) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/shape/cube.rs:58:33 [INFO] [stdout] | [INFO] [stdout] 58 | fn set_transform(&mut self, transform: crate::matrix::Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/bin/ch13/shape/cube.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | fn set_material(&mut self, material: crate::materials::Material) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &dyn Shape, point: &Point) -> Color { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch4/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/shape/cylinder.rs:76:33 [INFO] [stdout] | [INFO] [stdout] 76 | fn set_transform(&mut self, transform: crate::matrix::Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch4/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch4/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/bin/ch13/shape/cylinder.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | fn set_material(&mut self, material: crate::materials::Material) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch13/shape/plane.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch8/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch8/camera.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch8/camera.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `dot` and `cross` are never used [INFO] [stdout] --> src/bin/ch1/tuple.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl Vector { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn dot(&self, other: Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch8/camera.rs:77:31 [INFO] [stdout] | [INFO] [stdout] 77 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `World` is imported redundantly [INFO] [stdout] --> src/bin/ch8/camera.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | world::World, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `World` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch8/lights.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch8/lights.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch8/materials.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch8/materials.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch8/materials.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch8/materials.rs:67:31 [INFO] [stdout] | [INFO] [stdout] 67 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch8/matrix.rs:313:24 [INFO] [stdout] | [INFO] [stdout] 313 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 314 | [INFO] [stdout] 315 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch8/matrix.rs:313:31 [INFO] [stdout] | [INFO] [stdout] 313 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 314 | [INFO] [stdout] 315 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch8/ray.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | use crate::{matrix::Matrix, shapes::Sphere, transformations::Transformation}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 94 | [INFO] [stdout] 95 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Material` is imported redundantly [INFO] [stdout] --> src/bin/ch8/shapes/sphere.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | materials::Material, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | -------- the item `Material` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch8/shapes/sphere.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch8/shapes/sphere.rs:64:24 [INFO] [stdout] | [INFO] [stdout] 64 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch8/shapes/sphere.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch8/transformations.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch8/transformations.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch8/transformations.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch8/transformations.rs:33:31 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch8/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch8/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::is_separator` [INFO] [stdout] --> src/bin/ch8/world.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, path::is_separator, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch8/world.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Material` is imported redundantly [INFO] [stdout] --> src/bin/ch8/world.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | materials::Material, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | use super::*; [INFO] [stdout] | -------- the item `Material` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch8/world.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Intersection` is imported redundantly [INFO] [stdout] --> src/bin/ch8/world.rs:153:15 [INFO] [stdout] | [INFO] [stdout] 153 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | use super::*; [INFO] [stdout] | -------- the item `Intersection` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch8/world.rs:153:29 [INFO] [stdout] | [INFO] [stdout] 153 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Sphere` is imported redundantly [INFO] [stdout] --> src/bin/ch8/world.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | shapes::Sphere, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | use super::*; [INFO] [stdout] | -------- the item `Sphere` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Transformation` is imported redundantly [INFO] [stdout] --> src/bin/ch8/world.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | transformations::Transformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | use super::*; [INFO] [stdout] | -------- the item `Transformation` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch8/world.rs:156:17 [INFO] [stdout] | [INFO] [stdout] 156 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch8/world.rs:156:24 [INFO] [stdout] | [INFO] [stdout] 156 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch8/world.rs:156:31 [INFO] [stdout] | [INFO] [stdout] 156 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch8/world.rs:156:38 [INFO] [stdout] | [INFO] [stdout] 156 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FRAC_PI_3` [INFO] [stdout] --> src/bin/ch8/main.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `float_cmp` is never used [INFO] [stdout] --> src/bin/ch13/main.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 160 | fn float_cmp(first: &f64, second: &f64) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pixel_at` is never used [INFO] [stdout] --> src/bin/ch13/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Canvas { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch13/matrix.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 97 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 98 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch13/matrix.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 154 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 155 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch6/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transform` is never used [INFO] [stdout] --> src/bin/ch13/pattern/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait Pattern: Debug { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | fn transform(&self) -> Matrix<4>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch13/pattern/gradient.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Gradient { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(a: Color, b: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch13/pattern/ring.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Ring { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(a: Color, b: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_transform`, `set_material`, and `get_mut_material` are never used [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait Shape: Debug { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 25 | fn set_transform(&mut self, transform: Matrix<4>); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | fn get_material(&self) -> &Material; [INFO] [stdout] 27 | fn set_material(&mut self, material: Material); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 28 | fn get_mut_material(&mut self) -> &mut Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch13/shape/cone.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Cone { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 31 | pub fn new(id: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch6/lights.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shearing`, `rotation_x`, `rotation_y`, and `rotation_z` are never used [INFO] [stdout] --> src/bin/ch13/transformations.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Transformation { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 9 | fn shearing(&self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | fn rotation_x(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | fn rotation_y(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | fn rotation_z(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch6/lights.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `magnitude` is never used [INFO] [stdout] --> src/bin/ch13/tuple/color.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Color { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch13/world.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl World { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 21 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch6/materials.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch6/materials.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch6/materials.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch6/materials.rs:66:31 [INFO] [stdout] | [INFO] [stdout] 66 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch6/matrix.rs:313:24 [INFO] [stdout] | [INFO] [stdout] 313 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 314 | [INFO] [stdout] 315 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch6/matrix.rs:313:31 [INFO] [stdout] | [INFO] [stdout] 313 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 314 | [INFO] [stdout] 315 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch6/ray.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | use crate::{matrix::Matrix, shapes::Sphere, transformations::Transformation}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 83 | [INFO] [stdout] 84 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Material` is imported redundantly [INFO] [stdout] --> src/bin/ch6/shapes/sphere.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | materials::Material, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | use super::*; [INFO] [stdout] | -------- the item `Material` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch6/shapes/sphere.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch6/shapes/sphere.rs:60:24 [INFO] [stdout] | [INFO] [stdout] 60 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch6/shapes/sphere.rs:60:31 [INFO] [stdout] | [INFO] [stdout] 60 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch6/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch6/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch3/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch3/matrix.rs:240:24 [INFO] [stdout] | [INFO] [stdout] 240 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 241 | [INFO] [stdout] 242 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch3/matrix.rs:240:31 [INFO] [stdout] | [INFO] [stdout] 240 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 241 | [INFO] [stdout] 242 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch12/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch3/tuple/point.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch3/tuple/vector.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch12/camera.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch12/camera.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 78 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch12/camera.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `World` is imported redundantly [INFO] [stdout] --> src/bin/ch12/camera.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | world::World, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | use super::*; [INFO] [stdout] | -------- the item `World` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch12/lights.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch12/lights.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Stripe` [INFO] [stdout] --> src/bin/ch12/materials.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Stripe, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f64::consts::FRAC_2_PI` [INFO] [stdout] --> src/bin/ch12/materials.rs:90:43 [INFO] [stdout] | [INFO] [stdout] 90 | use std::{f64::consts::FRAC_1_SQRT_2, f64::consts::FRAC_2_PI}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Intersection`, `Plane`, `Ray` [INFO] [stdout] --> src/bin/ch12/materials.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^ [INFO] [stdout] 95 | shape::{Plane, Sphere}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch12/materials.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch12/materials.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch12/materials.rs:96:24 [INFO] [stdout] | [INFO] [stdout] 96 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch12/materials.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch12/matrix.rs:319:24 [INFO] [stdout] | [INFO] [stdout] 319 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 320 | [INFO] [stdout] 321 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch12/matrix.rs:319:31 [INFO] [stdout] | [INFO] [stdout] 319 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 320 | [INFO] [stdout] 321 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch12/pattern/ring.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | [INFO] [stdout] 47 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::Shape` [INFO] [stdout] --> src/bin/ch12/pattern/stripe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | shape::Shape, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch12/pattern/stripe.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Shape` is imported redundantly [INFO] [stdout] --> src/bin/ch12/pattern/stripe.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | shape::{Shape, Sphere}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | use super::*; [INFO] [stdout] | -------- the item `Shape` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch12/pattern/stripe.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | tuple::{Color, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch12/pattern/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch12/pattern/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Shape` is imported redundantly [INFO] [stdout] --> src/bin/ch12/pattern/mod.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | shape::{Shape, Sphere}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Shape` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch12/pattern/mod.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Color, Tuple}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/bin/ch12/ray.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::{Computations, World}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DEFAULT_REFLECTION_COUNT`, `tuple::Color` [INFO] [stdout] --> src/bin/ch12/ray.rs:94:73 [INFO] [stdout] | [INFO] [stdout] 94 | matrix::Matrix, shape::Sphere, transformations::Transformation, tuple::Color, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 95 | world::prepare_computations, DEFAULT_REFLECTION_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch12/ray.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | matrix::Matrix, shape::Sphere, transformations::Transformation, tuple::Color, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Point` [INFO] [stdout] --> src/bin/ch12/shape/cube.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch12/shape/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch12/shape/plane.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 72 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch12/shape/plane.rs:72:31 [INFO] [stdout] | [INFO] [stdout] 72 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch12/shape/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch12/shape/sphere.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch12/shape/sphere.rs:94:24 [INFO] [stdout] | [INFO] [stdout] 94 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 95 | [INFO] [stdout] 96 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch12/shape/sphere.rs:94:31 [INFO] [stdout] | [INFO] [stdout] 94 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 95 | [INFO] [stdout] 96 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch12/shape/sphere.rs:94:38 [INFO] [stdout] | [INFO] [stdout] 94 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 95 | [INFO] [stdout] 96 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::type_name` [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `RefCell` is imported redundantly [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | cell::RefCell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | -------- the item `RefCell` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rc` is imported redundantly [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | -------- the item `Rc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | use crate::{ray::Ray, transformations::Transformation, tuple::Tuple}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 66 | [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:65:60 [INFO] [stdout] | [INFO] [stdout] 65 | use crate::{ray::Ray, transformations::Transformation, tuple::Tuple}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 66 | [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch12/transformations.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch12/transformations.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch12/transformations.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch12/transformations.rs:33:31 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch12/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch12/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefMut` [INFO] [stdout] --> src/bin/ch12/world.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 276 | cell::RefMut, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch12/world.rs:281:9 [INFO] [stdout] | [INFO] [stdout] 281 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Material` is imported redundantly [INFO] [stdout] --> src/bin/ch12/world.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | materials::Material, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Material` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch12/world.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Intersection` is imported redundantly [INFO] [stdout] --> src/bin/ch12/world.rs:284:30 [INFO] [stdout] | [INFO] [stdout] 284 | ray::{intersections, Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Intersection` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch12/world.rs:284:44 [INFO] [stdout] | [INFO] [stdout] 284 | ray::{intersections, Intersection, Ray}, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Sphere` is imported redundantly [INFO] [stdout] --> src/bin/ch12/world.rs:285:24 [INFO] [stdout] | [INFO] [stdout] 285 | shape::{Plane, Sphere}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Sphere` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Transformation` is imported redundantly [INFO] [stdout] --> src/bin/ch12/world.rs:286:9 [INFO] [stdout] | [INFO] [stdout] 286 | transformations::Transformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Transformation` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch12/world.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch12/world.rs:287:24 [INFO] [stdout] | [INFO] [stdout] 287 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch12/world.rs:287:31 [INFO] [stdout] | [INFO] [stdout] 287 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch12/world.rs:287:38 [INFO] [stdout] | [INFO] [stdout] 287 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `materials::Material` [INFO] [stdout] --> src/bin/ch12/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use materials::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_4`, `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch12/main.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Gradient`, `Ring`, `lights::PointLight` [INFO] [stdout] --> src/bin/ch12/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch10/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch10/camera.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch10/camera.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch10/camera.rs:77:31 [INFO] [stdout] | [INFO] [stdout] 77 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `World` is imported redundantly [INFO] [stdout] --> src/bin/ch10/camera.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | world::World, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `World` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch10/lights.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch10/lights.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::tuple::{Color, Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Stripe` [INFO] [stdout] --> src/bin/ch10/materials.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Stripe, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch10/materials.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch10/materials.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch10/materials.rs:88:24 [INFO] [stdout] | [INFO] [stdout] 88 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch10/materials.rs:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch10/matrix.rs:319:24 [INFO] [stdout] | [INFO] [stdout] 319 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 320 | [INFO] [stdout] 321 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch10/matrix.rs:319:31 [INFO] [stdout] | [INFO] [stdout] 319 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 320 | [INFO] [stdout] 321 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch10/pattern/ring.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | use crate::tuple::{Point, Tuple}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | [INFO] [stdout] 47 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::Shape` [INFO] [stdout] --> src/bin/ch10/pattern/stripe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | shape::Shape, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch10/pattern/stripe.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Shape` is imported redundantly [INFO] [stdout] --> src/bin/ch10/pattern/stripe.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | shape::{Shape, Sphere}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | use super::*; [INFO] [stdout] | -------- the item `Shape` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch10/pattern/stripe.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | tuple::{Color, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Shape` is imported redundantly [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | shape::{Shape, Sphere}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Shape` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Color, Tuple}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::world::World` [INFO] [stdout] --> src/bin/ch10/ray.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch10/ray.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | use crate::{matrix::Matrix, shape::Sphere, transformations::Transformation}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 73 | [INFO] [stdout] 74 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 72 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:72:31 [INFO] [stdout] | [INFO] [stdout] 72 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 84 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 85 | [INFO] [stdout] 86 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:84:31 [INFO] [stdout] | [INFO] [stdout] 84 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 85 | [INFO] [stdout] 86 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:84:38 [INFO] [stdout] | [INFO] [stdout] 84 | use crate::tuple::{Point, Tuple, Vector}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 85 | [INFO] [stdout] 86 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::type_name` [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `RefCell` is imported redundantly [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | cell::RefCell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | use super::*; [INFO] [stdout] | -------- the item `RefCell` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rc` is imported redundantly [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | use super::*; [INFO] [stdout] | -------- the item `Rc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | use crate::{ray::Ray, transformations::Transformation, tuple::Tuple}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 52 | [INFO] [stdout] 53 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:51:60 [INFO] [stdout] | [INFO] [stdout] 51 | use crate::{ray::Ray, transformations::Transformation, tuple::Tuple}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 52 | [INFO] [stdout] 53 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch10/transformations.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch10/transformations.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch10/transformations.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch10/transformations.rs:33:31 [INFO] [stdout] | [INFO] [stdout] 33 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch10/tuple/point.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `float_cmp` is imported redundantly [INFO] [stdout] --> src/bin/ch10/tuple/vector.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use float_cmp::{self, approx_eq}; [INFO] [stdout] | ^^^^ the item `float_cmp` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefMut` [INFO] [stdout] --> src/bin/ch10/world.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | use std::cell::RefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PointLight` is imported redundantly [INFO] [stdout] --> src/bin/ch10/world.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | use super::*; [INFO] [stdout] | -------- the item `PointLight` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Material` is imported redundantly [INFO] [stdout] --> src/bin/ch10/world.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | materials::Material, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | use super::*; [INFO] [stdout] | -------- the item `Material` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix` is imported redundantly [INFO] [stdout] --> src/bin/ch10/world.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | matrix::Matrix, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | use super::*; [INFO] [stdout] | -------- the item `Matrix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Intersection` is imported redundantly [INFO] [stdout] --> src/bin/ch10/world.rs:170:15 [INFO] [stdout] | [INFO] [stdout] 170 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | use super::*; [INFO] [stdout] | -------- the item `Intersection` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/bin/ch10/world.rs:170:29 [INFO] [stdout] | [INFO] [stdout] 170 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | use super::*; [INFO] [stdout] | -------- the item `Ray` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Sphere` is imported redundantly [INFO] [stdout] --> src/bin/ch10/world.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | shape::Sphere, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | use super::*; [INFO] [stdout] | -------- the item `Sphere` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Transformation` is imported redundantly [INFO] [stdout] --> src/bin/ch10/world.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | transformations::Transformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | use super::*; [INFO] [stdout] | -------- the item `Transformation` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Color` is imported redundantly [INFO] [stdout] --> src/bin/ch10/world.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | use super::*; [INFO] [stdout] | -------- the item `Color` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Point` is imported redundantly [INFO] [stdout] --> src/bin/ch10/world.rs:173:24 [INFO] [stdout] | [INFO] [stdout] 173 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | use super::*; [INFO] [stdout] | -------- the item `Point` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tuple` is imported redundantly [INFO] [stdout] --> src/bin/ch10/world.rs:173:31 [INFO] [stdout] | [INFO] [stdout] 173 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | use super::*; [INFO] [stdout] | -------- the item `Tuple` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector` is imported redundantly [INFO] [stdout] --> src/bin/ch10/world.rs:173:38 [INFO] [stdout] | [INFO] [stdout] 173 | tuple::{Color, Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | use super::*; [INFO] [stdout] | -------- the item `Vector` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch10/main.rs:21:52 [INFO] [stdout] | [INFO] [stdout] 21 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch5/matrix.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 91 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 92 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch5/matrix.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 148 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 149 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cross` is never used [INFO] [stdout] --> src/bin/ch5/tuple/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Tuple: Add + Sub + Neg + Mul + Div + Sized { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 20 | fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pattern` [INFO] [stdout] --> src/bin/ch11/main.rs:32:39 [INFO] [stdout] | [INFO] [stdout] 32 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/ray.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch5/transformations.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch5/transformations.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch5/transformations.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch5/transformations.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/bin/ch9/world.rs:163:15 [INFO] [stdout] | [INFO] [stdout] 163 | use std::{borrow::BorrowMut, cell::RefMut}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pixel_at` is never used [INFO] [stdout] --> src/bin/ch4/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Canvas { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transpose` is never used [INFO] [stdout] --> src/bin/ch4/matrix.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Matrix { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn transpose(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/ch4/matrix.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 29 | impl Matrix<4> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 30 | pub const IDENTITY: Matrix<4> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn submatrix(&self, row: usize, col: usize) -> Matrix<3> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn determinant(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/ch4/matrix.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 91 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 92 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn submatrix(&self, row: usize, col: usize) -> Matrix<2> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn determinant(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `determinant`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch4/matrix.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 148 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 149 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn determinant(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch7/matrix.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 91 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 92 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `scaling`, `shearing`, `rotation_x`, and `rotation_y` are never used [INFO] [stdout] --> src/bin/ch4/transformations.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Transformation { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] 2 | fn translation(&self, x: f64, y: f64, z: f64) -> Self; [INFO] [stdout] 3 | fn scaling(&self, x: f64, y: f64, z: f64) -> Self; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | fn shearing(&self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | fn rotation_x(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 6 | fn rotation_y(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch7/matrix.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 148 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 149 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `dot`, `cross`, `magnitude`, and `normalize` are never used [INFO] [stdout] --> src/bin/ch4/tuple/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Tuple: Add + Sub + Neg + Mul + Div + Sized { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 16 | fn dot(&self, other: Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn normalize(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/ch12/pattern/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &dyn Shape, point: &Point) -> Color { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch7/transformations.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch7/transformations.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch7/transformations.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch7/transformations.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch11/pattern/checkerboard.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch11/pattern/gradient.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch11/pattern/ring.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &dyn Shape, point: &Point) -> Color { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ch11/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut pattern = Checkerboard::new(Color::WHITE, Color::BLACK); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pixel_at` is never used [INFO] [stdout] --> src/bin/ch11/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Canvas { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch11/matrix.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 97 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 98 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch11/matrix.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 154 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 155 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `transform` and `set_transform` are never used [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait Pattern: Debug { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | fn transform(&self) -> Matrix<4>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | fn set_transform(&mut self, transform: Matrix<4>); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch11/pattern/gradient.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Gradient { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(a: Color, b: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch11/pattern/ring.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Ring { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(a: Color, b: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch11/pattern/stripe.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Stripe { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 21 | pub fn new(a: Color, b: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_transform`, `set_material`, and `get_mut_material` are never used [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait Shape: Debug { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 19 | fn set_transform(&mut self, transform: Matrix<4>); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 20 | fn get_material(&self) -> &Material; [INFO] [stdout] 21 | fn set_material(&mut self, material: Material); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 22 | fn get_mut_material(&mut self) -> &mut Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shearing`, `rotation_y`, and `rotation_z` are never used [INFO] [stdout] --> src/bin/ch11/transformations.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Transformation { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 9 | fn shearing(&self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | fn rotation_x(&self, r: f64) -> Self; [INFO] [stdout] 11 | fn rotation_y(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | fn rotation_z(&self, r: f64) -> Self; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `magnitude` is never used [INFO] [stdout] --> src/bin/ch11/tuple/color.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Color { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/ch11/world.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl World { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_ppm` is never used [INFO] [stdout] --> src/bin/ch3/canvas/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Canvas { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn to_ppm(&self, filename: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch3/matrix.rs:90:15 [INFO] [stdout] | [INFO] [stdout] 89 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 90 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch3/matrix.rs:147:15 [INFO] [stdout] | [INFO] [stdout] 146 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 147 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `dot`, `cross`, `magnitude`, and `normalize` are never used [INFO] [stdout] --> src/bin/ch3/tuple/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Tuple: Add + Sub + Neg + Mul + Div + Sized { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 16 | fn dot(&self, other: Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn normalize(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pattern` [INFO] [stdout] --> src/bin/ch11/main.rs:32:39 [INFO] [stdout] | [INFO] [stdout] 32 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/ray.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch13/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch13/shape/plane.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch13/ray.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch11/pattern/checkerboard.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch11/pattern/gradient.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch11/pattern/ring.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/pattern/checkerboard.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch9/matrix.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 97 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 98 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch9/matrix.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 154 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 155 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/pattern/gradient.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/pattern/ring.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch9/transformations.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch9/transformations.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch9/transformations.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch9/transformations.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch6/matrix.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 91 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 92 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch6/matrix.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 148 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 149 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cross` is never used [INFO] [stdout] --> src/bin/ch6/tuple/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Tuple: Add + Sub + Neg + Mul + Div + Sized { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 20 | fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 59 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch6/transformations.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch6/transformations.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch6/transformations.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch6/transformations.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/shape/cone.rs:75:33 [INFO] [stdout] | [INFO] [stdout] 75 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/bin/ch13/shape/cone.rs:83:32 [INFO] [stdout] | [INFO] [stdout] 83 | fn set_material(&mut self, material: Material) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/shape/cube.rs:58:33 [INFO] [stdout] | [INFO] [stdout] 58 | fn set_transform(&mut self, transform: crate::matrix::Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/bin/ch13/shape/cube.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | fn set_material(&mut self, material: crate::materials::Material) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/shape/cylinder.rs:76:33 [INFO] [stdout] | [INFO] [stdout] 76 | fn set_transform(&mut self, transform: crate::matrix::Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/bin/ch13/shape/cylinder.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | fn set_material(&mut self, material: crate::materials::Material) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch13/shape/plane.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ch11/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut pattern = Checkerboard::new(Color::WHITE, Color::BLACK); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch11/matrix.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 97 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 98 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch11/matrix.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 154 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 155 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_material` is never used [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait Shape: Debug { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 21 | fn set_material(&mut self, material: Material); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `magnitude` is never used [INFO] [stdout] --> src/bin/ch11/tuple/color.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Color { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Schlick_approximation_under_total_internal_reflection` should have a snake case name [INFO] [stdout] --> src/bin/ch11/ray.rs:348:8 [INFO] [stdout] | [INFO] [stdout] 348 | fn Schlick_approximation_under_total_internal_reflection() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `schlick_approximation_under_total_internal_reflection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch11/transformations.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch11/transformations.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch11/transformations.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch11/transformations.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 83 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/ray.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch12/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch12/ray.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch12/shape/plane.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch8/matrix.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 91 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 92 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch8/matrix.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 148 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 149 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch8/transformations.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch8/transformations.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch8/transformations.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch8/transformations.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `float_cmp` is never used [INFO] [stdout] --> src/bin/ch13/main.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 160 | fn float_cmp(first: &f64, second: &f64) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch13/matrix.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 97 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 98 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch13/matrix.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 154 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 155 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_material` is never used [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait Shape: Debug { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 27 | fn set_material(&mut self, material: Material); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `magnitude` is never used [INFO] [stdout] --> src/bin/ch13/tuple/color.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Color { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Schlick_approximation_under_total_internal_reflection` should have a snake case name [INFO] [stdout] --> src/bin/ch13/ray.rs:348:8 [INFO] [stdout] | [INFO] [stdout] 348 | fn Schlick_approximation_under_total_internal_reflection() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `schlick_approximation_under_total_internal_reflection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch13/transformations.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch13/transformations.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch13/transformations.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch13/transformations.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch10/pattern/checkerboard.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 98 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch10/pattern/gradient.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch10/pattern/ring.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch12/pattern/checkerboard.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch12/pattern/gradient.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch12/pattern/ring.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch12/shape/cube.rs:58:33 [INFO] [stdout] | [INFO] [stdout] 58 | fn set_transform(&mut self, transform: crate::matrix::Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/bin/ch12/shape/cube.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | fn set_material(&mut self, material: crate::materials::Material) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch12/shape/plane.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ch10/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut pattern = Checkerboard::new(Color::WHITE, Color::BLACK); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch10/matrix.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 97 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 98 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch10/matrix.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 154 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 155 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_material` is never used [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait Shape: Debug { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 21 | fn set_material(&mut self, material: Material); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch10/transformations.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch10/transformations.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch10/transformations.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch10/transformations.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 76 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `float_cmp` is never used [INFO] [stdout] --> src/bin/ch12/main.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn float_cmp(first: &f64, second: &f64) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch12/matrix.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 97 | impl Matrix<3> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 98 | pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IDENTITY`, `minor`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/bin/ch12/matrix.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 154 | impl Matrix<2> { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 155 | pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_material` is never used [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait Shape: Debug { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 23 | fn set_material(&mut self, material: Material); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `magnitude` is never used [INFO] [stdout] --> src/bin/ch12/tuple/color.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Color { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Schlick_approximation_under_total_internal_reflection` should have a snake case name [INFO] [stdout] --> src/bin/ch12/ray.rs:348:8 [INFO] [stdout] | [INFO] [stdout] 348 | fn Schlick_approximation_under_total_internal_reflection() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `schlick_approximation_under_total_internal_reflection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch12/transformations.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch12/transformations.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch12/transformations.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch12/transformations.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 86 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.50s [INFO] running `Command { std: "docker" "inspect" "1defaec4228ad02ff4733891d77da3ebf98deab92375c70ff3985faf570e8913", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1defaec4228ad02ff4733891d77da3ebf98deab92375c70ff3985faf570e8913", kill_on_drop: false }` [INFO] [stdout] 1defaec4228ad02ff4733891d77da3ebf98deab92375c70ff3985faf570e8913