[INFO] cloning repository https://github.com/tong2prosperity/wgpu_animation [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tong2prosperity/wgpu_animation" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftong2prosperity%2Fwgpu_animation", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftong2prosperity%2Fwgpu_animation'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3b52017914f8e92d0fa5bd081d7ca73cc080b9ca [INFO] linting tong2prosperity/wgpu_animation against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftong2prosperity%2Fwgpu_animation" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tong2prosperity/wgpu_animation [INFO] finished tweaking git repo https://github.com/tong2prosperity/wgpu_animation [INFO] tweaked toml for git repo https://github.com/tong2prosperity/wgpu_animation written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tong2prosperity/wgpu_animation on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tong2prosperity/wgpu_animation 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.93 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.93 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.93 [INFO] [stderr] Downloaded js-sys v0.3.70 [INFO] [stderr] Downloaded glutin_wgl_sys v0.6.0 [INFO] [stderr] Downloaded wayland-sys v0.31.4 [INFO] [stderr] Downloaded bytemuck_derive v1.7.1 [INFO] [stderr] Downloaded thiserror v1.0.63 [INFO] [stderr] Downloaded wayland-protocols-wlr v0.3.3 [INFO] [stderr] Downloaded lyon_geom v1.0.5 [INFO] [stderr] Downloaded wayland-protocols-plasma v0.3.3 [INFO] [stderr] Downloaded wayland-backend v0.3.6 [INFO] [stderr] Downloaded owned_ttf_parser v0.24.0 [INFO] [stderr] Downloaded game-loop v1.2.0 [INFO] [stderr] Downloaded rapier2d v0.22.0 [INFO] [stderr] Downloaded wgpu-core v22.1.0 [INFO] [stderr] Downloaded object v0.36.3 [INFO] [stderr] Downloaded nalgebra v0.33.0 [INFO] [stderr] Downloaded unicode-width v0.1.13 [INFO] [stderr] Downloaded winit v0.30.5 [INFO] [stderr] Downloaded web-sys v0.3.70 [INFO] [stderr] Downloaded lyon v1.0.1 [INFO] [stderr] Downloaded bytemuck v1.17.0 [INFO] [stderr] Downloaded wasm-bindgen v0.2.93 [INFO] [stderr] Downloaded d3d12 v22.0.0 [INFO] [stderr] Downloaded gpu-descriptor v0.3.0 [INFO] [stderr] Downloaded wgpu-types v22.0.0 [INFO] [stderr] Downloaded wayland-cursor v0.31.5 [INFO] [stderr] Downloaded gpu-allocator v0.26.0 [INFO] [stderr] Downloaded ab_glyph v0.2.28 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.93 [INFO] [stderr] Downloaded tokio v1.39.3 [INFO] [stderr] Downloaded libc v0.2.158 [INFO] [stderr] Downloaded metal v0.29.0 [INFO] [stderr] Downloaded spade v2.12.0 [INFO] [stderr] Downloaded regex v1.10.6 [INFO] [stderr] Downloaded indexmap v2.4.0 [INFO] [stderr] Downloaded lyon_tessellation v1.0.15 [INFO] [stderr] Downloaded wayland-protocols v0.32.3 [INFO] [stderr] Downloaded serde v1.0.208 [INFO] [stderr] Downloaded syn v2.0.75 [INFO] [stderr] Downloaded wgpu-hal v22.0.0 [INFO] [stderr] Downloaded ttf-parser v0.24.1 [INFO] [stderr] Downloaded wgpu v22.0.0 [INFO] [stderr] Downloaded quick-xml v0.34.0 [INFO] [stderr] Downloaded cc v1.1.13 [INFO] [stderr] Downloaded euclid v0.22.10 [INFO] [stderr] Downloaded glam v0.29.0 [INFO] [stderr] Downloaded crossbeam-channel v0.5.13 [INFO] [stderr] Downloaded xml-rs v0.8.21 [INFO] [stderr] Downloaded bytes v1.7.1 [INFO] [stderr] Downloaded thiserror-impl v1.0.63 [INFO] [stderr] Downloaded serde_derive v1.0.208 [INFO] [stderr] Downloaded parry2d v0.17.1 [INFO] [stderr] Downloaded wayland-client v0.31.5 [INFO] [stderr] Downloaded wayland-scanner v0.31.4 [INFO] [stderr] Downloaded lyon_algorithms v1.0.4 [INFO] [stderr] Downloaded lyon_path v1.0.5 [INFO] [stderr] Downloaded ordered-float v4.2.2 [INFO] [stderr] Downloaded bit-set v0.6.0 [INFO] [stderr] Downloaded range-alloc v0.1.3 [INFO] [stderr] Downloaded arrayref v0.3.8 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.43 [INFO] [stderr] Downloaded naga v22.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21f2a49ac8e4d31d6625f4c27ad299f503365c37861543db47e7952afc57799d [INFO] running `Command { std: "docker" "start" "-a" "21f2a49ac8e4d31d6625f4c27ad299f503365c37861543db47e7952afc57799d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21f2a49ac8e4d31d6625f4c27ad299f503365c37861543db47e7952afc57799d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21f2a49ac8e4d31d6625f4c27ad299f503365c37861543db47e7952afc57799d", kill_on_drop: false }` [INFO] [stdout] 21f2a49ac8e4d31d6625f4c27ad299f503365c37861543db47e7952afc57799d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6743bc3acbaaa2216ecf4b2691f9cf6ea36ae3d5fdd7a3002aa03350e7fb9a0f [INFO] running `Command { std: "docker" "start" "-a" "6743bc3acbaaa2216ecf4b2691f9cf6ea36ae3d5fdd7a3002aa03350e7fb9a0f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking libloading v0.8.5 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Compiling cc v1.1.13 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling wayland-sys v0.31.4 [INFO] [stderr] Compiling wayland-client v0.31.5 [INFO] [stderr] Compiling quick-xml v0.34.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling wayland-scanner v0.31.4 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking cursor-icon v1.1.0 [INFO] [stderr] Checking xcursor v0.3.8 [INFO] [stderr] Compiling wayland-backend v0.3.6 [INFO] [stderr] Checking memmap2 v0.9.4 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking strict-num v0.1.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking arrayref v0.3.8 [INFO] [stderr] Checking ttf-parser v0.24.1 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Checking bit-vec v0.7.0 [INFO] [stderr] Compiling naga v22.1.0 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Checking euclid v0.22.10 [INFO] [stderr] Compiling khronos-egl v6.0.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Compiling ash v0.38.0+1.3.281 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking bit-set v0.6.0 [INFO] [stderr] Compiling wgpu-hal v22.0.0 [INFO] [stderr] Checking spirv v0.3.0+sdk-1.3.268.0 [INFO] [stderr] Checking lyon_geom v1.0.5 [INFO] [stderr] Checking gpu-descriptor-types v0.2.0 [INFO] [stderr] Checking gpu-alloc-types v0.3.0 [INFO] [stderr] Checking unicode-xid v0.2.4 [INFO] [stderr] Compiling smithay-client-toolkit v0.18.1 [INFO] [stderr] Checking hexf-parse v0.2.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking lyon_path v1.0.5 [INFO] [stderr] Checking gpu-alloc v0.6.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling winit v0.30.5 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking owned_ttf_parser v0.24.0 [INFO] [stderr] Checking ab_glyph v0.2.28 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Compiling wgpu-core v22.1.0 [INFO] [stderr] Checking wgpu-types v22.0.0 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking glow v0.13.1 [INFO] [stderr] Checking robust v1.1.0 [INFO] [stderr] Checking renderdoc-sys v1.1.0 [INFO] [stderr] Checking profiling v1.0.15 [INFO] [stderr] Compiling litrs v0.4.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling bytemuck_derive v1.7.1 [INFO] [stderr] Checking polling v3.7.3 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Checking x11rb v0.13.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking calloop v0.12.4 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking wayland-cursor v0.31.5 [INFO] [stderr] Checking wayland-protocols v0.32.3 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking bytemuck v1.17.0 [INFO] [stderr] Checking wayland-protocols v0.31.2 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Checking safe_arch v0.7.2 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking calloop-wayland-source v0.2.0 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking wide v0.7.28 [INFO] [stderr] Checking indexmap v2.4.0 [INFO] [stderr] Checking gpu-descriptor v0.3.0 [INFO] [stderr] Checking spade v2.12.0 [INFO] [stderr] Compiling document-features v0.2.10 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Checking simba v0.9.0 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking ordered-float v4.2.2 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Compiling winit v0.29.15 [INFO] [stderr] Compiling wgpu v22.0.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rustc-hash v2.0.0 [INFO] [stderr] Checking float_next_after v1.0.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking dpi v0.1.1 [INFO] [stderr] Checking lyon_tessellation v1.0.15 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking lyon_algorithms v1.0.4 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking wayland-protocols-wlr v0.2.0 [INFO] [stderr] Checking wayland-protocols-plasma v0.2.0 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.3 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.3 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking raw-window-handle v0.5.2 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking smithay-client-toolkit v0.19.2 [INFO] [stderr] Checking tokio v1.39.3 [INFO] [stderr] Checking sctk-adwaita v0.8.3 [INFO] [stderr] Checking lyon v1.0.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking sctk-adwaita v0.10.1 [INFO] [stderr] Checking glam v0.29.0 [INFO] [stderr] Checking pollster v0.3.0 [INFO] [stderr] Checking nalgebra v0.33.0 [INFO] [stderr] Checking game-loop v1.2.0 [INFO] [stderr] Checking parry2d v0.17.1 [INFO] [stderr] Checking rapier2d v0.22.0 [INFO] [stderr] Checking embed_wgpu_lib v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/dep/basic/texture.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | sample_count: sample_count, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `sample_count` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/dep/basic/texture.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | sample_count: sample_count, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `sample_count` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nalgebra::Vector2` [INFO] [stdout] --> src/animation/physics.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::Vector2; [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: `nalgebra::Vector2` [INFO] [stdout] --> src/animation/physics.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::Vector2; [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 variable: `dt` [INFO] [stdout] --> src/dep/basic/renderer.rs:505:30 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn update(&mut self, dt: f32) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aspect_ratio` [INFO] [stdout] --> src/dep/basic/structure.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let aspect_ratio = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aspect_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/dep/basic/shapes.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dt` [INFO] [stdout] --> src/dep/basic/renderer.rs:505:30 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn update(&mut self, dt: f32) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aspect_ratio` [INFO] [stdout] --> src/dep/basic/structure.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let aspect_ratio = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aspect_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `radius` [INFO] [stdout] --> src/shapes/circle.rs:46:23 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn generate_arrow(radius: f32, length: f32) -> VertexBuffers { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/shapes/circle.rs:46:36 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn generate_arrow(radius: f32, length: f32) -> VertexBuffers { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/dep/basic/shapes.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shape` [INFO] [stdout] --> src/animation/mod.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | fn apply(&self, shape: &mut dyn Shape) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/dep/basic/structure.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/dep/basic/structure.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[repr(C)] [INFO] [stdout] 2 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 3 | | pub struct Vertex { [INFO] [stdout] 4 | | pub position: [f32; 3], [INFO] [stdout] 5 | | pub color: [f32; 3], [INFO] [stdout] 6 | | pub uv: [f32; 2], [INFO] [stdout] 7 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTICES` is never used [INFO] [stdout] --> src/dep/basic/structure.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) const VERTICES: &[Vertex] = &[ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/dep/basic/resources.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct FeathersUniform { [INFO] [stdout] | ^^^^^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/dep/basic/resources.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[repr(C)] [INFO] [stdout] 2 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 3 | | pub struct FeathersUniform { [INFO] [stdout] 4 | | pub center: [f32; 2], [INFO] [stdout] ... | [INFO] [stdout] 7 | | pub color: [f32; 4], [INFO] [stdout] 8 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/dep/basic/shapes.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct FourGradientUniform { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/dep/basic/shapes.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / #[repr(C)] [INFO] [stdout] 21 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 22 | | pub struct FourGradientUniform { [INFO] [stdout] 23 | | pub points: [f32;16], [INFO] [stdout] 24 | | pub point_colors: [f32;16], [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/dep/basic/action.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ActionMatrix { [INFO] [stdout] | ^^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/dep/basic/action.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / #[repr(C)] [INFO] [stdout] 7 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 8 | | pub struct ActionMatrix { [INFO] [stdout] 9 | | pub theta: f32, [INFO] [stdout] 10 | | pub mat : [f32;9], [INFO] [stdout] 11 | | pub padding: [f32;6] [INFO] [stdout] 12 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `transform`, `theta`, `speed`, and `scale` are never read [INFO] [stdout] --> src/dep/basic/instance.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Instance { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub transform: glam::Mat4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | pub theta: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub speed: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | pub scale: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/dep/basic/instance.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct InstanceRaw { [INFO] [stdout] | ^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/dep/basic/instance.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / #[repr(C)] [INFO] [stdout] 15 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 16 | | pub struct InstanceRaw { [INFO] [stdout] 17 | | pub model: [[f32;4];4], [INFO] [stdout] 18 | | pub origin3d: [f32;3], [INFO] [stdout] 19 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/dep/basic/instance.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Instance3DRaw { [INFO] [stdout] | ^^^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/dep/basic/instance.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / #[repr(C)] [INFO] [stdout] 23 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 24 | | pub struct Instance3DRaw { [INFO] [stdout] 25 | | pub model: [[f32;3];3], [INFO] [stdout] 26 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `desc` is never used [INFO] [stdout] --> src/dep/basic/instance.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl Instance3DRaw { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 137 | pub fn desc() -> wgpu::VertexBufferLayout<'static> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/shapes/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Color { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 4 | data : glam::Vec3 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/shapes/circle.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct IVertex { [INFO] [stdout] | ^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/shapes/circle.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / #[repr(C)] [INFO] [stdout] 9 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 10 | | pub struct IVertex { [INFO] [stdout] 11 | | pub position: [f32; 3], [INFO] [stdout] 12 | | pub color: [f32; 3], [INFO] [stdout] 13 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/dep/basic/renderer.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | / match ke { [INFO] [stdout] 67 | | KeyEvent { [INFO] [stdout] 68 | | state: ElementState::Pressed, [INFO] [stdout] 69 | | .. [INFO] [stdout] ... | [INFO] [stdout] 77 | | _ => {} [INFO] [stdout] 78 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 66 ~ if let KeyEvent { [INFO] [stdout] 67 + state: ElementState::Pressed, [INFO] [stdout] 68 + .. [INFO] [stdout] 69 + } = ke { match ke.physical_key { [INFO] [stdout] 70 + PhysicalKey::Code(KeyCode::KeyR) => { [INFO] [stdout] 71 + self.update_rotate(); [INFO] [stdout] 72 + return true; [INFO] [stdout] 73 + } [INFO] [stdout] 74 + _ => {} [INFO] [stdout] 75 + } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/dep/basic/renderer.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | } => match ke.physical_key { [INFO] [stdout] | __________________^ [INFO] [stdout] 71 | | PhysicalKey::Code(KeyCode::KeyR) => { [INFO] [stdout] 72 | | self.update_rotate(); [INFO] [stdout] 73 | | return true; [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | _ => {} [INFO] [stdout] 76 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 70 ~ } => if let PhysicalKey::Code(KeyCode::KeyR) = ke.physical_key { [INFO] [stdout] 71 + self.update_rotate(); [INFO] [stdout] 72 + return true; [INFO] [stdout] 73 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `radius` [INFO] [stdout] --> src/shapes/circle.rs:46:23 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn generate_arrow(radius: f32, length: f32) -> VertexBuffers { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/shapes/circle.rs:46:36 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn generate_arrow(radius: f32, length: f32) -> VertexBuffers { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shape` [INFO] [stdout] --> src/animation/mod.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | fn apply(&self, shape: &mut dyn Shape) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/dep/basic/structure.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/dep/basic/structure.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[repr(C)] [INFO] [stdout] 2 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 3 | | pub struct Vertex { [INFO] [stdout] 4 | | pub position: [f32; 3], [INFO] [stdout] 5 | | pub color: [f32; 3], [INFO] [stdout] 6 | | pub uv: [f32; 2], [INFO] [stdout] 7 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTICES` is never used [INFO] [stdout] --> src/dep/basic/structure.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) const VERTICES: &[Vertex] = &[ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/dep/basic/resources.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct FeathersUniform { [INFO] [stdout] | ^^^^^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/dep/basic/resources.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[repr(C)] [INFO] [stdout] 2 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 3 | | pub struct FeathersUniform { [INFO] [stdout] 4 | | pub center: [f32; 2], [INFO] [stdout] ... | [INFO] [stdout] 7 | | pub color: [f32; 4], [INFO] [stdout] 8 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/dep/basic/shapes.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct FourGradientUniform { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/dep/basic/shapes.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / #[repr(C)] [INFO] [stdout] 21 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 22 | | pub struct FourGradientUniform { [INFO] [stdout] 23 | | pub points: [f32;16], [INFO] [stdout] 24 | | pub point_colors: [f32;16], [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/dep/basic/action.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ActionMatrix { [INFO] [stdout] | ^^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/dep/basic/action.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / #[repr(C)] [INFO] [stdout] 7 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 8 | | pub struct ActionMatrix { [INFO] [stdout] 9 | | pub theta: f32, [INFO] [stdout] 10 | | pub mat : [f32;9], [INFO] [stdout] 11 | | pub padding: [f32;6] [INFO] [stdout] 12 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `transform`, `theta`, `speed`, and `scale` are never read [INFO] [stdout] --> src/dep/basic/instance.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Instance { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub transform: glam::Mat4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | pub theta: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub speed: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | pub scale: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/dep/basic/instance.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct InstanceRaw { [INFO] [stdout] | ^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/dep/basic/instance.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / #[repr(C)] [INFO] [stdout] 15 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 16 | | pub struct InstanceRaw { [INFO] [stdout] 17 | | pub model: [[f32;4];4], [INFO] [stdout] 18 | | pub origin3d: [f32;3], [INFO] [stdout] 19 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/dep/basic/instance.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Instance3DRaw { [INFO] [stdout] | ^^^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/dep/basic/instance.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / #[repr(C)] [INFO] [stdout] 23 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 24 | | pub struct Instance3DRaw { [INFO] [stdout] 25 | | pub model: [[f32;3];3], [INFO] [stdout] 26 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `desc` is never used [INFO] [stdout] --> src/dep/basic/instance.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl Instance3DRaw { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 137 | pub fn desc() -> wgpu::VertexBufferLayout<'static> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/shapes/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Color { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 4 | data : glam::Vec3 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/shapes/circle.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct IVertex { [INFO] [stdout] | ^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/shapes/circle.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / #[repr(C)] [INFO] [stdout] 9 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 10 | | pub struct IVertex { [INFO] [stdout] 11 | | pub position: [f32; 3], [INFO] [stdout] 12 | | pub color: [f32; 3], [INFO] [stdout] 13 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/dep/basic/renderer.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | / match ke { [INFO] [stdout] 67 | | KeyEvent { [INFO] [stdout] 68 | | state: ElementState::Pressed, [INFO] [stdout] 69 | | .. [INFO] [stdout] ... | [INFO] [stdout] 77 | | _ => {} [INFO] [stdout] 78 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 66 ~ if let KeyEvent { [INFO] [stdout] 67 + state: ElementState::Pressed, [INFO] [stdout] 68 + .. [INFO] [stdout] 69 + } = ke { match ke.physical_key { [INFO] [stdout] 70 + PhysicalKey::Code(KeyCode::KeyR) => { [INFO] [stdout] 71 + self.update_rotate(); [INFO] [stdout] 72 + return true; [INFO] [stdout] 73 + } [INFO] [stdout] 74 + _ => {} [INFO] [stdout] 75 + } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/dep/basic/renderer.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | } => match ke.physical_key { [INFO] [stdout] | __________________^ [INFO] [stdout] 71 | | PhysicalKey::Code(KeyCode::KeyR) => { [INFO] [stdout] 72 | | self.update_rotate(); [INFO] [stdout] 73 | | return true; [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | _ => {} [INFO] [stdout] 76 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 70 ~ } => if let PhysicalKey::Code(KeyCode::KeyR) = ke.physical_key { [INFO] [stdout] 71 + self.update_rotate(); [INFO] [stdout] 72 + return true; [INFO] [stdout] 73 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/dep/basic/renderer.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 236 | / let multisampled_view = [INFO] [stdout] 237 | | multisampled_texture.create_view(&wgpu::TextureViewDescriptor::default()); [INFO] [stdout] | |______________________________________________________________________________________- unnecessary `let` binding [INFO] [stdout] 238 | multisampled_view [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 236 ~ [INFO] [stdout] 237 ~ multisampled_texture.create_view(&wgpu::TextureViewDescriptor::default()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/dep/basic/renderer.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 352 | let depth_view = depth_texture.create_view(&wgpu::TextureViewDescriptor::default()); [INFO] [stdout] | ------------------------------------------------------------------------------------ unnecessary `let` binding [INFO] [stdout] 353 | depth_view [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 352 ~ [INFO] [stdout] 353 ~ depth_texture.create_view(&wgpu::TextureViewDescriptor::default()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/dep/basic/renderer.rs:472:9 [INFO] [stdout] | [INFO] [stdout] 472 | &self.window [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `self.window` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f64` -> `f64`) [INFO] [stdout] --> src/dep/basic/renderer.rs:494:24 [INFO] [stdout] | [INFO] [stdout] 494 | r: position.x as f64 / self.size.width as f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `position.x` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f64` -> `f64`) [INFO] [stdout] --> src/dep/basic/renderer.rs:495:24 [INFO] [stdout] | [INFO] [stdout] 495 | g: position.y as f64 / self.size.height as f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `position.y` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/dep/basic/renderer.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 236 | / let multisampled_view = [INFO] [stdout] 237 | | multisampled_texture.create_view(&wgpu::TextureViewDescriptor::default()); [INFO] [stdout] | |______________________________________________________________________________________- unnecessary `let` binding [INFO] [stdout] 238 | multisampled_view [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 236 ~ [INFO] [stdout] 237 ~ multisampled_texture.create_view(&wgpu::TextureViewDescriptor::default()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `[f32; 3]` which implements the `Copy` trait [INFO] [stdout] --> src/dep/basic/structure.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | position: pos.clone(), [INFO] [stdout] | ^^^^^^^^^^^ help: try dereferencing it: `*pos` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/dep/basic/renderer.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 352 | let depth_view = depth_texture.create_view(&wgpu::TextureViewDescriptor::default()); [INFO] [stdout] | ------------------------------------------------------------------------------------ unnecessary `let` binding [INFO] [stdout] 353 | depth_view [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 352 ~ [INFO] [stdout] 353 ~ depth_texture.create_view(&wgpu::TextureViewDescriptor::default()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `[f32; 3]` which implements the `Copy` trait [INFO] [stdout] --> src/dep/basic/structure.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | color: clr.clone(), [INFO] [stdout] | ^^^^^^^^^^^ help: try dereferencing it: `*clr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/dep/basic/shapes.rs:226:44 [INFO] [stdout] | [INFO] [stdout] 226 | contents: bytemuck::cast_slice(&self.vertices()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: change this to: `self.vertices()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/dep/basic/renderer.rs:472:9 [INFO] [stdout] | [INFO] [stdout] 472 | &self.window [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `self.window` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/dep/basic/shapes.rs:232:44 [INFO] [stdout] | [INFO] [stdout] 232 | contents: bytemuck::cast_slice(&self.indices()), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `self.indices()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f64` -> `f64`) [INFO] [stdout] --> src/dep/basic/renderer.rs:494:24 [INFO] [stdout] | [INFO] [stdout] 494 | r: position.x as f64 / self.size.width as f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `position.x` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f64` -> `f64`) [INFO] [stdout] --> src/dep/basic/renderer.rs:495:24 [INFO] [stdout] | [INFO] [stdout] 495 | g: position.y as f64 / self.size.height as f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `position.y` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/dep/basic/action.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | / for i in 0..9 { [INFO] [stdout] 23 | | k[i] = copy[i]; [INFO] [stdout] 24 | | } [INFO] [stdout] | |_____^ help: try replacing the loop by: `k.copy_from_slice(©[..9]);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] = note: `#[warn(clippy::manual_memcpy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/dep/basic/texture.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | let multisampled_view = multisampled_texture.create_view(&wgpu::TextureViewDescriptor::default()); [INFO] [stdout] | -------------------------------------------------------------------------------------------------- unnecessary `let` binding [INFO] [stdout] 24 | multisampled_view [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 23 ~ [INFO] [stdout] 24 ~ multisampled_texture.create_view(&wgpu::TextureViewDescriptor::default()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `points` [INFO] [stdout] --> src/dep/basic/instance.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | for i in 0..points.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 51 - for i in 0..points.len() { [INFO] [stdout] 51 + for in &points { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module has the same name as its containing module [INFO] [stdout] --> src/dep/looper/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod looper; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stdout] = note: `#[warn(clippy::module_inception)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/dep/looper/looper.rs:21:39 [INFO] [stdout] | [INFO] [stdout] 21 | let mut state = Renderer::new(&window).await; [INFO] [stdout] | ^^^^^^^ help: change this to: `window` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/dep/looper/looper.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | return true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 94 - return true; [INFO] [stdout] 94 + true [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/dep/looper/looper.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | / if !self.state.input(event) { [INFO] [stdout] 49 | | match event { [INFO] [stdout] 50 | | WindowEvent::CloseRequested [INFO] [stdout] 51 | | | WindowEvent::KeyboardInput { [INFO] [stdout] ... | [INFO] [stdout] 90 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 47 ~ } if window_id == &self.window.id() [INFO] [stdout] 48 ~ && !self.state.input(event) => { [INFO] [stdout] 49 | match event { [INFO] [stdout] ... [INFO] [stdout] 89 | } [INFO] [stdout] 90 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `[f32; 3]` which implements the `Copy` trait [INFO] [stdout] --> src/dep/basic/structure.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | position: pos.clone(), [INFO] [stdout] | ^^^^^^^^^^^ help: try dereferencing it: `*pos` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `[f32; 3]` which implements the `Copy` trait [INFO] [stdout] --> src/dep/basic/structure.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | color: clr.clone(), [INFO] [stdout] | ^^^^^^^^^^^ help: try dereferencing it: `*clr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/dep/looper/looper.rs:130:37 [INFO] [stdout] | [INFO] [stdout] 130 | ... return [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 129 - control_flow.exit(); [INFO] [stdout] 130 - return [INFO] [stdout] 129 + control_flow.exit(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/dep/looper/looper.rs:135:41 [INFO] [stdout] | [INFO] [stdout] 135 | ... return [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 134 - looper.window.request_redraw(); [INFO] [stdout] 135 - return [INFO] [stdout] 134 + looper.window.request_redraw(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/dep/looper/looper.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | / if event.state == ElementState::Pressed { [INFO] [stdout] 127 | | match event.physical_key { [INFO] [stdout] 128 | | PhysicalKey::Code(KeyCode::KeyQ) | PhysicalKey::Code(KeyCode::Escape)=> { [INFO] [stdout] 129 | | control_flow.exit(); [INFO] [stdout] ... | [INFO] [stdout] 140 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 125 ~ } [INFO] [stdout] 126 ~ if event.state == ElementState::Pressed => { [INFO] [stdout] 127 | match event.physical_key { [INFO] [stdout] ... [INFO] [stdout] 139 | } [INFO] [stdout] 140 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this pattern creates a reference to a reference [INFO] [stdout] --> src/shapes/circle.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | for ref vertex in &buffers.vertices { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 35 - for ref vertex in &buffers.vertices { [INFO] [stdout] 35 + for vertex in &buffers.vertices { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `Physics` [INFO] [stdout] --> src/animation/physics.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / pub fn new() -> Self { [INFO] [stdout] 28 | | [INFO] [stdout] 29 | | let mut rigid_body_set = RigidBodySet::new(); [INFO] [stdout] 30 | | let mut collider_set = ColliderSet::new(); [INFO] [stdout] ... | [INFO] [stdout] 78 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 26 + impl Default for Physics { [INFO] [stdout] 27 + fn default() -> Self { [INFO] [stdout] 28 + Self::new() [INFO] [stdout] 29 + } [INFO] [stdout] 30 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/animation/physics.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | return p_glam; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 105 - return p_glam; [INFO] [stdout] 105 + p_glam [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/dep/basic/shapes.rs:226:44 [INFO] [stdout] | [INFO] [stdout] 226 | contents: bytemuck::cast_slice(&self.vertices()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: change this to: `self.vertices()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/dep/basic/instance.rs:44:22 [INFO] [stdout] | [INFO] [stdout] 44 | let points = vec![ [INFO] [stdout] | ______________________^ [INFO] [stdout] 45 | | glam::Vec3::new(0.0, 1.0, 0.0), [INFO] [stdout] ... | [INFO] [stdout] 50 | | ]; [INFO] [stdout] | |_________^ help: you can use an array directly: `[glam::Vec3::new(0.0, 1.0, 0.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/dep/basic/shapes.rs:232:44 [INFO] [stdout] | [INFO] [stdout] 232 | contents: bytemuck::cast_slice(&self.indices()), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `self.indices()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/dep/basic/action.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | / for i in 0..9 { [INFO] [stdout] 23 | | k[i] = copy[i]; [INFO] [stdout] 24 | | } [INFO] [stdout] | |_____^ help: try replacing the loop by: `k.copy_from_slice(©[..9]);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] = note: `#[warn(clippy::manual_memcpy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/dep/basic/texture.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | let multisampled_view = multisampled_texture.create_view(&wgpu::TextureViewDescriptor::default()); [INFO] [stdout] | -------------------------------------------------------------------------------------------------- unnecessary `let` binding [INFO] [stdout] 24 | multisampled_view [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 23 ~ [INFO] [stdout] 24 ~ multisampled_texture.create_view(&wgpu::TextureViewDescriptor::default()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `points` [INFO] [stdout] --> src/dep/basic/instance.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | for i in 0..points.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 51 - for i in 0..points.len() { [INFO] [stdout] 51 + for in &points { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module has the same name as its containing module [INFO] [stdout] --> src/dep/looper/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod looper; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stdout] = note: `#[warn(clippy::module_inception)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/dep/looper/looper.rs:21:39 [INFO] [stdout] | [INFO] [stdout] 21 | let mut state = Renderer::new(&window).await; [INFO] [stdout] | ^^^^^^^ help: change this to: `window` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/dep/looper/looper.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | return true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 94 - return true; [INFO] [stdout] 94 + true [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/dep/looper/looper.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | / if !self.state.input(event) { [INFO] [stdout] 49 | | match event { [INFO] [stdout] 50 | | WindowEvent::CloseRequested [INFO] [stdout] 51 | | | WindowEvent::KeyboardInput { [INFO] [stdout] ... | [INFO] [stdout] 90 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 47 ~ } if window_id == &self.window.id() [INFO] [stdout] 48 ~ && !self.state.input(event) => { [INFO] [stdout] 49 | match event { [INFO] [stdout] ... [INFO] [stdout] 89 | } [INFO] [stdout] 90 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/dep/looper/looper.rs:130:37 [INFO] [stdout] | [INFO] [stdout] 130 | ... return [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 129 - control_flow.exit(); [INFO] [stdout] 130 - return [INFO] [stdout] 129 + control_flow.exit(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/dep/looper/looper.rs:135:41 [INFO] [stdout] | [INFO] [stdout] 135 | ... return [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 134 - looper.window.request_redraw(); [INFO] [stdout] 135 - return [INFO] [stdout] 134 + looper.window.request_redraw(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/dep/looper/looper.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | / if event.state == ElementState::Pressed { [INFO] [stdout] 127 | | match event.physical_key { [INFO] [stdout] 128 | | PhysicalKey::Code(KeyCode::KeyQ) | PhysicalKey::Code(KeyCode::Escape)=> { [INFO] [stdout] 129 | | control_flow.exit(); [INFO] [stdout] ... | [INFO] [stdout] 140 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 125 ~ } [INFO] [stdout] 126 ~ if event.state == ElementState::Pressed => { [INFO] [stdout] 127 | match event.physical_key { [INFO] [stdout] ... [INFO] [stdout] 139 | } [INFO] [stdout] 140 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this pattern creates a reference to a reference [INFO] [stdout] --> src/shapes/circle.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | for ref vertex in &buffers.vertices { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 35 - for ref vertex in &buffers.vertices { [INFO] [stdout] 35 + for vertex in &buffers.vertices { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `Physics` [INFO] [stdout] --> src/animation/physics.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / pub fn new() -> Self { [INFO] [stdout] 28 | | [INFO] [stdout] 29 | | let mut rigid_body_set = RigidBodySet::new(); [INFO] [stdout] 30 | | let mut collider_set = ColliderSet::new(); [INFO] [stdout] ... | [INFO] [stdout] 78 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 26 + impl Default for Physics { [INFO] [stdout] 27 + fn default() -> Self { [INFO] [stdout] 28 + Self::new() [INFO] [stdout] 29 + } [INFO] [stdout] 30 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/animation/physics.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | return p_glam; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 105 - return p_glam; [INFO] [stdout] 105 + p_glam [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/dep/basic/instance.rs:44:22 [INFO] [stdout] | [INFO] [stdout] 44 | let points = vec![ [INFO] [stdout] | ______________________^ [INFO] [stdout] 45 | | glam::Vec3::new(0.0, 1.0, 0.0), [INFO] [stdout] ... | [INFO] [stdout] 50 | | ]; [INFO] [stdout] | |_________^ help: you can use an array directly: `[glam::Vec3::new(0.0, 1.0, 0.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 16s [INFO] running `Command { std: "docker" "inspect" "6743bc3acbaaa2216ecf4b2691f9cf6ea36ae3d5fdd7a3002aa03350e7fb9a0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6743bc3acbaaa2216ecf4b2691f9cf6ea36ae3d5fdd7a3002aa03350e7fb9a0f", kill_on_drop: false }` [INFO] [stdout] 6743bc3acbaaa2216ecf4b2691f9cf6ea36ae3d5fdd7a3002aa03350e7fb9a0f