[INFO] cloning repository https://github.com/WhoamiUnderscore/graphical_engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/WhoamiUnderscore/graphical_engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWhoamiUnderscore%2Fgraphical_engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWhoamiUnderscore%2Fgraphical_engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a979ac2e5a60ea1a7e0ee4140dfee90dc5f2d261 [INFO] checking WhoamiUnderscore/graphical_engine against try#f70ee28831acc074c109afab32d287057c3eca46 for pr-149389-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWhoamiUnderscore%2Fgraphical_engine" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/WhoamiUnderscore/graphical_engine [INFO] finished tweaking git repo https://github.com/WhoamiUnderscore/graphical_engine [INFO] tweaked toml for git repo https://github.com/WhoamiUnderscore/graphical_engine written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/WhoamiUnderscore/graphical_engine on toolchain f70ee28831acc074c109afab32d287057c3eca46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/WhoamiUnderscore/graphical_engine already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b7b564e2a86a19d1593cdf600a61ef111632cc06f575ac15d048a2054630a32d [INFO] running `Command { std: "docker" "start" "-a" "b7b564e2a86a19d1593cdf600a61ef111632cc06f575ac15d048a2054630a32d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b7b564e2a86a19d1593cdf600a61ef111632cc06f575ac15d048a2054630a32d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7b564e2a86a19d1593cdf600a61ef111632cc06f575ac15d048a2054630a32d", kill_on_drop: false }` [INFO] [stdout] b7b564e2a86a19d1593cdf600a61ef111632cc06f575ac15d048a2054630a32d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f5a59490b229c9fbecef367ae06a6dc98aed4840c09abf0a486df97b92765fa [INFO] running `Command { std: "docker" "start" "-a" "6f5a59490b229c9fbecef367ae06a6dc98aed4840c09abf0a486df97b92765fa", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v1.0.4 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Checking libloading v0.8.9 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking linux-raw-sys v0.11.0 [INFO] [stderr] Compiling find-msvc-tools v0.1.5 [INFO] [stderr] Compiling wayland-sys v0.31.7 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling wayland-client v0.31.11 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling cc v1.2.46 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Compiling quick-xml v0.37.5 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking allocator-api2 v0.2.21 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Compiling khronos-egl v6.0.0 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Checking lock_api v0.4.14 [INFO] [stderr] Compiling wayland-scanner v0.31.7 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Compiling wayland-backend v0.3.11 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Compiling wgpu-hal v0.19.5 [INFO] [stderr] Checking gpu-alloc-types v0.3.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking spirv v0.3.0+sdk-1.3.268.0 [INFO] [stderr] Checking gpu-descriptor-types v0.1.2 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking unicode-xid v0.2.6 [INFO] [stderr] Checking hexf-parse v0.2.1 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Checking raw-window-handle v0.6.2 [INFO] [stderr] Checking gpu-alloc v0.6.0 [INFO] [stderr] Checking gpu-descriptor v0.2.4 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling wgpu-core v0.19.4 [INFO] [stderr] Checking wgpu-types v0.19.2 [INFO] [stderr] Checking xkeysym v0.2.1 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking strict-num v0.1.1 [INFO] [stderr] Compiling smithay-client-toolkit v0.19.2 [INFO] [stderr] Checking xcursor v0.3.10 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Checking cursor-icon v1.2.0 [INFO] [stderr] Checking glow v0.13.1 [INFO] [stderr] Checking ttf-parser v0.25.1 [INFO] [stderr] Checking renderdoc-sys v1.1.0 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Checking memmap2 v0.9.9 [INFO] [stderr] Checking safe_arch v0.7.4 [INFO] [stderr] Compiling wgpu v0.19.4 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.10 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling winit v0.30.12 [INFO] [stderr] Checking naga v0.19.2 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking wide v0.7.33 [INFO] [stderr] Checking as-raw-xcb-connection v1.0.1 [INFO] [stderr] Checking x11rb-protocol v0.13.2 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking polling v3.11.0 [INFO] [stderr] Checking owned_ttf_parser v0.25.1 [INFO] [stderr] Checking ab_glyph v0.2.32 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking gethostname v1.1.0 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Checking pollster v0.3.0 [INFO] [stderr] Checking smol_str v0.2.2 [INFO] [stderr] Checking ultraviolet v0.9.2 [INFO] [stderr] Checking dpi v0.1.2 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Checking wayland-protocols v0.32.9 [INFO] [stderr] Checking wayland-cursor v0.31.11 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.9 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.9 [INFO] [stderr] Checking sctk-adwaita v0.10.1 [INFO] [stderr] Checking x11rb v0.13.2 [INFO] [stderr] Checking pixels v0.15.0 [INFO] [stderr] Checking graphical_engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `dpi::LogicalSize` [INFO] [stdout] --> src/core/application.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | dpi::LogicalSize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::math::vector::Vector2` [INFO] [stdout] --> src/core/application.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::math::vector::Vector2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::math::triangle::Triangle` [INFO] [stdout] --> src/core/application.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::math::triangle::Triangle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/math/triangle.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | let index = (( vec.y as usize * width as usize + vec.x as usize ) * 4); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - let index = (( vec.y as usize * width as usize + vec.x as usize ) * 4); [INFO] [stdout] 84 + let index = ( vec.y as usize * width as usize + vec.x as usize ) * 4 ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dpi::LogicalSize` [INFO] [stdout] --> src/core/application.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | dpi::LogicalSize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::math::vector::Vector2` [INFO] [stdout] --> src/core/application.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::math::vector::Vector2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::math::triangle::Triangle` [INFO] [stdout] --> src/core/application.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::math::triangle::Triangle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/math/triangle.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | let index = (( vec.y as usize * width as usize + vec.x as usize ) * 4); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - let index = (( vec.y as usize * width as usize + vec.x as usize ) * 4); [INFO] [stdout] 84 + let index = ( vec.y as usize * width as usize + vec.x as usize ) * 4 ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math/triangle.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut min_x = a.x.min(b.x).min(c.x).floor() as i32; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math/triangle.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut max_x = a.x.max(b.x).max(c.x).ceil() as i32; [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/math/triangle.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut min_y = a.y.min(b.y).min(c.y).floor() as i32; [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/math/triangle.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut max_y = a.y.max(b.y).max(c.y).ceil() as i32; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/math/triangle.rs:17:64 [INFO] [stdout] | [INFO] [stdout] 17 | fn draw_triangle_fill(&self, frame: &mut [u8], width: u32, height: u32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scene` is never read [INFO] [stdout] --> src/core/application.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct App { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 21 | pub engine: Option, [INFO] [stdout] 22 | pub scene: Scene, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `view` and `pixels` are never read [INFO] [stdout] --> src/core/engine.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Engine { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 12 | pub viewport: Viewport, [INFO] [stdout] 13 | pub view: View, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub pixels: Pixels<'static>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clear`, `render_scene`, and `render` are never used [INFO] [stdout] --> src/core/engine.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn render_scene(&mut self, scene: &mut Scene) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn render(&mut self, scene: &mut Scene) -> EngineResult<()>{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `aspect_ratio` is never read [INFO] [stdout] --> src/core/viewport.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Viewport { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | pub aspect_ratio: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Viewport` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `camera` is never read [INFO] [stdout] --> src/core/view.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct View { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 5 | pub camera: Camera [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `View` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position`, `fov`, `near`, and `far` are never read [INFO] [stdout] --> src/core/camera.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | pub position: Vector2, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | pub fov: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | pub near: f32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub far: f32 [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Camera` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `triangles` is never read [INFO] [stdout] --> src/core/scene.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 9 | triangles: VecDeque [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push`, `pop`, `triangles_iter`, and `triangles_iter_mut` are never used [INFO] [stdout] --> src/core/scene.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Scene { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn push(&mut self, triangle: Triangle) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn pop(&mut self) -> Option{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn triangles_iter(&self) -> Iter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn triangles_iter_mut(&mut self) -> IterMut { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/core/input.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | KeyDown(KeyCode), [INFO] [stdout] | ------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 - KeyDown(KeyCode), [INFO] [stdout] 8 + KeyDown(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/core/input.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | MouseUp(MouseButton) [INFO] [stdout] | ------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 - MouseUp(MouseButton) [INFO] [stdout] 12 + MouseUp(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/core/error.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum GlobalError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GlobalError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/core/error.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum ApplicationError { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 34 | Unknown [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApplicationError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PixelRenderingError` and `Unknown` are never constructed [INFO] [stdout] --> src/core/error.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum EngineError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 48 | PixelRenderingError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | Unknown [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EngineError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/core/error.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub enum ViewportError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 62 | Unknown [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ViewportError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `InputResult` is never used [INFO] [stdout] --> src/core/error.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | pub type InputResult = Result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/core/error.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub enum InputError { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 73 | Unknown [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InputError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `position` is never read [INFO] [stdout] --> src/math/triangle.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Triangle { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 5 | pub position: [Vector2; 3], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Triangle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `draw`, `edgeFunction`, `draw_triangle_fill`, and `draw_pixel_from_vec2` are never used [INFO] [stdout] --> src/math/triangle.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Triangle { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 9 | pub fn draw(&self, frame: &mut [u8], width: u32, height: u32){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | fn edgeFunction(&self, a: &Vector2, b: &Vector2, c: &Vector2) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn draw_triangle_fill(&self, frame: &mut [u8], width: u32, height: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn draw_pixel_from_vec2(&self, vec: Vector2, frame: &mut [u8], width: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/core/engine.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | viewport.create_window(event_loop, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 20 | let _ = viewport.create_window(event_loop, None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/core/scene.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn triangles_iter(&self) -> Iter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 27 | pub fn triangles_iter(&self) -> Iter<'_, Triangle> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/core/scene.rs:31:31 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn triangles_iter_mut(&mut self) -> IterMut { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 31 | pub fn triangles_iter_mut(&mut self) -> IterMut<'_, Triangle> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `edgeFunction` should have a snake case name [INFO] [stdout] --> src/math/triangle.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn edgeFunction(&self, a: &Vector2, b: &Vector2, c: &Vector2) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `edge_function` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ABP` should have a snake case name [INFO] [stdout] --> src/math/triangle.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let ABP = self.edgeFunction(a, b, &p); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `abp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BCP` should have a snake case name [INFO] [stdout] --> src/math/triangle.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | let BCP = self.edgeFunction(b, c, &p); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `bcp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `CAP` should have a snake case name [INFO] [stdout] --> src/math/triangle.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | let CAP = self.edgeFunction(c, a, &p); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `cap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math/triangle.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut min_x = a.x.min(b.x).min(c.x).floor() as i32; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math/triangle.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut max_x = a.x.max(b.x).max(c.x).ceil() as i32; [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/math/triangle.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut min_y = a.y.min(b.y).min(c.y).floor() as i32; [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/math/triangle.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut max_y = a.y.max(b.y).max(c.y).ceil() as i32; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/math/triangle.rs:17:64 [INFO] [stdout] | [INFO] [stdout] 17 | fn draw_triangle_fill(&self, frame: &mut [u8], width: u32, height: u32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scene` is never read [INFO] [stdout] --> src/core/application.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct App { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 21 | pub engine: Option, [INFO] [stdout] 22 | pub scene: Scene, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `view` and `pixels` are never read [INFO] [stdout] --> src/core/engine.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Engine { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 12 | pub viewport: Viewport, [INFO] [stdout] 13 | pub view: View, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub pixels: Pixels<'static>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clear`, `render_scene`, and `render` are never used [INFO] [stdout] --> src/core/engine.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn render_scene(&mut self, scene: &mut Scene) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn render(&mut self, scene: &mut Scene) -> EngineResult<()>{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `aspect_ratio` is never read [INFO] [stdout] --> src/core/viewport.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Viewport { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | pub aspect_ratio: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Viewport` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `camera` is never read [INFO] [stdout] --> src/core/view.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct View { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 5 | pub camera: Camera [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `View` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position`, `fov`, `near`, and `far` are never read [INFO] [stdout] --> src/core/camera.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | pub position: Vector2, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | pub fov: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | pub near: f32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub far: f32 [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Camera` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `triangles` is never read [INFO] [stdout] --> src/core/scene.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 9 | triangles: VecDeque [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push`, `pop`, `triangles_iter`, and `triangles_iter_mut` are never used [INFO] [stdout] --> src/core/scene.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Scene { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn push(&mut self, triangle: Triangle) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn pop(&mut self) -> Option{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn triangles_iter(&self) -> Iter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn triangles_iter_mut(&mut self) -> IterMut { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/core/input.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | KeyDown(KeyCode), [INFO] [stdout] | ------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 - KeyDown(KeyCode), [INFO] [stdout] 8 + KeyDown(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/core/input.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | MouseUp(MouseButton) [INFO] [stdout] | ------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 - MouseUp(MouseButton) [INFO] [stdout] 12 + MouseUp(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/core/error.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum GlobalError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GlobalError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/core/error.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum ApplicationError { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 34 | Unknown [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApplicationError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PixelRenderingError` and `Unknown` are never constructed [INFO] [stdout] --> src/core/error.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum EngineError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 48 | PixelRenderingError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | Unknown [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EngineError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/core/error.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub enum ViewportError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 62 | Unknown [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ViewportError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `InputResult` is never used [INFO] [stdout] --> src/core/error.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | pub type InputResult = Result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/core/error.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub enum InputError { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 73 | Unknown [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InputError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `position` is never read [INFO] [stdout] --> src/math/triangle.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Triangle { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 5 | pub position: [Vector2; 3], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Triangle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `draw`, `edgeFunction`, `draw_triangle_fill`, and `draw_pixel_from_vec2` are never used [INFO] [stdout] --> src/math/triangle.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Triangle { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 9 | pub fn draw(&self, frame: &mut [u8], width: u32, height: u32){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | fn edgeFunction(&self, a: &Vector2, b: &Vector2, c: &Vector2) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn draw_triangle_fill(&self, frame: &mut [u8], width: u32, height: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn draw_pixel_from_vec2(&self, vec: Vector2, frame: &mut [u8], width: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/core/engine.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | viewport.create_window(event_loop, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 20 | let _ = viewport.create_window(event_loop, None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/core/scene.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn triangles_iter(&self) -> Iter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 27 | pub fn triangles_iter(&self) -> Iter<'_, Triangle> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/core/scene.rs:31:31 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn triangles_iter_mut(&mut self) -> IterMut { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 31 | pub fn triangles_iter_mut(&mut self) -> IterMut<'_, Triangle> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `edgeFunction` should have a snake case name [INFO] [stdout] --> src/math/triangle.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn edgeFunction(&self, a: &Vector2, b: &Vector2, c: &Vector2) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `edge_function` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ABP` should have a snake case name [INFO] [stdout] --> src/math/triangle.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let ABP = self.edgeFunction(a, b, &p); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `abp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BCP` should have a snake case name [INFO] [stdout] --> src/math/triangle.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | let BCP = self.edgeFunction(b, c, &p); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `bcp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `CAP` should have a snake case name [INFO] [stdout] --> src/math/triangle.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | let CAP = self.edgeFunction(c, a, &p); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `cap` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 52s [INFO] running `Command { std: "docker" "inspect" "6f5a59490b229c9fbecef367ae06a6dc98aed4840c09abf0a486df97b92765fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f5a59490b229c9fbecef367ae06a6dc98aed4840c09abf0a486df97b92765fa", kill_on_drop: false }` [INFO] [stdout] 6f5a59490b229c9fbecef367ae06a6dc98aed4840c09abf0a486df97b92765fa