[INFO] cloning repository https://github.com/Beritens/SplineGrind [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Beritens/SplineGrind" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBeritens%2FSplineGrind", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBeritens%2FSplineGrind'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3dc06681eef1b12bbeec574f6d02343c67c1a065 [INFO] checking Beritens/SplineGrind against 65b20a97de33e9e59992793a144aef2950c48c76 for pr-154715 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBeritens%2FSplineGrind" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Beritens/SplineGrind [INFO] finished tweaking git repo https://github.com/Beritens/SplineGrind [INFO] tweaked toml for git repo https://github.com/Beritens/SplineGrind written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Beritens/SplineGrind on toolchain 65b20a97de33e9e59992793a144aef2950c48c76 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Beritens/SplineGrind 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" "+65b20a97de33e9e59992793a144aef2950c48c76" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] f1cd0df70cf235de2228684c77144f637c1d43f000bc337ce7cc47855ed9bd30 [INFO] running `Command { std: "docker" "start" "f1cd0df70cf235de2228684c77144f637c1d43f000bc337ce7cc47855ed9bd30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f1cd0df70cf235de2228684c77144f637c1d43f000bc337ce7cc47855ed9bd30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f1cd0df70cf235de2228684c77144f637c1d43f000bc337ce7cc47855ed9bd30" "/opt/rustwide/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f1cd0df70cf235de2228684c77144f637c1d43f000bc337ce7cc47855ed9bd30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f1cd0df70cf235de2228684c77144f637c1d43f000bc337ce7cc47855ed9bd30" "/opt/rustwide/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking safe_arch v0.7.4 [INFO] [stderr] Compiling matrixmultiply v0.3.10 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Compiling bevy_asset_loader_derive v0.23.0 [INFO] [stderr] Checking wide v0.7.33 [INFO] [stderr] Checking glam v0.29.3 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking euclid v0.22.11 [INFO] [stderr] Checking image v0.25.6 [INFO] [stderr] Checking ordered-float v4.6.0 [INFO] [stderr] Checking wgpu-hal v24.0.4 [INFO] [stderr] Checking guillotiere v0.6.2 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking path-slash v0.2.1 [INFO] [stderr] Checking roots v0.0.8 [INFO] [stderr] Checking simba v0.9.0 [INFO] [stderr] Checking wgpu-core v24.0.5 [INFO] [stderr] Checking bevy_reflect v0.16.1 [INFO] [stderr] Checking encase v0.10.0 [INFO] [stderr] Checking bevy_mikktspace v0.16.1 [INFO] [stderr] Checking hexasphere v15.1.0 [INFO] [stderr] Checking nalgebra v0.33.2 [INFO] [stderr] Checking wgpu v24.0.5 [INFO] [stderr] Checking bevy_ecs v0.16.1 [INFO] [stderr] Checking bevy_math v0.16.1 [INFO] [stderr] Checking bevy_color v0.16.2 [INFO] [stderr] Checking bevy_app v0.16.1 [INFO] [stderr] Checking bevy_asset v0.16.1 [INFO] [stderr] Checking bevy_log v0.16.1 [INFO] [stderr] Checking bevy_input v0.16.1 [INFO] [stderr] Checking bevy_time v0.16.1 [INFO] [stderr] Checking bevy_a11y v0.16.1 [INFO] [stderr] Checking bevy_state v0.16.1 [INFO] [stderr] Checking bevy_transform v0.16.1 [INFO] [stderr] Checking bevy_diagnostic v0.16.1 [INFO] [stderr] Checking bevy_window v0.16.1 [INFO] [stderr] Checking bevy_gilrs v0.16.1 [INFO] [stderr] Checking bevy_image v0.16.1 [INFO] [stderr] Checking bevy_audio v0.16.1 [INFO] [stderr] Checking bevy_input_focus v0.16.1 [INFO] [stderr] Checking bevy_mesh v0.16.1 [INFO] [stderr] Checking bevy_winit v0.16.1 [INFO] [stderr] Checking bevy_render v0.16.1 [INFO] [stderr] Checking bevy_core_pipeline v0.16.1 [INFO] [stderr] Checking bevy_picking v0.16.1 [INFO] [stderr] Checking bevy_scene v0.16.1 [INFO] [stderr] Checking bevy_animation v0.16.1 [INFO] [stderr] Checking bevy_sprite v0.16.1 [INFO] [stderr] Checking bevy_pbr v0.16.1 [INFO] [stderr] Checking bevy_text v0.16.1 [INFO] [stderr] Checking bevy_ui v0.16.1 [INFO] [stderr] Checking bevy_dev_tools v0.16.1 [INFO] [stderr] Checking bevy_gizmos v0.16.1 [INFO] [stderr] Checking bevy_gltf v0.16.1 [INFO] [stderr] Checking bevy_internal v0.16.1 [INFO] [stderr] Checking bevy v0.16.1 [INFO] [stderr] Checking bevy_asset_loader v0.23.0 [INFO] [stderr] Checking SplineGrind v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `FpsOverlayConfig`, `FpsOverlayPlugin`, and `text::FontSmoothing` [INFO] [stdout] --> src/spines_plugin.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | dev_tools::fps_overlay::{FpsOverlayConfig, FpsOverlayPlugin}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | prelude::*, [INFO] [stdout] 5 | text::FontSmoothing, [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: `Vector3` and `Vector` [INFO] [stdout] --> src/spines_plugin.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use nalgebra::{Vector, Vector2, Vector3}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SimpleConvergency` and `find_root_newton_raphson` [INFO] [stdout] --> src/spines_plugin.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use roots::{find_root_newton_raphson, SimpleConvergency}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PhySched` and `SplineMemory` [INFO] [stdout] --> src/spines_plugin.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::physics_plugin::{PhySched, SplineColliderInfo, SplineMemory, VerletObject}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/spines_plugin.rs:22:37 [INFO] [stdout] | [INFO] [stdout] 22 | app.add_systems(PostUpdate, (follow_mouse.after(TransformSystem::TransformPropagate))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - app.add_systems(PostUpdate, (follow_mouse.after(TransformSystem::TransformPropagate))); [INFO] [stdout] 22 + app.add_systems(PostUpdate, follow_mouse.after(TransformSystem::TransformPropagate)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:106:15 [INFO] [stdout] | [INFO] [stdout] 106 | if(norm <= 190.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - if(norm <= 190.0){ [INFO] [stdout] 106 + if norm <= 190.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/spines_plugin.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | return ( [INFO] [stdout] | ______________^ [INFO] [stdout] 219 | | ((ti1 - ti4)*(ti2 - ti4)*(ti3 - u)*((ti2 - ti5)*(ti3 - u)*(di2*(-ti6 + u) + di3*(ti3 - u)) + (ti3 - ti6)*(-ti5 + u)*(di1*(-ti5 + u) + di2*(ti2 - u))) + (ti3 - ti5)*(ti3 - ti6)*(-ti4 + u)*((ti1 - ti4)*(ti2 - u)*(di1*(-ti5 + u) + di2*(ti2 - u)) + (ti2 - ti5)*(-ti4 + u)*(di*(-ti4 + u) + di1*(ti1 - u))))/((ti1 - ti4)*(ti2 - ti4)*(ti2 - ti5)*(ti3 - ti4)*(ti3 - ti5)*(ti3 - ti6)) [INFO] [stdout] | | ________^_______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________^ [INFO] [stdout] | ||________| [INFO] [stdout] | | [INFO] [stdout] 220 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 218 - return ( [INFO] [stdout] 219 - ((ti1 - ti4)*(ti2 - ti4)*(ti3 - u)*((ti2 - ti5)*(ti3 - u)*(di2*(-ti6 + u) + di3*(ti3 - u)) + (ti3 - ti6)*(-ti5 + u)*(di1*(-ti5 + u) + di2*(ti2 - u))) + (ti3 - ti5)*(ti3 - ti6)*(-ti4 + u)*((ti1 - ti4)*(ti2 - u)*(di1*(-ti5 + u) + di2*(ti2 - u)) + (ti2 - ti5)*(-ti4 + u)*(di*(-ti4 + u) + di1*(ti1 - u))))/((ti1 - ti4)*(ti2 - ti4)*(ti2 - ti5)*(ti3 - ti4)*(ti3 - ti5)*(ti3 - ti6)) [INFO] [stdout] 220 - ); [INFO] [stdout] 218 + return ((ti1 - ti4)*(ti2 - ti4)*(ti3 - u)*((ti2 - ti5)*(ti3 - u)*(di2*(-ti6 + u) + di3*(ti3 - u)) + (ti3 - ti6)*(-ti5 + u)*(di1*(-ti5 + u) + di2*(ti2 - u))) + (ti3 - ti5)*(ti3 - ti6)*(-ti4 + u)*((ti1 - ti4)*(ti2 - u)*(di1*(-ti5 + u) + di2*(ti2 - u)) + (ti2 - ti5)*(-ti4 + u)*(di*(-ti4 + u) + di1*(ti1 - u))))/((ti1 - ti4)*(ti2 - ti4)*(ti2 - ti5)*(ti3 - ti4)*(ti3 - ti5)*(ti3 - ti6)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/spines_plugin.rs:376:44 [INFO] [stdout] | [INFO] [stdout] 376 | mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 376 - mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] 376 + mut object_query: Query<&mut Position, (With)>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/spines_plugin.rs:376:61 [INFO] [stdout] | [INFO] [stdout] 376 | mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 376 - mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] 376 + mut object_query: Query<(&mut Position), With>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/spines_plugin.rs:436:44 [INFO] [stdout] | [INFO] [stdout] 436 | mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 436 - mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] 436 + mut object_query: Query<&mut Position, (With)>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/spines_plugin.rs:436:61 [INFO] [stdout] | [INFO] [stdout] 436 | mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 436 - mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] 436 + mut object_query: Query<(&mut Position), With>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FpsOverlayConfig`, `FpsOverlayPlugin`, and `text::FontSmoothing` [INFO] [stdout] --> src/spines_plugin.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | dev_tools::fps_overlay::{FpsOverlayConfig, FpsOverlayPlugin}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | prelude::*, [INFO] [stdout] 5 | text::FontSmoothing, [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: `Vector3` and `Vector` [INFO] [stdout] --> src/spines_plugin.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use nalgebra::{Vector, Vector2, Vector3}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SimpleConvergency` and `find_root_newton_raphson` [INFO] [stdout] --> src/spines_plugin.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use roots::{find_root_newton_raphson, SimpleConvergency}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PhySched` and `SplineMemory` [INFO] [stdout] --> src/spines_plugin.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::physics_plugin::{PhySched, SplineColliderInfo, SplineMemory, VerletObject}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/spines_plugin.rs:22:37 [INFO] [stdout] | [INFO] [stdout] 22 | app.add_systems(PostUpdate, (follow_mouse.after(TransformSystem::TransformPropagate))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - app.add_systems(PostUpdate, (follow_mouse.after(TransformSystem::TransformPropagate))); [INFO] [stdout] 22 + app.add_systems(PostUpdate, follow_mouse.after(TransformSystem::TransformPropagate)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/spines_plugin.rs:622:32 [INFO] [stdout] | [INFO] [stdout] 622 | return t.min(1.0).max(0.0);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:561:7 [INFO] [stdout] | [INFO] [stdout] 561 | if(dist < min_dist){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 561 - if(dist < min_dist){ [INFO] [stdout] 561 + if dist < min_dist { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:581:7 [INFO] [stdout] | [INFO] [stdout] 581 | if(dist < min_dist){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 581 - if(dist < min_dist){ [INFO] [stdout] 581 + if dist < min_dist { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:610:11 [INFO] [stdout] | [INFO] [stdout] 610 | if((f - point).norm() > 100.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 610 - if((f - point).norm() > 100.0){ [INFO] [stdout] 610 + if (f - point).norm() > 100.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:639:7 [INFO] [stdout] | [INFO] [stdout] 639 | if(smaller.x == bigger.x){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 639 - if(smaller.x == bigger.x){ [INFO] [stdout] 639 + if smaller.x == bigger.x { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:683:11 [INFO] [stdout] | [INFO] [stdout] 683 | if(spl.start_sector == 0 && splinco.start_sector == 1 || spl.start_sector == 1 && splinco.start_sector == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 683 - if(spl.start_sector == 0 && splinco.start_sector == 1 || spl.start_sector == 1 && splinco.start_sector == 0){ [INFO] [stdout] 683 + if spl.start_sector == 0 && splinco.start_sector == 1 || spl.start_sector == 1 && splinco.start_sector == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:687:11 [INFO] [stdout] | [INFO] [stdout] 687 | if(spl.end_sector == 0 && splinco.end_sector == 1 || spl.end_sector == 1 && splinco.end_sector == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 687 - if(spl.end_sector == 0 && splinco.end_sector == 1 || spl.end_sector == 1 && splinco.end_sector == 0){ [INFO] [stdout] 687 + if spl.end_sector == 0 && splinco.end_sector == 1 || spl.end_sector == 1 && splinco.end_sector == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::PI` [INFO] [stdout] --> src/physics_plugin.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Map` [INFO] [stdout] --> src/physics_plugin.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Map; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bevy::math::ops::atan2` [INFO] [stdout] --> src/physics_plugin.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use bevy::math::ops::atan2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bevy::math::Quat` [INFO] [stdout] --> src/physics_plugin.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use bevy::math::Quat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Update` [INFO] [stdout] --> src/physics_plugin.rs:9:79 [INFO] [stdout] | [INFO] [stdout] 9 | use bevy::prelude::{Component, Entity, IntoScheduleConfigs, Query, SystemSet, Update, With, Without, World}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Normed` [INFO] [stdout] --> src/physics_plugin.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use nalgebra::{Normed, Vector2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FollowMouse`, `OldPosition`, and `SplinePlugin` [INFO] [stdout] --> src/physics_plugin.rs:11:56 [INFO] [stdout] | [INFO] [stdout] 11 | ...int_inside, ControlledBy, FollowMouse, HiddenControlledBy, OldPosition, Position, Spline, SplinePlugin, SplineSet}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/physics_plugin.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | ...te,((update_position, apply_gravity.before(update_position), collide.before(update_position),reset_collisions.before(collide)).in_set(PhySet).after(SplineSet))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - app.add_systems(FixedUpdate,((update_position, apply_gravity.before(update_position), collide.before(update_position),reset_collisions.before(collide)).in_set(PhySet).after(SplineSet))); [INFO] [stdout] 21 + app.add_systems(FixedUpdate,(update_position, apply_gravity.before(update_position), collide.before(update_position),reset_collisions.before(collide)).in_set(PhySet).after(SplineSet)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/physics_plugin.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | mut query: Query<(&mut VerletObject), With> [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - mut query: Query<(&mut VerletObject), With> [INFO] [stdout] 88 + mut query: Query<&mut VerletObject, With> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/physics_plugin.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | for (mut verlet_object) in &mut query { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - for (mut verlet_object) in &mut query { [INFO] [stdout] 91 + for mut verlet_object in &mut query { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/physics_plugin.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | mut query: Query<(&mut Collider)> [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 99 - mut query: Query<(&mut Collider)> [INFO] [stdout] 99 + mut query: Query<&mut Collider> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/physics_plugin.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | for (mut collider) in &mut query { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - for (mut collider) in &mut query { [INFO] [stdout] 101 + for mut collider in &mut query { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/physics_plugin.rs:130:27 [INFO] [stdout] | [INFO] [stdout] 130 | position_query: Query<(&Position), Without>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 130 - position_query: Query<(&Position), Without>, [INFO] [stdout] 130 + position_query: Query<&Position, Without>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:106:15 [INFO] [stdout] | [INFO] [stdout] 106 | if(norm <= 190.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - if(norm <= 190.0){ [INFO] [stdout] 106 + if norm <= 190.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/spines_plugin.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | return ( [INFO] [stdout] | ______________^ [INFO] [stdout] 219 | | ((ti1 - ti4)*(ti2 - ti4)*(ti3 - u)*((ti2 - ti5)*(ti3 - u)*(di2*(-ti6 + u) + di3*(ti3 - u)) + (ti3 - ti6)*(-ti5 + u)*(di1*(-ti5 + u) + di2*(ti2 - u))) + (ti3 - ti5)*(ti3 - ti6)*(-ti4 + u)*((ti1 - ti4)*(ti2 - u)*(di1*(-ti5 + u) + di2*(ti2 - u)) + (ti2 - ti5)*(-ti4 + u)*(di*(-ti4 + u) + di1*(ti1 - u))))/((ti1 - ti4)*(ti2 - ti4)*(ti2 - ti5)*(ti3 - ti4)*(ti3 - ti5)*(ti3 - ti6)) [INFO] [stdout] | | ________^_______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________^ [INFO] [stdout] | ||________| [INFO] [stdout] | | [INFO] [stdout] 220 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 218 - return ( [INFO] [stdout] 219 - ((ti1 - ti4)*(ti2 - ti4)*(ti3 - u)*((ti2 - ti5)*(ti3 - u)*(di2*(-ti6 + u) + di3*(ti3 - u)) + (ti3 - ti6)*(-ti5 + u)*(di1*(-ti5 + u) + di2*(ti2 - u))) + (ti3 - ti5)*(ti3 - ti6)*(-ti4 + u)*((ti1 - ti4)*(ti2 - u)*(di1*(-ti5 + u) + di2*(ti2 - u)) + (ti2 - ti5)*(-ti4 + u)*(di*(-ti4 + u) + di1*(ti1 - u))))/((ti1 - ti4)*(ti2 - ti4)*(ti2 - ti5)*(ti3 - ti4)*(ti3 - ti5)*(ti3 - ti6)) [INFO] [stdout] 220 - ); [INFO] [stdout] 218 + return ((ti1 - ti4)*(ti2 - ti4)*(ti3 - u)*((ti2 - ti5)*(ti3 - u)*(di2*(-ti6 + u) + di3*(ti3 - u)) + (ti3 - ti6)*(-ti5 + u)*(di1*(-ti5 + u) + di2*(ti2 - u))) + (ti3 - ti5)*(ti3 - ti6)*(-ti4 + u)*((ti1 - ti4)*(ti2 - u)*(di1*(-ti5 + u) + di2*(ti2 - u)) + (ti2 - ti5)*(-ti4 + u)*(di*(-ti4 + u) + di1*(ti1 - u))))/((ti1 - ti4)*(ti2 - ti4)*(ti2 - ti5)*(ti3 - ti4)*(ti3 - ti5)*(ti3 - ti6)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/spines_plugin.rs:376:44 [INFO] [stdout] | [INFO] [stdout] 376 | mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 376 - mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] 376 + mut object_query: Query<&mut Position, (With)>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/spines_plugin.rs:376:61 [INFO] [stdout] | [INFO] [stdout] 376 | mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 376 - mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] 376 + mut object_query: Query<(&mut Position), With>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/spines_plugin.rs:436:44 [INFO] [stdout] | [INFO] [stdout] 436 | mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 436 - mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] 436 + mut object_query: Query<&mut Position, (With)>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/spines_plugin.rs:436:61 [INFO] [stdout] | [INFO] [stdout] 436 | mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 436 - mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] 436 + mut object_query: Query<(&mut Position), With>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/spines_plugin.rs:622:32 [INFO] [stdout] | [INFO] [stdout] 622 | return t.min(1.0).max(0.0);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:561:7 [INFO] [stdout] | [INFO] [stdout] 561 | if(dist < min_dist){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 561 - if(dist < min_dist){ [INFO] [stdout] 561 + if dist < min_dist { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:581:7 [INFO] [stdout] | [INFO] [stdout] 581 | if(dist < min_dist){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 581 - if(dist < min_dist){ [INFO] [stdout] 581 + if dist < min_dist { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:610:11 [INFO] [stdout] | [INFO] [stdout] 610 | if((f - point).norm() > 100.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 610 - if((f - point).norm() > 100.0){ [INFO] [stdout] 610 + if (f - point).norm() > 100.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:639:7 [INFO] [stdout] | [INFO] [stdout] 639 | if(smaller.x == bigger.x){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 639 - if(smaller.x == bigger.x){ [INFO] [stdout] 639 + if smaller.x == bigger.x { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:683:11 [INFO] [stdout] | [INFO] [stdout] 683 | if(spl.start_sector == 0 && splinco.start_sector == 1 || spl.start_sector == 1 && splinco.start_sector == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 683 - if(spl.start_sector == 0 && splinco.start_sector == 1 || spl.start_sector == 1 && splinco.start_sector == 0){ [INFO] [stdout] 683 + if spl.start_sector == 0 && splinco.start_sector == 1 || spl.start_sector == 1 && splinco.start_sector == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/spines_plugin.rs:687:11 [INFO] [stdout] | [INFO] [stdout] 687 | if(spl.end_sector == 0 && splinco.end_sector == 1 || spl.end_sector == 1 && splinco.end_sector == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 687 - if(spl.end_sector == 0 && splinco.end_sector == 1 || spl.end_sector == 1 && splinco.end_sector == 0){ [INFO] [stdout] 687 + if spl.end_sector == 0 && splinco.end_sector == 1 || spl.end_sector == 1 && splinco.end_sector == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::PI` [INFO] [stdout] --> src/physics_plugin.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Map` [INFO] [stdout] --> src/physics_plugin.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Map; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bevy::math::ops::atan2` [INFO] [stdout] --> src/physics_plugin.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use bevy::math::ops::atan2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bevy::math::Quat` [INFO] [stdout] --> src/physics_plugin.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use bevy::math::Quat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/physics_plugin.rs:203:15 [INFO] [stdout] | [INFO] [stdout] 203 | if(inside) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 203 - if(inside) { [INFO] [stdout] 203 + if inside { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FixedUpdate` [INFO] [stdout] --> src/controls_plugin.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use bevy::app::{App, FixedUpdate, Plugin}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::physics_plugin::PhySched` [INFO] [stdout] --> src/controls_plugin.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::physics_plugin::PhySched; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ControlledBy`, `Position`, `Spline`, and `VisualizedBy` [INFO] [stdout] --> src/controls_plugin.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::spines_plugin::{ControlledBy, Position, Spline, VisualizedBy}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bevy::asset::ron::Map` [INFO] [stdout] --> src/player_plugin.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bevy::asset::ron::Map; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bevy::transform` [INFO] [stdout] --> src/player_plugin.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use bevy::transform; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bevy_asset_loader::prelude::*` [INFO] [stdout] --> src/player_plugin.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use bevy_asset_loader::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/player_plugin.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 64 | if(!collider.collisions_old.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - if(!collider.collisions_old.is_empty()){ [INFO] [stdout] 64 + if !collider.collisions_old.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/player_plugin.rs:88:11 [INFO] [stdout] | [INFO] [stdout] 88 | if(collider.collisions_old.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - if(collider.collisions_old.is_empty()){ [INFO] [stdout] 88 + if collider.collisions_old.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/player_plugin.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | ... let angle = if(hor_speed.norm_squared() > 0.1) {atan2(speed.y, speed.x) + cross.signum() * PI as f32/ 2.0} else {PI as f32/2.0}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - let angle = if(hor_speed.norm_squared() > 0.1) {atan2(speed.y, speed.x) + cross.signum() * PI as f32/ 2.0} else {PI as f32/2.0}; [INFO] [stdout] 89 + let angle = if hor_speed.norm_squared() > 0.1 {atan2(speed.y, speed.x) + cross.signum() * PI as f32/ 2.0} else {PI as f32/2.0}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/player_plugin.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | if(val > 0.2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - if(val > 0.2){ [INFO] [stdout] 98 + if val > 0.2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/player_plugin.rs:102:20 [INFO] [stdout] | [INFO] [stdout] 102 | else if(val <0.1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 102 - else if(val <0.1){ [INFO] [stdout] 102 + else if val <0.1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/player_plugin.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | if(val > 0.2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 109 - if(val > 0.2){ [INFO] [stdout] 109 + if val > 0.2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cos` [INFO] [stdout] --> src/main.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use bevy::math::ops::{cos, sin}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector` [INFO] [stdout] --> src/main.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 14 | use nalgebra::{Vector, Vector2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Follower` [INFO] [stdout] --> src/main.rs:17:46 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::controls_plugin::{ControlsPlugin, Follower}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Collider`, `Gravitate`, and `VerletObject` [INFO] [stdout] --> src/main.rs:18:29 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::physics_plugin::{Collider, Gravitate, PhysicsPlugin, VerletObject}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Update` [INFO] [stdout] --> src/physics_plugin.rs:9:79 [INFO] [stdout] | [INFO] [stdout] 9 | use bevy::prelude::{Component, Entity, IntoScheduleConfigs, Query, SystemSet, Update, With, Without, World}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Normed` [INFO] [stdout] --> src/physics_plugin.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use nalgebra::{Normed, Vector2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FollowMouse`, `OldPosition`, and `SplinePlugin` [INFO] [stdout] --> src/physics_plugin.rs:11:56 [INFO] [stdout] | [INFO] [stdout] 11 | ...int_inside, ControlledBy, FollowMouse, HiddenControlledBy, OldPosition, Position, Spline, SplinePlugin, SplineSet}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/physics_plugin.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | ...te,((update_position, apply_gravity.before(update_position), collide.before(update_position),reset_collisions.before(collide)).in_set(PhySet).after(SplineSet))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - app.add_systems(FixedUpdate,((update_position, apply_gravity.before(update_position), collide.before(update_position),reset_collisions.before(collide)).in_set(PhySet).after(SplineSet))); [INFO] [stdout] 21 + app.add_systems(FixedUpdate,(update_position, apply_gravity.before(update_position), collide.before(update_position),reset_collisions.before(collide)).in_set(PhySet).after(SplineSet)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/physics_plugin.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | mut query: Query<(&mut VerletObject), With> [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - mut query: Query<(&mut VerletObject), With> [INFO] [stdout] 88 + mut query: Query<&mut VerletObject, With> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/physics_plugin.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | for (mut verlet_object) in &mut query { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - for (mut verlet_object) in &mut query { [INFO] [stdout] 91 + for mut verlet_object in &mut query { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/physics_plugin.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | mut query: Query<(&mut Collider)> [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 99 - mut query: Query<(&mut Collider)> [INFO] [stdout] 99 + mut query: Query<&mut Collider> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/physics_plugin.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | for (mut collider) in &mut query { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - for (mut collider) in &mut query { [INFO] [stdout] 101 + for mut collider in &mut query { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/physics_plugin.rs:130:27 [INFO] [stdout] | [INFO] [stdout] 130 | position_query: Query<(&Position), Without>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 130 - position_query: Query<(&Position), Without>, [INFO] [stdout] 130 + position_query: Query<&Position, Without>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/physics_plugin.rs:203:15 [INFO] [stdout] | [INFO] [stdout] 203 | if(inside) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 203 - if(inside) { [INFO] [stdout] 203 + if inside { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FixedUpdate` [INFO] [stdout] --> src/controls_plugin.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use bevy::app::{App, FixedUpdate, Plugin}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::physics_plugin::PhySched` [INFO] [stdout] --> src/controls_plugin.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::physics_plugin::PhySched; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ControlledBy`, `Position`, `Spline`, and `VisualizedBy` [INFO] [stdout] --> src/controls_plugin.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::spines_plugin::{ControlledBy, Position, Spline, VisualizedBy}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bevy::asset::ron::Map` [INFO] [stdout] --> src/player_plugin.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bevy::asset::ron::Map; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bevy::transform` [INFO] [stdout] --> src/player_plugin.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use bevy::transform; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bevy_asset_loader::prelude::*` [INFO] [stdout] --> src/player_plugin.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use bevy_asset_loader::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/player_plugin.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 64 | if(!collider.collisions_old.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - if(!collider.collisions_old.is_empty()){ [INFO] [stdout] 64 + if !collider.collisions_old.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/player_plugin.rs:88:11 [INFO] [stdout] | [INFO] [stdout] 88 | if(collider.collisions_old.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - if(collider.collisions_old.is_empty()){ [INFO] [stdout] 88 + if collider.collisions_old.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/player_plugin.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | ... let angle = if(hor_speed.norm_squared() > 0.1) {atan2(speed.y, speed.x) + cross.signum() * PI as f32/ 2.0} else {PI as f32/2.0}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - let angle = if(hor_speed.norm_squared() > 0.1) {atan2(speed.y, speed.x) + cross.signum() * PI as f32/ 2.0} else {PI as f32/2.0}; [INFO] [stdout] 89 + let angle = if hor_speed.norm_squared() > 0.1 {atan2(speed.y, speed.x) + cross.signum() * PI as f32/ 2.0} else {PI as f32/2.0}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/player_plugin.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | if(val > 0.2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - if(val > 0.2){ [INFO] [stdout] 98 + if val > 0.2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/player_plugin.rs:102:20 [INFO] [stdout] | [INFO] [stdout] 102 | else if(val <0.1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 102 - else if(val <0.1){ [INFO] [stdout] 102 + else if val <0.1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/player_plugin.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | if(val > 0.2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 109 - if(val > 0.2){ [INFO] [stdout] 109 + if val > 0.2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cos` [INFO] [stdout] --> src/main.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use bevy::math::ops::{cos, sin}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector` [INFO] [stdout] --> src/main.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 14 | use nalgebra::{Vector, Vector2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Follower` [INFO] [stdout] --> src/main.rs:17:46 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::controls_plugin::{ControlsPlugin, Follower}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Collider`, `Gravitate`, and `VerletObject` [INFO] [stdout] --> src/main.rs:18:29 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::physics_plugin::{Collider, Gravitate, PhysicsPlugin, VerletObject}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/main.rs:84:37 [INFO] [stdout] | [INFO] [stdout] 84 | splines.push(commands.spawn((crate::spines_plugin::Spline())).id()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - splines.push(commands.spawn((crate::spines_plugin::Spline())).id()); [INFO] [stdout] 84 + splines.push(commands.spawn(crate::spines_plugin::Spline()).id()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/main.rs:84:37 [INFO] [stdout] | [INFO] [stdout] 84 | splines.push(commands.spawn((crate::spines_plugin::Spline())).id()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - splines.push(commands.spawn((crate::spines_plugin::Spline())).id()); [INFO] [stdout] 84 + splines.push(commands.spawn(crate::spines_plugin::Spline()).id()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bevy::render::render_resource::encase::private::RuntimeSizedArray` [INFO] [stdout] --> src/spines_plugin.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use bevy::render::render_resource::encase::private::RuntimeSizedArray; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Normed` [INFO] [stdout] --> src/player_plugin.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use nalgebra::{Normed, Vector2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spines_plugin.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 104 | for (mut pushed_pos, mut target, mov) in &mut pushed_query{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pusher` [INFO] [stdout] --> src/spines_plugin.rs:102:20 [INFO] [stdout] | [INFO] [stdout] 102 | for (push_pos, pusher) in &pusher_query{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pusher` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/spines_plugin.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 104 | for (mut pushed_pos, mut target, mov) in &mut pushed_query{ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mov` [INFO] [stdout] --> src/spines_plugin.rs:104:42 [INFO] [stdout] | [INFO] [stdout] 104 | for (mut pushed_pos, mut target, mov) in &mut pushed_query{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_mov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spines_plugin.rs:157:19 [INFO] [stdout] | [INFO] [stdout] 157 | for (mut pos, mut follower_mouse) in follower_query.iter_mut() { [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_mouse` [INFO] [stdout] --> src/spines_plugin.rs:157:19 [INFO] [stdout] | [INFO] [stdout] 157 | for (mut pos, mut follower_mouse) in follower_query.iter_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_follower_mouse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mov` [INFO] [stdout] --> src/spines_plugin.rs:168:31 [INFO] [stdout] | [INFO] [stdout] 168 | for (mut pos, mut trans, mov) in &mut position_query{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_mov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ti` [INFO] [stdout] --> src/spines_plugin.rs:214:26 [INFO] [stdout] | [INFO] [stdout] 214 | fn cubic_bspline(u: f32, ti: f32, ti1: f32, ti2: f32, ti3: f32, ti4: f32, ti5: f32, ti6:f32, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ti` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp` [INFO] [stdout] --> src/spines_plugin.rs:225:100 [INFO] [stdout] | [INFO] [stdout] 225 | ...>, t: f32, t_vec: &Vec,temp: &mut [Vector2; LEN], l: usize) -> Vector2 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_temp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spline` [INFO] [stdout] --> src/spines_plugin.rs:330:10 [INFO] [stdout] | [INFO] [stdout] 330 | for (spline, controlled_by, visualized_by) in &query { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spines_plugin.rs:376:20 [INFO] [stdout] | [INFO] [stdout] 376 | mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spines_plugin.rs:410:13 [INFO] [stdout] | [INFO] [stdout] 410 | let mut t = get_nearest_spline_point(object.0, &positions); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spline` [INFO] [stdout] --> src/spines_plugin.rs:386:10 [INFO] [stdout] | [INFO] [stdout] 386 | for (spline, controlled_by, visualized_by) in &query { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `step` [INFO] [stdout] --> src/spines_plugin.rs:398:13 [INFO] [stdout] | [INFO] [stdout] 398 | let step = 1.0 / n as f32; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_step` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spines_plugin.rs:436:20 [INFO] [stdout] | [INFO] [stdout] 436 | mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spines_plugin.rs:470:13 [INFO] [stdout] | [INFO] [stdout] 470 | let mut t = get_nearest_spline_point(object.0, &positions); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spline` [INFO] [stdout] --> src/spines_plugin.rs:446:10 [INFO] [stdout] | [INFO] [stdout] 446 | for (spline, controlled_by, visualized_by) in &query { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `step` [INFO] [stdout] --> src/spines_plugin.rs:458:13 [INFO] [stdout] | [INFO] [stdout] 458 | let step = 1.0 / n as f32; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_step` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/spines_plugin.rs:611:17 [INFO] [stdout] | [INFO] [stdout] 611 | let t: f32 = rng.gen_range(0.0..1.0); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `l` is never read [INFO] [stdout] --> src/spines_plugin.rs:541:16 [INFO] [stdout] | [INFO] [stdout] 541 | let mut l = 0usize; [INFO] [stdout] | ^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 593 | l = find_knot::<4>(t, &v); [INFO] [stdout] | ------------------------- `l` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cached_ddf` is never read [INFO] [stdout] --> src/spines_plugin.rs:544:22 [INFO] [stdout] | [INFO] [stdout] 544 | let mut cached_ddf = Vector2::zeros(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 597 | cached_ddf = de_boors_second_derivative::<4>(&positions, t, &v, &mut temp2, l); [INFO] [stdout] | ------------------------------------------------------------------------------ `cached_ddf` is overwritten here before the previous value is read [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> src/spines_plugin.rs:546:17 [INFO] [stdout] | [INFO] [stdout] 546 | let mut t :f32= 0.5; // initial guess [INFO] [stdout] | ^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 588 | t = min_t; [INFO] [stdout] | --------- `t` is overwritten here before the previous value is read [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spline` [INFO] [stdout] --> src/physics_plugin.rs:139:10 [INFO] [stdout] | [INFO] [stdout] 139 | for (spline, controlled_by, hidden_controlled_by, entity) in &spline_query { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hidden_positions` [INFO] [stdout] --> src/physics_plugin.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | let hidden_positions: Vec> = hidden_control_points [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hidden_positions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grad` [INFO] [stdout] --> src/physics_plugin.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | let grad = crate::spines_plugin::de_boors_derivative::<4>(&positions, t, &v, &mut temp_buf, l); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_grad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `underground` is assigned to, but never used [INFO] [stdout] --> src/physics_plugin.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | let mut underground = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_underground` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `underground` is never read [INFO] [stdout] --> src/physics_plugin.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | underground= true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player_plugin.rs:24:41 [INFO] [stdout] | [INFO] [stdout] 24 | fn spawn_player(mut commands: Commands, mut player_assets: Res) { [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `circle` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let circle = meshes.add(Circle::new(30.0)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mid_circle` [INFO] [stdout] --> src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let mid_circle = meshes.add(Circle::new(10.0)); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mid_circle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | for i in 0..1{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `RED` is never used [INFO] [stdout] --> src/main.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 24 | impl OverlayColor { [INFO] [stdout] | ----------------- associated constant in this implementation [INFO] [stdout] 25 | const RED: Color = Color::srgb(1.0, 0.0, 0.0); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `default_position` is never read [INFO] [stdout] --> src/spines_plugin.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Movable{ [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 43 | pub default_position: Vector2 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `de_casteljau` is never used [INFO] [stdout] --> src/spines_plugin.rs:175:4 [INFO] [stdout] | [INFO] [stdout] 175 | fn de_casteljau(mut control_points: Vec>, t: f32) -> Vector2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cubic_bspline` is never used [INFO] [stdout] --> src/spines_plugin.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn cubic_bspline(u: f32, ti: f32, ti1: f32, ti2: f32, ti3: f32, ti4: f32, ti5: f32, ti6:f32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `not_de_boors` is never used [INFO] [stdout] --> src/spines_plugin.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn not_de_boors(control_points: &Vec>, t: f32, t_vec: &Vec,temp: &mut [Vector2; LEN], ... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_intersections` is never used [INFO] [stdout] --> src/spines_plugin.rs:374:4 [INFO] [stdout] | [INFO] [stdout] 374 | fn render_intersections(query: Query<(&Spline, &ControlledBy, &GradientVisualizedBy)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_my_schedule` is never used [INFO] [stdout] --> src/physics_plugin.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn run_my_schedule(world: &mut World) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mass` is never constructed [INFO] [stdout] --> src/physics_plugin.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | struct Mass(f32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `other` and `point` are never read [INFO] [stdout] --> src/physics_plugin.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Collision{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 58 | pub other: Entity, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 59 | pub point: Vector2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Collision` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_collision` is never used [INFO] [stdout] --> src/physics_plugin.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Collider { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn add_collision(&mut self, c: Collision) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup` is never used [INFO] [stdout] --> src/physics_plugin.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn setup(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/spines_plugin.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | let N: usize = LEN - 1; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/spines_plugin.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | let N: usize = LEN - 1; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/spines_plugin.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 271 | let N: usize = LEN - 2; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `gravity` should have an upper case name [INFO] [stdout] --> src/physics_plugin.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 81 | const gravity: Vector2 = Vector2::::new(0.0, -10.0); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 81 - const gravity: Vector2 = Vector2::::new(0.0, -10.0); [INFO] [stdout] 81 + const GRAVITY: Vector2 = Vector2::::new(0.0, -10.0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cameraWidth` should have a snake case name [INFO] [stdout] --> src/player_plugin.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let cameraWidth = 2400.0; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `camera_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bevy::render::render_resource::encase::private::RuntimeSizedArray` [INFO] [stdout] --> src/spines_plugin.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use bevy::render::render_resource::encase::private::RuntimeSizedArray; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Normed` [INFO] [stdout] --> src/player_plugin.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use nalgebra::{Normed, Vector2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spines_plugin.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 104 | for (mut pushed_pos, mut target, mov) in &mut pushed_query{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pusher` [INFO] [stdout] --> src/spines_plugin.rs:102:20 [INFO] [stdout] | [INFO] [stdout] 102 | for (push_pos, pusher) in &pusher_query{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pusher` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/spines_plugin.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 104 | for (mut pushed_pos, mut target, mov) in &mut pushed_query{ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mov` [INFO] [stdout] --> src/spines_plugin.rs:104:42 [INFO] [stdout] | [INFO] [stdout] 104 | for (mut pushed_pos, mut target, mov) in &mut pushed_query{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_mov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spines_plugin.rs:157:19 [INFO] [stdout] | [INFO] [stdout] 157 | for (mut pos, mut follower_mouse) in follower_query.iter_mut() { [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_mouse` [INFO] [stdout] --> src/spines_plugin.rs:157:19 [INFO] [stdout] | [INFO] [stdout] 157 | for (mut pos, mut follower_mouse) in follower_query.iter_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_follower_mouse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mov` [INFO] [stdout] --> src/spines_plugin.rs:168:31 [INFO] [stdout] | [INFO] [stdout] 168 | for (mut pos, mut trans, mov) in &mut position_query{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_mov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ti` [INFO] [stdout] --> src/spines_plugin.rs:214:26 [INFO] [stdout] | [INFO] [stdout] 214 | fn cubic_bspline(u: f32, ti: f32, ti1: f32, ti2: f32, ti3: f32, ti4: f32, ti5: f32, ti6:f32, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ti` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp` [INFO] [stdout] --> src/spines_plugin.rs:225:100 [INFO] [stdout] | [INFO] [stdout] 225 | ...>, t: f32, t_vec: &Vec,temp: &mut [Vector2; LEN], l: usize) -> Vector2 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_temp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spline` [INFO] [stdout] --> src/spines_plugin.rs:330:10 [INFO] [stdout] | [INFO] [stdout] 330 | for (spline, controlled_by, visualized_by) in &query { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spines_plugin.rs:376:20 [INFO] [stdout] | [INFO] [stdout] 376 | mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spines_plugin.rs:410:13 [INFO] [stdout] | [INFO] [stdout] 410 | let mut t = get_nearest_spline_point(object.0, &positions); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spline` [INFO] [stdout] --> src/spines_plugin.rs:386:10 [INFO] [stdout] | [INFO] [stdout] 386 | for (spline, controlled_by, visualized_by) in &query { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `step` [INFO] [stdout] --> src/spines_plugin.rs:398:13 [INFO] [stdout] | [INFO] [stdout] 398 | let step = 1.0 / n as f32; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_step` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spines_plugin.rs:436:20 [INFO] [stdout] | [INFO] [stdout] 436 | mut object_query: Query<(&mut Position), (With)>, [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spines_plugin.rs:470:13 [INFO] [stdout] | [INFO] [stdout] 470 | let mut t = get_nearest_spline_point(object.0, &positions); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spline` [INFO] [stdout] --> src/spines_plugin.rs:446:10 [INFO] [stdout] | [INFO] [stdout] 446 | for (spline, controlled_by, visualized_by) in &query { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `step` [INFO] [stdout] --> src/spines_plugin.rs:458:13 [INFO] [stdout] | [INFO] [stdout] 458 | let step = 1.0 / n as f32; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_step` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/spines_plugin.rs:611:17 [INFO] [stdout] | [INFO] [stdout] 611 | let t: f32 = rng.gen_range(0.0..1.0); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `l` is never read [INFO] [stdout] --> src/spines_plugin.rs:541:16 [INFO] [stdout] | [INFO] [stdout] 541 | let mut l = 0usize; [INFO] [stdout] | ^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 593 | l = find_knot::<4>(t, &v); [INFO] [stdout] | ------------------------- `l` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cached_ddf` is never read [INFO] [stdout] --> src/spines_plugin.rs:544:22 [INFO] [stdout] | [INFO] [stdout] 544 | let mut cached_ddf = Vector2::zeros(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 597 | cached_ddf = de_boors_second_derivative::<4>(&positions, t, &v, &mut temp2, l); [INFO] [stdout] | ------------------------------------------------------------------------------ `cached_ddf` is overwritten here before the previous value is read [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> src/spines_plugin.rs:546:17 [INFO] [stdout] | [INFO] [stdout] 546 | let mut t :f32= 0.5; // initial guess [INFO] [stdout] | ^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 588 | t = min_t; [INFO] [stdout] | --------- `t` is overwritten here before the previous value is read [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spline` [INFO] [stdout] --> src/physics_plugin.rs:139:10 [INFO] [stdout] | [INFO] [stdout] 139 | for (spline, controlled_by, hidden_controlled_by, entity) in &spline_query { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hidden_positions` [INFO] [stdout] --> src/physics_plugin.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | let hidden_positions: Vec> = hidden_control_points [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hidden_positions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grad` [INFO] [stdout] --> src/physics_plugin.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | let grad = crate::spines_plugin::de_boors_derivative::<4>(&positions, t, &v, &mut temp_buf, l); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_grad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `underground` is assigned to, but never used [INFO] [stdout] --> src/physics_plugin.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | let mut underground = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_underground` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `underground` is never read [INFO] [stdout] --> src/physics_plugin.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | underground= true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player_plugin.rs:24:41 [INFO] [stdout] | [INFO] [stdout] 24 | fn spawn_player(mut commands: Commands, mut player_assets: Res) { [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `circle` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let circle = meshes.add(Circle::new(30.0)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mid_circle` [INFO] [stdout] --> src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let mid_circle = meshes.add(Circle::new(10.0)); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mid_circle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | for i in 0..1{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `RED` is never used [INFO] [stdout] --> src/main.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 24 | impl OverlayColor { [INFO] [stdout] | ----------------- associated constant in this implementation [INFO] [stdout] 25 | const RED: Color = Color::srgb(1.0, 0.0, 0.0); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `default_position` is never read [INFO] [stdout] --> src/spines_plugin.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Movable{ [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 43 | pub default_position: Vector2 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `de_casteljau` is never used [INFO] [stdout] --> src/spines_plugin.rs:175:4 [INFO] [stdout] | [INFO] [stdout] 175 | fn de_casteljau(mut control_points: Vec>, t: f32) -> Vector2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cubic_bspline` is never used [INFO] [stdout] --> src/spines_plugin.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn cubic_bspline(u: f32, ti: f32, ti1: f32, ti2: f32, ti3: f32, ti4: f32, ti5: f32, ti6:f32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `not_de_boors` is never used [INFO] [stdout] --> src/spines_plugin.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn not_de_boors(control_points: &Vec>, t: f32, t_vec: &Vec,temp: &mut [Vector2; LEN], ... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_intersections` is never used [INFO] [stdout] --> src/spines_plugin.rs:374:4 [INFO] [stdout] | [INFO] [stdout] 374 | fn render_intersections(query: Query<(&Spline, &ControlledBy, &GradientVisualizedBy)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_my_schedule` is never used [INFO] [stdout] --> src/physics_plugin.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn run_my_schedule(world: &mut World) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mass` is never constructed [INFO] [stdout] --> src/physics_plugin.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | struct Mass(f32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `other` and `point` are never read [INFO] [stdout] --> src/physics_plugin.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Collision{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 58 | pub other: Entity, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 59 | pub point: Vector2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Collision` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_collision` is never used [INFO] [stdout] --> src/physics_plugin.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Collider { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn add_collision(&mut self, c: Collision) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup` is never used [INFO] [stdout] --> src/physics_plugin.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn setup(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/spines_plugin.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | let N: usize = LEN - 1; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/spines_plugin.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | let N: usize = LEN - 1; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/spines_plugin.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 271 | let N: usize = LEN - 2; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `gravity` should have an upper case name [INFO] [stdout] --> src/physics_plugin.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 81 | const gravity: Vector2 = Vector2::::new(0.0, -10.0); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 81 - const gravity: Vector2 = Vector2::::new(0.0, -10.0); [INFO] [stdout] 81 + const GRAVITY: Vector2 = Vector2::::new(0.0, -10.0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cameraWidth` should have a snake case name [INFO] [stdout] --> src/player_plugin.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let cameraWidth = 2400.0; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `camera_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 3m 21s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: naga v24.0.0, nix v0.29.0, nix v0.30.1, wgpu v24.0.5, wgpu-core v24.0.5, wgpu-hal v24.0.4, winit v0.30.12 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 4` [INFO] running `Command { std: "docker" "inspect" "f1cd0df70cf235de2228684c77144f637c1d43f000bc337ce7cc47855ed9bd30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1cd0df70cf235de2228684c77144f637c1d43f000bc337ce7cc47855ed9bd30", kill_on_drop: false }` [INFO] [stdout] f1cd0df70cf235de2228684c77144f637c1d43f000bc337ce7cc47855ed9bd30