[INFO] cloning repository https://github.com/VoxanyNet/interceptors [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/VoxanyNet/interceptors" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVoxanyNet%2Finterceptors", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVoxanyNet%2Finterceptors'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bcaa28d3a823b7d3ef52822eaf1717564fa3a058 [INFO] testing VoxanyNet/interceptors against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVoxanyNet%2Finterceptors" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/VoxanyNet/interceptors [INFO] finished tweaking git repo https://github.com/VoxanyNet/interceptors [INFO] tweaked toml for git repo https://github.com/VoxanyNet/interceptors written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/VoxanyNet/interceptors on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/VoxanyNet/interceptors 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tungstenite v0.23.0 [INFO] [stderr] Downloaded nanoserde v0.1.37 [INFO] [stderr] Downloaded ordered-float v5.0.0 [INFO] [stderr] Downloaded macroquad-tiled v0.2.1 [INFO] [stderr] Downloaded bitcode_derive v0.6.5 [INFO] [stderr] Downloaded mintex v0.1.4 [INFO] [stderr] Downloaded macroquad_macro v0.1.8 [INFO] [stderr] Downloaded quad-rand v0.2.3 [INFO] [stderr] Downloaded dasp_frame v0.11.0 [INFO] [stderr] Downloaded nanoserde-derive v0.1.22 [INFO] [stderr] Downloaded cs-utils v0.21.1 [INFO] [stderr] Downloaded dhat v0.3.3 [INFO] [stderr] Downloaded bitcode v0.6.6 [INFO] [stderr] Downloaded lewton v0.9.4 [INFO] [stderr] Downloaded tungstenite v0.24.0 [INFO] [stderr] Downloaded audrey v0.3.0 [INFO] [stderr] Downloaded noise v0.9.0 [INFO] [stderr] Downloaded audir-sles v0.1.0 [INFO] [stderr] Downloaded ogg v0.7.1 [INFO] [stderr] Downloaded miniquad v0.4.8 [INFO] [stderr] Downloaded quad-alsa-sys v0.3.2 [INFO] [stderr] Downloaded rapier2d v0.26.1 [INFO] [stderr] Downloaded ewebsock v0.8.0 [INFO] [stderr] Downloaded ldtk2 v0.8.0 [INFO] [stderr] Downloaded objc-rs v0.2.8 [INFO] [stderr] Downloaded parry2d v0.21.1 [INFO] [stderr] Downloaded glam v0.27.0 [INFO] [stderr] Downloaded spade v2.14.0 [INFO] [stderr] Downloaded robust v1.2.0 [INFO] [stderr] Downloaded glam v0.30.5 [INFO] [stderr] Downloaded quad-snd v0.2.8 [INFO] [stderr] Downloaded macroquad v0.4.14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 69ed91a74d5fa101faa341f29477197b7703f97344d4229df7336dec22df4436 [INFO] running `Command { std: "docker" "start" "-a" "69ed91a74d5fa101faa341f29477197b7703f97344d4229df7336dec22df4436", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "69ed91a74d5fa101faa341f29477197b7703f97344d4229df7336dec22df4436", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69ed91a74d5fa101faa341f29477197b7703f97344d4229df7336dec22df4436", kill_on_drop: false }` [INFO] [stdout] 69ed91a74d5fa101faa341f29477197b7703f97344d4229df7336dec22df4436 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 48753d5325a15785e6cfed41229119653a8687fa5e0b585ebaa4bd75950cda09 [INFO] running `Command { std: "docker" "start" "-a" "48753d5325a15785e6cfed41229119653a8687fa5e0b585ebaa4bd75950cda09", kill_on_drop: false }` [INFO] [stderr] warning: profile package spec `rapier3d` in profile `dev` did not match any packages [INFO] [stderr] [INFO] [stderr] help: a package with a similar name exists: `rapier2d` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling bytemuck v1.23.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling bumpalo v3.19.0 [INFO] [stderr] Compiling quad-alsa-sys v0.3.2 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling ogg v0.7.1 [INFO] [stderr] Compiling dasp_sample v0.11.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling object v0.36.7 [INFO] [stderr] Compiling quad-snd v0.2.8 [INFO] [stderr] Compiling miniquad v0.4.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling dasp_frame v0.11.0 [INFO] [stderr] Compiling hound v3.5.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling safe_arch v0.7.4 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling gimli v0.31.1 [INFO] [stderr] Compiling ttf-parser v0.21.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling robust v1.2.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling lewton v0.9.4 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling wide v0.7.33 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling ordered-float v5.0.0 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Compiling quad-rand v0.2.3 [INFO] [stderr] Compiling nanoserde-derive v0.1.22 [INFO] [stderr] Compiling downcast-rs v2.0.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling rustc-demangle v0.1.26 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand_xorshift v0.3.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling thousands v0.2.0 [INFO] [stderr] Compiling mintex v0.1.4 [INFO] [stderr] Compiling interceptors v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling cs-utils v0.21.1 [INFO] [stderr] Compiling noise v0.9.0 [INFO] [stderr] Compiling web-time v1.1.0 [INFO] [stderr] Compiling crossbeam v0.8.4 [INFO] [stderr] Compiling audrey v0.3.0 [INFO] [stderr] Compiling nanoserde v0.1.37 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling addr2line v0.24.2 [INFO] [stderr] Compiling backtrace v0.3.75 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling bitcode_derive v0.6.5 [INFO] [stderr] Compiling profiling v1.0.17 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling tungstenite v0.23.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling strum v0.27.2 [INFO] [stderr] Compiling ewebsock v0.8.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling js-sys v0.3.77 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling glam v0.27.0 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling bitcode v0.6.6 [INFO] [stderr] Compiling web-sys v0.3.77 [INFO] [stderr] Compiling simba v0.9.0 [INFO] [stderr] Compiling fontdue v0.9.3 [INFO] [stderr] Compiling spade v2.14.0 [INFO] [stderr] Compiling dhat v0.3.3 [INFO] [stderr] Compiling ldtk2 v0.8.0 [INFO] [stderr] Compiling macroquad v0.4.14 [INFO] [stderr] Compiling macroquad-tiled v0.2.1 [INFO] [stderr] Compiling nalgebra v0.33.2 [INFO] [stderr] Compiling parry2d v0.21.1 [INFO] [stderr] Compiling rapier2d v0.26.1 [INFO] [stdout] warning: unused import: `prelude::camera::mouse::Camera` [INFO] [stdout] --> src/lib.rs:4:167 [INFO] [stdout] | [INFO] [stdout] 4 | ...mouse_position, KeyCode}, math::{vec2, Rect, Vec2}, prelude::camera::mouse::Camera, shapes::DrawRectangleParams, texture::{draw_textur... [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: `Duration`, `PathBuf`, and `Path` [INFO] [stdout] --> src/area.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{path::{Path, PathBuf}, time::{Duration, Instant}}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `is_key_down`, `screen_height`, and `screen_width` [INFO] [stdout] --> src/area.rs:4:93 [INFO] [stdout] | [INFO] [stdout] 4 | ...era::Camera2D, input::{is_key_down, is_key_released, KeyCode}, math::Rect, window::{screen_height, screen_width}}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Isometry` [INFO] [stdout] --> src/area.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use nalgebra::{vector, Isometry, Isometry2, Vector2}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web_sys::js_sys::WebAssembly::Instance` [INFO] [stdout] --> src/area.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use web_sys::js_sys::WebAssembly::Instance; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PropItem`, `Shotgun`, and `self` [INFO] [stdout] --> src/area.rs:10:359 [INFO] [stdout] | [INFO] [stdout] 10 | ...::{self, NewPlayer, Player, PlayerSave}, prop::{DissolvedPixel, NewProp, Prop, PropId, PropItem, PropSave}, rapier_mouse_world_pos, shotgun::{Shotgun, S... [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::camera::mouse::Camera` [INFO] [stdout] --> src/world.rs:2:47 [INFO] [stdout] | [INFO] [stdout] 2 | use macroquad::{camera::Camera2D, math::Rect, prelude::camera::mouse::Camera}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::min` [INFO] [stdout] --> src/player.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::min, f32::consts::PI, mem::take, path::PathBuf, str::FromStr, time::Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LIGHTGRAY`, `is_key_released`, `play_sound`, `set_sound_volume`, and `vec2` [INFO] [stdout] --> src/player.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | ...::{play_sound, set_sound_volume}, color::{BLACK, LIGHTGRAY, WHITE}, input::{is_key_down, is_key_released, is_mouse_button_down, is_mouse_button_released, mouse_wheel, KeyCode}, math::{vec2, R... [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Area`, `PropItem`, `Shotgun`, `WeaponSave`, `WeaponTypeItem`, `Weapon`, `self`, `self`, and `self` [INFO] [stdout] --> src/player.rs:9:43 [INFO] [stdout] | [INFO] [stdout] 9 | ...::{self, Area, AreaId}, body_part::BodyPart, bullet_trail::{self, BulletTrail}, computer::{Item, ItemSave}, dropped_item::{DroppedItem, RemoveDroppedItemUpdate}, enemy::Enemy, font_loader::FontLoader, get_angle_between_rapier_points, inventory::Inventory, machine_gun::LMGItem, prop::{self, DissolvedPixel, Prop, PropItem}, rapier_mouse_world_pos, rapier_to_macroquad, shotgun::{Shotgun, ShotgunItem}, space::Space, texture_loader::TextureLoader, updates::NetworkPacket, uuid_u64, weapon::{self, BulletImpactData, Weapon, WeaponFireContext, WeaponSave, WeaponType, WeaponTypeItem, W... [INFO] [stdout] | ^^^^ ^^^^ ^^^^ ^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `camera` [INFO] [stdout] --> src/background.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use macroquad::{camera, color::WHITE, math::{Rect, Vec2}, texture::{draw_texture_ex, DrawTextureParams}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path` and `default` [INFO] [stdout] --> src/prop.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{default, fs::read_to_string, path::{Path, PathBuf}, time::Instant}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DrawTextureParams`, `WHITE`, `draw_texture_ex`, `draw_texture`, and `input::is_mouse_button_released` [INFO] [stdout] --> src/prop.rs:3:56 [INFO] [stdout] | [INFO] [stdout] 3 | ...r, WHITE}, input::is_mouse_button_released, math::Vec2, shapes::{draw_rectangle_ex, DrawRectangleParams}, texture::{draw_texture, draw_texture_ex, DrawTextureParams}}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vector` and `base` [INFO] [stdout] --> src/prop.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use nalgebra::{base, Isometry2, Vector, Vector2}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ColliderPair` [INFO] [stdout] --> src/prop.rs:5:58 [INFO] [stdout] | [INFO] [stdout] 5 | use rapier2d::prelude::{ColliderBuilder, ColliderHandle, ColliderPair, RigidBodyBuilder, RigidBodyHandle, RigidBodyVelocity}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Area`, `computer::Computer`, `contains_point`, and `prop` [INFO] [stdout] --> src/prop.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | ...a::{Area, AreaId}, computer::Computer, contains_point, draw_preview, draw_texture_onto_physics_body, get_preview_resolution, prop, rap... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path`, `collections::HashSet`, and `time::Instant` [INFO] [stdout] --> src/weapon.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashSet, path::{Path, PathBuf}, time::Instant}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyCode`, `is_key_released`, `load_sound_from_bytes`, `load_sound`, and `play_sound_once` [INFO] [stdout] --> src/weapon.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | ...::{load_sound, load_sound_from_bytes, play_sound, play_sound_once, PlaySoundParams}, color::Color, input::{is_key_released, KeyCode}, ... [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Translation` [INFO] [stdout] --> src/weapon.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use rapier2d::{math::{Translation, Vector}, parry::query::Ray, prelude::{ColliderHandle, ImpulseJointHandle, InteractionGroups, QueryFilt... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Prefabs`, `PropVelocityUpdate`, and `self` [INFO] [stdout] --> src/weapon.rs:8:42 [INFO] [stdout] | [INFO] [stdout] 8 | ...::{self, BulletTrail, SpawnBulletTrail}, collider_from_texture_size, draw_preview, draw_texture_onto_physics_body, dropped_item::{DroppedItem, NewDroppedItemUpdate}, enemy::{Enemy, EnemyId}, get_preview_resolution, inventory::Inventory, machine_gun::{LMGItem, LMGItemSave, LMGSave, LMG}, player::{ActiveWeaponUpdate, Facing, Player, PlayerId}, prop::{DissolvedPixel, Prop, PropVelocityUpdate}, shotgun::{Shotgun, ShotgunItem, ShotgunItemSave, ShotgunSave}, space::Space, texture_loader::TextureLoader, ClientId, ClientTickContext, Prefabs}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/shotgun.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Area` [INFO] [stdout] --> src/bullet_trail.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{area::{Area, AreaId}, rapier_to_macroquad, uuid_u64, ClientId, ClientTickContext}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Texture2D`, `load_texture`, and `self` [INFO] [stdout] --> src/sound_loader.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | use macroquad::{audio::{load_sound, Sound}, texture::{self, load_texture, Texture2D}}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f64::consts::E` [INFO] [stdout] --> src/enemy.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{f32::consts::PI, f64::consts::E, path::PathBuf, time::Instant}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::gen_range` [INFO] [stdout] --> src/enemy.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | use macroquad::{color::{BLACK, GREEN}, math::Vec2, rand::gen_range, shapes::{draw_rectangle, draw_rectangle_lines}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector` [INFO] [stdout] --> src/enemy.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use nalgebra::{vector, Isometry2, Vector, Vector2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NewProp`, `WeaponSave`, and `self` [INFO] [stdout] --> src/enemy.rs:8:202 [INFO] [stdout] | [INFO] [stdout] 8 | ...::{self, Facing, Player, PlayerId}, prop::{DissolvedPixel, NewProp, Prop}, rapier_to_macroquad, space::Space, texture_loader::TextureLoader, updates::NetworkPacket, uuid_u64, weapon::{self, BulletImpactData, WeaponFireContext, WeaponOwner, WeaponSave, W... [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `draw_texture` [INFO] [stdout] --> src/phone.rs:3:61 [INFO] [stdout] | [INFO] [stdout] 3 | use macroquad::{color::WHITE, math::{Rect, Vec2}, texture::{draw_texture, draw_texture_ex, DrawTextureParams}, window::{screen_height, sc... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientTickContext` [INFO] [stdout] --> src/phone.rs:5:44 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{texture_loader::TextureLoader, ClientTickContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Instant`, and `Path` [INFO] [stdout] --> src/computer.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{path::{Path, PathBuf}, str::FromStr, time::{Duration, Instant}}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Font`, `LIGHTGRAY`, `RED`, `clamp`, `draw_rectangle`, `draw_texture`, `mouse_position_local`, `mouse_position`, `pop_camera_state`, `prelude::camera::mouse::Camera`, `push_camera_state`, and `set_default_camera` [INFO] [stdout] --> src/computer.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | ...::{pop_camera_state, push_camera_state, set_camera, set_default_camera, Camera2D}, color::{Color, BLACK, GRAY, LIGHTGRAY, RED, WHITE}, input::{mouse_position, mouse_position_local}, math::{clamp, Rect, Vec2}, prelude::camera::mouse::Camera, shapes::{draw_line, draw_rectangle}, text::{draw_text_ex, Font, TextParams}, texture::{draw_texture, d... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WeaponSave`, `WeaponTypeSave`, `WeaponType`, `Weapon`, `rapier_mouse_world_pos`, and `self` [INFO] [stdout] --> src/computer.rs:7:94 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{self, Prop, PropItem, PropItemSave, PropSave}, rapier_mouse_world_pos, rapier_to_macroquad, space::Space, texture_loader::TextureLoader, weapon::{Weapon, WeaponSave, WeaponType, WeaponTypeItem, WeaponTypeItemSave, WeaponTypeSave}, ... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mouse_position` [INFO] [stdout] --> src/button.rs:1:73 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::{input::{is_mouse_button_down, is_mouse_button_released, mouse_position}, math::{Rect, Vec2}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mouse_world_pos` [INFO] [stdout] --> src/button.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::mouse_world_pos; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `U4` [INFO] [stdout] --> src/dropped_item.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use nalgebra::{Isometry2, Vector2, U4}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `draw_texture_onto_physics_body` [INFO] [stdout] --> src/dropped_item.rs:6:55 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{area::AreaId, computer::{Item, ItemSave}, draw_texture_onto_physics_body, rapier_to_macroquad, space::Space, texture_loader::... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `draw_rectangle` [INFO] [stdout] --> src/car.rs:1:53 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::{color::WHITE, shapes::{draw_circle, draw_rectangle}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prop_pos` [INFO] [stdout] --> src/computer.rs:478:13 [INFO] [stdout] | [INFO] [stdout] 478 | let prop_pos = space.rigid_body_set.get(self.prop.rigid_body_handle).unwrap().position(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prop_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `font` [INFO] [stdout] --> src/computer.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | let font = fonts.get(PathBuf::from("assets/fonts/CutePixel.ttf")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_font` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `then` [INFO] [stdout] --> src/area.rs:437:13 [INFO] [stdout] | [INFO] [stdout] 437 | let then = Instant::now(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_then` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `textures` [INFO] [stdout] --> src/player.rs:207:28 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn draw_hud(&self, textures: &TextureLoader) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_textures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance_y` [INFO] [stdout] --> src/player.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 294 | let distance_y = (our_player_pos.translation.y - average_enemy_pos.y).abs(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `minimum_camera_height` [INFO] [stdout] --> src/player.rs:288:99 [INFO] [stdout] | [INFO] [stdout] 288 | ...a_width: f32, minimum_camera_height: f32, space: &Space, average_enemy_pos: Vector2, max_camera_y: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_minimum_camera_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/player.rs:361:44 [INFO] [stdout] | [INFO] [stdout] 361 | pub fn handle_bullet_impact(&mut self, space: &Space, bullet_impact: BulletImpactData) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bullet_impact` [INFO] [stdout] --> src/player.rs:361:59 [INFO] [stdout] | [INFO] [stdout] 361 | pub fn handle_bullet_impact(&mut self, space: &Space, bullet_impact: BulletImpactData) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bullet_impact` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body_handle` [INFO] [stdout] --> src/player.rs:399:13 [INFO] [stdout] | [INFO] [stdout] 399 | let body_handle = body.body_handle.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_body_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/player.rs:466:98 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn change_active_inventory_slot(&mut self, ctx: &mut ClientTickContext, area_id: AreaId, space: &mut Space) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `players` [INFO] [stdout] --> src/player.rs:524:9 [INFO] [stdout] | [INFO] [stdout] 524 | players: &mut Vec, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_players` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bullet_trails` [INFO] [stdout] --> src/player.rs:525:9 [INFO] [stdout] | [INFO] [stdout] 525 | bullet_trails: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bullet_trails` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing` [INFO] [stdout] --> src/player.rs:526:9 [INFO] [stdout] | [INFO] [stdout] 526 | facing: Facing, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dissolved_pixels` [INFO] [stdout] --> src/player.rs:528:9 [INFO] [stdout] | [INFO] [stdout] 528 | dissolved_pixels: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dissolved_pixels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/player.rs:581:50 [INFO] [stdout] | [INFO] [stdout] 581 | pub fn control(&mut self, space: &mut Space, ctx: &mut ClientTickContext) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera_rect` [INFO] [stdout] --> src/player.rs:752:64 [INFO] [stdout] | [INFO] [stdout] 752 | pub fn angle_weapon_to_mouse(&mut self, space: &mut Space, camera_rect: &Rect) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/prop.rs:50:50 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn despawn(&mut self, space: &mut Space, ctx: &mut ClientTickContext) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mass` [INFO] [stdout] --> src/prop.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let mass = match mass { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mass` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/prop.rs:203:27 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn to_prop(&self, pos: Isometry2, prefabs: &Prefabs, space: &mut Space) -> Prop { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/prop.rs:306:35 [INFO] [stdout] | [INFO] [stdout] 306 | pub fn server_tick(&mut self, space: &mut Space, area_id: AreaId, server_io: &mut ServerIO) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `area_id` [INFO] [stdout] --> src/prop.rs:306:54 [INFO] [stdout] | [INFO] [stdout] 306 | pub fn server_tick(&mut self, space: &mut Space, area_id: AreaId, server_io: &mut ServerIO) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_area_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_io` [INFO] [stdout] --> src/prop.rs:306:71 [INFO] [stdout] | [INFO] [stdout] 306 | pub fn server_tick(&mut self, space: &mut Space, area_id: AreaId, server_io: &mut ServerIO) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dissolved_pixels` [INFO] [stdout] --> src/prop.rs:385:99 [INFO] [stdout] | [INFO] [stdout] 385 | ..., area_id: AreaId, dissolved_pixels: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dissolved_pixels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/body_part.rs:69:34 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn owner_tick(&mut self, ctx: &mut ClientTickContext, space: &mut Space) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/body_part.rs:69:63 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn owner_tick(&mut self, ctx: &mut ClientTickContext, space: &mut Space) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/weapon.rs:138:33 [INFO] [stdout] | [INFO] [stdout] 138 | WeaponTypeItem::LMG(lmg) => "LMG".to_string() [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/weapon.rs:155:24 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn save(&self, space: &Space) -> WeaponTypeItemSave { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/weapon.rs:192:29 [INFO] [stdout] | [INFO] [stdout] 192 | WeaponType::LMG(lmg) => "LMG".to_string() [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/weapon.rs:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | WeaponType::LMG(lmg) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/weapon.rs:230:29 [INFO] [stdout] | [INFO] [stdout] 230 | WeaponType::LMG(lmg) => Vec2::ZERO [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing` [INFO] [stdout] --> src/weapon.rs:585:9 [INFO] [stdout] | [INFO] [stdout] 585 | facing: Facing, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sound` [INFO] [stdout] --> src/weapon.rs:712:17 [INFO] [stdout] | [INFO] [stdout] 712 | let sound = ctx.sounds.get(PathBuf::from("assets\\sounds\\pistol_dry_fire.wav")); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/weapon.rs:866:51 [INFO] [stdout] | [INFO] [stdout] 866 | pub fn get_bullet_vector_macroquad(&mut self, space: &Space, facing: Facing, innacuracy_factor: f32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing` [INFO] [stdout] --> src/weapon.rs:866:66 [INFO] [stdout] | [INFO] [stdout] 866 | pub fn get_bullet_vector_macroquad(&mut self, space: &Space, facing: Facing, innacuracy_factor: f32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `innacuracy_factor` [INFO] [stdout] --> src/weapon.rs:866:82 [INFO] [stdout] | [INFO] [stdout] 866 | pub fn get_bullet_vector_macroquad(&mut self, space: &Space, facing: Facing, innacuracy_factor: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_innacuracy_factor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance` [INFO] [stdout] --> src/weapon.rs:926:21 [INFO] [stdout] | [INFO] [stdout] 926 | let distance = pos.vector - weapon_pos.translation.vector; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `collider_pos` [INFO] [stdout] --> src/enemy.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | let collider_pos = space.collider_set.get(collider_handle).unwrap().position(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_collider_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weapon` [INFO] [stdout] --> src/enemy.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | let weapon = if let Some(weapon) = &mut self.weapon { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy_id` [INFO] [stdout] --> src/enemy.rs:379:32 [INFO] [stdout] | [INFO] [stdout] 379 | WeaponOwner::Enemy(enemy_id) => return, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_id` [INFO] [stdout] --> src/enemy.rs:380:33 [INFO] [stdout] | [INFO] [stdout] 380 | WeaponOwner::Player(player_id) => {}, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shotgun` [INFO] [stdout] --> src/enemy.rs:473:37 [INFO] [stdout] | [INFO] [stdout] 473 | WeaponType::Shotgun(shotgun) => if self.last_fired_weapon.elapsed().as_secs_f32() < 1. { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shotgun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/enemy.rs:476:33 [INFO] [stdout] | [INFO] [stdout] 476 | WeaponType::LMG(lmg) => if self.last_fired_weapon.elapsed().as_secs_f32() < 0.01 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `lowest_distance` is never read [INFO] [stdout] --> src/enemy.rs:750:21 [INFO] [stdout] | [INFO] [stdout] 750 | lowest_distance = distance; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/enemy.rs:784:50 [INFO] [stdout] | [INFO] [stdout] 784 | pub fn upright(&mut self, space: &mut Space, ctx: &mut ClientTickContext) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera_rect` [INFO] [stdout] --> src/phone.rs:87:50 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn draw(&self, textures: &TextureLoader, camera_rect: &Rect) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/computer.rs:39:43 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn from_save(item_save: ItemSave, space: &mut Space) -> Item { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hovered_button_color` [INFO] [stdout] --> src/computer.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let hovered_button_color = Color::new(0.78, 0.78, 0.78, 0.5); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hovered_button_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/dropped_item.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn owner_tick(&mut self, space: &mut Space) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefabs` [INFO] [stdout] --> src/dropped_item.rs:51:64 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_save(save: DroppedItemSave, space: &mut Space, prefabs: &Prefabs) -> Self { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefabs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/machine_gun.rs:124:35 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn new(space: &mut Space, pos: Vector2, owner: ClientId, player_rigid_body_handle: Option, facing: Facing) ... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing` [INFO] [stdout] --> src/machine_gun.rs:124:122 [INFO] [stdout] | [INFO] [stdout] 124 | ...le: Option, facing: Facing) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `platform_pos` [INFO] [stdout] --> src/car.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let platform_pos = space.rigid_body_set.get(self.platform_body).unwrap().position().translation.vector; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_platform_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body_body_pos` [INFO] [stdout] --> src/lib.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let body_body_pos = Vec2::new(body_body.translation().x, body_body.translation().y); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_body_body_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/lib.rs:362:50 [INFO] [stdout] | [INFO] [stdout] 362 | ewebsock::WsEvent::Error(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `junk` and `last_changed_inventory_slot` are never read [INFO] [stdout] --> src/player.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | junk: Vec, // you can hold unlimited junk [INFO] [stdout] | ^^^^ [INFO] [stdout] 75 | last_changed_inventory_slot: web_time::Instant, [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 `scale` is never read [INFO] [stdout] --> src/body_part.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BodyPart { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | scale: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BodyPart` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cost` is never read [INFO] [stdout] --> src/computer.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct StoreItem { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 69 | cost: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `previous_velocity` is never read [INFO] [stdout] --> src/dropped_item.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct DroppedItem { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | previous_velocity: RigidBodyVelocity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DroppedItem` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `body_handle` and `collider_handle` are never read [INFO] [stdout] --> src/junk.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Junk { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 4 | body_handle: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | collider_handle: ColliderHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/car.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Car { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | left_wheel_body: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | left_wheel_collider: ColliderHandle, [INFO] [stdout] 13 | left_wheel_revolute_joint: ImpulseJointHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | [INFO] [stdout] 15 | left_axle_body: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 16 | left_axle_collider: ColliderHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | left_axle_prismatic_joint: ImpulseJointHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | right_axle_body: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | right_axle_collider: ColliderHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | right_axle_prismatic_joint: ImpulseJointHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | right_wheel_body: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | right_wheel_collider: ColliderHandle, [INFO] [stdout] 27 | right_wheel_revolute_joint: ImpulseJointHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path` and `time::Instant` [INFO] [stdout] --> src/client/client.rs:1:40 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, path::{Path, PathBuf}, time::Instant}; [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: `phone::Phone` and `self` [INFO] [stdout] --> src/client/client.rs:3:145 [INFO] [stdout] | [INFO] [stdout] 3 | ...r, phone::Phone, player::{ItemSlot, Player}, prop::Prop, screen_shake::ScreenShakeParameters, sound_loader::SoundLoader, texture_loader::TextureLoader, updates::{NetworkPacket, Ping}, weapon::{self, W... [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `camera::mouse::Camera`, `pop_camera_state`, `push_camera_state`, `request_new_screen_size`, and `text::Font` [INFO] [stdout] --> src/client/client.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | ...::{pop_camera_state, push_camera_state, set_camera, set_default_camera, Camera2D}, color::{BLACK, WHITE}, input::{is_key_released, KeyCode}, math::{vec2, Rect}, prelude::{camera::mouse::Camera, gl_use_default_material, gl_use_material, load_material, Material, ShaderSource}, text::Font, texture::{draw_texture_ex, render_target, DrawTextureParams, RenderTarget}, window::{clear_background, next_frame, request_new_screen_size, s... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dhat-heap` [INFO] [stdout] --> src/client/main.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | #[cfg(feature = "dhat-heap")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `dhat-heap` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::Instant` [INFO] [stdout] --> src/editor/editor.rs:1:84 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs::{self, read_to_string}, path::{Path, PathBuf}, time::Instant}; [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: `Font` [INFO] [stdout] --> src/editor/editor.rs:4:327 [INFO] [stdout] | [INFO] [stdout] 4 | ...hapes::{draw_rectangle, draw_rectangle_lines}, text::{draw_text, Font}, window::{next_frame, screen_height, screen_width}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de` [INFO] [stdout] --> src/editor/editor.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use serde::{de, Deserialize, Serialize}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_pos` [INFO] [stdout] --> src/client/client.rs:332:25 [INFO] [stdout] | [INFO] [stdout] 332 | let player_pos = player_body.position(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_id` [INFO] [stdout] --> src/server/server.rs:82:50 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn handle_disconnected_client(&mut self, client_id: ClientId) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `update` [INFO] [stdout] --> src/server/server.rs:132:45 [INFO] [stdout] | [INFO] [stdout] 132 | NetworkPacket::MasterUpdate(update) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_update` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ping` [INFO] [stdout] --> src/server/server.rs:135:37 [INFO] [stdout] | [INFO] [stdout] 135 | NetworkPacket::Ping(ping) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/server/server.rs:137:25 [INFO] [stdout] | [INFO] [stdout] 137 | let client = self.network_io.clients.get_mut(&client_id).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_pos` [INFO] [stdout] --> src/server/server.rs:303:25 [INFO] [stdout] | [INFO] [stdout] 303 | let current_pos = area.space.rigid_body_set.get(player.body.body_handle).unwrap().position(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera_rect` [INFO] [stdout] --> src/editor/editor.rs:263:35 [INFO] [stdout] | [INFO] [stdout] 263 | pub async fn draw_menu(&self, camera_rect: &Rect, textures: &mut TextureLoader, cursor: Vec2) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `textures` [INFO] [stdout] --> src/editor/editor.rs:263:55 [INFO] [stdout] | [INFO] [stdout] 263 | pub async fn draw_menu(&self, camera_rect: &Rect, textures: &mut TextureLoader, cursor: Vec2) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_textures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `spawned` and `test_button` are never read [INFO] [stdout] --> src/client/client.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct Client { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 95 | spawned: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 96 | fonts: FontLoader, [INFO] [stdout] 97 | test_button: Button [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 `update_camera_to_match_screen_size` is never used [INFO] [stdout] --> src/client/client.rs:619:12 [INFO] [stdout] | [INFO] [stdout] 248 | impl Client { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 619 | pub fn update_camera_to_match_screen_size(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `megabits` [INFO] [stdout] --> src/server/server.rs:611:13 [INFO] [stdout] | [INFO] [stdout] 611 | let megabits = self.total_bits_sent as f32 / 1000000 as f32; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_megabits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera_rect` [INFO] [stdout] --> src/editor/editor.rs:222:46 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn spawn(&mut self, area: &mut Area, camera_rect: &Rect, cursor: Vec2, rapier_cursor: Vec2) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `round_to_nearest_50` is never used [INFO] [stdout] --> src/editor/editor.rs:303:4 [INFO] [stdout] | [INFO] [stdout] 303 | fn round_to_nearest_50(n: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 22s [INFO] running `Command { std: "docker" "inspect" "48753d5325a15785e6cfed41229119653a8687fa5e0b585ebaa4bd75950cda09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48753d5325a15785e6cfed41229119653a8687fa5e0b585ebaa4bd75950cda09", kill_on_drop: false }` [INFO] [stdout] 48753d5325a15785e6cfed41229119653a8687fa5e0b585ebaa4bd75950cda09 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c03a9140e225a8b60a2b17e06dc22d4741123978974947da2599a9542912b56 [INFO] running `Command { std: "docker" "start" "-a" "8c03a9140e225a8b60a2b17e06dc22d4741123978974947da2599a9542912b56", kill_on_drop: false }` [INFO] [stderr] warning: profile package spec `rapier3d` in profile `dev` did not match any packages [INFO] [stderr] [INFO] [stderr] help: a package with a similar name exists: `rapier2d` [INFO] [stdout] warning: unused import: `prelude::camera::mouse::Camera` [INFO] [stdout] --> src/lib.rs:4:167 [INFO] [stdout] | [INFO] [stdout] 4 | ...mouse_position, KeyCode}, math::{vec2, Rect, Vec2}, prelude::camera::mouse::Camera, shapes::DrawRectangleParams, texture::{draw_textur... [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: `Duration`, `PathBuf`, and `Path` [INFO] [stdout] --> src/area.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{path::{Path, PathBuf}, time::{Duration, Instant}}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `is_key_down`, `screen_height`, and `screen_width` [INFO] [stdout] --> src/area.rs:4:93 [INFO] [stdout] | [INFO] [stdout] 4 | ...era::Camera2D, input::{is_key_down, is_key_released, KeyCode}, math::Rect, window::{screen_height, screen_width}}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Isometry` [INFO] [stdout] --> src/area.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use nalgebra::{vector, Isometry, Isometry2, Vector2}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web_sys::js_sys::WebAssembly::Instance` [INFO] [stdout] --> src/area.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use web_sys::js_sys::WebAssembly::Instance; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PropItem`, `Shotgun`, and `self` [INFO] [stdout] --> src/area.rs:10:359 [INFO] [stdout] | [INFO] [stdout] 10 | ...::{self, NewPlayer, Player, PlayerSave}, prop::{DissolvedPixel, NewProp, Prop, PropId, PropItem, PropSave}, rapier_mouse_world_pos, shotgun::{Shotgun, S... [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::camera::mouse::Camera` [INFO] [stdout] --> src/world.rs:2:47 [INFO] [stdout] | [INFO] [stdout] 2 | use macroquad::{camera::Camera2D, math::Rect, prelude::camera::mouse::Camera}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::min` [INFO] [stdout] --> src/player.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::min, f32::consts::PI, mem::take, path::PathBuf, str::FromStr, time::Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LIGHTGRAY`, `is_key_released`, `play_sound`, `set_sound_volume`, and `vec2` [INFO] [stdout] --> src/player.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | ...::{play_sound, set_sound_volume}, color::{BLACK, LIGHTGRAY, WHITE}, input::{is_key_down, is_key_released, is_mouse_button_down, is_mouse_button_released, mouse_wheel, KeyCode}, math::{vec2, R... [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Area`, `PropItem`, `Shotgun`, `WeaponSave`, `WeaponTypeItem`, `Weapon`, `self`, `self`, and `self` [INFO] [stdout] --> src/player.rs:9:43 [INFO] [stdout] | [INFO] [stdout] 9 | ...::{self, Area, AreaId}, body_part::BodyPart, bullet_trail::{self, BulletTrail}, computer::{Item, ItemSave}, dropped_item::{DroppedItem, RemoveDroppedItemUpdate}, enemy::Enemy, font_loader::FontLoader, get_angle_between_rapier_points, inventory::Inventory, machine_gun::LMGItem, prop::{self, DissolvedPixel, Prop, PropItem}, rapier_mouse_world_pos, rapier_to_macroquad, shotgun::{Shotgun, ShotgunItem}, space::Space, texture_loader::TextureLoader, updates::NetworkPacket, uuid_u64, weapon::{self, BulletImpactData, Weapon, WeaponFireContext, WeaponSave, WeaponType, WeaponTypeItem, W... [INFO] [stdout] | ^^^^ ^^^^ ^^^^ ^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `camera` [INFO] [stdout] --> src/background.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use macroquad::{camera, color::WHITE, math::{Rect, Vec2}, texture::{draw_texture_ex, DrawTextureParams}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path` and `default` [INFO] [stdout] --> src/prop.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{default, fs::read_to_string, path::{Path, PathBuf}, time::Instant}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DrawTextureParams`, `WHITE`, `draw_texture_ex`, `draw_texture`, and `input::is_mouse_button_released` [INFO] [stdout] --> src/prop.rs:3:56 [INFO] [stdout] | [INFO] [stdout] 3 | ...r, WHITE}, input::is_mouse_button_released, math::Vec2, shapes::{draw_rectangle_ex, DrawRectangleParams}, texture::{draw_texture, draw_texture_ex, DrawTextureParams}}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vector` and `base` [INFO] [stdout] --> src/prop.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use nalgebra::{base, Isometry2, Vector, Vector2}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ColliderPair` [INFO] [stdout] --> src/prop.rs:5:58 [INFO] [stdout] | [INFO] [stdout] 5 | use rapier2d::prelude::{ColliderBuilder, ColliderHandle, ColliderPair, RigidBodyBuilder, RigidBodyHandle, RigidBodyVelocity}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Area`, `computer::Computer`, `contains_point`, and `prop` [INFO] [stdout] --> src/prop.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | ...a::{Area, AreaId}, computer::Computer, contains_point, draw_preview, draw_texture_onto_physics_body, get_preview_resolution, prop, rap... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path`, `collections::HashSet`, and `time::Instant` [INFO] [stdout] --> src/weapon.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashSet, path::{Path, PathBuf}, time::Instant}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyCode`, `is_key_released`, `load_sound_from_bytes`, `load_sound`, and `play_sound_once` [INFO] [stdout] --> src/weapon.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | ...::{load_sound, load_sound_from_bytes, play_sound, play_sound_once, PlaySoundParams}, color::Color, input::{is_key_released, KeyCode}, ... [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Translation` [INFO] [stdout] --> src/weapon.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use rapier2d::{math::{Translation, Vector}, parry::query::Ray, prelude::{ColliderHandle, ImpulseJointHandle, InteractionGroups, QueryFilt... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Prefabs`, `PropVelocityUpdate`, and `self` [INFO] [stdout] --> src/weapon.rs:8:42 [INFO] [stdout] | [INFO] [stdout] 8 | ...::{self, BulletTrail, SpawnBulletTrail}, collider_from_texture_size, draw_preview, draw_texture_onto_physics_body, dropped_item::{DroppedItem, NewDroppedItemUpdate}, enemy::{Enemy, EnemyId}, get_preview_resolution, inventory::Inventory, machine_gun::{LMGItem, LMGItemSave, LMGSave, LMG}, player::{ActiveWeaponUpdate, Facing, Player, PlayerId}, prop::{DissolvedPixel, Prop, PropVelocityUpdate}, shotgun::{Shotgun, ShotgunItem, ShotgunItemSave, ShotgunSave}, space::Space, texture_loader::TextureLoader, ClientId, ClientTickContext, Prefabs}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/shotgun.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Area` [INFO] [stdout] --> src/bullet_trail.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{area::{Area, AreaId}, rapier_to_macroquad, uuid_u64, ClientId, ClientTickContext}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Texture2D`, `load_texture`, and `self` [INFO] [stdout] --> src/sound_loader.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | use macroquad::{audio::{load_sound, Sound}, texture::{self, load_texture, Texture2D}}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f64::consts::E` [INFO] [stdout] --> src/enemy.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{f32::consts::PI, f64::consts::E, path::PathBuf, time::Instant}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::gen_range` [INFO] [stdout] --> src/enemy.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | use macroquad::{color::{BLACK, GREEN}, math::Vec2, rand::gen_range, shapes::{draw_rectangle, draw_rectangle_lines}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector` [INFO] [stdout] --> src/enemy.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use nalgebra::{vector, Isometry2, Vector, Vector2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NewProp`, `WeaponSave`, and `self` [INFO] [stdout] --> src/enemy.rs:8:202 [INFO] [stdout] | [INFO] [stdout] 8 | ...::{self, Facing, Player, PlayerId}, prop::{DissolvedPixel, NewProp, Prop}, rapier_to_macroquad, space::Space, texture_loader::TextureLoader, updates::NetworkPacket, uuid_u64, weapon::{self, BulletImpactData, WeaponFireContext, WeaponOwner, WeaponSave, W... [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `draw_texture` [INFO] [stdout] --> src/phone.rs:3:61 [INFO] [stdout] | [INFO] [stdout] 3 | use macroquad::{color::WHITE, math::{Rect, Vec2}, texture::{draw_texture, draw_texture_ex, DrawTextureParams}, window::{screen_height, sc... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientTickContext` [INFO] [stdout] --> src/phone.rs:5:44 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{texture_loader::TextureLoader, ClientTickContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Instant`, and `Path` [INFO] [stdout] --> src/computer.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{path::{Path, PathBuf}, str::FromStr, time::{Duration, Instant}}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Font`, `LIGHTGRAY`, `RED`, `clamp`, `draw_rectangle`, `draw_texture`, `mouse_position_local`, `mouse_position`, `pop_camera_state`, `prelude::camera::mouse::Camera`, `push_camera_state`, and `set_default_camera` [INFO] [stdout] --> src/computer.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | ...::{pop_camera_state, push_camera_state, set_camera, set_default_camera, Camera2D}, color::{Color, BLACK, GRAY, LIGHTGRAY, RED, WHITE}, input::{mouse_position, mouse_position_local}, math::{clamp, Rect, Vec2}, prelude::camera::mouse::Camera, shapes::{draw_line, draw_rectangle}, text::{draw_text_ex, Font, TextParams}, texture::{draw_texture, d... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WeaponSave`, `WeaponTypeSave`, `WeaponType`, `Weapon`, `rapier_mouse_world_pos`, and `self` [INFO] [stdout] --> src/computer.rs:7:94 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{self, Prop, PropItem, PropItemSave, PropSave}, rapier_mouse_world_pos, rapier_to_macroquad, space::Space, texture_loader::TextureLoader, weapon::{Weapon, WeaponSave, WeaponType, WeaponTypeItem, WeaponTypeItemSave, WeaponTypeSave}, ... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mouse_position` [INFO] [stdout] --> src/button.rs:1:73 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::{input::{is_mouse_button_down, is_mouse_button_released, mouse_position}, math::{Rect, Vec2}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mouse_world_pos` [INFO] [stdout] --> src/button.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::mouse_world_pos; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `U4` [INFO] [stdout] --> src/dropped_item.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use nalgebra::{Isometry2, Vector2, U4}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `draw_texture_onto_physics_body` [INFO] [stdout] --> src/dropped_item.rs:6:55 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{area::AreaId, computer::{Item, ItemSave}, draw_texture_onto_physics_body, rapier_to_macroquad, space::Space, texture_loader::... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `draw_rectangle` [INFO] [stdout] --> src/car.rs:1:53 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::{color::WHITE, shapes::{draw_circle, draw_rectangle}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prop_pos` [INFO] [stdout] --> src/computer.rs:478:13 [INFO] [stdout] | [INFO] [stdout] 478 | let prop_pos = space.rigid_body_set.get(self.prop.rigid_body_handle).unwrap().position(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prop_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `font` [INFO] [stdout] --> src/computer.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | let font = fonts.get(PathBuf::from("assets/fonts/CutePixel.ttf")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_font` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `then` [INFO] [stdout] --> src/area.rs:437:13 [INFO] [stdout] | [INFO] [stdout] 437 | let then = Instant::now(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_then` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `textures` [INFO] [stdout] --> src/player.rs:207:28 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn draw_hud(&self, textures: &TextureLoader) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_textures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance_y` [INFO] [stdout] --> src/player.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 294 | let distance_y = (our_player_pos.translation.y - average_enemy_pos.y).abs(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `minimum_camera_height` [INFO] [stdout] --> src/player.rs:288:99 [INFO] [stdout] | [INFO] [stdout] 288 | ...a_width: f32, minimum_camera_height: f32, space: &Space, average_enemy_pos: Vector2, max_camera_y: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_minimum_camera_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/player.rs:361:44 [INFO] [stdout] | [INFO] [stdout] 361 | pub fn handle_bullet_impact(&mut self, space: &Space, bullet_impact: BulletImpactData) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bullet_impact` [INFO] [stdout] --> src/player.rs:361:59 [INFO] [stdout] | [INFO] [stdout] 361 | pub fn handle_bullet_impact(&mut self, space: &Space, bullet_impact: BulletImpactData) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bullet_impact` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body_handle` [INFO] [stdout] --> src/player.rs:399:13 [INFO] [stdout] | [INFO] [stdout] 399 | let body_handle = body.body_handle.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_body_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/player.rs:466:98 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn change_active_inventory_slot(&mut self, ctx: &mut ClientTickContext, area_id: AreaId, space: &mut Space) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `players` [INFO] [stdout] --> src/player.rs:524:9 [INFO] [stdout] | [INFO] [stdout] 524 | players: &mut Vec, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_players` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bullet_trails` [INFO] [stdout] --> src/player.rs:525:9 [INFO] [stdout] | [INFO] [stdout] 525 | bullet_trails: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bullet_trails` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing` [INFO] [stdout] --> src/player.rs:526:9 [INFO] [stdout] | [INFO] [stdout] 526 | facing: Facing, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dissolved_pixels` [INFO] [stdout] --> src/player.rs:528:9 [INFO] [stdout] | [INFO] [stdout] 528 | dissolved_pixels: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dissolved_pixels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/player.rs:581:50 [INFO] [stdout] | [INFO] [stdout] 581 | pub fn control(&mut self, space: &mut Space, ctx: &mut ClientTickContext) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera_rect` [INFO] [stdout] --> src/player.rs:752:64 [INFO] [stdout] | [INFO] [stdout] 752 | pub fn angle_weapon_to_mouse(&mut self, space: &mut Space, camera_rect: &Rect) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/prop.rs:50:50 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn despawn(&mut self, space: &mut Space, ctx: &mut ClientTickContext) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mass` [INFO] [stdout] --> src/prop.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let mass = match mass { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mass` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/prop.rs:203:27 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn to_prop(&self, pos: Isometry2, prefabs: &Prefabs, space: &mut Space) -> Prop { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/prop.rs:306:35 [INFO] [stdout] | [INFO] [stdout] 306 | pub fn server_tick(&mut self, space: &mut Space, area_id: AreaId, server_io: &mut ServerIO) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `area_id` [INFO] [stdout] --> src/prop.rs:306:54 [INFO] [stdout] | [INFO] [stdout] 306 | pub fn server_tick(&mut self, space: &mut Space, area_id: AreaId, server_io: &mut ServerIO) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_area_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_io` [INFO] [stdout] --> src/prop.rs:306:71 [INFO] [stdout] | [INFO] [stdout] 306 | pub fn server_tick(&mut self, space: &mut Space, area_id: AreaId, server_io: &mut ServerIO) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dissolved_pixels` [INFO] [stdout] --> src/prop.rs:385:99 [INFO] [stdout] | [INFO] [stdout] 385 | ..., area_id: AreaId, dissolved_pixels: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dissolved_pixels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/body_part.rs:69:34 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn owner_tick(&mut self, ctx: &mut ClientTickContext, space: &mut Space) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/body_part.rs:69:63 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn owner_tick(&mut self, ctx: &mut ClientTickContext, space: &mut Space) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/weapon.rs:138:33 [INFO] [stdout] | [INFO] [stdout] 138 | WeaponTypeItem::LMG(lmg) => "LMG".to_string() [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/weapon.rs:155:24 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn save(&self, space: &Space) -> WeaponTypeItemSave { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/weapon.rs:192:29 [INFO] [stdout] | [INFO] [stdout] 192 | WeaponType::LMG(lmg) => "LMG".to_string() [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/weapon.rs:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | WeaponType::LMG(lmg) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/weapon.rs:230:29 [INFO] [stdout] | [INFO] [stdout] 230 | WeaponType::LMG(lmg) => Vec2::ZERO [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing` [INFO] [stdout] --> src/weapon.rs:585:9 [INFO] [stdout] | [INFO] [stdout] 585 | facing: Facing, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sound` [INFO] [stdout] --> src/weapon.rs:712:17 [INFO] [stdout] | [INFO] [stdout] 712 | let sound = ctx.sounds.get(PathBuf::from("assets\\sounds\\pistol_dry_fire.wav")); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/weapon.rs:866:51 [INFO] [stdout] | [INFO] [stdout] 866 | pub fn get_bullet_vector_macroquad(&mut self, space: &Space, facing: Facing, innacuracy_factor: f32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling interceptors v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `facing` [INFO] [stdout] --> src/weapon.rs:866:66 [INFO] [stdout] | [INFO] [stdout] 866 | pub fn get_bullet_vector_macroquad(&mut self, space: &Space, facing: Facing, innacuracy_factor: f32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `innacuracy_factor` [INFO] [stdout] --> src/weapon.rs:866:82 [INFO] [stdout] | [INFO] [stdout] 866 | pub fn get_bullet_vector_macroquad(&mut self, space: &Space, facing: Facing, innacuracy_factor: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_innacuracy_factor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance` [INFO] [stdout] --> src/weapon.rs:926:21 [INFO] [stdout] | [INFO] [stdout] 926 | let distance = pos.vector - weapon_pos.translation.vector; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `collider_pos` [INFO] [stdout] --> src/enemy.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | let collider_pos = space.collider_set.get(collider_handle).unwrap().position(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_collider_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weapon` [INFO] [stdout] --> src/enemy.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | let weapon = if let Some(weapon) = &mut self.weapon { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy_id` [INFO] [stdout] --> src/enemy.rs:379:32 [INFO] [stdout] | [INFO] [stdout] 379 | WeaponOwner::Enemy(enemy_id) => return, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_id` [INFO] [stdout] --> src/enemy.rs:380:33 [INFO] [stdout] | [INFO] [stdout] 380 | WeaponOwner::Player(player_id) => {}, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shotgun` [INFO] [stdout] --> src/enemy.rs:473:37 [INFO] [stdout] | [INFO] [stdout] 473 | WeaponType::Shotgun(shotgun) => if self.last_fired_weapon.elapsed().as_secs_f32() < 1. { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shotgun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/enemy.rs:476:33 [INFO] [stdout] | [INFO] [stdout] 476 | WeaponType::LMG(lmg) => if self.last_fired_weapon.elapsed().as_secs_f32() < 0.01 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `lowest_distance` is never read [INFO] [stdout] --> src/enemy.rs:750:21 [INFO] [stdout] | [INFO] [stdout] 750 | lowest_distance = distance; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/enemy.rs:784:50 [INFO] [stdout] | [INFO] [stdout] 784 | pub fn upright(&mut self, space: &mut Space, ctx: &mut ClientTickContext) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera_rect` [INFO] [stdout] --> src/phone.rs:87:50 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn draw(&self, textures: &TextureLoader, camera_rect: &Rect) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/computer.rs:39:43 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn from_save(item_save: ItemSave, space: &mut Space) -> Item { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hovered_button_color` [INFO] [stdout] --> src/computer.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let hovered_button_color = Color::new(0.78, 0.78, 0.78, 0.5); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hovered_button_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/dropped_item.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn owner_tick(&mut self, space: &mut Space) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefabs` [INFO] [stdout] --> src/dropped_item.rs:51:64 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_save(save: DroppedItemSave, space: &mut Space, prefabs: &Prefabs) -> Self { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefabs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/machine_gun.rs:124:35 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn new(space: &mut Space, pos: Vector2, owner: ClientId, player_rigid_body_handle: Option, facing: Facing) ... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing` [INFO] [stdout] --> src/machine_gun.rs:124:122 [INFO] [stdout] | [INFO] [stdout] 124 | ...le: Option, facing: Facing) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `platform_pos` [INFO] [stdout] --> src/car.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let platform_pos = space.rigid_body_set.get(self.platform_body).unwrap().position().translation.vector; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_platform_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body_body_pos` [INFO] [stdout] --> src/lib.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let body_body_pos = Vec2::new(body_body.translation().x, body_body.translation().y); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_body_body_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/lib.rs:362:50 [INFO] [stdout] | [INFO] [stdout] 362 | ewebsock::WsEvent::Error(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `junk` and `last_changed_inventory_slot` are never read [INFO] [stdout] --> src/player.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | junk: Vec, // you can hold unlimited junk [INFO] [stdout] | ^^^^ [INFO] [stdout] 75 | last_changed_inventory_slot: web_time::Instant, [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 `scale` is never read [INFO] [stdout] --> src/body_part.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BodyPart { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | scale: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BodyPart` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cost` is never read [INFO] [stdout] --> src/computer.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct StoreItem { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 69 | cost: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `previous_velocity` is never read [INFO] [stdout] --> src/dropped_item.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct DroppedItem { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | previous_velocity: RigidBodyVelocity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DroppedItem` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `body_handle` and `collider_handle` are never read [INFO] [stdout] --> src/junk.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Junk { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 4 | body_handle: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | collider_handle: ColliderHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/car.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Car { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | left_wheel_body: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | left_wheel_collider: ColliderHandle, [INFO] [stdout] 13 | left_wheel_revolute_joint: ImpulseJointHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | [INFO] [stdout] 15 | left_axle_body: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 16 | left_axle_collider: ColliderHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | left_axle_prismatic_joint: ImpulseJointHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | right_axle_body: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | right_axle_collider: ColliderHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | right_axle_prismatic_joint: ImpulseJointHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | right_wheel_body: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | right_wheel_collider: ColliderHandle, [INFO] [stdout] 27 | right_wheel_revolute_joint: ImpulseJointHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::Instant` [INFO] [stdout] --> src/editor/editor.rs:1:84 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs::{self, read_to_string}, path::{Path, PathBuf}, time::Instant}; [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: `Font` [INFO] [stdout] --> src/editor/editor.rs:4:327 [INFO] [stdout] | [INFO] [stdout] 4 | ...hapes::{draw_rectangle, draw_rectangle_lines}, text::{draw_text, Font}, window::{next_frame, screen_height, screen_width}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de` [INFO] [stdout] --> src/editor/editor.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use serde::{de, Deserialize, Serialize}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path` and `time::Instant` [INFO] [stdout] --> src/client/client.rs:1:40 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, path::{Path, PathBuf}, time::Instant}; [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: `phone::Phone` and `self` [INFO] [stdout] --> src/client/client.rs:3:145 [INFO] [stdout] | [INFO] [stdout] 3 | ...r, phone::Phone, player::{ItemSlot, Player}, prop::Prop, screen_shake::ScreenShakeParameters, sound_loader::SoundLoader, texture_loader::TextureLoader, updates::{NetworkPacket, Ping}, weapon::{self, W... [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `camera::mouse::Camera`, `pop_camera_state`, `push_camera_state`, `request_new_screen_size`, and `text::Font` [INFO] [stdout] --> src/client/client.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | ...::{pop_camera_state, push_camera_state, set_camera, set_default_camera, Camera2D}, color::{BLACK, WHITE}, input::{is_key_released, KeyCode}, math::{vec2, Rect}, prelude::{camera::mouse::Camera, gl_use_default_material, gl_use_material, load_material, Material, ShaderSource}, text::Font, texture::{draw_texture_ex, render_target, DrawTextureParams, RenderTarget}, window::{clear_background, next_frame, request_new_screen_size, s... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dhat-heap` [INFO] [stdout] --> src/client/main.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | #[cfg(feature = "dhat-heap")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `dhat-heap` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera_rect` [INFO] [stdout] --> src/editor/editor.rs:263:35 [INFO] [stdout] | [INFO] [stdout] 263 | pub async fn draw_menu(&self, camera_rect: &Rect, textures: &mut TextureLoader, cursor: Vec2) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `textures` [INFO] [stdout] --> src/editor/editor.rs:263:55 [INFO] [stdout] | [INFO] [stdout] 263 | pub async fn draw_menu(&self, camera_rect: &Rect, textures: &mut TextureLoader, cursor: Vec2) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_textures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_id` [INFO] [stdout] --> src/server/server.rs:82:50 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn handle_disconnected_client(&mut self, client_id: ClientId) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `update` [INFO] [stdout] --> src/server/server.rs:132:45 [INFO] [stdout] | [INFO] [stdout] 132 | NetworkPacket::MasterUpdate(update) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_update` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ping` [INFO] [stdout] --> src/server/server.rs:135:37 [INFO] [stdout] | [INFO] [stdout] 135 | NetworkPacket::Ping(ping) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/server/server.rs:137:25 [INFO] [stdout] | [INFO] [stdout] 137 | let client = self.network_io.clients.get_mut(&client_id).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_pos` [INFO] [stdout] --> src/server/server.rs:303:25 [INFO] [stdout] | [INFO] [stdout] 303 | let current_pos = area.space.rigid_body_set.get(player.body.body_handle).unwrap().position(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_pos` [INFO] [stdout] --> src/client/client.rs:332:25 [INFO] [stdout] | [INFO] [stdout] 332 | let player_pos = player_body.position(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `megabits` [INFO] [stdout] --> src/server/server.rs:611:13 [INFO] [stdout] | [INFO] [stdout] 611 | let megabits = self.total_bits_sent as f32 / 1000000 as f32; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_megabits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `spawned` and `test_button` are never read [INFO] [stdout] --> src/client/client.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct Client { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 95 | spawned: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 96 | fonts: FontLoader, [INFO] [stdout] 97 | test_button: Button [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 `update_camera_to_match_screen_size` is never used [INFO] [stdout] --> src/client/client.rs:619:12 [INFO] [stdout] | [INFO] [stdout] 248 | impl Client { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 619 | pub fn update_camera_to_match_screen_size(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera_rect` [INFO] [stdout] --> src/editor/editor.rs:222:46 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn spawn(&mut self, area: &mut Area, camera_rect: &Rect, cursor: Vec2, rapier_cursor: Vec2) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `round_to_nearest_50` is never used [INFO] [stdout] --> src/editor/editor.rs:303:4 [INFO] [stdout] | [INFO] [stdout] 303 | fn round_to_nearest_50(n: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::camera::mouse::Camera` [INFO] [stdout] --> src/lib.rs:4:167 [INFO] [stdout] | [INFO] [stdout] 4 | ...mouse_position, KeyCode}, math::{vec2, Rect, Vec2}, prelude::camera::mouse::Camera, shapes::DrawRectangleParams, texture::{draw_textur... [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: `Duration`, `PathBuf`, and `Path` [INFO] [stdout] --> src/area.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{path::{Path, PathBuf}, time::{Duration, Instant}}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `is_key_down`, `screen_height`, and `screen_width` [INFO] [stdout] --> src/area.rs:4:93 [INFO] [stdout] | [INFO] [stdout] 4 | ...era::Camera2D, input::{is_key_down, is_key_released, KeyCode}, math::Rect, window::{screen_height, screen_width}}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Isometry` [INFO] [stdout] --> src/area.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use nalgebra::{vector, Isometry, Isometry2, Vector2}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web_sys::js_sys::WebAssembly::Instance` [INFO] [stdout] --> src/area.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use web_sys::js_sys::WebAssembly::Instance; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PropItem`, `Shotgun`, and `self` [INFO] [stdout] --> src/area.rs:10:359 [INFO] [stdout] | [INFO] [stdout] 10 | ...::{self, NewPlayer, Player, PlayerSave}, prop::{DissolvedPixel, NewProp, Prop, PropId, PropItem, PropSave}, rapier_mouse_world_pos, shotgun::{Shotgun, S... [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::camera::mouse::Camera` [INFO] [stdout] --> src/world.rs:2:47 [INFO] [stdout] | [INFO] [stdout] 2 | use macroquad::{camera::Camera2D, math::Rect, prelude::camera::mouse::Camera}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::min` [INFO] [stdout] --> src/player.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::min, f32::consts::PI, mem::take, path::PathBuf, str::FromStr, time::Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LIGHTGRAY`, `is_key_released`, `play_sound`, `set_sound_volume`, and `vec2` [INFO] [stdout] --> src/player.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | ...::{play_sound, set_sound_volume}, color::{BLACK, LIGHTGRAY, WHITE}, input::{is_key_down, is_key_released, is_mouse_button_down, is_mouse_button_released, mouse_wheel, KeyCode}, math::{vec2, R... [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Area`, `PropItem`, `Shotgun`, `WeaponSave`, `WeaponTypeItem`, `Weapon`, `self`, `self`, and `self` [INFO] [stdout] --> src/player.rs:9:43 [INFO] [stdout] | [INFO] [stdout] 9 | ...::{self, Area, AreaId}, body_part::BodyPart, bullet_trail::{self, BulletTrail}, computer::{Item, ItemSave}, dropped_item::{DroppedItem, RemoveDroppedItemUpdate}, enemy::Enemy, font_loader::FontLoader, get_angle_between_rapier_points, inventory::Inventory, machine_gun::LMGItem, prop::{self, DissolvedPixel, Prop, PropItem}, rapier_mouse_world_pos, rapier_to_macroquad, shotgun::{Shotgun, ShotgunItem}, space::Space, texture_loader::TextureLoader, updates::NetworkPacket, uuid_u64, weapon::{self, BulletImpactData, Weapon, WeaponFireContext, WeaponSave, WeaponType, WeaponTypeItem, W... [INFO] [stdout] | ^^^^ ^^^^ ^^^^ ^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `camera` [INFO] [stdout] --> src/background.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use macroquad::{camera, color::WHITE, math::{Rect, Vec2}, texture::{draw_texture_ex, DrawTextureParams}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path` and `default` [INFO] [stdout] --> src/prop.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{default, fs::read_to_string, path::{Path, PathBuf}, time::Instant}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DrawTextureParams`, `WHITE`, `draw_texture_ex`, `draw_texture`, and `input::is_mouse_button_released` [INFO] [stdout] --> src/prop.rs:3:56 [INFO] [stdout] | [INFO] [stdout] 3 | ...r, WHITE}, input::is_mouse_button_released, math::Vec2, shapes::{draw_rectangle_ex, DrawRectangleParams}, texture::{draw_texture, draw_texture_ex, DrawTextureParams}}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vector` and `base` [INFO] [stdout] --> src/prop.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use nalgebra::{base, Isometry2, Vector, Vector2}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ColliderPair` [INFO] [stdout] --> src/prop.rs:5:58 [INFO] [stdout] | [INFO] [stdout] 5 | use rapier2d::prelude::{ColliderBuilder, ColliderHandle, ColliderPair, RigidBodyBuilder, RigidBodyHandle, RigidBodyVelocity}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Area`, `computer::Computer`, `contains_point`, and `prop` [INFO] [stdout] --> src/prop.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | ...a::{Area, AreaId}, computer::Computer, contains_point, draw_preview, draw_texture_onto_physics_body, get_preview_resolution, prop, rap... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path`, `collections::HashSet`, and `time::Instant` [INFO] [stdout] --> src/weapon.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashSet, path::{Path, PathBuf}, time::Instant}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyCode`, `is_key_released`, `load_sound_from_bytes`, `load_sound`, and `play_sound_once` [INFO] [stdout] --> src/weapon.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | ...::{load_sound, load_sound_from_bytes, play_sound, play_sound_once, PlaySoundParams}, color::Color, input::{is_key_released, KeyCode}, ... [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Translation` [INFO] [stdout] --> src/weapon.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use rapier2d::{math::{Translation, Vector}, parry::query::Ray, prelude::{ColliderHandle, ImpulseJointHandle, InteractionGroups, QueryFilt... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Prefabs`, `PropVelocityUpdate`, and `self` [INFO] [stdout] --> src/weapon.rs:8:42 [INFO] [stdout] | [INFO] [stdout] 8 | ...::{self, BulletTrail, SpawnBulletTrail}, collider_from_texture_size, draw_preview, draw_texture_onto_physics_body, dropped_item::{DroppedItem, NewDroppedItemUpdate}, enemy::{Enemy, EnemyId}, get_preview_resolution, inventory::Inventory, machine_gun::{LMGItem, LMGItemSave, LMGSave, LMG}, player::{ActiveWeaponUpdate, Facing, Player, PlayerId}, prop::{DissolvedPixel, Prop, PropVelocityUpdate}, shotgun::{Shotgun, ShotgunItem, ShotgunItemSave, ShotgunSave}, space::Space, texture_loader::TextureLoader, ClientId, ClientTickContext, Prefabs}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/shotgun.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Area` [INFO] [stdout] --> src/bullet_trail.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{area::{Area, AreaId}, rapier_to_macroquad, uuid_u64, ClientId, ClientTickContext}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Texture2D`, `load_texture`, and `self` [INFO] [stdout] --> src/sound_loader.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | use macroquad::{audio::{load_sound, Sound}, texture::{self, load_texture, Texture2D}}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f64::consts::E` [INFO] [stdout] --> src/enemy.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{f32::consts::PI, f64::consts::E, path::PathBuf, time::Instant}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::gen_range` [INFO] [stdout] --> src/enemy.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | use macroquad::{color::{BLACK, GREEN}, math::Vec2, rand::gen_range, shapes::{draw_rectangle, draw_rectangle_lines}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector` [INFO] [stdout] --> src/enemy.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use nalgebra::{vector, Isometry2, Vector, Vector2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NewProp`, `WeaponSave`, and `self` [INFO] [stdout] --> src/enemy.rs:8:202 [INFO] [stdout] | [INFO] [stdout] 8 | ...::{self, Facing, Player, PlayerId}, prop::{DissolvedPixel, NewProp, Prop}, rapier_to_macroquad, space::Space, texture_loader::TextureLoader, updates::NetworkPacket, uuid_u64, weapon::{self, BulletImpactData, WeaponFireContext, WeaponOwner, WeaponSave, W... [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `draw_texture` [INFO] [stdout] --> src/phone.rs:3:61 [INFO] [stdout] | [INFO] [stdout] 3 | use macroquad::{color::WHITE, math::{Rect, Vec2}, texture::{draw_texture, draw_texture_ex, DrawTextureParams}, window::{screen_height, sc... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientTickContext` [INFO] [stdout] --> src/phone.rs:5:44 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{texture_loader::TextureLoader, ClientTickContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Instant`, and `Path` [INFO] [stdout] --> src/computer.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{path::{Path, PathBuf}, str::FromStr, time::{Duration, Instant}}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Font`, `LIGHTGRAY`, `RED`, `clamp`, `draw_rectangle`, `draw_texture`, `mouse_position_local`, `mouse_position`, `pop_camera_state`, `prelude::camera::mouse::Camera`, `push_camera_state`, and `set_default_camera` [INFO] [stdout] --> src/computer.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | ...::{pop_camera_state, push_camera_state, set_camera, set_default_camera, Camera2D}, color::{Color, BLACK, GRAY, LIGHTGRAY, RED, WHITE}, input::{mouse_position, mouse_position_local}, math::{clamp, Rect, Vec2}, prelude::camera::mouse::Camera, shapes::{draw_line, draw_rectangle}, text::{draw_text_ex, Font, TextParams}, texture::{draw_texture, d... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WeaponSave`, `WeaponTypeSave`, `WeaponType`, `Weapon`, `rapier_mouse_world_pos`, and `self` [INFO] [stdout] --> src/computer.rs:7:94 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{self, Prop, PropItem, PropItemSave, PropSave}, rapier_mouse_world_pos, rapier_to_macroquad, space::Space, texture_loader::TextureLoader, weapon::{Weapon, WeaponSave, WeaponType, WeaponTypeItem, WeaponTypeItemSave, WeaponTypeSave}, ... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mouse_position` [INFO] [stdout] --> src/button.rs:1:73 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::{input::{is_mouse_button_down, is_mouse_button_released, mouse_position}, math::{Rect, Vec2}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mouse_world_pos` [INFO] [stdout] --> src/button.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::mouse_world_pos; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `U4` [INFO] [stdout] --> src/dropped_item.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use nalgebra::{Isometry2, Vector2, U4}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `draw_texture_onto_physics_body` [INFO] [stdout] --> src/dropped_item.rs:6:55 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{area::AreaId, computer::{Item, ItemSave}, draw_texture_onto_physics_body, rapier_to_macroquad, space::Space, texture_loader::... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `draw_rectangle` [INFO] [stdout] --> src/car.rs:1:53 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::{color::WHITE, shapes::{draw_circle, draw_rectangle}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prop_pos` [INFO] [stdout] --> src/computer.rs:478:13 [INFO] [stdout] | [INFO] [stdout] 478 | let prop_pos = space.rigid_body_set.get(self.prop.rigid_body_handle).unwrap().position(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prop_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `font` [INFO] [stdout] --> src/computer.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | let font = fonts.get(PathBuf::from("assets/fonts/CutePixel.ttf")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_font` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `then` [INFO] [stdout] --> src/area.rs:437:13 [INFO] [stdout] | [INFO] [stdout] 437 | let then = Instant::now(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_then` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `textures` [INFO] [stdout] --> src/player.rs:207:28 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn draw_hud(&self, textures: &TextureLoader) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_textures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance_y` [INFO] [stdout] --> src/player.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 294 | let distance_y = (our_player_pos.translation.y - average_enemy_pos.y).abs(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `minimum_camera_height` [INFO] [stdout] --> src/player.rs:288:99 [INFO] [stdout] | [INFO] [stdout] 288 | ...a_width: f32, minimum_camera_height: f32, space: &Space, average_enemy_pos: Vector2, max_camera_y: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_minimum_camera_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/player.rs:361:44 [INFO] [stdout] | [INFO] [stdout] 361 | pub fn handle_bullet_impact(&mut self, space: &Space, bullet_impact: BulletImpactData) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bullet_impact` [INFO] [stdout] --> src/player.rs:361:59 [INFO] [stdout] | [INFO] [stdout] 361 | pub fn handle_bullet_impact(&mut self, space: &Space, bullet_impact: BulletImpactData) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bullet_impact` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body_handle` [INFO] [stdout] --> src/player.rs:399:13 [INFO] [stdout] | [INFO] [stdout] 399 | let body_handle = body.body_handle.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_body_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/player.rs:466:98 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn change_active_inventory_slot(&mut self, ctx: &mut ClientTickContext, area_id: AreaId, space: &mut Space) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `players` [INFO] [stdout] --> src/player.rs:524:9 [INFO] [stdout] | [INFO] [stdout] 524 | players: &mut Vec, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_players` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bullet_trails` [INFO] [stdout] --> src/player.rs:525:9 [INFO] [stdout] | [INFO] [stdout] 525 | bullet_trails: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bullet_trails` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing` [INFO] [stdout] --> src/player.rs:526:9 [INFO] [stdout] | [INFO] [stdout] 526 | facing: Facing, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dissolved_pixels` [INFO] [stdout] --> src/player.rs:528:9 [INFO] [stdout] | [INFO] [stdout] 528 | dissolved_pixels: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dissolved_pixels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/player.rs:581:50 [INFO] [stdout] | [INFO] [stdout] 581 | pub fn control(&mut self, space: &mut Space, ctx: &mut ClientTickContext) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera_rect` [INFO] [stdout] --> src/player.rs:752:64 [INFO] [stdout] | [INFO] [stdout] 752 | pub fn angle_weapon_to_mouse(&mut self, space: &mut Space, camera_rect: &Rect) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/prop.rs:50:50 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn despawn(&mut self, space: &mut Space, ctx: &mut ClientTickContext) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mass` [INFO] [stdout] --> src/prop.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let mass = match mass { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mass` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/prop.rs:203:27 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn to_prop(&self, pos: Isometry2, prefabs: &Prefabs, space: &mut Space) -> Prop { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/prop.rs:306:35 [INFO] [stdout] | [INFO] [stdout] 306 | pub fn server_tick(&mut self, space: &mut Space, area_id: AreaId, server_io: &mut ServerIO) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `area_id` [INFO] [stdout] --> src/prop.rs:306:54 [INFO] [stdout] | [INFO] [stdout] 306 | pub fn server_tick(&mut self, space: &mut Space, area_id: AreaId, server_io: &mut ServerIO) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_area_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_io` [INFO] [stdout] --> src/prop.rs:306:71 [INFO] [stdout] | [INFO] [stdout] 306 | pub fn server_tick(&mut self, space: &mut Space, area_id: AreaId, server_io: &mut ServerIO) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dissolved_pixels` [INFO] [stdout] --> src/prop.rs:385:99 [INFO] [stdout] | [INFO] [stdout] 385 | ..., area_id: AreaId, dissolved_pixels: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dissolved_pixels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/body_part.rs:69:34 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn owner_tick(&mut self, ctx: &mut ClientTickContext, space: &mut Space) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/body_part.rs:69:63 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn owner_tick(&mut self, ctx: &mut ClientTickContext, space: &mut Space) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/weapon.rs:138:33 [INFO] [stdout] | [INFO] [stdout] 138 | WeaponTypeItem::LMG(lmg) => "LMG".to_string() [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/weapon.rs:155:24 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn save(&self, space: &Space) -> WeaponTypeItemSave { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/weapon.rs:192:29 [INFO] [stdout] | [INFO] [stdout] 192 | WeaponType::LMG(lmg) => "LMG".to_string() [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/weapon.rs:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | WeaponType::LMG(lmg) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/weapon.rs:230:29 [INFO] [stdout] | [INFO] [stdout] 230 | WeaponType::LMG(lmg) => Vec2::ZERO [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing` [INFO] [stdout] --> src/weapon.rs:585:9 [INFO] [stdout] | [INFO] [stdout] 585 | facing: Facing, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sound` [INFO] [stdout] --> src/weapon.rs:712:17 [INFO] [stdout] | [INFO] [stdout] 712 | let sound = ctx.sounds.get(PathBuf::from("assets\\sounds\\pistol_dry_fire.wav")); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/weapon.rs:866:51 [INFO] [stdout] | [INFO] [stdout] 866 | pub fn get_bullet_vector_macroquad(&mut self, space: &Space, facing: Facing, innacuracy_factor: f32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing` [INFO] [stdout] --> src/weapon.rs:866:66 [INFO] [stdout] | [INFO] [stdout] 866 | pub fn get_bullet_vector_macroquad(&mut self, space: &Space, facing: Facing, innacuracy_factor: f32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `innacuracy_factor` [INFO] [stdout] --> src/weapon.rs:866:82 [INFO] [stdout] | [INFO] [stdout] 866 | pub fn get_bullet_vector_macroquad(&mut self, space: &Space, facing: Facing, innacuracy_factor: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_innacuracy_factor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance` [INFO] [stdout] --> src/weapon.rs:926:21 [INFO] [stdout] | [INFO] [stdout] 926 | let distance = pos.vector - weapon_pos.translation.vector; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `collider_pos` [INFO] [stdout] --> src/enemy.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | let collider_pos = space.collider_set.get(collider_handle).unwrap().position(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_collider_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weapon` [INFO] [stdout] --> src/enemy.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | let weapon = if let Some(weapon) = &mut self.weapon { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy_id` [INFO] [stdout] --> src/enemy.rs:379:32 [INFO] [stdout] | [INFO] [stdout] 379 | WeaponOwner::Enemy(enemy_id) => return, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_id` [INFO] [stdout] --> src/enemy.rs:380:33 [INFO] [stdout] | [INFO] [stdout] 380 | WeaponOwner::Player(player_id) => {}, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shotgun` [INFO] [stdout] --> src/enemy.rs:473:37 [INFO] [stdout] | [INFO] [stdout] 473 | WeaponType::Shotgun(shotgun) => if self.last_fired_weapon.elapsed().as_secs_f32() < 1. { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shotgun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lmg` [INFO] [stdout] --> src/enemy.rs:476:33 [INFO] [stdout] | [INFO] [stdout] 476 | WeaponType::LMG(lmg) => if self.last_fired_weapon.elapsed().as_secs_f32() < 0.01 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `lowest_distance` is never read [INFO] [stdout] --> src/enemy.rs:750:21 [INFO] [stdout] | [INFO] [stdout] 750 | lowest_distance = distance; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/enemy.rs:784:50 [INFO] [stdout] | [INFO] [stdout] 784 | pub fn upright(&mut self, space: &mut Space, ctx: &mut ClientTickContext) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera_rect` [INFO] [stdout] --> src/phone.rs:87:50 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn draw(&self, textures: &TextureLoader, camera_rect: &Rect) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/computer.rs:39:43 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn from_save(item_save: ItemSave, space: &mut Space) -> Item { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hovered_button_color` [INFO] [stdout] --> src/computer.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let hovered_button_color = Color::new(0.78, 0.78, 0.78, 0.5); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hovered_button_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/dropped_item.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn owner_tick(&mut self, space: &mut Space) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefabs` [INFO] [stdout] --> src/dropped_item.rs:51:64 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_save(save: DroppedItemSave, space: &mut Space, prefabs: &Prefabs) -> Self { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefabs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/machine_gun.rs:124:35 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn new(space: &mut Space, pos: Vector2, owner: ClientId, player_rigid_body_handle: Option, facing: Facing) ... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing` [INFO] [stdout] --> src/machine_gun.rs:124:122 [INFO] [stdout] | [INFO] [stdout] 124 | ...le: Option, facing: Facing) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `platform_pos` [INFO] [stdout] --> src/car.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let platform_pos = space.rigid_body_set.get(self.platform_body).unwrap().position().translation.vector; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_platform_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body_body_pos` [INFO] [stdout] --> src/lib.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let body_body_pos = Vec2::new(body_body.translation().x, body_body.translation().y); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_body_body_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/lib.rs:362:50 [INFO] [stdout] | [INFO] [stdout] 362 | ewebsock::WsEvent::Error(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `junk` and `last_changed_inventory_slot` are never read [INFO] [stdout] --> src/player.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | junk: Vec, // you can hold unlimited junk [INFO] [stdout] | ^^^^ [INFO] [stdout] 75 | last_changed_inventory_slot: web_time::Instant, [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 `scale` is never read [INFO] [stdout] --> src/body_part.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BodyPart { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | scale: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BodyPart` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cost` is never read [INFO] [stdout] --> src/computer.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct StoreItem { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 69 | cost: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `previous_velocity` is never read [INFO] [stdout] --> src/dropped_item.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct DroppedItem { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | previous_velocity: RigidBodyVelocity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DroppedItem` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `body_handle` and `collider_handle` are never read [INFO] [stdout] --> src/junk.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Junk { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 4 | body_handle: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | collider_handle: ColliderHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/car.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Car { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | left_wheel_body: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | left_wheel_collider: ColliderHandle, [INFO] [stdout] 13 | left_wheel_revolute_joint: ImpulseJointHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | [INFO] [stdout] 15 | left_axle_body: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 16 | left_axle_collider: ColliderHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | left_axle_prismatic_joint: ImpulseJointHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | right_axle_body: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | right_axle_collider: ColliderHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | right_axle_prismatic_joint: ImpulseJointHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | right_wheel_body: RigidBodyHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | right_wheel_collider: ColliderHandle, [INFO] [stdout] 27 | right_wheel_revolute_joint: ImpulseJointHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.57s [INFO] running `Command { std: "docker" "inspect" "8c03a9140e225a8b60a2b17e06dc22d4741123978974947da2599a9542912b56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c03a9140e225a8b60a2b17e06dc22d4741123978974947da2599a9542912b56", kill_on_drop: false }` [INFO] [stdout] 8c03a9140e225a8b60a2b17e06dc22d4741123978974947da2599a9542912b56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6ad7523573ad013a74d22b1ed7351fa68c0d977a89ea1c21e36a3a6fc79e54cb [INFO] running `Command { std: "docker" "start" "-a" "6ad7523573ad013a74d22b1ed7351fa68c0d977a89ea1c21e36a3a6fc79e54cb", kill_on_drop: false }` [INFO] [stderr] warning: profile package spec `rapier3d` in profile `dev` did not match any packages [INFO] [stderr] [INFO] [stderr] help: a package with a similar name exists: `rapier2d` [INFO] [stderr] warning: unused import: `prelude::camera::mouse::Camera` [INFO] [stderr] --> src/lib.rs:4:167 [INFO] [stderr] | [INFO] [stderr] 4 | ...mouse_position, KeyCode}, math::{vec2, Rect, Vec2}, prelude::camera::mouse::Camera, shapes::DrawRectangleParams, texture::{draw_textur... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Duration`, `PathBuf`, and `Path` [INFO] [stderr] --> src/area.rs:2:18 [INFO] [stderr] | [INFO] [stderr] 2 | use std::{path::{Path, PathBuf}, time::{Duration, Instant}}; [INFO] [stderr] | ^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `is_key_down`, `screen_height`, and `screen_width` [INFO] [stderr] --> src/area.rs:4:93 [INFO] [stderr] | [INFO] [stderr] 4 | ...era::Camera2D, input::{is_key_down, is_key_released, KeyCode}, math::Rect, window::{screen_height, screen_width}}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Isometry` [INFO] [stderr] --> src/area.rs:5:24 [INFO] [stderr] | [INFO] [stderr] 5 | use nalgebra::{vector, Isometry, Isometry2, Vector2}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `web_sys::js_sys::WebAssembly::Instance` [INFO] [stderr] --> src/area.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use web_sys::js_sys::WebAssembly::Instance; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `PropItem`, `Shotgun`, and `self` [INFO] [stderr] --> src/area.rs:10:359 [INFO] [stderr] | [INFO] [stderr] 10 | ...::{self, NewPlayer, Player, PlayerSave}, prop::{DissolvedPixel, NewProp, Prop, PropId, PropItem, PropSave}, rapier_mouse_world_pos, shotgun::{Shotgun, S... [INFO] [stderr] | ^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `prelude::camera::mouse::Camera` [INFO] [stderr] --> src/world.rs:2:47 [INFO] [stderr] | [INFO] [stderr] 2 | use macroquad::{camera::Camera2D, math::Rect, prelude::camera::mouse::Camera}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cmp::min` [INFO] [stderr] --> src/player.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{cmp::min, f32::consts::PI, mem::take, path::PathBuf, str::FromStr, time::Instant}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `LIGHTGRAY`, `is_key_released`, `play_sound`, `set_sound_volume`, and `vec2` [INFO] [stderr] --> src/player.rs:4:25 [INFO] [stderr] | [INFO] [stderr] 4 | ...::{play_sound, set_sound_volume}, color::{BLACK, LIGHTGRAY, WHITE}, input::{is_key_down, is_key_released, is_mouse_button_down, is_mouse_button_released, mouse_wheel, KeyCode}, math::{vec2, R... [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Area`, `PropItem`, `Shotgun`, `WeaponSave`, `WeaponTypeItem`, `Weapon`, `self`, `self`, and `self` [INFO] [stderr] --> src/player.rs:9:43 [INFO] [stderr] | [INFO] [stderr] 9 | ...::{self, Area, AreaId}, body_part::BodyPart, bullet_trail::{self, BulletTrail}, computer::{Item, ItemSave}, dropped_item::{DroppedItem, RemoveDroppedItemUpdate}, enemy::Enemy, font_loader::FontLoader, get_angle_between_rapier_points, inventory::Inventory, machine_gun::LMGItem, prop::{self, DissolvedPixel, Prop, PropItem}, rapier_mouse_world_pos, rapier_to_macroquad, shotgun::{Shotgun, ShotgunItem}, space::Space, texture_loader::TextureLoader, updates::NetworkPacket, uuid_u64, weapon::{self, BulletImpactData, Weapon, WeaponFireContext, WeaponSave, WeaponType, WeaponTypeItem, W... [INFO] [stderr] | ^^^^ ^^^^ ^^^^ ^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `camera` [INFO] [stderr] --> src/background.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | use macroquad::{camera, color::WHITE, math::{Rect, Vec2}, texture::{draw_texture_ex, DrawTextureParams}}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Path` and `default` [INFO] [stderr] --> src/prop.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{default, fs::read_to_string, path::{Path, PathBuf}, time::Instant}; [INFO] [stderr] | ^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DrawTextureParams`, `WHITE`, `draw_texture_ex`, `draw_texture`, and `input::is_mouse_button_released` [INFO] [stderr] --> src/prop.rs:3:56 [INFO] [stderr] | [INFO] [stderr] 3 | ...r, WHITE}, input::is_mouse_button_released, math::Vec2, shapes::{draw_rectangle_ex, DrawRectangleParams}, texture::{draw_texture, draw_texture_ex, DrawTextureParams}}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Vector` and `base` [INFO] [stderr] --> src/prop.rs:4:16 [INFO] [stderr] | [INFO] [stderr] 4 | use nalgebra::{base, Isometry2, Vector, Vector2}; [INFO] [stderr] | ^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ColliderPair` [INFO] [stderr] --> src/prop.rs:5:58 [INFO] [stderr] | [INFO] [stderr] 5 | use rapier2d::prelude::{ColliderBuilder, ColliderHandle, ColliderPair, RigidBodyBuilder, RigidBodyHandle, RigidBodyVelocity}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Area`, `computer::Computer`, `contains_point`, and `prop` [INFO] [stderr] --> src/prop.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | ...a::{Area, AreaId}, computer::Computer, contains_point, draw_preview, draw_texture_onto_physics_body, get_preview_resolution, prop, rap... [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Path`, `collections::HashSet`, and `time::Instant` [INFO] [stderr] --> src/weapon.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{collections::HashSet, path::{Path, PathBuf}, time::Instant}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `KeyCode`, `is_key_released`, `load_sound_from_bytes`, `load_sound`, and `play_sound_once` [INFO] [stderr] --> src/weapon.rs:3:25 [INFO] [stderr] | [INFO] [stderr] 3 | ...::{load_sound, load_sound_from_bytes, play_sound, play_sound_once, PlaySoundParams}, color::Color, input::{is_key_released, KeyCode}, ... [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Translation` [INFO] [stderr] --> src/weapon.rs:5:23 [INFO] [stderr] | [INFO] [stderr] 5 | use rapier2d::{math::{Translation, Vector}, parry::query::Ray, prelude::{ColliderHandle, ImpulseJointHandle, InteractionGroups, QueryFilt... [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Prefabs`, `PropVelocityUpdate`, and `self` [INFO] [stderr] --> src/weapon.rs:8:42 [INFO] [stderr] | [INFO] [stderr] 8 | ...::{self, BulletTrail, SpawnBulletTrail}, collider_from_texture_size, draw_preview, draw_texture_onto_physics_body, dropped_item::{DroppedItem, NewDroppedItemUpdate}, enemy::{Enemy, EnemyId}, get_preview_resolution, inventory::Inventory, machine_gun::{LMGItem, LMGItemSave, LMGSave, LMG}, player::{ActiveWeaponUpdate, Facing, Player, PlayerId}, prop::{DissolvedPixel, Prop, PropVelocityUpdate}, shotgun::{Shotgun, ShotgunItem, ShotgunItemSave, ShotgunSave}, space::Space, texture_loader::TextureLoader, ClientId, ClientTickContext, Prefabs}; [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Path` [INFO] [stderr] --> src/shotgun.rs:1:17 [INFO] [stderr] | [INFO] [stderr] 1 | use std::path::{Path, PathBuf}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Area` [INFO] [stderr] --> src/bullet_trail.rs:5:20 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::{area::{Area, AreaId}, rapier_to_macroquad, uuid_u64, ClientId, ClientTickContext}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Texture2D`, `load_texture`, and `self` [INFO] [stderr] --> src/sound_loader.rs:4:55 [INFO] [stderr] | [INFO] [stderr] 4 | use macroquad::{audio::{load_sound, Sound}, texture::{self, load_texture, Texture2D}}; [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `f64::consts::E` [INFO] [stderr] --> src/enemy.rs:1:28 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{f32::consts::PI, f64::consts::E, path::PathBuf, time::Instant}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::gen_range` [INFO] [stderr] --> src/enemy.rs:3:52 [INFO] [stderr] | [INFO] [stderr] 3 | use macroquad::{color::{BLACK, GREEN}, math::Vec2, rand::gen_range, shapes::{draw_rectangle, draw_rectangle_lines}}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Vector` [INFO] [stderr] --> src/enemy.rs:4:35 [INFO] [stderr] | [INFO] [stderr] 4 | use nalgebra::{vector, Isometry2, Vector, Vector2}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `NewProp`, `WeaponSave`, and `self` [INFO] [stderr] --> src/enemy.rs:8:202 [INFO] [stderr] | [INFO] [stderr] 8 | ...::{self, Facing, Player, PlayerId}, prop::{DissolvedPixel, NewProp, Prop}, rapier_to_macroquad, space::Space, texture_loader::TextureLoader, updates::NetworkPacket, uuid_u64, weapon::{self, BulletImpactData, WeaponFireContext, WeaponOwner, WeaponSave, W... [INFO] [stderr] | ^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `draw_texture` [INFO] [stderr] --> src/phone.rs:3:61 [INFO] [stderr] | [INFO] [stderr] 3 | use macroquad::{color::WHITE, math::{Rect, Vec2}, texture::{draw_texture, draw_texture_ex, DrawTextureParams}, window::{screen_height, sc... [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ClientTickContext` [INFO] [stderr] --> src/phone.rs:5:44 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::{texture_loader::TextureLoader, ClientTickContext}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Duration`, `Instant`, and `Path` [INFO] [stderr] --> src/computer.rs:1:18 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{path::{Path, PathBuf}, str::FromStr, time::{Duration, Instant}}; [INFO] [stderr] | ^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Font`, `LIGHTGRAY`, `RED`, `clamp`, `draw_rectangle`, `draw_texture`, `mouse_position_local`, `mouse_position`, `pop_camera_state`, `prelude::camera::mouse::Camera`, `push_camera_state`, and `set_default_camera` [INFO] [stderr] --> src/computer.rs:3:26 [INFO] [stderr] | [INFO] [stderr] 3 | ...::{pop_camera_state, push_camera_state, set_camera, set_default_camera, Camera2D}, color::{Color, BLACK, GRAY, LIGHTGRAY, RED, WHITE}, input::{mouse_position, mouse_position_local}, math::{clamp, Rect, Vec2}, prelude::camera::mouse::Camera, shapes::{draw_line, draw_rectangle}, text::{draw_text_ex, Font, TextParams}, texture::{draw_texture, d... [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `WeaponSave`, `WeaponTypeSave`, `WeaponType`, `Weapon`, `rapier_mouse_world_pos`, and `self` [INFO] [stderr] --> src/computer.rs:7:94 [INFO] [stderr] | [INFO] [stderr] 7 | ...::{self, Prop, PropItem, PropItemSave, PropSave}, rapier_mouse_world_pos, rapier_to_macroquad, space::Space, texture_loader::TextureLoader, weapon::{Weapon, WeaponSave, WeaponType, WeaponTypeItem, WeaponTypeItemSave, WeaponTypeSave}, ... [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `mouse_position` [INFO] [stderr] --> src/button.rs:1:73 [INFO] [stderr] | [INFO] [stderr] 1 | use macroquad::{input::{is_mouse_button_down, is_mouse_button_released, mouse_position}, math::{Rect, Vec2}}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::mouse_world_pos` [INFO] [stderr] --> src/button.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::mouse_world_pos; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `U4` [INFO] [stderr] --> src/dropped_item.rs:2:36 [INFO] [stderr] | [INFO] [stderr] 2 | use nalgebra::{Isometry2, Vector2, U4}; [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `draw_texture_onto_physics_body` [INFO] [stderr] --> src/dropped_item.rs:6:55 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::{area::AreaId, computer::{Item, ItemSave}, draw_texture_onto_physics_body, rapier_to_macroquad, space::Space, texture_loader::... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `draw_rectangle` [INFO] [stderr] --> src/car.rs:1:53 [INFO] [stderr] | [INFO] [stderr] 1 | use macroquad::{color::WHITE, shapes::{draw_circle, draw_rectangle}}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `prop_pos` [INFO] [stderr] --> src/computer.rs:478:13 [INFO] [stderr] | [INFO] [stderr] 478 | let prop_pos = space.rigid_body_set.get(self.prop.rigid_body_handle).unwrap().position(); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prop_pos` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `font` [INFO] [stderr] --> src/computer.rs:505:13 [INFO] [stderr] | [INFO] [stderr] 505 | let font = fonts.get(PathBuf::from("assets/fonts/CutePixel.ttf")); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_font` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `then` [INFO] [stderr] --> src/area.rs:437:13 [INFO] [stderr] | [INFO] [stderr] 437 | let then = Instant::now(); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_then` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `textures` [INFO] [stderr] --> src/player.rs:207:28 [INFO] [stderr] | [INFO] [stderr] 207 | pub fn draw_hud(&self, textures: &TextureLoader) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_textures` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `distance_y` [INFO] [stderr] --> src/player.rs:294:13 [INFO] [stderr] | [INFO] [stderr] 294 | let distance_y = (our_player_pos.translation.y - average_enemy_pos.y).abs(); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance_y` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `minimum_camera_height` [INFO] [stderr] --> src/player.rs:288:99 [INFO] [stderr] | [INFO] [stderr] 288 | ...a_width: f32, minimum_camera_height: f32, space: &Space, average_enemy_pos: Vector2, max_camera_y: f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_minimum_camera_height` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `space` [INFO] [stderr] --> src/player.rs:361:44 [INFO] [stderr] | [INFO] [stderr] 361 | pub fn handle_bullet_impact(&mut self, space: &Space, bullet_impact: BulletImpactData) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bullet_impact` [INFO] [stderr] --> src/player.rs:361:59 [INFO] [stderr] | [INFO] [stderr] 361 | pub fn handle_bullet_impact(&mut self, space: &Space, bullet_impact: BulletImpactData) { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bullet_impact` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `body_handle` [INFO] [stderr] --> src/player.rs:399:13 [INFO] [stderr] | [INFO] [stderr] 399 | let body_handle = body.body_handle.clone(); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_body_handle` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `space` [INFO] [stderr] --> src/player.rs:466:98 [INFO] [stderr] | [INFO] [stderr] 466 | pub fn change_active_inventory_slot(&mut self, ctx: &mut ClientTickContext, area_id: AreaId, space: &mut Space) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `players` [INFO] [stderr] --> src/player.rs:524:9 [INFO] [stderr] | [INFO] [stderr] 524 | players: &mut Vec, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_players` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bullet_trails` [INFO] [stderr] --> src/player.rs:525:9 [INFO] [stderr] | [INFO] [stderr] 525 | bullet_trails: &mut Vec, [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bullet_trails` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `facing` [INFO] [stderr] --> src/player.rs:526:9 [INFO] [stderr] | [INFO] [stderr] 526 | facing: Facing, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dissolved_pixels` [INFO] [stderr] --> src/player.rs:528:9 [INFO] [stderr] | [INFO] [stderr] 528 | dissolved_pixels: &mut Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dissolved_pixels` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/player.rs:581:50 [INFO] [stderr] | [INFO] [stderr] 581 | pub fn control(&mut self, space: &mut Space, ctx: &mut ClientTickContext) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `camera_rect` [INFO] [stderr] --> src/player.rs:752:64 [INFO] [stderr] | [INFO] [stderr] 752 | pub fn angle_weapon_to_mouse(&mut self, space: &mut Space, camera_rect: &Rect) { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/prop.rs:50:50 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn despawn(&mut self, space: &mut Space, ctx: &mut ClientTickContext) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `mass` [INFO] [stderr] --> src/prop.rs:75:13 [INFO] [stderr] | [INFO] [stderr] 75 | let mass = match mass { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mass` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pos` [INFO] [stderr] --> src/prop.rs:203:27 [INFO] [stderr] | [INFO] [stderr] 203 | pub fn to_prop(&self, pos: Isometry2, prefabs: &Prefabs, space: &mut Space) -> Prop { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `space` [INFO] [stderr] --> src/prop.rs:306:35 [INFO] [stderr] | [INFO] [stderr] 306 | pub fn server_tick(&mut self, space: &mut Space, area_id: AreaId, server_io: &mut ServerIO) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `area_id` [INFO] [stderr] --> src/prop.rs:306:54 [INFO] [stderr] | [INFO] [stderr] 306 | pub fn server_tick(&mut self, space: &mut Space, area_id: AreaId, server_io: &mut ServerIO) { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_area_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `server_io` [INFO] [stderr] --> src/prop.rs:306:71 [INFO] [stderr] | [INFO] [stderr] 306 | pub fn server_tick(&mut self, space: &mut Space, area_id: AreaId, server_io: &mut ServerIO) { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_io` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dissolved_pixels` [INFO] [stderr] --> src/prop.rs:385:99 [INFO] [stderr] | [INFO] [stderr] 385 | ..., area_id: AreaId, dissolved_pixels: &mut Vec) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dissolved_pixels` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/body_part.rs:69:34 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn owner_tick(&mut self, ctx: &mut ClientTickContext, space: &mut Space) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `space` [INFO] [stderr] --> src/body_part.rs:69:63 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn owner_tick(&mut self, ctx: &mut ClientTickContext, space: &mut Space) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lmg` [INFO] [stderr] --> src/weapon.rs:138:33 [INFO] [stderr] | [INFO] [stderr] 138 | WeaponTypeItem::LMG(lmg) => "LMG".to_string() [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `space` [INFO] [stderr] --> src/weapon.rs:155:24 [INFO] [stderr] | [INFO] [stderr] 155 | pub fn save(&self, space: &Space) -> WeaponTypeItemSave { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lmg` [INFO] [stderr] --> src/weapon.rs:192:29 [INFO] [stderr] | [INFO] [stderr] 192 | WeaponType::LMG(lmg) => "LMG".to_string() [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lmg` [INFO] [stderr] --> src/weapon.rs:223:29 [INFO] [stderr] | [INFO] [stderr] 223 | WeaponType::LMG(lmg) => {} [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lmg` [INFO] [stderr] --> src/weapon.rs:230:29 [INFO] [stderr] | [INFO] [stderr] 230 | WeaponType::LMG(lmg) => Vec2::ZERO [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `facing` [INFO] [stderr] --> src/weapon.rs:585:9 [INFO] [stderr] | [INFO] [stderr] 585 | facing: Facing, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sound` [INFO] [stderr] --> src/weapon.rs:712:17 [INFO] [stderr] | [INFO] [stderr] 712 | let sound = ctx.sounds.get(PathBuf::from("assets\\sounds\\pistol_dry_fire.wav")); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sound` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `space` [INFO] [stderr] --> src/weapon.rs:866:51 [INFO] [stderr] | [INFO] [stderr] 866 | pub fn get_bullet_vector_macroquad(&mut self, space: &Space, facing: Facing, innacuracy_factor: f32) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `facing` [INFO] [stderr] --> src/weapon.rs:866:66 [INFO] [stderr] | [INFO] [stderr] 866 | pub fn get_bullet_vector_macroquad(&mut self, space: &Space, facing: Facing, innacuracy_factor: f32) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `innacuracy_factor` [INFO] [stderr] --> src/weapon.rs:866:82 [INFO] [stderr] | [INFO] [stderr] 866 | pub fn get_bullet_vector_macroquad(&mut self, space: &Space, facing: Facing, innacuracy_factor: f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_innacuracy_factor` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `distance` [INFO] [stderr] --> src/weapon.rs:926:21 [INFO] [stderr] | [INFO] [stderr] 926 | let distance = pos.vector - weapon_pos.translation.vector; [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `collider_pos` [INFO] [stderr] --> src/enemy.rs:142:21 [INFO] [stderr] | [INFO] [stderr] 142 | let collider_pos = space.collider_set.get(collider_handle).unwrap().position(); [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_collider_pos` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `weapon` [INFO] [stderr] --> src/enemy.rs:204:13 [INFO] [stderr] | [INFO] [stderr] 204 | let weapon = if let Some(weapon) = &mut self.weapon { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `enemy_id` [INFO] [stderr] --> src/enemy.rs:379:32 [INFO] [stderr] | [INFO] [stderr] 379 | WeaponOwner::Enemy(enemy_id) => return, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `player_id` [INFO] [stderr] --> src/enemy.rs:380:33 [INFO] [stderr] | [INFO] [stderr] 380 | WeaponOwner::Player(player_id) => {}, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `shotgun` [INFO] [stderr] --> src/enemy.rs:473:37 [INFO] [stderr] | [INFO] [stderr] 473 | WeaponType::Shotgun(shotgun) => if self.last_fired_weapon.elapsed().as_secs_f32() < 1. { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shotgun` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lmg` [INFO] [stderr] --> src/enemy.rs:476:33 [INFO] [stderr] | [INFO] [stderr] 476 | WeaponType::LMG(lmg) => if self.last_fired_weapon.elapsed().as_secs_f32() < 0.01 { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_lmg` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `lowest_distance` is never read [INFO] [stderr] --> src/enemy.rs:750:21 [INFO] [stderr] | [INFO] [stderr] 750 | lowest_distance = distance; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/enemy.rs:784:50 [INFO] [stderr] | [INFO] [stderr] 784 | pub fn upright(&mut self, space: &mut Space, ctx: &mut ClientTickContext) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `camera_rect` [INFO] [stderr] --> src/phone.rs:87:50 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn draw(&self, textures: &TextureLoader, camera_rect: &Rect) { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `space` [INFO] [stderr] --> src/computer.rs:39:43 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn from_save(item_save: ItemSave, space: &mut Space) -> Item { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hovered_button_color` [INFO] [stderr] --> src/computer.rs:201:13 [INFO] [stderr] | [INFO] [stderr] 201 | let hovered_button_color = Color::new(0.78, 0.78, 0.78, 0.5); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hovered_button_color` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `space` [INFO] [stderr] --> src/dropped_item.rs:20:34 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn owner_tick(&mut self, space: &mut Space) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `prefabs` [INFO] [stderr] --> src/dropped_item.rs:51:64 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn from_save(save: DroppedItemSave, space: &mut Space, prefabs: &Prefabs) -> Self { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefabs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pos` [INFO] [stderr] --> src/machine_gun.rs:124:35 [INFO] [stderr] | [INFO] [stderr] 124 | pub fn new(space: &mut Space, pos: Vector2, owner: ClientId, player_rigid_body_handle: Option, facing: Facing) ... [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `facing` [INFO] [stderr] --> src/machine_gun.rs:124:122 [INFO] [stderr] | [INFO] [stderr] 124 | ...le: Option, facing: Facing) -> Self { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `platform_pos` [INFO] [stderr] --> src/car.rs:156:13 [INFO] [stderr] | [INFO] [stderr] 156 | let platform_pos = space.rigid_body_set.get(self.platform_body).unwrap().position().translation.vector; [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_platform_pos` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `body_body_pos` [INFO] [stderr] --> src/lib.rs:62:9 [INFO] [stderr] | [INFO] [stderr] 62 | let body_body_pos = Vec2::new(body_body.translation().x, body_body.translation().y); [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_body_body_pos` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `error` [INFO] [stderr] --> src/lib.rs:362:50 [INFO] [stderr] | [INFO] [stderr] 362 | ewebsock::WsEvent::Error(error) => { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stderr] [INFO] [stderr] warning: fields `junk` and `last_changed_inventory_slot` are never read [INFO] [stderr] --> src/player.rs:74:5 [INFO] [stderr] | [INFO] [stderr] 59 | pub struct Player { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] ... [INFO] [stderr] 74 | junk: Vec, // you can hold unlimited junk [INFO] [stderr] | ^^^^ [INFO] [stderr] 75 | last_changed_inventory_slot: web_time::Instant, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `scale` is never read [INFO] [stderr] --> src/body_part.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct BodyPart { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 14 | scale: u16, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BodyPart` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `cost` is never read [INFO] [stderr] --> src/computer.rs:69:5 [INFO] [stderr] | [INFO] [stderr] 68 | pub struct StoreItem { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] 69 | cost: u32, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `previous_velocity` is never read [INFO] [stderr] --> src/dropped_item.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 26 | pub struct DroppedItem { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 32 | previous_velocity: RigidBodyVelocity, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DroppedItem` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `body_handle` and `collider_handle` are never read [INFO] [stderr] --> src/junk.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct Junk { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 4 | body_handle: RigidBodyHandle, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 5 | collider_handle: ColliderHandle, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/car.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct Car { [INFO] [stderr] | --- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 11 | left_wheel_body: RigidBodyHandle, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 12 | left_wheel_collider: ColliderHandle, [INFO] [stderr] 13 | left_wheel_revolute_joint: ImpulseJointHandle, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 14 | [INFO] [stderr] 15 | left_axle_body: RigidBodyHandle, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 16 | left_axle_collider: ColliderHandle, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 17 | left_axle_prismatic_joint: ImpulseJointHandle, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 20 | right_axle_body: RigidBodyHandle, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 21 | right_axle_collider: ColliderHandle, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 22 | right_axle_prismatic_joint: ImpulseJointHandle, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 25 | right_wheel_body: RigidBodyHandle, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 26 | right_wheel_collider: ColliderHandle, [INFO] [stderr] 27 | right_wheel_revolute_joint: ImpulseJointHandle, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `interceptors` (lib) generated 97 warnings (run `cargo fix --lib -p interceptors` to apply 37 suggestions) [INFO] [stderr] warning: `interceptors` (lib test) generated 97 warnings (97 duplicates) [INFO] [stderr] warning: unused import: `time::Instant` [INFO] [stderr] --> src/editor/editor.rs:1:84 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{collections::HashMap, fs::{self, read_to_string}, path::{Path, PathBuf}, time::Instant}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Font` [INFO] [stderr] --> src/editor/editor.rs:4:327 [INFO] [stderr] | [INFO] [stderr] 4 | ...hapes::{draw_rectangle, draw_rectangle_lines}, text::{draw_text, Font}, window::{next_frame, screen_height, screen_width}}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `de` [INFO] [stderr] --> src/editor/editor.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | use serde::{de, Deserialize, Serialize}; [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `camera_rect` [INFO] [stderr] --> src/editor/editor.rs:263:35 [INFO] [stderr] | [INFO] [stderr] 263 | pub async fn draw_menu(&self, camera_rect: &Rect, textures: &mut TextureLoader, cursor: Vec2) { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `textures` [INFO] [stderr] --> src/editor/editor.rs:263:55 [INFO] [stderr] | [INFO] [stderr] 263 | pub async fn draw_menu(&self, camera_rect: &Rect, textures: &mut TextureLoader, cursor: Vec2) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_textures` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `camera_rect` [INFO] [stderr] --> src/editor/editor.rs:222:46 [INFO] [stderr] | [INFO] [stderr] 222 | pub fn spawn(&mut self, area: &mut Area, camera_rect: &Rect, cursor: Vec2, rapier_cursor: Vec2) { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera_rect` [INFO] [stderr] [INFO] [stderr] warning: function `round_to_nearest_50` is never used [INFO] [stderr] --> src/editor/editor.rs:303:4 [INFO] [stderr] | [INFO] [stderr] 303 | fn round_to_nearest_50(n: f32) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `client_id` [INFO] [stderr] --> src/server/server.rs:82:50 [INFO] [stderr] | [INFO] [stderr] 82 | pub fn handle_disconnected_client(&mut self, client_id: ClientId) { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `update` [INFO] [stderr] --> src/server/server.rs:132:45 [INFO] [stderr] | [INFO] [stderr] 132 | NetworkPacket::MasterUpdate(update) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_update` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ping` [INFO] [stderr] --> src/server/server.rs:135:37 [INFO] [stderr] | [INFO] [stderr] 135 | NetworkPacket::Ping(ping) => { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ping` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `client` [INFO] [stderr] --> src/server/server.rs:137:25 [INFO] [stderr] | [INFO] [stderr] 137 | let client = self.network_io.clients.get_mut(&client_id).unwrap(); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `current_pos` [INFO] [stderr] --> src/server/server.rs:303:25 [INFO] [stderr] | [INFO] [stderr] 303 | let current_pos = area.space.rigid_body_set.get(player.body.body_handle).unwrap().position(); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_pos` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `megabits` [INFO] [stderr] --> src/server/server.rs:611:13 [INFO] [stderr] | [INFO] [stderr] 611 | let megabits = self.total_bits_sent as f32 / 1000000 as f32; [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_megabits` [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Path` and `time::Instant` [INFO] [stderr] --> src/client/client.rs:1:40 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{collections::HashMap, path::{Path, PathBuf}, time::Instant}; [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `phone::Phone` and `self` [INFO] [stderr] --> src/client/client.rs:3:145 [INFO] [stderr] | [INFO] [stderr] 3 | ...r, phone::Phone, player::{ItemSlot, Player}, prop::Prop, screen_shake::ScreenShakeParameters, sound_loader::SoundLoader, texture_loader::TextureLoader, updates::{NetworkPacket, Ping}, weapon::{self, W... [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `camera::mouse::Camera`, `pop_camera_state`, `push_camera_state`, `request_new_screen_size`, and `text::Font` [INFO] [stderr] --> src/client/client.rs:4:26 [INFO] [stderr] | [INFO] [stderr] 4 | ...::{pop_camera_state, push_camera_state, set_camera, set_default_camera, Camera2D}, color::{BLACK, WHITE}, input::{is_key_released, KeyCode}, math::{vec2, Rect}, prelude::{camera::mouse::Camera, gl_use_default_material, gl_use_material, load_material, Material, ShaderSource}, text::Font, texture::{draw_texture_ex, render_target, DrawTextureParams, RenderTarget}, window::{clear_background, next_frame, request_new_screen_size, s... [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `dhat-heap` [INFO] [stderr] --> src/client/main.rs:25:11 [INFO] [stderr] | [INFO] [stderr] 25 | #[cfg(feature = "dhat-heap")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `dhat-heap` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `player_pos` [INFO] [stderr] --> src/client/client.rs:332:25 [INFO] [stderr] | [INFO] [stderr] 332 | let player_pos = player_body.position(); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_pos` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `spawned` and `test_button` are never read [INFO] [stderr] --> src/client/client.rs:95:5 [INFO] [stderr] | [INFO] [stderr] 77 | pub struct Client { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] ... [INFO] [stderr] 95 | spawned: bool, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 96 | fonts: FontLoader, [INFO] [stderr] 97 | test_button: Button [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `update_camera_to_match_screen_size` is never used [INFO] [stderr] --> src/client/client.rs:619:12 [INFO] [stderr] | [INFO] [stderr] 248 | impl Client { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 619 | pub fn update_camera_to_match_screen_size(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `interceptors` (bin "editor" test) generated 7 warnings (run `cargo fix --bin "editor" --tests` to apply 3 suggestions) [INFO] [stderr] warning: `interceptors` (bin "server" test) generated 6 warnings [INFO] [stderr] warning: `interceptors` (bin "client" test) generated 7 warnings (run `cargo fix --bin "client" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/interceptors_lib-bb5d9a088e8fa51d) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/client/main.rs (/opt/rustwide/target/debug/deps/client-159391dec1cc5dd2) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/editor/main.rs (/opt/rustwide/target/debug/deps/editor-95a14fa292b2ac15) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests src/server/main.rs (/opt/rustwide/target/debug/deps/server-b033acc0b90a105d) [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Doc-tests interceptors_lib [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6ad7523573ad013a74d22b1ed7351fa68c0d977a89ea1c21e36a3a6fc79e54cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ad7523573ad013a74d22b1ed7351fa68c0d977a89ea1c21e36a3a6fc79e54cb", kill_on_drop: false }` [INFO] [stdout] 6ad7523573ad013a74d22b1ed7351fa68c0d977a89ea1c21e36a3a6fc79e54cb