[INFO] cloning repository https://github.com/weykon/spatial-hashing-0 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/weykon/spatial-hashing-0" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweykon%2Fspatial-hashing-0", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweykon%2Fspatial-hashing-0'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b6106f6f962348489b64cc15fc7d479a15eb8da5 [INFO] linting weykon/spatial-hashing-0 against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweykon%2Fspatial-hashing-0" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/weykon/spatial-hashing-0 [INFO] finished tweaking git repo https://github.com/weykon/spatial-hashing-0 [INFO] tweaked toml for git repo https://github.com/weykon/spatial-hashing-0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/weykon/spatial-hashing-0 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/weykon/spatial-hashing-0 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] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.49 [INFO] [stderr] Downloaded wayland-protocols-wlr v0.3.5 [INFO] [stderr] Downloaded wayland-protocols-plasma v0.3.5 [INFO] [stderr] Downloaded wayland-client v0.31.7 [INFO] [stderr] Downloaded wayland-cursor v0.31.7 [INFO] [stderr] Downloaded ab_glyph v0.2.29 [INFO] [stderr] Downloaded xml-rs v0.8.24 [INFO] [stderr] Downloaded owned_ttf_parser v0.25.0 [INFO] [stderr] Downloaded wayland-protocols v0.32.5 [INFO] [stderr] Downloaded glam v0.29.2 [INFO] [stderr] Downloaded winit v0.30.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 13629b021e637b6af3db2c08d9949b5967a6b3ecec44b06b9e766c027e9d10aa [INFO] running `Command { std: "docker" "start" "-a" "13629b021e637b6af3db2c08d9949b5967a6b3ecec44b06b9e766c027e9d10aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "13629b021e637b6af3db2c08d9949b5967a6b3ecec44b06b9e766c027e9d10aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13629b021e637b6af3db2c08d9949b5967a6b3ecec44b06b9e766c027e9d10aa", kill_on_drop: false }` [INFO] [stdout] 13629b021e637b6af3db2c08d9949b5967a6b3ecec44b06b9e766c027e9d10aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] aef057c19aa320efdc48bc96b3fa778a000c31e0476f7ff0664be4e2c74b5014 [INFO] running `Command { std: "docker" "start" "-a" "aef057c19aa320efdc48bc96b3fa778a000c31e0476f7ff0664be4e2c74b5014", kill_on_drop: false }` [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Checking libloading v0.8.6 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling rustix v0.38.42 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Compiling cc v1.2.5 [INFO] [stderr] Compiling wayland-sys v0.31.5 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Compiling quick-xml v0.36.2 [INFO] [stderr] Compiling wayland-client v0.31.7 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking foldhash v0.1.4 [INFO] [stderr] Compiling naga v23.1.0 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Compiling khronos-egl v6.0.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling ash v0.38.0+1.3.281 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling syn v2.0.91 [INFO] [stderr] Compiling wgpu-hal v23.0.1 [INFO] [stderr] Checking gpu-alloc-types v0.3.0 [INFO] [stderr] Checking gpu-descriptor-types v0.2.0 [INFO] [stderr] Checking spirv v0.3.0+sdk-1.3.268.0 [INFO] [stderr] Compiling wayland-scanner v0.31.5 [INFO] [stderr] Checking ttf-parser v0.25.1 [INFO] [stderr] Checking xkeysym v0.2.1 [INFO] [stderr] Checking indexmap v2.7.0 [INFO] [stderr] Compiling wayland-backend v0.3.7 [INFO] [stderr] Checking xcursor v0.3.8 [INFO] [stderr] Checking hexf-parse v0.2.1 [INFO] [stderr] Checking unicode-xid v0.2.6 [INFO] [stderr] Checking raw-window-handle v0.6.2 [INFO] [stderr] Compiling smithay-client-toolkit v0.19.2 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking gpu-descriptor v0.3.1 [INFO] [stderr] Checking gpu-alloc v0.6.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling wgpu-core v23.0.1 [INFO] [stderr] Checking memmap2 v0.9.5 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Checking wgpu-types v23.0.0 [INFO] [stderr] Checking renderdoc-sys v1.1.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking glow v0.14.2 [INFO] [stderr] Checking profiling v1.0.16 [INFO] [stderr] Compiling document-features v0.2.10 [INFO] [stderr] Checking owned_ttf_parser v0.25.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking ab_glyph v0.2.29 [INFO] [stderr] Compiling winit v0.30.7 [INFO] [stderr] Compiling wgpu v23.0.1 [INFO] [stderr] Checking x11rb-protocol v0.13.1 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling bytemuck_derive v1.8.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking bytemuck v1.21.0 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Checking polling v3.7.4 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking smol_str v0.2.2 [INFO] [stderr] Checking dpi v0.1.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking glam v0.29.2 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking env_logger v0.11.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking pollster v0.4.0 [INFO] [stderr] Checking spin_sleep v1.3.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking wayland-protocols v0.32.5 [INFO] [stderr] Checking wayland-cursor v0.31.7 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking spatial_hash_struct v0.1.0 (/opt/rustwide/workdir/spatial_hash_struct) [INFO] [stdout] warning: unused imports: `ops::Div`, `path::Display`, and `str::FromStr` [INFO] [stdout] --> spatial_hash_struct/src/lib.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | collections::HashMap, ops::Div, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | path::Display, str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> spatial_hash_struct/src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Space { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 7 | cell_size: IVec2, [INFO] [stdout] 8 | width: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | height: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_entities` is never used [INFO] [stdout] --> spatial_hash_struct/src/lib.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl IndexGrid { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | fn get_entities(&self) -> &[u32] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `query_where_cell` and `estimated_cells` are never used [INFO] [stdout] --> spatial_hash_struct/src/lib.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Space { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | fn query_where_cell( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn estimated_cells(self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ops::Div`, `path::Display`, and `str::FromStr` [INFO] [stdout] --> spatial_hash_struct/src/lib.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | collections::HashMap, ops::Div, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | path::Display, str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_entities` is never used [INFO] [stdout] --> spatial_hash_struct/src/lib.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl IndexGrid { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | fn get_entities(&self) -> &[u32] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `query_where_cell` is never used [INFO] [stdout] --> spatial_hash_struct/src/lib.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Space { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | fn query_where_cell( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking wayland-protocols-wlr v0.3.5 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.5 [INFO] [stderr] Checking sctk-adwaita v0.10.1 [INFO] [stderr] Checking x11rb v0.13.1 [INFO] [stderr] Checking gfx v0.1.0 (/opt/rustwide/workdir/gfx) [INFO] [stdout] warning: unused import: `default` [INFO] [stdout] --> gfx/src/lib.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{default, sync::Arc}; [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: `default` [INFO] [stdout] --> gfx/src/lib.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{default, sync::Arc}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking spatial-hash v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `borrow::Borrow` and `future::Ready` [INFO] [stdout] --> src/window/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | borrow::Borrow, future::Ready, sync::Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SurfaceConfiguration` and `core::id::markers::Surface` [INFO] [stdout] --> src/window/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | core::id::markers::Surface, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | SurfaceConfiguration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/render/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/boid.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/boid.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | entities::{self, EntitiesReady}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EntitiesReady` and `SpatialHashReady` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/paint_scene.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | entities::{self, EntitiesReady}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | self, SpatialHashReady, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::TypeId` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/time_world.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::TypeId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BindingType` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/time_world.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | BindingType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glam::Vec2` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/mod.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use glam::Vec2; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_loop` [INFO] [stdout] --> src/window/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | event_loop: &winit::event_loop::ActiveEventLoop, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_event_loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gfx` [INFO] [stdout] --> src/window/mod.rs:114:32 [INFO] [stdout] | [INFO] [stdout] 114 | RenderEntry::Ready(ref mut gfx) => {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gfx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_poses` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/boid.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let target_poses = (0..4).map( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_poses` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow` and `future::Ready` [INFO] [stdout] --> src/window/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | borrow::Borrow, future::Ready, sync::Arc, [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: `gfx` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/spatial_hash_ready.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | gfx: &gfx::Gfx, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_gfx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SurfaceConfiguration` and `core::id::markers::Surface` [INFO] [stdout] --> src/window/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | core::id::markers::Surface, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | SurfaceConfiguration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/render/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/boid.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/boid.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | entities::{self, EntitiesReady}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gfx` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/spatial_hash_ready.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | gfx: &gfx::Gfx, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_gfx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EntitiesReady` and `SpatialHashReady` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/paint_scene.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | entities::{self, EntitiesReady}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | self, SpatialHashReady, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::TypeId` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/time_world.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::TypeId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BindingType` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/time_world.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | BindingType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glam::Vec2` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/mod.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use glam::Vec2; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/render/scenes/mod.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | name: String, [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 `size` and `padding` are never read [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/scene.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) struct Screen { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 13 | pub(crate) size: PhysicalSize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | // 屏幕边距padding [INFO] [stdout] 15 | pub(crate) padding: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time_bind_group` is never read [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/time_world.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TimeReady { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | time_bind_group: Option< [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `world_resolution` is never read [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/spatial_hash_ready.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) struct SpatialHashReady { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 22 | pub(crate) world_resolution: (u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `uniform_buffer`, `uniform_layout`, and `pipeline_layout` are never read [INFO] [stdout] --> src/render/scenes/scene_one/readys.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct HandyWorld { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 82 | uniform_buffer: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 83 | uniform_bind_group: Option, [INFO] [stdout] 84 | uniform_layout: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 85 | pipeline_layout: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cube_bind_group`, `pipeline`, and `vertex_size` are never read [INFO] [stdout] --> src/render/scenes/scene_one/readys.rs:236:5 [INFO] [stdout] | [INFO] [stdout] 235 | pub struct VertexReady { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 236 | cube_bind_group: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 237 | pipeline: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | vertex_size: usize, [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/window/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / match self.render.entry { [INFO] [stdout] 26 | | RenderEntry::Ready(ref mut gfx) => { [INFO] [stdout] 27 | | let now = [INFO] [stdout] 28 | | std::time::Instant::now(); [INFO] [stdout] ... | [INFO] [stdout] 66 | | _ => {} [INFO] [stdout] 67 | | } [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] 25 ~ if let RenderEntry::Ready(ref mut gfx) = self.render.entry { [INFO] [stdout] 26 + let now = [INFO] [stdout] 27 + std::time::Instant::now(); [INFO] [stdout] 28 + let delta_time = [INFO] [stdout] 29 + now - gfx.last_update; [INFO] [stdout] 30 + let time = [INFO] [stdout] 31 + *gfx.time.lock().unwrap() [INFO] [stdout] 32 + + delta_time [INFO] [stdout] 33 + .as_secs_f32(); [INFO] [stdout] 34 + match gfx.limit_fps { [INFO] [stdout] 35 + LimitFPS::Limit(fps) => { [INFO] [stdout] 36 + let frame_duration = std::time::Duration::from_secs_f32(1.0 / fps as f32); [INFO] [stdout] 37 + if delta_time [INFO] [stdout] 38 + < frame_duration [INFO] [stdout] 39 + { [INFO] [stdout] 40 + spin_sleep::sleep( [INFO] [stdout] 41 + frame_duration [INFO] [stdout] 42 + - delta_time, [INFO] [stdout] 43 + ); [INFO] [stdout] 44 + } [INFO] [stdout] 45 + } [INFO] [stdout] 46 + _ => {} [INFO] [stdout] 47 + } [INFO] [stdout] 48 + [INFO] [stdout] 49 ~ // 在 sleep 之后更新 last_update [INFO] [stdout] 50 + gfx.last_update = [INFO] [stdout] 51 ~ std::time::Instant::now(); // 注意这里用新的时间 [INFO] [stdout] 52 + *gfx.time.lock().unwrap() = time; [INFO] [stdout] 53 + [INFO] [stdout] 54 ~ // FPS 计算也应该使用新的时间点 [INFO] [stdout] 55 + let real_delta = [INFO] [stdout] 56 + gfx.last_update - now; [INFO] [stdout] 57 + gfx.delta_time = [INFO] [stdout] 58 + real_delta.as_secs_f32(); [INFO] [stdout] 59 + // println!("fps: {}", (1.0 / real_delta.as_secs_f32()).floor()); [INFO] [stdout] 60 + self.window [INFO] [stdout] 61 + .as_ref() [INFO] [stdout] 62 + .unwrap() [INFO] [stdout] 63 + .request_redraw(); [INFO] [stdout] 64 + } [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/window/mod.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | / match gfx.limit_fps { [INFO] [stdout] 36 | | LimitFPS::Limit(fps) => { [INFO] [stdout] 37 | | let frame_duration = std::time::Duration::from_secs_f32(1.0 / fps as f32); [INFO] [stdout] 38 | | if delta_time [INFO] [stdout] ... | [INFO] [stdout] 47 | | _ => {} [INFO] [stdout] 48 | | } [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] 35 ~ if let LimitFPS::Limit(fps) = gfx.limit_fps { [INFO] [stdout] 36 + let frame_duration = std::time::Duration::from_secs_f32(1.0 / fps as f32); [INFO] [stdout] 37 + if delta_time [INFO] [stdout] 38 + < frame_duration [INFO] [stdout] 39 + { [INFO] [stdout] 40 + spin_sleep::sleep( [INFO] [stdout] 41 + frame_duration [INFO] [stdout] 42 + - delta_time, [INFO] [stdout] 43 + ); [INFO] [stdout] 44 + } [INFO] [stdout] 45 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/window/mod.rs:37:87 [INFO] [stdout] | [INFO] [stdout] 37 | let frame_duration = std::time::Duration::from_secs_f32(1.0 / fps as f32); [INFO] [stdout] | ^^^^^^^^^^ help: try: `fps` [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: unneeded `return` statement [INFO] [stdout] --> src/window/mod.rs:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | return gfx; [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] 100 - return gfx; [INFO] [stdout] 100 + gfx [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/render/mod.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / pub enum RenderEntry { [INFO] [stdout] 10 | | #[default] [INFO] [stdout] 11 | | NotReady, [INFO] [stdout] | | -------- the second-largest variant carries no data at all [INFO] [stdout] 12 | | Ready(Gfx), [INFO] [stdout] | | ---------- the largest variant contains at least 344 bytes [INFO] [stdout] 13 | | } [INFO] [stdout] | |_^ the entire enum is at least 344 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] = note: `#[warn(clippy::large_enum_variant)]` on by default [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 12 - Ready(Gfx), [INFO] [stdout] 12 + Ready(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/boid.rs:242:21 [INFO] [stdout] | [INFO] [stdout] 242 | / return EntitiesInstance { [INFO] [stdout] 243 | | pos: pos.to_array(), [INFO] [stdout] 244 | | }; [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] 242 ~ EntitiesInstance { [INFO] [stdout] 243 + pos: pos.to_array(), [INFO] [stdout] 244 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/paint_scene.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | / let _ = [INFO] [stdout] 40 | | TimeWorldUpdate::update(data, gfx); [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] = note: `#[warn(clippy::let_unit_value)]` on by default [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 39 - let _ = [INFO] [stdout] 40 - TimeWorldUpdate::update(data, gfx); [INFO] [stdout] 39 + TimeWorldUpdate::update(data, gfx); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/paint_scene.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | / let _ = [INFO] [stdout] 43 | | spatial_hash_ready::SpatialHashReady::update(data, gfx); [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 42 - let _ = [INFO] [stdout] 43 - spatial_hash_ready::SpatialHashReady::update(data, gfx); [INFO] [stdout] 42 + spatial_hash_ready::SpatialHashReady::update(data, gfx); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/paint_scene.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let _ = Boid::update(data, gfx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 45 - let _ = Boid::update(data, gfx); [INFO] [stdout] 45 + Boid::update(data, gfx); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/paint_scene.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | &mut render_pass, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: change this to: `render_pass` [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/render/scenes/patial_hash_space_scene/scene.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | &four_point_rect.as_slice(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `four_point_rect.as_slice()` [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/render/scenes/patial_hash_space_scene/scene.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | return render_pass; [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] 197 - return render_pass; [INFO] [stdout] 197 + render_pass [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u32` is unnecessary [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/scene.rs:193:16 [INFO] [stdout] | [INFO] [stdout] 193 | 0..8 as u32, [INFO] [stdout] | ^^^^^^^^ help: try: `8_u32` [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: unneeded `return` statement [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/entities.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | return e; [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] 53 - return e; [INFO] [stdout] 53 + e [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/entities.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | / &entities_instance_positions [INFO] [stdout] 63 | | .as_slice() [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: change this to [INFO] [stdout] | [INFO] [stdout] 62 ~ entities_instance_positions [INFO] [stdout] 63 + .as_slice() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/entities.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | return render_pass; [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] 233 - return render_pass; [INFO] [stdout] 233 + render_pass [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/entities.rs:267:17 [INFO] [stdout] | [INFO] [stdout] 267 | return entity; [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] 267 - return entity; [INFO] [stdout] 267 + entity [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `EntitiesInstance` which implements the `Copy` trait [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/entities.rs:261:34 [INFO] [stdout] | [INFO] [stdout] 261 | let mut entity = entity.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try dereferencing it: `*entity` [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: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/entities.rs:276:17 [INFO] [stdout] | [INFO] [stdout] 276 | / &entities_instance_positions [INFO] [stdout] 277 | | .as_slice() [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: change this to [INFO] [stdout] | [INFO] [stdout] 276 ~ entities_instance_positions [INFO] [stdout] 277 + .as_slice() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/render/scenes/mod.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | readys_hashmap: HashMap< [INFO] [stdout] | _____________________^ [INFO] [stdout] 65 | | TypeId, [INFO] [stdout] 66 | | Box< [INFO] [stdout] 67 | | dyn FnMut( [INFO] [stdout] ... | [INFO] [stdout] 71 | | >, [INFO] [stdout] 72 | | >, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/render/scenes/mod.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | paints_hashmap: HashMap< [INFO] [stdout] | _____________________^ [INFO] [stdout] 74 | | TypeId, [INFO] [stdout] 75 | | Box< [INFO] [stdout] 76 | | dyn FnMut( [INFO] [stdout] ... | [INFO] [stdout] 80 | | >, [INFO] [stdout] 81 | | >, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_loop` [INFO] [stdout] --> src/window/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | event_loop: &winit::event_loop::ActiveEventLoop, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_event_loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gfx` [INFO] [stdout] --> src/window/mod.rs:114:32 [INFO] [stdout] | [INFO] [stdout] 114 | RenderEntry::Ready(ref mut gfx) => {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gfx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_poses` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/boid.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let target_poses = (0..4).map( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_poses` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gfx` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/spatial_hash_ready.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | gfx: &gfx::Gfx, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_gfx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gfx` [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/spatial_hash_ready.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | gfx: &gfx::Gfx, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_gfx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/render/scenes/mod.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | name: String, [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 `size` and `padding` are never read [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/scene.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) struct Screen { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 13 | pub(crate) size: PhysicalSize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | // 屏幕边距padding [INFO] [stdout] 15 | pub(crate) padding: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time_bind_group` is never read [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/time_world.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TimeReady { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | time_bind_group: Option< [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `world_resolution` is never read [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/spatial_hash_ready.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) struct SpatialHashReady { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 22 | pub(crate) world_resolution: (u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `uniform_buffer`, `uniform_layout`, and `pipeline_layout` are never read [INFO] [stdout] --> src/render/scenes/scene_one/readys.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct HandyWorld { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 82 | uniform_buffer: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 83 | uniform_bind_group: Option, [INFO] [stdout] 84 | uniform_layout: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 85 | pipeline_layout: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cube_bind_group`, `pipeline`, and `vertex_size` are never read [INFO] [stdout] --> src/render/scenes/scene_one/readys.rs:236:5 [INFO] [stdout] | [INFO] [stdout] 235 | pub struct VertexReady { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 236 | cube_bind_group: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 237 | pipeline: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | vertex_size: usize, [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/window/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / match self.render.entry { [INFO] [stdout] 26 | | RenderEntry::Ready(ref mut gfx) => { [INFO] [stdout] 27 | | let now = [INFO] [stdout] 28 | | std::time::Instant::now(); [INFO] [stdout] ... | [INFO] [stdout] 66 | | _ => {} [INFO] [stdout] 67 | | } [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] 25 ~ if let RenderEntry::Ready(ref mut gfx) = self.render.entry { [INFO] [stdout] 26 + let now = [INFO] [stdout] 27 + std::time::Instant::now(); [INFO] [stdout] 28 + let delta_time = [INFO] [stdout] 29 + now - gfx.last_update; [INFO] [stdout] 30 + let time = [INFO] [stdout] 31 + *gfx.time.lock().unwrap() [INFO] [stdout] 32 + + delta_time [INFO] [stdout] 33 + .as_secs_f32(); [INFO] [stdout] 34 + match gfx.limit_fps { [INFO] [stdout] 35 + LimitFPS::Limit(fps) => { [INFO] [stdout] 36 + let frame_duration = std::time::Duration::from_secs_f32(1.0 / fps as f32); [INFO] [stdout] 37 + if delta_time [INFO] [stdout] 38 + < frame_duration [INFO] [stdout] 39 + { [INFO] [stdout] 40 + spin_sleep::sleep( [INFO] [stdout] 41 + frame_duration [INFO] [stdout] 42 + - delta_time, [INFO] [stdout] 43 + ); [INFO] [stdout] 44 + } [INFO] [stdout] 45 + } [INFO] [stdout] 46 + _ => {} [INFO] [stdout] 47 + } [INFO] [stdout] 48 + [INFO] [stdout] 49 ~ // 在 sleep 之后更新 last_update [INFO] [stdout] 50 + gfx.last_update = [INFO] [stdout] 51 ~ std::time::Instant::now(); // 注意这里用新的时间 [INFO] [stdout] 52 + *gfx.time.lock().unwrap() = time; [INFO] [stdout] 53 + [INFO] [stdout] 54 ~ // FPS 计算也应该使用新的时间点 [INFO] [stdout] 55 + let real_delta = [INFO] [stdout] 56 + gfx.last_update - now; [INFO] [stdout] 57 + gfx.delta_time = [INFO] [stdout] 58 + real_delta.as_secs_f32(); [INFO] [stdout] 59 + // println!("fps: {}", (1.0 / real_delta.as_secs_f32()).floor()); [INFO] [stdout] 60 + self.window [INFO] [stdout] 61 + .as_ref() [INFO] [stdout] 62 + .unwrap() [INFO] [stdout] 63 + .request_redraw(); [INFO] [stdout] 64 + } [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/window/mod.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | / match gfx.limit_fps { [INFO] [stdout] 36 | | LimitFPS::Limit(fps) => { [INFO] [stdout] 37 | | let frame_duration = std::time::Duration::from_secs_f32(1.0 / fps as f32); [INFO] [stdout] 38 | | if delta_time [INFO] [stdout] ... | [INFO] [stdout] 47 | | _ => {} [INFO] [stdout] 48 | | } [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] 35 ~ if let LimitFPS::Limit(fps) = gfx.limit_fps { [INFO] [stdout] 36 + let frame_duration = std::time::Duration::from_secs_f32(1.0 / fps as f32); [INFO] [stdout] 37 + if delta_time [INFO] [stdout] 38 + < frame_duration [INFO] [stdout] 39 + { [INFO] [stdout] 40 + spin_sleep::sleep( [INFO] [stdout] 41 + frame_duration [INFO] [stdout] 42 + - delta_time, [INFO] [stdout] 43 + ); [INFO] [stdout] 44 + } [INFO] [stdout] 45 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/window/mod.rs:37:87 [INFO] [stdout] | [INFO] [stdout] 37 | let frame_duration = std::time::Duration::from_secs_f32(1.0 / fps as f32); [INFO] [stdout] | ^^^^^^^^^^ help: try: `fps` [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: unneeded `return` statement [INFO] [stdout] --> src/window/mod.rs:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | return gfx; [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] 100 - return gfx; [INFO] [stdout] 100 + gfx [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/render/mod.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / pub enum RenderEntry { [INFO] [stdout] 10 | | #[default] [INFO] [stdout] 11 | | NotReady, [INFO] [stdout] | | -------- the second-largest variant carries no data at all [INFO] [stdout] 12 | | Ready(Gfx), [INFO] [stdout] | | ---------- the largest variant contains at least 344 bytes [INFO] [stdout] 13 | | } [INFO] [stdout] | |_^ the entire enum is at least 344 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] = note: `#[warn(clippy::large_enum_variant)]` on by default [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 12 - Ready(Gfx), [INFO] [stdout] 12 + Ready(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/boid.rs:242:21 [INFO] [stdout] | [INFO] [stdout] 242 | / return EntitiesInstance { [INFO] [stdout] 243 | | pos: pos.to_array(), [INFO] [stdout] 244 | | }; [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] 242 ~ EntitiesInstance { [INFO] [stdout] 243 + pos: pos.to_array(), [INFO] [stdout] 244 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/paint_scene.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | / let _ = [INFO] [stdout] 40 | | TimeWorldUpdate::update(data, gfx); [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] = note: `#[warn(clippy::let_unit_value)]` on by default [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 39 - let _ = [INFO] [stdout] 40 - TimeWorldUpdate::update(data, gfx); [INFO] [stdout] 39 + TimeWorldUpdate::update(data, gfx); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/paint_scene.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | / let _ = [INFO] [stdout] 43 | | spatial_hash_ready::SpatialHashReady::update(data, gfx); [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 42 - let _ = [INFO] [stdout] 43 - spatial_hash_ready::SpatialHashReady::update(data, gfx); [INFO] [stdout] 42 + spatial_hash_ready::SpatialHashReady::update(data, gfx); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/paint_scene.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let _ = Boid::update(data, gfx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 45 - let _ = Boid::update(data, gfx); [INFO] [stdout] 45 + Boid::update(data, gfx); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/paint_scene.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | &mut render_pass, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: change this to: `render_pass` [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/render/scenes/patial_hash_space_scene/scene.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | &four_point_rect.as_slice(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `four_point_rect.as_slice()` [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/render/scenes/patial_hash_space_scene/scene.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | return render_pass; [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] 197 - return render_pass; [INFO] [stdout] 197 + render_pass [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u32` is unnecessary [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/scene.rs:193:16 [INFO] [stdout] | [INFO] [stdout] 193 | 0..8 as u32, [INFO] [stdout] | ^^^^^^^^ help: try: `8_u32` [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: unneeded `return` statement [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/entities.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | return e; [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] 53 - return e; [INFO] [stdout] 53 + e [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/entities.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | / &entities_instance_positions [INFO] [stdout] 63 | | .as_slice() [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: change this to [INFO] [stdout] | [INFO] [stdout] 62 ~ entities_instance_positions [INFO] [stdout] 63 + .as_slice() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/entities.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | return render_pass; [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] 233 - return render_pass; [INFO] [stdout] 233 + render_pass [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/entities.rs:267:17 [INFO] [stdout] | [INFO] [stdout] 267 | return entity; [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] 267 - return entity; [INFO] [stdout] 267 + entity [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `EntitiesInstance` which implements the `Copy` trait [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/entities.rs:261:34 [INFO] [stdout] | [INFO] [stdout] 261 | let mut entity = entity.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try dereferencing it: `*entity` [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: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/render/scenes/patial_hash_space_scene/entities.rs:276:17 [INFO] [stdout] | [INFO] [stdout] 276 | / &entities_instance_positions [INFO] [stdout] 277 | | .as_slice() [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: change this to [INFO] [stdout] | [INFO] [stdout] 276 ~ entities_instance_positions [INFO] [stdout] 277 + .as_slice() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/render/scenes/mod.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | readys_hashmap: HashMap< [INFO] [stdout] | _____________________^ [INFO] [stdout] 65 | | TypeId, [INFO] [stdout] 66 | | Box< [INFO] [stdout] 67 | | dyn FnMut( [INFO] [stdout] ... | [INFO] [stdout] 71 | | >, [INFO] [stdout] 72 | | >, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/render/scenes/mod.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | paints_hashmap: HashMap< [INFO] [stdout] | _____________________^ [INFO] [stdout] 74 | | TypeId, [INFO] [stdout] 75 | | Box< [INFO] [stdout] 76 | | dyn FnMut( [INFO] [stdout] ... | [INFO] [stdout] 80 | | >, [INFO] [stdout] 81 | | >, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 42s [INFO] running `Command { std: "docker" "inspect" "aef057c19aa320efdc48bc96b3fa778a000c31e0476f7ff0664be4e2c74b5014", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aef057c19aa320efdc48bc96b3fa778a000c31e0476f7ff0664be4e2c74b5014", kill_on_drop: false }` [INFO] [stdout] aef057c19aa320efdc48bc96b3fa778a000c31e0476f7ff0664be4e2c74b5014