[INFO] cloning repository https://github.com/ivanceras/balisong [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ivanceras/balisong" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivanceras%2Fbalisong", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivanceras%2Fbalisong'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 88dd21bc1f28c15146be6a65b970c4904275f82d [INFO] checking ivanceras/balisong against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivanceras%2Fbalisong" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ivanceras/balisong on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ivanceras/balisong [INFO] finished tweaking git repo https://github.com/ivanceras/balisong [INFO] tweaked toml for git repo https://github.com/ivanceras/balisong written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/ivanceras/balisong already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (num) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] warning: dependency (regex) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] warning: dependency (time) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 6fbbb07c0841748c6a93fafe7bd336ae5a135ea064cda27548ed4e2a623bc576 [INFO] running `Command { std: "docker" "start" "-a" "6fbbb07c0841748c6a93fafe7bd336ae5a135ea064cda27548ed4e2a623bc576", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6fbbb07c0841748c6a93fafe7bd336ae5a135ea064cda27548ed4e2a623bc576", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fbbb07c0841748c6a93fafe7bd336ae5a135ea064cda27548ed4e2a623bc576", kill_on_drop: false }` [INFO] [stdout] 6fbbb07c0841748c6a93fafe7bd336ae5a135ea064cda27548ed4e2a623bc576 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5baf1fb5f2929c850b991f84bbe75551f3ddfa480255e456a5ef554e6cd3d8a7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5baf1fb5f2929c850b991f84bbe75551f3ddfa480255e456a5ef554e6cd3d8a7", kill_on_drop: false }` [INFO] [stderr] warning: dependency (num) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] warning: dependency (regex) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] warning: dependency (time) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Checking libc v0.2.18 [INFO] [stderr] Checking num-traits v0.1.36 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking thread-id v2.0.0 [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking time v0.1.35 [INFO] [stderr] Checking thread_local v0.2.7 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Checking num-integer v0.1.32 [INFO] [stderr] Checking num-complex v0.1.35 [INFO] [stderr] Checking regex v0.1.80 [INFO] [stderr] Checking num-iter v0.1.32 [INFO] [stderr] Checking num-bigint v0.1.35 [INFO] [stderr] Checking num-rational v0.1.35 [INFO] [stderr] Checking num v0.1.36 [INFO] [stderr] Checking balisong v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/location.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | for i in (1..lod.lod+1){ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/location.rs:160:14 [INFO] [stdout] | [INFO] [stdout] 160 | x |= ((morton & ( 1 << 3 * i + 0)) >> ((3 * i) + 0)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/location.rs:161:14 [INFO] [stdout] | [INFO] [stdout] 161 | y |= ((morton & ( 1 << 3 * i + 1)) >> ((3 * i) + 1)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/location.rs:162:14 [INFO] [stdout] | [INFO] [stdout] 162 | z |= ((morton & ( 1 << 3 * i + 2)) >> ((3 * i) + 2)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/voxelizer.rs:13:56 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn voxelize (required_lod:&LOD, shape:T)->(Voxtree){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/renderer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc` [INFO] [stdout] --> src/raytracer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> src/raytracer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::thread::Thread; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/raytracer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::PreciseTime` [INFO] [stdout] --> src/raytracer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use time::PreciseTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::voxtree::Voxtree` [INFO] [stdout] --> src/raytracer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use voxel::voxtree::Voxtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `point::Point` [INFO] [stdout] --> src/raytracer.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use point::Point; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `camera::Camera` [INFO] [stdout] --> src/raytracer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use camera::Camera; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxelizer` [INFO] [stdout] --> src/raytracer.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use voxelizer; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/raytracer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/model.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `color::Color` [INFO] [stdout] --> src/binvox.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use color::Color; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/binvox.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 64 | fn read_header(reader:&mut BufRead)->String{ [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn BufRead` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/binvox.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | fn read_dim(reader:&mut BufRead)->(u64, u64, u64){ [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn BufRead` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/binvox.rs:113:33 [INFO] [stdout] | [INFO] [stdout] 113 | fn read_translation(reader:&mut BufRead)->(f64, f64, f64){ [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn BufRead` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/binvox.rs:144:29 [INFO] [stdout] | [INFO] [stdout] 144 | fn read_scaling(reader:&mut BufRead)->f64{ [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn BufRead` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/binvox.rs:166:26 [INFO] [stdout] | [INFO] [stdout] 166 | fn read_data(reader:&mut BufRead, size:u64)->Voxtree{ [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn BufRead` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::voxtree::Voxtree` [INFO] [stdout] --> src/neighbors.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use voxel::voxtree::Voxtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::vox::Vox` [INFO] [stdout] --> src/voxel/voxgrid.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use voxel::vox::Vox; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/morton.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | x |= ((morton & ( 1 << 3 * i + 0)) >> ((3 * i) + 0)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/morton.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | y |= ((morton & ( 1 << 3 * i + 1)) >> ((3 * i) + 1)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/morton.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | z |= ((morton & ( 1 << 3 * i + 2)) >> ((3 * i) + 2)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/location.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | for i in (1..lod.lod+1){ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/location.rs:160:14 [INFO] [stdout] | [INFO] [stdout] 160 | x |= ((morton & ( 1 << 3 * i + 0)) >> ((3 * i) + 0)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/location.rs:161:14 [INFO] [stdout] | [INFO] [stdout] 161 | y |= ((morton & ( 1 << 3 * i + 1)) >> ((3 * i) + 1)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/location.rs:162:14 [INFO] [stdout] | [INFO] [stdout] 162 | z |= ((morton & ( 1 << 3 * i + 2)) >> ((3 * i) + 2)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/voxelizer.rs:13:56 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn voxelize (required_lod:&LOD, shape:T)->(Voxtree){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/renderer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc` [INFO] [stdout] --> src/raytracer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> src/raytracer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::thread::Thread; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/raytracer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::PreciseTime` [INFO] [stdout] --> src/raytracer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use time::PreciseTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::voxtree::Voxtree` [INFO] [stdout] --> src/raytracer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use voxel::voxtree::Voxtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `point::Point` [INFO] [stdout] --> src/raytracer.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use point::Point; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `camera::Camera` [INFO] [stdout] --> src/raytracer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use camera::Camera; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxelizer` [INFO] [stdout] --> src/raytracer.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use voxelizer; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/raytracer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/model.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `color::Color` [INFO] [stdout] --> src/binvox.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use color::Color; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/binvox.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 64 | fn read_header(reader:&mut BufRead)->String{ [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn BufRead` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/binvox.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | fn read_dim(reader:&mut BufRead)->(u64, u64, u64){ [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn BufRead` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/binvox.rs:113:33 [INFO] [stdout] | [INFO] [stdout] 113 | fn read_translation(reader:&mut BufRead)->(f64, f64, f64){ [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn BufRead` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/binvox.rs:144:29 [INFO] [stdout] | [INFO] [stdout] 144 | fn read_scaling(reader:&mut BufRead)->f64{ [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn BufRead` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/binvox.rs:166:26 [INFO] [stdout] | [INFO] [stdout] 166 | fn read_data(reader:&mut BufRead, size:u64)->Voxtree{ [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn BufRead` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::voxtree::Voxtree` [INFO] [stdout] --> src/neighbors.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use voxel::voxtree::Voxtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::vox::Vox` [INFO] [stdout] --> src/voxel/voxgrid.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use voxel::vox::Vox; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/morton.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | x |= ((morton & ( 1 << 3 * i + 0)) >> ((3 * i) + 0)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/morton.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | y |= ((morton & ( 1 << 3 * i + 1)) >> ((3 * i) + 1)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/morton.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | z |= ((morton & ( 1 << 3 * i + 2)) >> ((3 * i) + 2)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::vox::Vox` [INFO] [stdout] --> src/voxel/voxstream.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use voxel::vox::Vox; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:57:22 [INFO] [stdout] | [INFO] [stdout] 57 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cnt` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let mut cnt = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cnt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 89 | let (iteration, hit) = normals.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cnt` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let mut cnt = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cnt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:118:22 [INFO] [stdout] | [INFO] [stdout] 118 | let (iteration, hit) = normals.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipped` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let mut skipped = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_skipped` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipped` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | let mut skipped = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_skipped` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:290:22 [INFO] [stdout] | [INFO] [stdout] 290 | let (iteration, hit) = initial_normals.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normals` [INFO] [stdout] --> src/voxelizer.rs:307:29 [INFO] [stdout] | [INFO] [stdout] 307 | pub fn mipmap_voxel_normals(normals:&Voxtree)->Voxtree{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_normals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:346:22 [INFO] [stdout] | [INFO] [stdout] 346 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/renderer.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | for t in 0..total{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/renderer.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | Err(why) => panic!("couldn't create file {}", filename), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `low_lod` [INFO] [stdout] --> src/raytracer.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let low_lod = LOD::new(lod.lod-1); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_low_lod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/raytracer.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | let (iteration, hit) = model.normal.is_location_occupied(&vec_location); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen` [INFO] [stdout] --> src/raytracer.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn hit_location(screen:&Screen, lod:&LOD, view_lod:&LOD, ray:&Ray, model:&Model, obj_scale:f64, max_distance:u64)->Option>{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/binvox.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/binvox.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | Err(why) => panic!("error reading header"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/binvox.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::vox::Vox` [INFO] [stdout] --> src/voxel/voxstream.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use voxel::vox::Vox; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/binvox.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | Err(why) => panic!("couldn't read dimension"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/binvox.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/binvox.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | Err(why) => panic!("couldn't read translation"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/binvox.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/binvox.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | Err(why) => panic!("couldn't read scaling"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/binvox.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/binvox.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | Err(why) => panic!("couldn't read data"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_index` is never read [INFO] [stdout] --> src/binvox.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | let mut end_index = 0u64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nr_voxels` is assigned to, but never used [INFO] [stdout] --> src/binvox.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | let mut nr_voxels = 0u64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_nr_voxels` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/binvox.rs:197:21 [INFO] [stdout] | [INFO] [stdout] 197 | for j in index..end_index { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cnt` is assigned to, but never used [INFO] [stdout] --> src/binvox.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | let mut cnt = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cnt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/binvox.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | Err(why) => panic!("couldn't open {}", display), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binvox` [INFO] [stdout] --> src/binvox.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let binvox = Binvox{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_binvox` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/neighbors.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/neighbors.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/neighbors.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/voxel/voxstream.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_tree(&self, location:&Vec)->&Self{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `required_lod` [INFO] [stdout] --> src/voxel/voxstream.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn total_ones(&self, required_lod: &LOD)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_required_lod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/voxel/voxstream.rs:61:31 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn get_content(&self, location:&Vec)->&T{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:57:22 [INFO] [stdout] | [INFO] [stdout] 57 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cnt` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let mut cnt = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cnt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 89 | let (iteration, hit) = normals.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cnt` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let mut cnt = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cnt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:118:22 [INFO] [stdout] | [INFO] [stdout] 118 | let (iteration, hit) = normals.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipped` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let mut skipped = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_skipped` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipped` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | let mut skipped = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_skipped` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:290:22 [INFO] [stdout] | [INFO] [stdout] 290 | let (iteration, hit) = initial_normals.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normals` [INFO] [stdout] --> src/voxelizer.rs:307:29 [INFO] [stdout] | [INFO] [stdout] 307 | pub fn mipmap_voxel_normals(normals:&Voxtree)->Voxtree{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_normals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:346:22 [INFO] [stdout] | [INFO] [stdout] 346 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/renderer.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | for t in 0..total{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/renderer.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | Err(why) => panic!("couldn't create file {}", filename), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `low_lod` [INFO] [stdout] --> src/raytracer.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let low_lod = LOD::new(lod.lod-1); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_low_lod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/raytracer.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | let (iteration, hit) = model.normal.is_location_occupied(&vec_location); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen` [INFO] [stdout] --> src/raytracer.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn hit_location(screen:&Screen, lod:&LOD, view_lod:&LOD, ray:&Ray, model:&Model, obj_scale:f64, max_distance:u64)->Option>{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/binvox.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/binvox.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | Err(why) => panic!("error reading header"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/binvox.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/binvox.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | Err(why) => panic!("couldn't read dimension"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/binvox.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/binvox.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | Err(why) => panic!("couldn't read translation"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/binvox.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/binvox.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | Err(why) => panic!("couldn't read scaling"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/binvox.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/binvox.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | Err(why) => panic!("couldn't read data"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_index` is never read [INFO] [stdout] --> src/binvox.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | let mut end_index = 0u64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nr_voxels` is assigned to, but never used [INFO] [stdout] --> src/binvox.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | let mut nr_voxels = 0u64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_nr_voxels` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/binvox.rs:197:21 [INFO] [stdout] | [INFO] [stdout] 197 | for j in index..end_index { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cnt` is assigned to, but never used [INFO] [stdout] --> src/binvox.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | let mut cnt = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cnt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/binvox.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | Err(why) => panic!("couldn't open {}", display), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binvox` [INFO] [stdout] --> src/binvox.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let binvox = Binvox{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_binvox` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/neighbors.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/neighbors.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/neighbors.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/voxel/voxstream.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_tree(&self, location:&Vec)->&Self{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `required_lod` [INFO] [stdout] --> src/voxel/voxstream.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn total_ones(&self, required_lod: &LOD)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_required_lod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/voxel/voxstream.rs:61:31 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn get_content(&self, location:&Vec)->&T{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> src/morton.rs:177:22 [INFO] [stdout] | [INFO] [stdout] 177 | let (x1,y1,z1) = morton_to_xyz(1, m1);//<---not OK [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y1` [INFO] [stdout] --> src/morton.rs:177:25 [INFO] [stdout] | [INFO] [stdout] 177 | let (x1,y1,z1) = morton_to_xyz(1, m1);//<---not OK [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z1` [INFO] [stdout] --> src/morton.rs:177:28 [INFO] [stdout] | [INFO] [stdout] 177 | let (x1,y1,z1) = morton_to_xyz(1, m1);//<---not OK [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_z1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/voxelizer.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | let mut normals = Voxtree::new(); [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: variable does not need to be mutable [INFO] [stdout] --> src/binvox.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut file = match File::open(&path) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binvox.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binvox.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binvox.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binvox.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binvox.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/voxelizer.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | let mut normals = Voxtree::new(); [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: variable does not need to be mutable [INFO] [stdout] --> src/voxel/voxbit.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let mut top = match stack.pop(){ [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/voxel/voxtree.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | let mut top:&mut Voxtree = match stack.pop(){ [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binvox.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut file = match File::open(&path) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `center` [INFO] [stdout] --> src/shape.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | center:Point, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Prism` [INFO] [stdout] --> src/shape.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Prism{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cylinder` [INFO] [stdout] --> src/shape.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Cylinder{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `linear_to_morton_64` [INFO] [stdout] --> src/location.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn linear_to_morton_64(linear:u64)->u8{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp_location` [INFO] [stdout] --> src/raytracer.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn clamp_location(location:&Vec, view_lod:&LOD)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gamma_correction` [INFO] [stdout] --> src/raytracer.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn gamma_correction(color:Color)->Color{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `version` [INFO] [stdout] --> src/binvox.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | version:String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binvox.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `dim` [INFO] [stdout] --> src/binvox.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | dim:Point, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `translate` [INFO] [stdout] --> src/binvox.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | translate:Vector, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `scale` [INFO] [stdout] --> src/binvox.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | scale:f64 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binvox.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `lod` [INFO] [stdout] --> src/voxel/voxgrid.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | lod:LOD, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bitset` [INFO] [stdout] --> src/voxel/voxgrid.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | bitset:Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> src/voxel/voxgrid.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | content:Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/voxel/voxgrid.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn new(lod:&LOD)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/voxel/voxgrid.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn get(&self, x:u64, y:u64, z:u64)->&T{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_tree` [INFO] [stdout] --> src/voxel/voxstream.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_tree(&self, location:&Vec)->&Self{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binvox.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binvox.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binvox.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let mut line = match reader.read_line(&mut buff) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/voxel/voxbit.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let mut top = match stack.pop(){ [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/voxel/voxtree.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | let mut top:&mut Voxtree = match stack.pop(){ [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `center` [INFO] [stdout] --> src/shape.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | center:Point, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Prism` [INFO] [stdout] --> src/shape.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Prism{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cylinder` [INFO] [stdout] --> src/shape.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Cylinder{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `linear_to_morton_64` [INFO] [stdout] --> src/location.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn linear_to_morton_64(linear:u64)->u8{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp_location` [INFO] [stdout] --> src/raytracer.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn clamp_location(location:&Vec, view_lod:&LOD)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gamma_correction` [INFO] [stdout] --> src/raytracer.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn gamma_correction(color:Color)->Color{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `version` [INFO] [stdout] --> src/binvox.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | version:String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `dim` [INFO] [stdout] --> src/binvox.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | dim:Point, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/renderer.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | tx.send((start, end, line, durations)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `translate` [INFO] [stdout] --> src/binvox.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | translate:Vector, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `scale` [INFO] [stdout] --> src/binvox.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | scale:f64 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/renderer.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | file.write_all(&buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `lod` [INFO] [stdout] --> src/voxel/voxgrid.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | lod:LOD, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bitset` [INFO] [stdout] --> src/voxel/voxgrid.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | bitset:Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> src/voxel/voxgrid.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | content:Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/voxel/voxgrid.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn new(lod:&LOD)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/voxel/voxgrid.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn get(&self, x:u64, y:u64, z:u64)->&T{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_tree` [INFO] [stdout] --> src/voxel/voxstream.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_tree(&self, location:&Vec)->&Self{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/binvox.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | reader.read_to_end(&mut buff); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/neighbors.rs:389:17 [INFO] [stdout] | [INFO] [stdout] 389 | max_dot == dot; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/neighbors.rs:402:17 [INFO] [stdout] | [INFO] [stdout] 402 | max_dot == dot; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/neighbors.rs:415:17 [INFO] [stdout] | [INFO] [stdout] 415 | max_dot == dot; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 96 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/renderer.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | tx.send((start, end, line, durations)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/renderer.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | file.write_all(&buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/binvox.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | reader.read_to_end(&mut buff); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/neighbors.rs:389:17 [INFO] [stdout] | [INFO] [stdout] 389 | max_dot == dot; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/neighbors.rs:402:17 [INFO] [stdout] | [INFO] [stdout] 402 | max_dot == dot; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/neighbors.rs:415:17 [INFO] [stdout] | [INFO] [stdout] 415 | max_dot == dot; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 99 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> examples/render_complex10.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> examples/render_complex10.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::thread::Thread; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts` [INFO] [stdout] --> examples/render_complex10.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::f64::consts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::ray::Ray` [INFO] [stdout] --> examples/render_complex10.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use balisong::ray::Ray; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::vector::Vector` [INFO] [stdout] --> examples/render_complex10.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use balisong::vector::Vector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::color::Color` [INFO] [stdout] --> examples/render_complex10.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use balisong::color::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Sphere` [INFO] [stdout] --> examples/render_complex10.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use balisong::shape::Sphere; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Cube` [INFO] [stdout] --> examples/render_complex10.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use balisong::shape::Cube; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Shape` [INFO] [stdout] --> examples/render_complex10.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use balisong::shape::Shape; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::voxelizer` [INFO] [stdout] --> examples/render_complex10.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use balisong::voxelizer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::lod::LOD` [INFO] [stdout] --> examples/render_complex10.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use balisong::lod::LOD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> examples/render_complex256.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> examples/render_complex256.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::thread::Thread; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts` [INFO] [stdout] --> examples/render_complex256.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::f64::consts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::ray::Ray` [INFO] [stdout] --> examples/render_complex256.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use balisong::ray::Ray; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::vector::Vector` [INFO] [stdout] --> examples/render_complex256.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use balisong::vector::Vector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::color::Color` [INFO] [stdout] --> examples/render_complex256.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use balisong::color::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Sphere` [INFO] [stdout] --> examples/render_complex256.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use balisong::shape::Sphere; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Cube` [INFO] [stdout] --> examples/render_complex256.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use balisong::shape::Cube; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Shape` [INFO] [stdout] --> examples/render_complex256.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use balisong::shape::Shape; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::voxelizer` [INFO] [stdout] --> examples/render_complex256.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use balisong::voxelizer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::lod::LOD` [INFO] [stdout] --> examples/render_complex256.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use balisong::lod::LOD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> examples/render_complex64.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> examples/render_complex64.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::thread::Thread; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts` [INFO] [stdout] --> examples/render_complex64.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::f64::consts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::ray::Ray` [INFO] [stdout] --> examples/render_complex64.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use balisong::ray::Ray; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::vector::Vector` [INFO] [stdout] --> examples/render_complex64.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use balisong::vector::Vector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::color::Color` [INFO] [stdout] --> examples/render_complex64.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use balisong::color::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Sphere` [INFO] [stdout] --> examples/render_complex64.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use balisong::shape::Sphere; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Cube` [INFO] [stdout] --> examples/render_complex64.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use balisong::shape::Cube; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Shape` [INFO] [stdout] --> examples/render_complex64.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use balisong::shape::Shape; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::voxelizer` [INFO] [stdout] --> examples/render_complex64.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use balisong::voxelizer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::lod::LOD` [INFO] [stdout] --> examples/render_complex64.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use balisong::lod::LOD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `index` is assigned to, but never used [INFO] [stdout] --> examples/print_morton_64bit.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut index = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_index` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> examples/render_complex10.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let r = limit as u64 / 4 as u64; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `center` [INFO] [stdout] --> examples/render_complex10.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let center = Point::new(cx, cy, cz); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_center` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `voxel_grid_size` [INFO] [stdout] --> examples/render_complex10.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let voxel_grid_size = limit * limit * limit; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_voxel_grid_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> examples/render_complex256.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let r = limit as u64 / 4 as u64; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `center` [INFO] [stdout] --> examples/render_complex256.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let center = Point::new(cx, cy, cz); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_center` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `voxel_grid_size` [INFO] [stdout] --> examples/render_complex256.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let voxel_grid_size = limit * limit * limit; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_voxel_grid_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::voxtree::Voxtree` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use voxel::voxtree::Voxtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `normal::Normal` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use normal::Normal; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::option::Option` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `color::Color` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use color::Color; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/location.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | for i in (1..lod.lod+1){ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/location.rs:160:14 [INFO] [stdout] | [INFO] [stdout] 160 | x |= ((morton & ( 1 << 3 * i + 0)) >> ((3 * i) + 0)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/location.rs:161:14 [INFO] [stdout] | [INFO] [stdout] 161 | y |= ((morton & ( 1 << 3 * i + 1)) >> ((3 * i) + 1)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/location.rs:162:14 [INFO] [stdout] | [INFO] [stdout] 162 | z |= ((morton & ( 1 << 3 * i + 2)) >> ((3 * i) + 2)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::voxtree::Voxtree` [INFO] [stdout] --> src/neighbors.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use voxel::voxtree::Voxtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/voxelizer.rs:13:56 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn voxelize (required_lod:&LOD, shape:T)->(Voxtree){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc` [INFO] [stdout] --> src/raytracer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> examples/render_hairball.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> src/raytracer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::thread::Thread; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/raytracer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::PreciseTime` [INFO] [stdout] --> src/raytracer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use time::PreciseTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::voxtree::Voxtree` [INFO] [stdout] --> src/raytracer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use voxel::voxtree::Voxtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `point::Point` [INFO] [stdout] --> src/raytracer.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use point::Point; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `camera::Camera` [INFO] [stdout] --> src/raytracer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use camera::Camera; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxelizer` [INFO] [stdout] --> src/raytracer.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use voxelizer; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/raytracer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/model.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/renderer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::vox::Vox` [INFO] [stdout] --> src/voxel/voxgrid.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use voxel::vox::Vox; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/morton.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | x |= ((morton & ( 1 << 3 * i + 0)) >> ((3 * i) + 0)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/morton.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | y |= ((morton & ( 1 << 3 * i + 1)) >> ((3 * i) + 1)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/morton.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | z |= ((morton & ( 1 << 3 * i + 2)) >> ((3 * i) + 2)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::voxtree::Voxtree` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use voxel::voxtree::Voxtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `normal::Normal` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use normal::Normal; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::option::Option` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `color::Color` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use color::Color; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/location.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | for i in (1..lod.lod+1){ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/location.rs:160:14 [INFO] [stdout] | [INFO] [stdout] 160 | x |= ((morton & ( 1 << 3 * i + 0)) >> ((3 * i) + 0)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/location.rs:161:14 [INFO] [stdout] | [INFO] [stdout] 161 | y |= ((morton & ( 1 << 3 * i + 1)) >> ((3 * i) + 1)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/location.rs:162:14 [INFO] [stdout] | [INFO] [stdout] 162 | z |= ((morton & ( 1 << 3 * i + 2)) >> ((3 * i) + 2)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::voxtree::Voxtree` [INFO] [stdout] --> src/neighbors.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use voxel::voxtree::Voxtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/voxelizer.rs:13:56 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn voxelize (required_lod:&LOD, shape:T)->(Voxtree){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc` [INFO] [stdout] --> src/raytracer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> src/raytracer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::thread::Thread; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/raytracer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::PreciseTime` [INFO] [stdout] --> src/raytracer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use time::PreciseTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::voxtree::Voxtree` [INFO] [stdout] --> src/raytracer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use voxel::voxtree::Voxtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `point::Point` [INFO] [stdout] --> src/raytracer.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use point::Point; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `camera::Camera` [INFO] [stdout] --> src/raytracer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use camera::Camera; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxelizer` [INFO] [stdout] --> src/raytracer.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use voxelizer; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/raytracer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/model.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/renderer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::vox::Vox` [INFO] [stdout] --> src/voxel/voxgrid.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use voxel::vox::Vox; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/morton.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | x |= ((morton & ( 1 << 3 * i + 0)) >> ((3 * i) + 0)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/morton.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | y |= ((morton & ( 1 << 3 * i + 1)) >> ((3 * i) + 1)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/morton.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | z |= ((morton & ( 1 << 3 * i + 2)) >> ((3 * i) + 2)-i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> examples/render_hairball.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::thread::Thread; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts` [INFO] [stdout] --> examples/render_hairball.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::f64::consts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::ray::Ray` [INFO] [stdout] --> examples/render_hairball.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use balisong::ray::Ray; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::vector::Vector` [INFO] [stdout] --> examples/render_hairball.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use balisong::vector::Vector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::color::Color` [INFO] [stdout] --> examples/render_hairball.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use balisong::color::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Sphere` [INFO] [stdout] --> examples/render_hairball.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use balisong::shape::Sphere; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Cube` [INFO] [stdout] --> examples/render_hairball.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use balisong::shape::Cube; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Shape` [INFO] [stdout] --> examples/render_hairball.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use balisong::shape::Shape; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::voxelizer` [INFO] [stdout] --> examples/render_hairball.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use balisong::voxelizer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::lod::LOD` [INFO] [stdout] --> examples/render_hairball.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use balisong::lod::LOD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> examples/render_ktm_side.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> examples/render_ktm_side.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::thread::Thread; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::ray::Ray` [INFO] [stdout] --> examples/render_ktm_side.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use balisong::ray::Ray; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::vector::Vector` [INFO] [stdout] --> examples/render_ktm_side.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use balisong::vector::Vector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::color::Color` [INFO] [stdout] --> examples/render_ktm_side.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use balisong::color::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Sphere` [INFO] [stdout] --> examples/render_ktm_side.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use balisong::shape::Sphere; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Cube` [INFO] [stdout] --> examples/render_ktm_side.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use balisong::shape::Cube; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::shape::Shape` [INFO] [stdout] --> examples/render_ktm_side.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use balisong::shape::Shape; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::voxelizer` [INFO] [stdout] --> examples/render_ktm_side.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use balisong::voxelizer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::lod::LOD` [INFO] [stdout] --> examples/render_ktm_side.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use balisong::lod::LOD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `balisong::voxel::vox::Vox` [INFO] [stdout] --> examples/render_ktm_side.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use balisong::voxel::vox::Vox; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> examples/render_ktm_side.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let r = limit as u64 / 4 as u64; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `center` [INFO] [stdout] --> examples/render_ktm_side.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let center = Point::new(cx, cy, cz); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_center` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `duration` [INFO] [stdout] --> examples/render_ktm_side.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let duration = start.to(PreciseTime::now()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `voxel_grid_size` [INFO] [stdout] --> examples/render_ktm_side.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let voxel_grid_size = limit * limit * limit; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_voxel_grid_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> examples/render_complex64.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let r = limit as u64 / 4 as u64; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `center` [INFO] [stdout] --> examples/render_complex64.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let center = Point::new(cx, cy, cz); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_center` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `voxel_grid_size` [INFO] [stdout] --> examples/render_complex64.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let voxel_grid_size = limit * limit * limit; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_voxel_grid_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> examples/render_hairball.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let r = limit as u64 / 4 as u64; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `center` [INFO] [stdout] --> examples/render_hairball.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let center = Point::new(cx, cy, cz); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_center` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `voxel_grid_size` [INFO] [stdout] --> examples/render_hairball.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let voxel_grid_size = limit * limit * limit; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_voxel_grid_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxel::vox::Vox` [INFO] [stdout] --> src/voxel/voxstream.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use voxel::vox::Vox; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/neighbors.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/neighbors.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/neighbors.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:57:22 [INFO] [stdout] | [INFO] [stdout] 57 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cnt` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let mut cnt = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cnt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 89 | let (iteration, hit) = normals.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cnt` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let mut cnt = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cnt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:118:22 [INFO] [stdout] | [INFO] [stdout] 118 | let (iteration, hit) = normals.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipped` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let mut skipped = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_skipped` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipped` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | let mut skipped = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_skipped` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:290:22 [INFO] [stdout] | [INFO] [stdout] 290 | let (iteration, hit) = initial_normals.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normals` [INFO] [stdout] --> src/voxelizer.rs:307:29 [INFO] [stdout] | [INFO] [stdout] 307 | pub fn mipmap_voxel_normals(normals:&Voxtree)->Voxtree{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_normals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:346:22 [INFO] [stdout] | [INFO] [stdout] 346 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `low_lod` [INFO] [stdout] --> src/raytracer.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let low_lod = LOD::new(lod.lod-1); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_low_lod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/raytracer.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | let (iteration, hit) = model.normal.is_location_occupied(&vec_location); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen` [INFO] [stdout] --> src/raytracer.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn hit_location(screen:&Screen, lod:&LOD, view_lod:&LOD, ray:&Ray, model:&Model, obj_scale:f64, max_distance:u64)->Option>{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/renderer.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | for t in 0..total{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/renderer.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | Err(why) => panic!("couldn't create file {}", filename), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/voxel/voxstream.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_tree(&self, location:&Vec)->&Self{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `required_lod` [INFO] [stdout] --> src/voxel/voxstream.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn total_ones(&self, required_lod: &LOD)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_required_lod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/voxel/voxstream.rs:61:31 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn get_content(&self, location:&Vec)->&T{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let mut normals = voxelizer::voxelize(&lod, shape); [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: unused import: `voxel::vox::Vox` [INFO] [stdout] --> src/voxel/voxstream.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use voxel::vox::Vox; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/voxelizer.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | let mut normals = Voxtree::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/neighbors.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/neighbors.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/neighbors.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:57:22 [INFO] [stdout] | [INFO] [stdout] 57 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cnt` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let mut cnt = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cnt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 89 | let (iteration, hit) = normals.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cnt` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let mut cnt = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cnt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:118:22 [INFO] [stdout] | [INFO] [stdout] 118 | let (iteration, hit) = normals.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipped` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let mut skipped = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_skipped` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipped` is assigned to, but never used [INFO] [stdout] --> src/voxelizer.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | let mut skipped = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_skipped` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:290:22 [INFO] [stdout] | [INFO] [stdout] 290 | let (iteration, hit) = initial_normals.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normals` [INFO] [stdout] --> src/voxelizer.rs:307:29 [INFO] [stdout] | [INFO] [stdout] 307 | pub fn mipmap_voxel_normals(normals:&Voxtree)->Voxtree{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_normals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/voxelizer.rs:346:22 [INFO] [stdout] | [INFO] [stdout] 346 | let (iteration, hit) = node.is_location_occupied(&loc); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `low_lod` [INFO] [stdout] --> src/raytracer.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let low_lod = LOD::new(lod.lod-1); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_low_lod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/raytracer.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | let (iteration, hit) = model.normal.is_location_occupied(&vec_location); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen` [INFO] [stdout] --> src/raytracer.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn hit_location(screen:&Screen, lod:&LOD, view_lod:&LOD, ray:&Ray, model:&Model, obj_scale:f64, max_distance:u64)->Option>{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/renderer.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | for t in 0..total{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/renderer.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | Err(why) => panic!("couldn't create file {}", filename), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/voxel/voxstream.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_tree(&self, location:&Vec)->&Self{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `required_lod` [INFO] [stdout] --> src/voxel/voxstream.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn total_ones(&self, required_lod: &LOD)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_required_lod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/voxel/voxstream.rs:61:31 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn get_content(&self, location:&Vec)->&T{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> src/morton.rs:177:22 [INFO] [stdout] | [INFO] [stdout] 177 | let (x1,y1,z1) = morton_to_xyz(1, m1);//<---not OK [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y1` [INFO] [stdout] --> src/morton.rs:177:25 [INFO] [stdout] | [INFO] [stdout] 177 | let (x1,y1,z1) = morton_to_xyz(1, m1);//<---not OK [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z1` [INFO] [stdout] --> src/morton.rs:177:28 [INFO] [stdout] | [INFO] [stdout] 177 | let (x1,y1,z1) = morton_to_xyz(1, m1);//<---not OK [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_z1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let mut normals = voxelizer::voxelize(&lod, shape); [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: variable does not need to be mutable [INFO] [stdout] --> src/voxel/voxbit.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let mut top = match stack.pop(){ [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/voxel/voxtree.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | let mut top:&mut Voxtree = match stack.pop(){ [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `center` [INFO] [stdout] --> src/shape.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | center:Point, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Prism` [INFO] [stdout] --> src/shape.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Prism{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cylinder` [INFO] [stdout] --> src/shape.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Cylinder{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/shape.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn new(radius:u64, center:&Point)->Cube{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/normal.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(x:i8, y:i8, z:i8)->Normal{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_f64` [INFO] [stdout] --> src/normal.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn from_f64(x:f64, y:f64, z:f64)->Normal{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_point` [INFO] [stdout] --> src/vector.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn add_point(&self, point:&Point)->Vector{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `red` [INFO] [stdout] --> src/color.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn red()->Color{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `green` [INFO] [stdout] --> src/color.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn green()->Color{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `blue` [INFO] [stdout] --> src/color.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn blue()->Color{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_xyz_orig` [INFO] [stdout] --> src/location.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn from_xyz_orig(lod:&LOD, x:u64, y:u64, z:u64)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `to_xyz_orig` [INFO] [stdout] --> src/location.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn to_xyz_orig(location:&Vec)->(u64, u64, u64){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_xyz_morton` [INFO] [stdout] --> src/location.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn from_xyz_morton(lod:&LOD, x:u64, y:u64, z:u64)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `to_xyz_morton` [INFO] [stdout] --> src/location.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn to_xyz_morton(location:&Vec)->(u64, u64, u64){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_xyz_top_down` [INFO] [stdout] --> src/location.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn from_xyz_top_down(lod:&LOD, x:u64, y:u64, z:u64)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `linear_to_morton_64` [INFO] [stdout] --> src/location.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn linear_to_morton_64(linear:u64)->u8{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xyz_to_index` [INFO] [stdout] --> src/location.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn xyz_to_index(lod:&LOD, x:u64, y:u64, z:u64)->u64{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `index_to_xyz` [INFO] [stdout] --> src/location.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 194 | pub fn index_to_xyz(lod:&LOD, idx:u64)->(u64, u64, u64){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_semi_occluded` [INFO] [stdout] --> src/neighbors.rs:335:8 [INFO] [stdout] | [INFO] [stdout] 335 | pub fn is_semi_occluded(node:&Voxbit, lod:&LOD, point:&Point)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_closest_occluded_neighbor` [INFO] [stdout] --> src/neighbors.rs:343:8 [INFO] [stdout] | [INFO] [stdout] 343 | pub fn get_closest_occluded_neighbor(node:&Voxbit, lod:&LOD, point:&Point)->Option{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_closest_empty_neighbor` [INFO] [stdout] --> src/neighbors.rs:427:8 [INFO] [stdout] | [INFO] [stdout] 427 | pub fn get_closest_empty_neighbor(node:&Voxbit, lod:&LOD, point:&Point)->Option{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_lower_lod_normals` [INFO] [stdout] --> src/voxelizer.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn calculate_lower_lod_normals(node:&Voxbit, mut normals:Voxtree, lod:&LOD)->Voxtree{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_lower_lod_normals_using_average` [INFO] [stdout] --> src/voxelizer.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn calculate_lower_lod_normals_using_average(node:&Voxbit, mut normals:Voxtree, orig_normals:&Voxtree, lod:&LOD)->Vox... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_children_normals` [INFO] [stdout] --> src/voxelizer.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn calculate_children_normals(children:&Vec>)->Normal{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_average_normal` [INFO] [stdout] --> src/voxelizer.rs:143:4 [INFO] [stdout] | [INFO] [stdout] 143 | fn calculate_average_normal(normals:Vec)->Normal{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `smoothen_normals` [INFO] [stdout] --> src/voxelizer.rs:273:8 [INFO] [stdout] | [INFO] [stdout] 273 | pub fn smoothen_normals(node:&Voxbit, initial_normals:&Voxtree, lod:&LOD)->Voxtree{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mipmap_voxel_normals` [INFO] [stdout] --> src/voxelizer.rs:307:8 [INFO] [stdout] | [INFO] [stdout] 307 | pub fn mipmap_voxel_normals(normals:&Voxtree)->Voxtree{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_average_normal` [INFO] [stdout] --> src/voxelizer.rs:312:4 [INFO] [stdout] | [INFO] [stdout] 312 | fn get_average_normal(node:&Voxbit, normals:&Voxtree, lod:&LOD, point:&Point)->Normal{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `carve_out` [INFO] [stdout] --> src/voxelizer.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn carve_out(node:&Voxbit, lod:&LOD)->Voxtree{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_at` [INFO] [stdout] --> src/camera.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn look_at(&mut self, lookat:&Point){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `default` [INFO] [stdout] --> src/camera.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn default()->Camera{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `at_pixel_up_y` [INFO] [stdout] --> src/screen.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn at_pixel_up_y(&self, px:i64, py:i64)->Vector{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_view_lod` [INFO] [stdout] --> src/screen.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get_view_lod(&self)->LOD{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_required_lod` [INFO] [stdout] --> src/screen.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn get_required_lod(&self, view_lod:u8, distance:f64)->i8{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `at_lod_length` [INFO] [stdout] --> src/ray.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn at_lod_length(&self, lod:&LOD, view_lod:&LOD, length:f64)->Vector{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp_location` [INFO] [stdout] --> src/raytracer.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn clamp_location(location:&Vec, view_lod:&LOD)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gamma_correction` [INFO] [stdout] --> src/raytracer.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn gamma_correction(color:Color)->Color{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `PRECALCULATE_NORMALS` [INFO] [stdout] --> src/constants.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub static PRECALCULATE_NORMALS:bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `USE_GAMMA_CORRECTION` [INFO] [stdout] --> src/constants.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub static USE_GAMMA_CORRECTION:bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `SMOOTHEN_NORMALS` [INFO] [stdout] --> src/constants.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub static SMOOTHEN_NORMALS:bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `SMOOTHING_ITERATION` [INFO] [stdout] --> src/constants.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub static SMOOTHING_ITERATION:usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `MORTON_BASE` [INFO] [stdout] --> src/constants.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub static MORTON_BASE:u8 = 1; //(BASE/2) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inc` [INFO] [stdout] --> src/lod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn inc(&mut self, inc:u8){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_volume` [INFO] [stdout] --> src/lod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn from_volume(volume:u64)->LOD{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Voxgrid` [INFO] [stdout] --> src/voxel/voxgrid.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Voxgrid{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/voxel/voxgrid.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn new(lod:&LOD)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/voxelizer.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | let mut normals = Voxtree::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/voxel/voxgrid.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn get(&self, x:u64, y:u64, z:u64)->&T{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Voxstream` [INFO] [stdout] --> src/voxel/voxstream.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Voxstream{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/voxel/voxstream.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new()->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_tree` [INFO] [stdout] --> src/voxel/voxstream.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_tree(&self, location:&Vec)->&Self{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `total_ones` [INFO] [stdout] --> src/voxel/voxstream.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn total_ones(&self, required_lod: &LOD)->usize{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert_root` [INFO] [stdout] --> src/voxel/voxstream.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn insert_root(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_content` [INFO] [stdout] --> src/voxel/voxstream.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn get_content(&self, location:&Vec)->&T{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `morton_to_xyz` [INFO] [stdout] --> src/morton.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn morton_to_xyz(base:u8, morton:u64)->(u64, u64, u64){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xyz_to_morton` [INFO] [stdout] --> src/morton.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn xyz_to_morton(base:u8, x:u64, y:u64, z:u64)->u64{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/neighbors.rs:389:17 [INFO] [stdout] | [INFO] [stdout] 389 | max_dot == dot; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/neighbors.rs:402:17 [INFO] [stdout] | [INFO] [stdout] 402 | max_dot == dot; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/neighbors.rs:415:17 [INFO] [stdout] | [INFO] [stdout] 415 | max_dot == dot; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/voxel/voxbit.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let mut top = match stack.pop(){ [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/voxel/voxtree.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | let mut top:&mut Voxtree = match stack.pop(){ [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/renderer.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | tx.send((start, end, line, durations)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/renderer.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | file.write_all(&buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 111 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `center` [INFO] [stdout] --> src/shape.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | center:Point, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Prism` [INFO] [stdout] --> src/shape.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Prism{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cylinder` [INFO] [stdout] --> src/shape.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Cylinder{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/shape.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn new(radius:u64, center:&Point)->Cube{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/normal.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(x:i8, y:i8, z:i8)->Normal{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_f64` [INFO] [stdout] --> src/normal.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn from_f64(x:f64, y:f64, z:f64)->Normal{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_point` [INFO] [stdout] --> src/vector.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn add_point(&self, point:&Point)->Vector{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `red` [INFO] [stdout] --> src/color.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn red()->Color{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `green` [INFO] [stdout] --> src/color.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn green()->Color{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `blue` [INFO] [stdout] --> src/color.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn blue()->Color{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_xyz_top_down` [INFO] [stdout] --> src/location.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn from_xyz_top_down(lod:&LOD, x:u64, y:u64, z:u64)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `linear_to_morton_64` [INFO] [stdout] --> src/location.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn linear_to_morton_64(linear:u64)->u8{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_semi_occluded` [INFO] [stdout] --> src/neighbors.rs:335:8 [INFO] [stdout] | [INFO] [stdout] 335 | pub fn is_semi_occluded(node:&Voxbit, lod:&LOD, point:&Point)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_closest_occluded_neighbor` [INFO] [stdout] --> src/neighbors.rs:343:8 [INFO] [stdout] | [INFO] [stdout] 343 | pub fn get_closest_occluded_neighbor(node:&Voxbit, lod:&LOD, point:&Point)->Option{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_closest_empty_neighbor` [INFO] [stdout] --> src/neighbors.rs:427:8 [INFO] [stdout] | [INFO] [stdout] 427 | pub fn get_closest_empty_neighbor(node:&Voxbit, lod:&LOD, point:&Point)->Option{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_lower_lod_normals` [INFO] [stdout] --> src/voxelizer.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn calculate_lower_lod_normals(node:&Voxbit, mut normals:Voxtree, lod:&LOD)->Voxtree{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_lower_lod_normals_using_average` [INFO] [stdout] --> src/voxelizer.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn calculate_lower_lod_normals_using_average(node:&Voxbit, mut normals:Voxtree, orig_normals:&Voxtree, lod:&LOD)->Vox... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_children_normals` [INFO] [stdout] --> src/voxelizer.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn calculate_children_normals(children:&Vec>)->Normal{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_average_normal` [INFO] [stdout] --> src/voxelizer.rs:143:4 [INFO] [stdout] | [INFO] [stdout] 143 | fn calculate_average_normal(normals:Vec)->Normal{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `smoothen_normals` [INFO] [stdout] --> src/voxelizer.rs:273:8 [INFO] [stdout] | [INFO] [stdout] 273 | pub fn smoothen_normals(node:&Voxbit, initial_normals:&Voxtree, lod:&LOD)->Voxtree{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mipmap_voxel_normals` [INFO] [stdout] --> src/voxelizer.rs:307:8 [INFO] [stdout] | [INFO] [stdout] 307 | pub fn mipmap_voxel_normals(normals:&Voxtree)->Voxtree{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_average_normal` [INFO] [stdout] --> src/voxelizer.rs:312:4 [INFO] [stdout] | [INFO] [stdout] 312 | fn get_average_normal(node:&Voxbit, normals:&Voxtree, lod:&LOD, point:&Point)->Normal{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `carve_out` [INFO] [stdout] --> src/voxelizer.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn carve_out(node:&Voxbit, lod:&LOD)->Voxtree{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_at` [INFO] [stdout] --> src/camera.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn look_at(&mut self, lookat:&Point){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `default` [INFO] [stdout] --> src/camera.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn default()->Camera{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `at_pixel_up_y` [INFO] [stdout] --> src/screen.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn at_pixel_up_y(&self, px:i64, py:i64)->Vector{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_view_lod` [INFO] [stdout] --> src/screen.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get_view_lod(&self)->LOD{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_required_lod` [INFO] [stdout] --> src/screen.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn get_required_lod(&self, view_lod:u8, distance:f64)->i8{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `at_lod_length` [INFO] [stdout] --> src/ray.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn at_lod_length(&self, lod:&LOD, view_lod:&LOD, length:f64)->Vector{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp_location` [INFO] [stdout] --> src/raytracer.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn clamp_location(location:&Vec, view_lod:&LOD)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gamma_correction` [INFO] [stdout] --> src/raytracer.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn gamma_correction(color:Color)->Color{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `PRECALCULATE_NORMALS` [INFO] [stdout] --> src/constants.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub static PRECALCULATE_NORMALS:bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `USE_GAMMA_CORRECTION` [INFO] [stdout] --> src/constants.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub static USE_GAMMA_CORRECTION:bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `SMOOTHEN_NORMALS` [INFO] [stdout] --> src/constants.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub static SMOOTHEN_NORMALS:bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `SMOOTHING_ITERATION` [INFO] [stdout] --> src/constants.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub static SMOOTHING_ITERATION:usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `MORTON_BASE` [INFO] [stdout] --> src/constants.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub static MORTON_BASE:u8 = 1; //(BASE/2) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inc` [INFO] [stdout] --> src/lod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn inc(&mut self, inc:u8){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_volume` [INFO] [stdout] --> src/lod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn from_volume(volume:u64)->LOD{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Voxgrid` [INFO] [stdout] --> src/voxel/voxgrid.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Voxgrid{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/voxel/voxgrid.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn new(lod:&LOD)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/voxel/voxgrid.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn get(&self, x:u64, y:u64, z:u64)->&T{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Voxstream` [INFO] [stdout] --> src/voxel/voxstream.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Voxstream{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/voxel/voxstream.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new()->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_tree` [INFO] [stdout] --> src/voxel/voxstream.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_tree(&self, location:&Vec)->&Self{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `total_ones` [INFO] [stdout] --> src/voxel/voxstream.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn total_ones(&self, required_lod: &LOD)->usize{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert_root` [INFO] [stdout] --> src/voxel/voxstream.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn insert_root(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_content` [INFO] [stdout] --> src/voxel/voxstream.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn get_content(&self, location:&Vec)->&T{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/neighbors.rs:389:17 [INFO] [stdout] | [INFO] [stdout] 389 | max_dot == dot; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/neighbors.rs:402:17 [INFO] [stdout] | [INFO] [stdout] 402 | max_dot == dot; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/neighbors.rs:415:17 [INFO] [stdout] | [INFO] [stdout] 415 | max_dot == dot; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/renderer.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | tx.send((start, end, line, durations)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/renderer.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | file.write_all(&buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 106 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.95s [INFO] running `Command { std: "docker" "inspect" "5baf1fb5f2929c850b991f84bbe75551f3ddfa480255e456a5ef554e6cd3d8a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5baf1fb5f2929c850b991f84bbe75551f3ddfa480255e456a5ef554e6cd3d8a7", kill_on_drop: false }` [INFO] [stdout] 5baf1fb5f2929c850b991f84bbe75551f3ddfa480255e456a5ef554e6cd3d8a7