[INFO] cloning repository https://github.com/LunaLeTuna/Kitsune-Engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LunaLeTuna/Kitsune-Engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLunaLeTuna%2FKitsune-Engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLunaLeTuna%2FKitsune-Engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6c3da7a53f4241eb70d7a7b6f40cdc13f4bcd1b2 [INFO] linting LunaLeTuna/Kitsune-Engine against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLunaLeTuna%2FKitsune-Engine" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/LunaLeTuna/Kitsune-Engine [INFO] finished tweaking git repo https://github.com/LunaLeTuna/Kitsune-Engine [INFO] tweaked toml for git repo https://github.com/LunaLeTuna/Kitsune-Engine written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LunaLeTuna/Kitsune-Engine on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LunaLeTuna/Kitsune-Engine already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cmake v0.1.51 [INFO] [stderr] Downloaded dwrote v0.11.1 [INFO] [stderr] Downloaded xml-rs v0.8.21 [INFO] [stderr] Downloaded serde_derive v1.0.209 [INFO] [stderr] Downloaded icu_provider_macros v1.2.0 [INFO] [stderr] Downloaded cc v1.1.15 [INFO] [stderr] Downloaded boa_interner v0.17.3 [INFO] [stderr] Downloaded boa_gc v0.17.3 [INFO] [stderr] Downloaded tinystr v0.7.2 [INFO] [stderr] Downloaded icu_provider_blob v1.2.0 [INFO] [stderr] Downloaded icu_provider_adapters v1.2.0 [INFO] [stderr] Downloaded fast-float v0.2.0 [INFO] [stderr] Downloaded boa_ast v0.17.3 [INFO] [stderr] Downloaded icu_collections v1.2.0 [INFO] [stderr] Downloaded portable-atomic v1.7.0 [INFO] [stderr] Downloaded boa_parser v0.17.3 [INFO] [stderr] Downloaded zerovec v0.9.7 [INFO] [stderr] Downloaded serde_json v1.0.127 [INFO] [stderr] Downloaded wide v0.7.28 [INFO] [stderr] Downloaded xcb v1.4.0 [INFO] [stderr] Downloaded rapier3d v0.17.2 [INFO] [stderr] Downloaded icu_locid v1.2.0 [INFO] [stderr] Downloaded parry3d v0.13.8 [INFO] [stderr] Downloaded regress v0.6.0 [INFO] [stderr] Downloaded openssl v0.10.66 [INFO] [stderr] Downloaded ufbx v0.6.2 [INFO] [stderr] Downloaded nalgebra v0.32.6 [INFO] [stderr] Downloaded rustix v0.38.35 [INFO] [stderr] Downloaded xkbcommon v0.5.1 [INFO] [stderr] Downloaded rust_socketio v0.4.4 [INFO] [stderr] Downloaded spade v2.12.0 [INFO] [stderr] Downloaded async-io v2.3.4 [INFO] [stderr] Downloaded steamworks v0.11.0 [INFO] [stderr] Downloaded icu_properties v1.2.0 [INFO] [stderr] Downloaded ryu-js v0.2.2 [INFO] [stderr] Downloaded boa_engine v0.17.3 [INFO] [stderr] Downloaded thin-vec v0.2.13 [INFO] [stderr] Downloaded glutin v0.30.10 [INFO] [stderr] Downloaded simba v0.8.1 [INFO] [stderr] Downloaded smol v1.3.0 [INFO] [stderr] Downloaded socketioxide v0.6.0 [INFO] [stderr] Downloaded postcard v1.0.10 [INFO] [stderr] Downloaded wayland-sys v0.30.1 [INFO] [stderr] Downloaded async-net v1.8.0 [INFO] [stderr] Downloaded base64id v0.3.1 [INFO] [stderr] Downloaded serde v1.0.209 [INFO] [stderr] Downloaded icu_provider v1.2.0 [INFO] [stderr] Downloaded icu_normalizer v1.2.0 [INFO] [stderr] Downloaded glutin_egl_sys v0.5.1 [INFO] [stderr] Downloaded glium v0.32.1 [INFO] [stderr] Downloaded sptr v0.3.2 [INFO] [stderr] Downloaded boa_macros v0.17.3 [INFO] [stderr] Downloaded boa_runtime v0.17.3 [INFO] [stderr] Downloaded async-executor v1.13.0 [INFO] [stderr] Downloaded critical-section v1.1.3 [INFO] [stderr] Downloaded zerovec-derive v0.9.7 [INFO] [stderr] Downloaded boa_profiler v0.17.3 [INFO] [stderr] Downloaded glutin_glx_sys v0.4.0 [INFO] [stderr] Downloaded glutin_wgl_sys v0.4.0 [INFO] [stderr] Downloaded keyboard-keynames v0.2.0 [INFO] [stderr] Downloaded rust_engineio v0.4.4 [INFO] [stderr] Downloaded boa_icu_provider v0.17.3 [INFO] [stderr] Downloaded engineioxide v0.6.0 [INFO] [stderr] Downloaded steamworks-sys v0.11.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b06246ea0c7f55938fa2451e50092f67e624ff7fc70d94d1d37107ce319274fe [INFO] running `Command { std: "docker" "start" "-a" "b06246ea0c7f55938fa2451e50092f67e624ff7fc70d94d1d37107ce319274fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b06246ea0c7f55938fa2451e50092f67e624ff7fc70d94d1d37107ce319274fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b06246ea0c7f55938fa2451e50092f67e624ff7fc70d94d1d37107ce319274fe", kill_on_drop: false }` [INFO] [stdout] b06246ea0c7f55938fa2451e50092f67e624ff7fc70d94d1d37107ce319274fe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a7d3d99fa042d3589da7ab1980a83e52010757baa042b315892f41ab6095bc2 [INFO] running `Command { std: "docker" "start" "-a" "4a7d3d99fa042d3589da7ab1980a83e52010757baa042b315892f41ab6095bc2", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling portable-atomic v1.7.0 [INFO] [stderr] Checking critical-section v1.1.3 [INFO] [stderr] Compiling xml-rs v0.8.21 [INFO] [stderr] Compiling cc v1.1.15 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking bytemuck v1.17.1 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking libloading v0.8.5 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking parking v2.2.0 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Checking event-listener v5.3.1 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling cmake v0.1.51 [INFO] [stderr] Checking flate2 v1.0.33 [INFO] [stderr] Checking cobs v0.2.3 [INFO] [stderr] Checking litemap v0.7.3 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking event-listener-strategy v0.5.2 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Checking nix v0.25.1 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Checking xcursor v0.3.8 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling servo-fontconfig-sys v5.1.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Checking futures-lite v2.3.0 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling rustix v0.38.35 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling crossfont v0.5.2 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Checking waker-fn v1.2.0 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking thin-vec v0.2.13 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking raw-window-handle v0.5.2 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling rustix v0.37.27 [INFO] [stderr] Checking fastrand v2.1.1 [INFO] [stderr] Checking boa_profiler v0.17.3 [INFO] [stderr] Checking foreign-types-shared v0.3.1 [INFO] [stderr] Checking servo-fontconfig v0.5.1 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Checking freetype-rs v0.26.0 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking async-lock v2.8.0 [INFO] [stderr] Checking tiny-skia-path v0.7.0 [INFO] [stderr] Checking safe_arch v0.7.2 [INFO] [stderr] Checking safe_arch v0.5.2 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Checking strict-num v0.1.1 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking ttf-parser v0.24.1 [INFO] [stderr] Checking tiny-skia-path v0.8.4 [INFO] [stderr] Checking wide v0.7.28 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling quick-xml v0.30.0 [INFO] [stderr] Checking piper v0.2.4 [INFO] [stderr] Checking tiny-skia v0.7.0 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking async-channel v2.3.1 [INFO] [stderr] Checking async-lock v3.4.0 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking raw-window-handle v0.4.3 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling xcb v1.4.0 [INFO] [stderr] Checking blocking v1.6.1 [INFO] [stderr] Checking tiny-skia v0.8.4 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling glutin_glx_sys v0.4.0 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Compiling glutin_egl_sys v0.5.1 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Compiling wayland-sys v0.30.1 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Checking owned_ttf_parser v0.24.0 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Compiling async-fs v1.6.0 [INFO] [stderr] Checking ab_glyph v0.2.28 [INFO] [stderr] Checking gimli v0.29.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Checking robust v1.1.0 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking fast-float v0.2.0 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Compiling steamworks-sys v0.11.0 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking zune-jpeg v0.4.13 [INFO] [stderr] Compiling icu_provider_macros v1.2.0 [INFO] [stderr] Checking flume v0.11.0 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking wayland-egl v0.29.5 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling glutin v0.30.10 [INFO] [stderr] Compiling glium v0.32.1 [INFO] [stderr] Compiling ufbx v0.6.2 [INFO] [stderr] Checking event-listener v3.1.0 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking memmap2 v0.7.1 [INFO] [stderr] Checking object v0.36.4 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking pollster v0.3.0 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking ryu-js v0.2.2 [INFO] [stderr] Checking http-range-header v0.3.1 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking sptr v0.3.2 [INFO] [stderr] Checking image v0.25.2 [INFO] [stderr] Checking gif v0.13.1 [INFO] [stderr] Checking xkbcommon v0.5.1 [INFO] [stderr] Checking exr v1.72.0 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking async-net v1.8.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking async-executor v1.13.0 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking takeable-option v0.5.0 [INFO] [stderr] Compiling kitsune-engine v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking addr2line v0.22.0 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling zerofrom-derive v0.1.4 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling yoke-derive v0.7.4 [INFO] [stderr] Compiling zerovec-derive v0.9.7 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking thiserror v1.0.63 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking calloop v0.10.6 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Checking zerofrom v0.1.4 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling boa_macros v0.17.3 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling foreign-types-macros v0.2.3 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking polling v3.7.3 [INFO] [stderr] Checking boa_gc v0.17.3 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking foreign-types v0.5.0 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking async-io v2.3.4 [INFO] [stderr] Compiling num_enum_derive v0.6.1 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Checking spade v2.12.0 [INFO] [stderr] Checking regress v0.6.0 [INFO] [stderr] Checking boa_interner v0.17.3 [INFO] [stderr] Compiling gltf-derive v1.4.1 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Checking nalgebra v0.32.6 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking backoff v0.4.0 [INFO] [stderr] Checking tiff v0.9.1 [INFO] [stderr] Checking steamworks v0.11.0 [INFO] [stderr] Checking async-signal v0.2.10 [INFO] [stderr] Checking async-process v1.8.1 [INFO] [stderr] Checking smol v1.3.0 [INFO] [stderr] Checking num_enum v0.6.1 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking tower-http v0.4.4 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Checking tokio-tungstenite v0.20.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking yoke v0.7.4 [INFO] [stderr] Checking postcard v1.0.10 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking base64id v0.3.1 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking zerovec v0.9.7 [INFO] [stderr] Checking tinystr v0.7.2 [INFO] [stderr] Checking icu_collections v1.2.0 [INFO] [stderr] Checking boa_ast v0.17.3 [INFO] [stderr] Checking icu_locid v1.2.0 [INFO] [stderr] Checking gltf-json v1.4.1 [INFO] [stderr] Checking icu_provider v1.2.0 [INFO] [stderr] Checking icu_properties v1.2.0 [INFO] [stderr] Checking icu_provider_adapters v1.2.0 [INFO] [stderr] Checking icu_provider_blob v1.2.0 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Checking gltf v1.4.1 [INFO] [stderr] Checking icu_normalizer v1.2.0 [INFO] [stderr] Checking parry3d v0.13.8 [INFO] [stderr] Checking boa_icu_provider v0.17.3 [INFO] [stderr] Checking boa_parser v0.17.3 [INFO] [stderr] Checking boa_engine v0.17.3 [INFO] [stderr] Checking sctk-adwaita v0.4.3 [INFO] [stderr] Checking sctk-adwaita v0.5.4 [INFO] [stderr] Checking winit v0.27.5 [INFO] [stderr] Checking rapier3d v0.17.2 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking engineioxide v0.6.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking glutin v0.29.1 [INFO] [stderr] Checking keyboard-keynames v0.2.0 [INFO] [stderr] Checking rust_engineio v0.4.4 [INFO] [stderr] Checking socketioxide v0.6.0 [INFO] [stderr] Checking rust_socketio v0.4.4 [INFO] [stderr] Checking boa_runtime v0.17.3 [INFO] [stdout] warning: unused imports: `json`, `string`, and `value` [INFO] [stdout] --> src/main.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use boa_engine::{builtins::{json, string}, value}; [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: `buffer::Buffer` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use buffer::Buffer; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `character_type` [INFO] [stdout] --> src/main.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use char_control::{Character, character_type}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KEchar`, `menuimage`, and `menutext` [INFO] [stdout] --> src/main.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use menu_system::{menuimage, menutext, KEchar, KEfont, KEmenuTypes}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DepthStencilTexture2d` and `implement_vertex` [INFO] [stdout] --> src/main.rs:9:127 [INFO] [stdout] | [INFO] [stdout] 9 | ...buffer::SimpleFrameBuffer, texture::{DepthStencilTexture2d, DepthTexture2d}, implement_vertex}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `radians` [INFO] [stdout] --> src/main.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | use ke_units::{Vec2, radians}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Matrix3`, `Matrix4`, and `Rotation` [INFO] [stdout] --> src/main.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | use nalgebra::{Matrix3, Matrix4, Rotation, Rotation3, Unit, Vector2, Vector3, Vector4}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `physhape` [INFO] [stdout] --> src/main.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | use props::{Prop, phytype, physhape, proptype}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver` and `Sender` [INFO] [stdout] --> src/main.rs:18:36 [INFO] [stdout] | [INFO] [stdout] 18 | use rapier3d::crossbeam::channel::{Receiver, Sender}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RwLockReadGuard`, `future::FutureExt`, and `futures` [INFO] [stdout] --> src/main.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | use smol::{lock::{RwLockReadGuard, futures}, future::FutureExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Fullscreen` [INFO] [stdout] --> src/main.rs:26:152 [INFO] [stdout] | [INFO] [stdout] 26 | ...t_loop::{ControlFlow, EventLoop}, window::{CursorGrabMode, Fullscreen, WindowBuilder}}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::Request` [INFO] [stdout] --> src/main.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 29 | use axum::{routing::get, http::Request}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `steamworks::FriendFlags` [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use steamworks::FriendFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mul`, `borrow::BorrowMut`, `collections::VecDeque`, `f32::consts::PI`, `fmt::Debug`, `hash::Hash`, and `path` [INFO] [stdout] --> src/main.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | use std::{borrow::BorrowMut, collections::VecDeque, f32::consts::PI, fmt::Debug, fs, hash::Hash, ops::{Mul}, path, sync::{mpsc::chan... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow`, `collections::HashMap`, and `os::raw` [INFO] [stdout] --> src/config.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, collections::HashMap, os::raw}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `keconfig` should have an upper camel case name [INFO] [stdout] --> src/config.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct keconfig { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Keconfig` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `kect` should have an upper camel case name [INFO] [stdout] --> src/config.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum kect { //keconftypes [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Kect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `bool` should have an upper camel case name [INFO] [stdout] --> src/config.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | bool(bool), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `float` should have an upper camel case name [INFO] [stdout] --> src/config.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | float(f32), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `int` should have an upper camel case name [INFO] [stdout] --> src/config.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | int(i32), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Int` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `u8` should have an upper camel case name [INFO] [stdout] --> src/config.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | u8(u8), [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `U8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `string` should have an upper camel case name [INFO] [stdout] --> src/config.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | string(String), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `vecstring` should have an upper camel case name [INFO] [stdout] --> src/config.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | vecstring(Vec), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vecstring` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `chartype` should have an upper camel case name [INFO] [stdout] --> src/config.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | chartype(character_type), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Chartype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `null` should have an upper camel case name [INFO] [stdout] --> src/config.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | null, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Null` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/dynamic_uniform.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{collections::HashMap, string}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ke_units.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | x: x, [INFO] [stdout] | ^^^^ help: replace it with: `x` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ke_units.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | y: y, [INFO] [stdout] | ^^^^ help: replace it with: `y` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ke_units.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | x: x, [INFO] [stdout] | ^^^^ help: replace it with: `x` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ke_units.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | y: y, [INFO] [stdout] | ^^^^ help: replace it with: `y` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ke_units.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | z: z, [INFO] [stdout] | ^^^^ help: replace it with: `z` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rotation3` [INFO] [stdout] --> src/lights.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use nalgebra::{Rotation3, Vector3}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gltf::Gltf` [INFO] [stdout] --> src/models.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use gltf::Gltf; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Mul` [INFO] [stdout] --> src/props.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, ops::Mul}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Matrix4`, `Rotation3`, and `Unit` [INFO] [stdout] --> src/props.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{Rotation3, Vector3, Unit, Matrix4}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `phytype` should have an upper camel case name [INFO] [stdout] --> src/props.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum phytype { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Phytype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `physhape` should have an upper camel case name [INFO] [stdout] --> src/props.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum physhape { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Physhape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `proptype` should have an upper camel case name [INFO] [stdout] --> src/props.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum proptype { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Proptype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Legacy_Brick` should have an upper camel case name [INFO] [stdout] --> src/props.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | Legacy_Brick, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LegacyBrick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Model_static` should have an upper camel case name [INFO] [stdout] --> src/props.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | Model_static, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ModelStatic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glutin::api::egl::display` [INFO] [stdout] --> src/menu_system.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use glutin::api::egl::display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> src/menu_system.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `image` should have an upper camel case name [INFO] [stdout] --> src/menu_system.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | image(menuimage), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `text` should have an upper camel case name [INFO] [stdout] --> src/menu_system.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | text(menutext) [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `menuimage` should have an upper camel case name [INFO] [stdout] --> src/menu_system.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct menuimage { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `Menuimage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `menutext` should have an upper camel case name [INFO] [stdout] --> src/menu_system.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct menutext { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Menutext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TEXTURE_COUNT` [INFO] [stdout] --> src/textures.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{STRINGSLOADED, TEXTURE_COUNT}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Color_Buffer` should have an upper camel case name [INFO] [stdout] --> src/buffer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | Color_Buffer(String), [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ColorBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::format` and `string` [INFO] [stdout] --> src/kbf.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{collections::HashMap, fmt::format, string}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rotation3` [INFO] [stdout] --> src/kbf.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | use nalgebra::{Vector3, Rotation3}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vec3` and `textures::Texture` [INFO] [stdout] --> src/kbf.rs:9:85 [INFO] [stdout] | [INFO] [stdout] 9 | ...grab, ke_units::{Vec3, parsef, radians, parse, parsei}, shaders::ShadvType, lights::PointLight, textures::Texture}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::format` and `string` [INFO] [stdout] --> src/vmf.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{collections::HashMap, fmt::format, string}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rotation3` [INFO] [stdout] --> src/vmf.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | use nalgebra::{Vector3, Rotation3}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vec3` and `textures::Texture` [INFO] [stdout] --> src/vmf.rs:9:85 [INFO] [stdout] | [INFO] [stdout] 9 | ...grab, ke_units::{Vec3, parsef, radians, parse, parsei}, shaders::ShadvType, lights::PointLight, textures::Texture}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Const` and `OPoint` [INFO] [stdout] --> src/physic_props.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{Const, OPoint, Point3, Rotation3, Unit, Vector2, Vector3}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ke_units::Vec3` [INFO] [stdout] --> src/physic_props.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{props::{Prop, phytype}, ke_units::Vec3, models::Model}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/physic_props.rs:256:11 [INFO] [stdout] | [INFO] [stdout] 256 | if(prop.phys_type == phytype::DynamicCollider){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 256 - if(prop.phys_type == phytype::DynamicCollider){ [INFO] [stdout] 256 + if prop.phys_type == phytype::DynamicCollider { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/physic_props.rs:279:11 [INFO] [stdout] | [INFO] [stdout] 279 | if(prop.phys_type == phytype::DynamicCollider){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 279 - if(prop.phys_type == phytype::DynamicCollider){ [INFO] [stdout] 279 + if prop.phys_type == phytype::DynamicCollider { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Depth`, `DrawParameters`, `Program`, `Surface`, and `VertexBuffer` [INFO] [stdout] --> src/char_control.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use glium::{Depth, Display, DrawParameters, Program, Surface, VertexBuffer}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `VirtualKeyCode` and `dpi::Position` [INFO] [stdout] --> src/char_control.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use winit::{event::{VirtualKeyCode, KeyboardInput}, dpi::Position}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PW` and `main` [INFO] [stdout] --> src/char_control.rs:6:57 [INFO] [stdout] | [INFO] [stdout] 6 | ...:{radians, Vec2}, main, models::Model, physic_props::{CopyWhat, PhysWorld}, props::{physhape, phytype, Prop}, PW}; [INFO] [stdout] | ^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `character_type` should have an upper camel case name [INFO] [stdout] --> src/char_control.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum character_type { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CharacterType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RwLock`, `borrow::BorrowMut`, and `collections::HashMap` [INFO] [stdout] --> src/script.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{time::{Instant, Duration}, collections::HashMap, borrow::BorrowMut, sync::{RwLock, mpsc::Sender}, future::Future}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `JsString`, `PropertyKey`, `error`, `function`, `json`, and `string` [INFO] [stdout] --> src/script.rs:3:84 [INFO] [stdout] | [INFO] [stdout] 3 | ...ribute, PropertyKey}, NativeFunction, value::TryFromJs, JsNativeError, builtins::{function, string, error, json}, JsString}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^ ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientBuilder`, `Payload`, `RawClient`, and `client::Client` [INFO] [stdout] --> src/script.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use rust_socketio::{ClientBuilder, Payload, RawClient, client::Client}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `smol::future::FutureExt` [INFO] [stdout] --> src/script.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use smol::future::FutureExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/script.rs:476:11 [INFO] [stdout] | [INFO] [stdout] 476 | if(prop.name == propname){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 476 - if(prop.name == propname){ [INFO] [stdout] 476 + if prop.name == propname { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/script.rs:694:11 [INFO] [stdout] | [INFO] [stdout] 694 | if(prop.name == propname){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 694 - if(prop.name == propname){ [INFO] [stdout] 694 + if prop.name == propname { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `garbtypes` should have an upper camel case name [INFO] [stdout] --> src/garbage_collector.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum garbtypes { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `Garbtypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `script` should have an upper camel case name [INFO] [stdout] --> src/garbage_collector.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | script, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Script` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `texture` should have an upper camel case name [INFO] [stdout] --> src/garbage_collector.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | texture, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `model` should have an upper camel case name [INFO] [stdout] --> src/garbage_collector.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | model, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `shader` should have an upper camel case name [INFO] [stdout] --> src/garbage_collector.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | shader, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Shader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/garbage_collector.rs:12:61 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn rummage_props(propz: &mut HashMap) -> Vec<(Vec)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - pub fn rummage_props(propz: &mut HashMap) -> Vec<(Vec)> { [INFO] [stdout] 12 + pub fn rummage_props(propz: &mut HashMap) -> Vec > { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/garbage_collector.rs:31:103 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn rummage_menues(menuz: &mut HashMap, fontz: &mut HashMap) -> Vec<(Vec)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - pub fn rummage_menues(menuz: &mut HashMap, fontz: &mut HashMap) -> Vec<(Vec)> { [INFO] [stdout] 31 + pub fn rummage_menues(menuz: &mut HashMap, fontz: &mut HashMap) -> Vec > { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Create_Shader` should have an upper camel case name [INFO] [stdout] --> src/main.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | Create_Shader(i32, String), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateShader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Create_Model` should have an upper camel case name [INFO] [stdout] --> src/main.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | Create_Model(i32, String), [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateModel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Create_Model_From_Magic` should have an upper camel case name [INFO] [stdout] --> src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | Create_Model_From_Magic(i32,Vec), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateModelFromMagic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Create_Texture` should have an upper camel case name [INFO] [stdout] --> src/main.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | Create_Texture(i32, String, u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateTexture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Pin_Texture_Buffer` should have an upper camel case name [INFO] [stdout] --> src/main.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | Pin_Texture_Buffer(i32,i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PinTextureBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Delete_Prop` should have an upper camel case name [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | Delete_Prop(i32), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `DeleteProp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Create_Buffer` should have an upper camel case name [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | Create_Buffer(String), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Create_Camera` should have an upper camel case name [INFO] [stdout] --> src/main.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | Create_Camera(String), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateCamera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Pin_Buffer_Camera` should have an upper camel case name [INFO] [stdout] --> src/main.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | Pin_Buffer_Camera(i32,i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PinBufferCamera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Phys_Prop_Push` should have an upper camel case name [INFO] [stdout] --> src/main.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | Phys_Prop_Push(i32,Vector3), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PhysPropPush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Phys_Prop_Push_SideOnly` should have an upper camel case name [INFO] [stdout] --> src/main.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | Phys_Prop_Push_SideOnly(i32,Vector2), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PhysPropPushSideOnly` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `load_map` should have an upper camel case name [INFO] [stdout] --> src/main.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | load_map(String, u32), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `LoadMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `js_push` should have an upper camel case name [INFO] [stdout] --> src/main.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | js_push(String, String), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `JsPush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `copy_prop_phys_pose` should have an upper camel case name [INFO] [stdout] --> src/main.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | copy_prop_phys_pose(i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CopyPropPhysPose` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `window_cursor_lock` should have an upper camel case name [INFO] [stdout] --> src/main.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | window_cursor_lock(bool), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `WindowCursorLock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `garbage_collect` should have an upper camel case name [INFO] [stdout] --> src/main.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | garbage_collect(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GarbageCollect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `world_move_prop` should have an upper camel case name [INFO] [stdout] --> src/main.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | world_move_prop(i32,u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `WorldMoveProp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `json`, `string`, and `value` [INFO] [stdout] --> src/main.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use boa_engine::{builtins::{json, string}, value}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `move_char` should have an upper camel case name [INFO] [stdout] --> src/main.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | move_char(u32), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `MoveChar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `buffer::Buffer` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use buffer::Buffer; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `exit` should have an upper camel case name [INFO] [stdout] --> src/main.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | exit, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Exit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `character_type` [INFO] [stdout] --> src/main.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use char_control::{Character, character_type}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KEchar`, `menuimage`, and `menutext` [INFO] [stdout] --> src/main.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use menu_system::{menuimage, menutext, KEchar, KEfont, KEmenuTypes}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DepthStencilTexture2d` and `implement_vertex` [INFO] [stdout] --> src/main.rs:9:127 [INFO] [stdout] | [INFO] [stdout] 9 | ...buffer::SimpleFrameBuffer, texture::{DepthStencilTexture2d, DepthTexture2d}, implement_vertex}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `radians` [INFO] [stdout] --> src/main.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | use ke_units::{Vec2, radians}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Matrix3`, `Matrix4`, and `Rotation` [INFO] [stdout] --> src/main.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | use nalgebra::{Matrix3, Matrix4, Rotation, Rotation3, Unit, Vector2, Vector3, Vector4}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `physhape` [INFO] [stdout] --> src/main.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | use props::{Prop, phytype, physhape, proptype}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver` and `Sender` [INFO] [stdout] --> src/main.rs:18:36 [INFO] [stdout] | [INFO] [stdout] 18 | use rapier3d::crossbeam::channel::{Receiver, Sender}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RwLockReadGuard`, `future::FutureExt`, and `futures` [INFO] [stdout] --> src/main.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | use smol::{lock::{RwLockReadGuard, futures}, future::FutureExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Fullscreen` [INFO] [stdout] --> src/main.rs:26:152 [INFO] [stdout] | [INFO] [stdout] 26 | ...t_loop::{ControlFlow, EventLoop}, window::{CursorGrabMode, Fullscreen, WindowBuilder}}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::Request` [INFO] [stdout] --> src/main.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 29 | use axum::{routing::get, http::Request}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `steamworks::FriendFlags` [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use steamworks::FriendFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mul`, `borrow::BorrowMut`, `collections::VecDeque`, `f32::consts::PI`, `fmt::Debug`, `hash::Hash`, and `path` [INFO] [stdout] --> src/main.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | use std::{borrow::BorrowMut, collections::VecDeque, f32::consts::PI, fmt::Debug, fs, hash::Hash, ops::{Mul}, path, sync::{mpsc::chan... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow`, `collections::HashMap`, and `os::raw` [INFO] [stdout] --> src/config.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, collections::HashMap, os::raw}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `keconfig` should have an upper camel case name [INFO] [stdout] --> src/config.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct keconfig { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Keconfig` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `kect` should have an upper camel case name [INFO] [stdout] --> src/config.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum kect { //keconftypes [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Kect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `bool` should have an upper camel case name [INFO] [stdout] --> src/config.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | bool(bool), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `float` should have an upper camel case name [INFO] [stdout] --> src/config.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | float(f32), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `int` should have an upper camel case name [INFO] [stdout] --> src/config.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | int(i32), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Int` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `u8` should have an upper camel case name [INFO] [stdout] --> src/config.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | u8(u8), [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `U8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `string` should have an upper camel case name [INFO] [stdout] --> src/config.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | string(String), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `vecstring` should have an upper camel case name [INFO] [stdout] --> src/config.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | vecstring(Vec), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vecstring` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `chartype` should have an upper camel case name [INFO] [stdout] --> src/config.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | chartype(character_type), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Chartype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `null` should have an upper camel case name [INFO] [stdout] --> src/config.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | null, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Null` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:375:6 [INFO] [stdout] | [INFO] [stdout] 375 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/dynamic_uniform.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{collections::HashMap, string}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:116:7 [INFO] [stdout] | [INFO] [stdout] 116 | if(keconf.steam_id != -1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - if(keconf.steam_id != -1){ [INFO] [stdout] 116 + if keconf.steam_id != -1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:162:7 [INFO] [stdout] | [INFO] [stdout] 162 | if(!keconf.headless){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 162 - if(!keconf.headless){ [INFO] [stdout] 162 + if !keconf.headless { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:313:11 [INFO] [stdout] | [INFO] [stdout] 313 | if(md.1.ends_with(".obj")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 313 - if(md.1.ends_with(".obj")){ [INFO] [stdout] 313 + if md.1.ends_with(".obj") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ke_units.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | x: x, [INFO] [stdout] | ^^^^ help: replace it with: `x` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ke_units.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | y: y, [INFO] [stdout] | ^^^^ help: replace it with: `y` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:315:17 [INFO] [stdout] | [INFO] [stdout] 315 | }else if(md.1.ends_with(".fbx")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 315 - }else if(md.1.ends_with(".fbx")){ [INFO] [stdout] 315 + }else if md.1.ends_with(".fbx") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ke_units.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | x: x, [INFO] [stdout] | ^^^^ help: replace it with: `x` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:317:17 [INFO] [stdout] | [INFO] [stdout] 317 | }else if(md.1.ends_with(".gltf") || md.1.ends_with(".glb")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 317 - }else if(md.1.ends_with(".gltf") || md.1.ends_with(".glb")){ [INFO] [stdout] 317 + }else if md.1.ends_with(".gltf") || md.1.ends_with(".glb") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ke_units.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | y: y, [INFO] [stdout] | ^^^^ help: replace it with: `y` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ke_units.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | z: z, [INFO] [stdout] | ^^^^ help: replace it with: `z` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rotation3` [INFO] [stdout] --> src/lights.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use nalgebra::{Rotation3, Vector3}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:350:15 [INFO] [stdout] | [INFO] [stdout] 350 | if(np.proptype == proptype::Model_static){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 350 - if(np.proptype == proptype::Model_static){ [INFO] [stdout] 350 + if np.proptype == proptype::Model_static { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gltf::Gltf` [INFO] [stdout] --> src/models.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use gltf::Gltf; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:354:15 [INFO] [stdout] | [INFO] [stdout] 354 | if(np.shader_non_defalt){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 354 - if(np.shader_non_defalt){ [INFO] [stdout] 354 + if np.shader_non_defalt { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:469:7 [INFO] [stdout] | [INFO] [stdout] 469 | if(keconf.is_server && keconf.has_multiplayer){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 469 - if(keconf.is_server && keconf.has_multiplayer){ [INFO] [stdout] 469 + if keconf.is_server && keconf.has_multiplayer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:480:7 [INFO] [stdout] | [INFO] [stdout] 480 | if(keconf.is_server && keconf.has_multiplayer){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 480 - if(keconf.is_server && keconf.has_multiplayer){ [INFO] [stdout] 480 + if keconf.is_server && keconf.has_multiplayer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:540:27 [INFO] [stdout] | [INFO] [stdout] 540 | if(to == "\"\""){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 540 - if(to == "\"\""){ [INFO] [stdout] 540 + if to == "\"\"" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Mul` [INFO] [stdout] --> src/props.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, ops::Mul}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Matrix4`, `Rotation3`, and `Unit` [INFO] [stdout] --> src/props.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{Rotation3, Vector3, Unit, Matrix4}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:591:24 [INFO] [stdout] | [INFO] [stdout] 591 | let socket = if(!keconf.headless && keconf.has_multiplayer){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 591 - let socket = if(!keconf.headless && keconf.has_multiplayer){ [INFO] [stdout] 591 + let socket = if !keconf.headless && keconf.has_multiplayer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `phytype` should have an upper camel case name [INFO] [stdout] --> src/props.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum phytype { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Phytype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `physhape` should have an upper camel case name [INFO] [stdout] --> src/props.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum physhape { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Physhape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `proptype` should have an upper camel case name [INFO] [stdout] --> src/props.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum proptype { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Proptype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Legacy_Brick` should have an upper camel case name [INFO] [stdout] --> src/props.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | Legacy_Brick, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LegacyBrick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Model_static` should have an upper camel case name [INFO] [stdout] --> src/props.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | Model_static, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ModelStatic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glutin::api::egl::display` [INFO] [stdout] --> src/menu_system.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use glutin::api::egl::display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:767:11 [INFO] [stdout] | [INFO] [stdout] 767 | if(keconf.is_server && keconf.has_multiplayer){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 767 - if(keconf.is_server && keconf.has_multiplayer){ [INFO] [stdout] 767 + if keconf.is_server && keconf.has_multiplayer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> src/menu_system.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:771:11 [INFO] [stdout] | [INFO] [stdout] 771 | if(!keconf.headless){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 771 - if(!keconf.headless){ [INFO] [stdout] 771 + if !keconf.headless { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `image` should have an upper camel case name [INFO] [stdout] --> src/menu_system.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | image(menuimage), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:785:11 [INFO] [stdout] | [INFO] [stdout] 785 | if(!keconf.headless){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 785 - if(!keconf.headless){ [INFO] [stdout] 785 + if !keconf.headless { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `text` should have an upper camel case name [INFO] [stdout] --> src/menu_system.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | text(menutext) [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:864:27 [INFO] [stdout] | [INFO] [stdout] 864 | if(!keconf.headless){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 864 - if(!keconf.headless){ [INFO] [stdout] 864 + if !keconf.headless { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `menuimage` should have an upper camel case name [INFO] [stdout] --> src/menu_system.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct menuimage { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `Menuimage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:938:27 [INFO] [stdout] | [INFO] [stdout] 938 | if(pr.1 == propid){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 938 - if(pr.1 == propid){ [INFO] [stdout] 938 + if pr.1 == propid { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `menutext` should have an upper camel case name [INFO] [stdout] --> src/menu_system.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct menutext { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Menutext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1016:11 [INFO] [stdout] | [INFO] [stdout] 1016 | if(keconf.shader_hotswap){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1016 - if(keconf.shader_hotswap){ [INFO] [stdout] 1016 + if keconf.shader_hotswap { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1024:19 [INFO] [stdout] | [INFO] [stdout] 1024 | if(metadataF.modified().unwrap() != sh.time_changed_f || metadataV.modified().unwrap() != sh.time_changed_v) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1024 - if(metadataF.modified().unwrap() != sh.time_changed_f || metadataV.modified().unwrap() != sh.time_changed_v) { [INFO] [stdout] 1024 + if metadataF.modified().unwrap() != sh.time_changed_f || metadataV.modified().unwrap() != sh.time_changed_v { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TEXTURE_COUNT` [INFO] [stdout] --> src/textures.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{STRINGSLOADED, TEXTURE_COUNT}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1037:11 [INFO] [stdout] | [INFO] [stdout] 1037 | if(keconf.shader_hotswap){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1037 - if(keconf.shader_hotswap){ [INFO] [stdout] 1037 + if keconf.shader_hotswap { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1044:19 [INFO] [stdout] | [INFO] [stdout] 1044 | if(metadata.modified().unwrap() != sh.time_changed) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1044 - if(metadata.modified().unwrap() != sh.time_changed) { [INFO] [stdout] 1044 + if metadata.modified().unwrap() != sh.time_changed { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Color_Buffer` should have an upper camel case name [INFO] [stdout] --> src/buffer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | Color_Buffer(String), [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ColorBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1062:11 [INFO] [stdout] | [INFO] [stdout] 1062 | if(keconf.headless){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1062 - if(keconf.headless){ [INFO] [stdout] 1062 + if keconf.headless { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::format` and `string` [INFO] [stdout] --> src/kbf.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{collections::HashMap, fmt::format, string}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rotation3` [INFO] [stdout] --> src/kbf.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | use nalgebra::{Vector3, Rotation3}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1079:11 [INFO] [stdout] | [INFO] [stdout] 1079 | if(!keconf.headless){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1079 - if(!keconf.headless){ [INFO] [stdout] 1079 + if !keconf.headless { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vec3` and `textures::Texture` [INFO] [stdout] --> src/kbf.rs:9:85 [INFO] [stdout] | [INFO] [stdout] 9 | ...grab, ke_units::{Vec3, parsef, radians, parse, parsei}, shaders::ShadvType, lights::PointLight, textures::Texture}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1117:19 [INFO] [stdout] | [INFO] [stdout] 1117 | if(real_char.world == main_cam.world) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1117 - if(real_char.world == main_cam.world) { [INFO] [stdout] 1117 + if real_char.world == main_cam.world { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1173:27 [INFO] [stdout] | [INFO] [stdout] 1173 | if(main_cam.position.z src/main.rs:1199:121 [INFO] [stdout] | [INFO] [stdout] 1199 | ...uffer, &glium::Rect { left: 0, bottom: 0, width: width, height: height }, &glium::BlitTarget { left: 0, bottom: 0, width: width... [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `width` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/main.rs:1199:135 [INFO] [stdout] | [INFO] [stdout] 1199 | ...ect { left: 0, bottom: 0, width: width, height: height }, &glium::BlitTarget { left: 0, bottom: 0, width: width as i32, height:... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `height` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1247:31 [INFO] [stdout] | [INFO] [stdout] 1247 | ... if(charas == '\n'){//TODO: fix this [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1247 - if(charas == '\n'){//TODO: fix this [INFO] [stdout] 1247 + if charas == '\n' {//TODO: fix this [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1314:11 [INFO] [stdout] | [INFO] [stdout] 1314 | if(pr.1 == propid){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1314 - if(pr.1 == propid){ [INFO] [stdout] 1314 + if pr.1 == propid { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::format` and `string` [INFO] [stdout] --> src/vmf.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{collections::HashMap, fmt::format, string}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rotation3` [INFO] [stdout] --> src/vmf.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | use nalgebra::{Vector3, Rotation3}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vec3` and `textures::Texture` [INFO] [stdout] --> src/vmf.rs:9:85 [INFO] [stdout] | [INFO] [stdout] 9 | ...grab, ke_units::{Vec3, parsef, radians, parse, parsei}, shaders::ShadvType, lights::PointLight, textures::Texture}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1529:7 [INFO] [stdout] | [INFO] [stdout] 1529 | if(prop.transparency != 1.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1529 - if(prop.transparency != 1.0){ [INFO] [stdout] 1529 + if prop.transparency != 1.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Const` and `OPoint` [INFO] [stdout] --> src/physic_props.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{Const, OPoint, Point3, Rotation3, Unit, Vector2, Vector3}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ke_units::Vec3` [INFO] [stdout] --> src/physic_props.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{props::{Prop, phytype}, ke_units::Vec3, models::Model}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/physic_props.rs:256:11 [INFO] [stdout] | [INFO] [stdout] 256 | if(prop.phys_type == phytype::DynamicCollider){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 256 - if(prop.phys_type == phytype::DynamicCollider){ [INFO] [stdout] 256 + if prop.phys_type == phytype::DynamicCollider { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/physic_props.rs:279:11 [INFO] [stdout] | [INFO] [stdout] 279 | if(prop.phys_type == phytype::DynamicCollider){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 279 - if(prop.phys_type == phytype::DynamicCollider){ [INFO] [stdout] 279 + if prop.phys_type == phytype::DynamicCollider { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Depth`, `DrawParameters`, `Program`, `Surface`, and `VertexBuffer` [INFO] [stdout] --> src/char_control.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use glium::{Depth, Display, DrawParameters, Program, Surface, VertexBuffer}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `VirtualKeyCode` and `dpi::Position` [INFO] [stdout] --> src/char_control.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use winit::{event::{VirtualKeyCode, KeyboardInput}, dpi::Position}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PW` and `main` [INFO] [stdout] --> src/char_control.rs:6:57 [INFO] [stdout] | [INFO] [stdout] 6 | ...:{radians, Vec2}, main, models::Model, physic_props::{CopyWhat, PhysWorld}, props::{physhape, phytype, Prop}, PW}; [INFO] [stdout] | ^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `character_type` should have an upper camel case name [INFO] [stdout] --> src/char_control.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum character_type { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CharacterType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RwLock`, `borrow::BorrowMut`, and `collections::HashMap` [INFO] [stdout] --> src/script.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{time::{Instant, Duration}, collections::HashMap, borrow::BorrowMut, sync::{RwLock, mpsc::Sender}, future::Future}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `JsString`, `PropertyKey`, `error`, `function`, `json`, and `string` [INFO] [stdout] --> src/script.rs:3:84 [INFO] [stdout] | [INFO] [stdout] 3 | ...ribute, PropertyKey}, NativeFunction, value::TryFromJs, JsNativeError, builtins::{function, string, error, json}, JsString}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^ ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientBuilder`, `Payload`, `RawClient`, and `client::Client` [INFO] [stdout] --> src/script.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use rust_socketio::{ClientBuilder, Payload, RawClient, client::Client}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `smol::future::FutureExt` [INFO] [stdout] --> src/script.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use smol::future::FutureExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/script.rs:476:11 [INFO] [stdout] | [INFO] [stdout] 476 | if(prop.name == propname){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 476 - if(prop.name == propname){ [INFO] [stdout] 476 + if prop.name == propname { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/script.rs:694:11 [INFO] [stdout] | [INFO] [stdout] 694 | if(prop.name == propname){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 694 - if(prop.name == propname){ [INFO] [stdout] 694 + if prop.name == propname { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `garbtypes` should have an upper camel case name [INFO] [stdout] --> src/garbage_collector.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum garbtypes { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `Garbtypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `script` should have an upper camel case name [INFO] [stdout] --> src/garbage_collector.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | script, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Script` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `texture` should have an upper camel case name [INFO] [stdout] --> src/garbage_collector.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | texture, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `model` should have an upper camel case name [INFO] [stdout] --> src/garbage_collector.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | model, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `shader` should have an upper camel case name [INFO] [stdout] --> src/garbage_collector.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | shader, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Shader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/garbage_collector.rs:12:61 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn rummage_props(propz: &mut HashMap) -> Vec<(Vec)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - pub fn rummage_props(propz: &mut HashMap) -> Vec<(Vec)> { [INFO] [stdout] 12 + pub fn rummage_props(propz: &mut HashMap) -> Vec > { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/garbage_collector.rs:31:103 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn rummage_menues(menuz: &mut HashMap, fontz: &mut HashMap) -> Vec<(Vec)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - pub fn rummage_menues(menuz: &mut HashMap, fontz: &mut HashMap) -> Vec<(Vec)> { [INFO] [stdout] 31 + pub fn rummage_menues(menuz: &mut HashMap, fontz: &mut HashMap) -> Vec > { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Create_Shader` should have an upper camel case name [INFO] [stdout] --> src/main.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | Create_Shader(i32, String), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateShader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Create_Model` should have an upper camel case name [INFO] [stdout] --> src/main.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | Create_Model(i32, String), [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateModel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Create_Model_From_Magic` should have an upper camel case name [INFO] [stdout] --> src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | Create_Model_From_Magic(i32,Vec), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateModelFromMagic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Create_Texture` should have an upper camel case name [INFO] [stdout] --> src/main.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | Create_Texture(i32, String, u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateTexture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Pin_Texture_Buffer` should have an upper camel case name [INFO] [stdout] --> src/main.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | Pin_Texture_Buffer(i32,i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PinTextureBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Delete_Prop` should have an upper camel case name [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | Delete_Prop(i32), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `DeleteProp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Create_Buffer` should have an upper camel case name [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | Create_Buffer(String), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Create_Camera` should have an upper camel case name [INFO] [stdout] --> src/main.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | Create_Camera(String), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateCamera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Pin_Buffer_Camera` should have an upper camel case name [INFO] [stdout] --> src/main.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | Pin_Buffer_Camera(i32,i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PinBufferCamera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Phys_Prop_Push` should have an upper camel case name [INFO] [stdout] --> src/main.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | Phys_Prop_Push(i32,Vector3), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PhysPropPush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Phys_Prop_Push_SideOnly` should have an upper camel case name [INFO] [stdout] --> src/main.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | Phys_Prop_Push_SideOnly(i32,Vector2), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PhysPropPushSideOnly` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `load_map` should have an upper camel case name [INFO] [stdout] --> src/main.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | load_map(String, u32), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `LoadMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `js_push` should have an upper camel case name [INFO] [stdout] --> src/main.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | js_push(String, String), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `JsPush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `copy_prop_phys_pose` should have an upper camel case name [INFO] [stdout] --> src/main.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | copy_prop_phys_pose(i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CopyPropPhysPose` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `window_cursor_lock` should have an upper camel case name [INFO] [stdout] --> src/main.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | window_cursor_lock(bool), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `WindowCursorLock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `garbage_collect` should have an upper camel case name [INFO] [stdout] --> src/main.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | garbage_collect(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GarbageCollect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `world_move_prop` should have an upper camel case name [INFO] [stdout] --> src/main.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | world_move_prop(i32,u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `WorldMoveProp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `move_char` should have an upper camel case name [INFO] [stdout] --> src/main.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | move_char(u32), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `MoveChar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `exit` should have an upper camel case name [INFO] [stdout] --> src/main.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | exit, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Exit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:375:6 [INFO] [stdout] | [INFO] [stdout] 375 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:116:7 [INFO] [stdout] | [INFO] [stdout] 116 | if(keconf.steam_id != -1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - if(keconf.steam_id != -1){ [INFO] [stdout] 116 + if keconf.steam_id != -1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:162:7 [INFO] [stdout] | [INFO] [stdout] 162 | if(!keconf.headless){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 162 - if(!keconf.headless){ [INFO] [stdout] 162 + if !keconf.headless { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:313:11 [INFO] [stdout] | [INFO] [stdout] 313 | if(md.1.ends_with(".obj")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 313 - if(md.1.ends_with(".obj")){ [INFO] [stdout] 313 + if md.1.ends_with(".obj") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:315:17 [INFO] [stdout] | [INFO] [stdout] 315 | }else if(md.1.ends_with(".fbx")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 315 - }else if(md.1.ends_with(".fbx")){ [INFO] [stdout] 315 + }else if md.1.ends_with(".fbx") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:317:17 [INFO] [stdout] | [INFO] [stdout] 317 | }else if(md.1.ends_with(".gltf") || md.1.ends_with(".glb")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 317 - }else if(md.1.ends_with(".gltf") || md.1.ends_with(".glb")){ [INFO] [stdout] 317 + }else if md.1.ends_with(".gltf") || md.1.ends_with(".glb") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:350:15 [INFO] [stdout] | [INFO] [stdout] 350 | if(np.proptype == proptype::Model_static){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 350 - if(np.proptype == proptype::Model_static){ [INFO] [stdout] 350 + if np.proptype == proptype::Model_static { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:354:15 [INFO] [stdout] | [INFO] [stdout] 354 | if(np.shader_non_defalt){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 354 - if(np.shader_non_defalt){ [INFO] [stdout] 354 + if np.shader_non_defalt { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:469:7 [INFO] [stdout] | [INFO] [stdout] 469 | if(keconf.is_server && keconf.has_multiplayer){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 469 - if(keconf.is_server && keconf.has_multiplayer){ [INFO] [stdout] 469 + if keconf.is_server && keconf.has_multiplayer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:480:7 [INFO] [stdout] | [INFO] [stdout] 480 | if(keconf.is_server && keconf.has_multiplayer){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 480 - if(keconf.is_server && keconf.has_multiplayer){ [INFO] [stdout] 480 + if keconf.is_server && keconf.has_multiplayer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:540:27 [INFO] [stdout] | [INFO] [stdout] 540 | if(to == "\"\""){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 540 - if(to == "\"\""){ [INFO] [stdout] 540 + if to == "\"\"" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:591:24 [INFO] [stdout] | [INFO] [stdout] 591 | let socket = if(!keconf.headless && keconf.has_multiplayer){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 591 - let socket = if(!keconf.headless && keconf.has_multiplayer){ [INFO] [stdout] 591 + let socket = if !keconf.headless && keconf.has_multiplayer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:767:11 [INFO] [stdout] | [INFO] [stdout] 767 | if(keconf.is_server && keconf.has_multiplayer){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 767 - if(keconf.is_server && keconf.has_multiplayer){ [INFO] [stdout] 767 + if keconf.is_server && keconf.has_multiplayer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:771:11 [INFO] [stdout] | [INFO] [stdout] 771 | if(!keconf.headless){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 771 - if(!keconf.headless){ [INFO] [stdout] 771 + if !keconf.headless { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:785:11 [INFO] [stdout] | [INFO] [stdout] 785 | if(!keconf.headless){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 785 - if(!keconf.headless){ [INFO] [stdout] 785 + if !keconf.headless { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:864:27 [INFO] [stdout] | [INFO] [stdout] 864 | if(!keconf.headless){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 864 - if(!keconf.headless){ [INFO] [stdout] 864 + if !keconf.headless { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:938:27 [INFO] [stdout] | [INFO] [stdout] 938 | if(pr.1 == propid){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 938 - if(pr.1 == propid){ [INFO] [stdout] 938 + if pr.1 == propid { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1016:11 [INFO] [stdout] | [INFO] [stdout] 1016 | if(keconf.shader_hotswap){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1016 - if(keconf.shader_hotswap){ [INFO] [stdout] 1016 + if keconf.shader_hotswap { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1024:19 [INFO] [stdout] | [INFO] [stdout] 1024 | if(metadataF.modified().unwrap() != sh.time_changed_f || metadataV.modified().unwrap() != sh.time_changed_v) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1024 - if(metadataF.modified().unwrap() != sh.time_changed_f || metadataV.modified().unwrap() != sh.time_changed_v) { [INFO] [stdout] 1024 + if metadataF.modified().unwrap() != sh.time_changed_f || metadataV.modified().unwrap() != sh.time_changed_v { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1037:11 [INFO] [stdout] | [INFO] [stdout] 1037 | if(keconf.shader_hotswap){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1037 - if(keconf.shader_hotswap){ [INFO] [stdout] 1037 + if keconf.shader_hotswap { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1044:19 [INFO] [stdout] | [INFO] [stdout] 1044 | if(metadata.modified().unwrap() != sh.time_changed) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1044 - if(metadata.modified().unwrap() != sh.time_changed) { [INFO] [stdout] 1044 + if metadata.modified().unwrap() != sh.time_changed { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1062:11 [INFO] [stdout] | [INFO] [stdout] 1062 | if(keconf.headless){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1062 - if(keconf.headless){ [INFO] [stdout] 1062 + if keconf.headless { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1079:11 [INFO] [stdout] | [INFO] [stdout] 1079 | if(!keconf.headless){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1079 - if(!keconf.headless){ [INFO] [stdout] 1079 + if !keconf.headless { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1117:19 [INFO] [stdout] | [INFO] [stdout] 1117 | if(real_char.world == main_cam.world) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1117 - if(real_char.world == main_cam.world) { [INFO] [stdout] 1117 + if real_char.world == main_cam.world { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1173:27 [INFO] [stdout] | [INFO] [stdout] 1173 | if(main_cam.position.z src/main.rs:1199:121 [INFO] [stdout] | [INFO] [stdout] 1199 | ...uffer, &glium::Rect { left: 0, bottom: 0, width: width, height: height }, &glium::BlitTarget { left: 0, bottom: 0, width: width... [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `width` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/main.rs:1199:135 [INFO] [stdout] | [INFO] [stdout] 1199 | ...ect { left: 0, bottom: 0, width: width, height: height }, &glium::BlitTarget { left: 0, bottom: 0, width: width as i32, height:... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `height` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1247:31 [INFO] [stdout] | [INFO] [stdout] 1247 | ... if(charas == '\n'){//TODO: fix this [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1247 - if(charas == '\n'){//TODO: fix this [INFO] [stdout] 1247 + if charas == '\n' {//TODO: fix this [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1314:11 [INFO] [stdout] | [INFO] [stdout] 1314 | if(pr.1 == propid){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1314 - if(pr.1 == propid){ [INFO] [stdout] 1314 + if pr.1 == propid { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1529:7 [INFO] [stdout] | [INFO] [stdout] 1529 | if(prop.transparency != 1.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1529 - if(prop.transparency != 1.0){ [INFO] [stdout] 1529 + if prop.transparency != 1.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/models.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let mut final_v: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/models.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let reader = BufReader::new(file); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `images` [INFO] [stdout] --> src/models.rs:125:25 [INFO] [stdout] | [INFO] [stdout] 125 | let (gltf, buffers, images) = gltf::import(location).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_images` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trans` [INFO] [stdout] --> src/kbf.rs:98:47 [INFO] [stdout] | [INFO] [stdout] 98 | [">Baseplate", size, r, g, b, trans] => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_trans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/kbf.rs:126:29 [INFO] [stdout] | [INFO] [stdout] 126 | [">Script", id, script_local] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/kbf.rs:259:38 [INFO] [stdout] | [INFO] [stdout] 259 | ["Light", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/kbf.rs:259:41 [INFO] [stdout] | [INFO] [stdout] 259 | ["Light", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/kbf.rs:259:44 [INFO] [stdout] | [INFO] [stdout] 259 | ["Light", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/kbf.rs:266:44 [INFO] [stdout] | [INFO] [stdout] 266 | ["Spawn_Point", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/kbf.rs:266:47 [INFO] [stdout] | [INFO] [stdout] 266 | ["Spawn_Point", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/kbf.rs:266:50 [INFO] [stdout] | [INFO] [stdout] 266 | ["Spawn_Point", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/kbf.rs:269:32 [INFO] [stdout] | [INFO] [stdout] 269 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/kbf.rs:269:34 [INFO] [stdout] | [INFO] [stdout] 269 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/kbf.rs:269:36 [INFO] [stdout] | [INFO] [stdout] 269 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/kbf.rs:269:39 [INFO] [stdout] | [INFO] [stdout] 269 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/kbf.rs:269:42 [INFO] [stdout] | [INFO] [stdout] 269 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/kbf.rs:269:45 [INFO] [stdout] | [INFO] [stdout] 269 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/kbf.rs:272:32 [INFO] [stdout] | [INFO] [stdout] 272 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/kbf.rs:272:34 [INFO] [stdout] | [INFO] [stdout] 272 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/kbf.rs:272:36 [INFO] [stdout] | [INFO] [stdout] 272 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/kbf.rs:272:39 [INFO] [stdout] | [INFO] [stdout] 272 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/kbf.rs:272:42 [INFO] [stdout] | [INFO] [stdout] 272 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/kbf.rs:272:45 [INFO] [stdout] | [INFO] [stdout] 272 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/kbf.rs:348:45 [INFO] [stdout] | [INFO] [stdout] 348 | [x,y,z, xs,ys,zs, r,g,b,a] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trans` [INFO] [stdout] --> src/vmf.rs:97:47 [INFO] [stdout] | [INFO] [stdout] 97 | [">Baseplate", size, r, g, b, trans] => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_trans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/vmf.rs:125:29 [INFO] [stdout] | [INFO] [stdout] 125 | [">Script", id, script_local] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/vmf.rs:257:38 [INFO] [stdout] | [INFO] [stdout] 257 | ["Light", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/vmf.rs:257:41 [INFO] [stdout] | [INFO] [stdout] 257 | ["Light", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/vmf.rs:257:44 [INFO] [stdout] | [INFO] [stdout] 257 | ["Light", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/vmf.rs:264:44 [INFO] [stdout] | [INFO] [stdout] 264 | ["Spawn_Point", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/vmf.rs:264:47 [INFO] [stdout] | [INFO] [stdout] 264 | ["Spawn_Point", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/vmf.rs:264:50 [INFO] [stdout] | [INFO] [stdout] 264 | ["Spawn_Point", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/vmf.rs:267:32 [INFO] [stdout] | [INFO] [stdout] 267 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/vmf.rs:267:34 [INFO] [stdout] | [INFO] [stdout] 267 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/vmf.rs:267:36 [INFO] [stdout] | [INFO] [stdout] 267 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/vmf.rs:267:39 [INFO] [stdout] | [INFO] [stdout] 267 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/vmf.rs:267:42 [INFO] [stdout] | [INFO] [stdout] 267 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/vmf.rs:267:45 [INFO] [stdout] | [INFO] [stdout] 267 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/vmf.rs:270:32 [INFO] [stdout] | [INFO] [stdout] 270 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/vmf.rs:270:34 [INFO] [stdout] | [INFO] [stdout] 270 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/vmf.rs:270:36 [INFO] [stdout] | [INFO] [stdout] 270 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/vmf.rs:270:39 [INFO] [stdout] | [INFO] [stdout] 270 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/vmf.rs:270:42 [INFO] [stdout] | [INFO] [stdout] 270 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/vmf.rs:270:45 [INFO] [stdout] | [INFO] [stdout] 270 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/vmf.rs:346:45 [INFO] [stdout] | [INFO] [stdout] 346 | [x,y,z, xs,ys,zs, r,g,b,a] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `newid` [INFO] [stdout] --> src/physic_props.rs:195:25 [INFO] [stdout] | [INFO] [stdout] 195 | let newid = self.custom_collider_mesh.len() as i32; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_newid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/physic_props.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | let mut rigid_body = RigidBodyBuilder::new(RigidBodyType::Dynamic) [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/physic_props.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let mut rigid_body = self.rbbegining(prop); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctype` [INFO] [stdout] --> src/physic_props.rs:358:48 [INFO] [stdout] | [INFO] [stdout] 358 | pub fn delete_prop(&mut self, prop: &Prop, ctype: CopyWhat) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ctype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rb` [INFO] [stdout] --> src/physic_props.rs:364:13 [INFO] [stdout] | [INFO] [stdout] 364 | let rb = self.ridgid_world.get_mut(*rb_id).unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phys_world` [INFO] [stdout] --> src/char_control.rs:129:34 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn interp_key(&mut self, phys_world: &mut HashMap, propz: &mut HashMap, input: KeyboardInput, del... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_phys_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `propz` [INFO] [stdout] --> src/char_control.rs:129:75 [INFO] [stdout] | [INFO] [stdout] 129 | ...ut HashMap, propz: &mut HashMap, input: KeyboardInput, delta_time: f32){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_propz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/char_control.rs:129:129 [INFO] [stdout] | [INFO] [stdout] 129 | ...input: KeyboardInput, delta_time: f32){ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/char_control.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | let speed = self.speed; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phys_world` [INFO] [stdout] --> src/char_control.rs:174:36 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn interp_mouse(&mut self, phys_world: &mut HashMap, propz: &mut HashMap, camera_map: &mut HashM... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_phys_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `propz` [INFO] [stdout] --> src/char_control.rs:174:78 [INFO] [stdout] | [INFO] [stdout] 174 | ...t HashMap, propz: &mut HashMap, camera_map: &mut HashMap, mouse_delta: Vector2, scr... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_propz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen_size` [INFO] [stdout] --> src/char_control.rs:174:176 [INFO] [stdout] | [INFO] [stdout] 174 | ...delta: Vector2, screen_size: Vector2, delta_time: f32){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/char_control.rs:174:203 [INFO] [stdout] | [INFO] [stdout] 174 | ...n_size: Vector2, delta_time: f32){ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/models.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let mut final_v: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/models.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let reader = BufReader::new(file); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `st` [INFO] [stdout] --> src/script.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | let st = _nargs.get_or_undefined(1).to_i32(_ctx).unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_st` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `st` [INFO] [stdout] --> src/script.rs:274:9 [INFO] [stdout] | [INFO] [stdout] 274 | let st = _nargs.get_or_undefined(1).to_i32(_ctx).unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_st` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:300:9 [INFO] [stdout] | [INFO] [stdout] 300 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `images` [INFO] [stdout] --> src/models.rs:125:25 [INFO] [stdout] | [INFO] [stdout] 125 | let (gltf, buffers, images) = gltf::import(location).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_images` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:425:9 [INFO] [stdout] | [INFO] [stdout] 425 | let mut worldz = binding.get_mut(&(world as u32)).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:442:9 [INFO] [stdout] | [INFO] [stdout] 442 | let mut worldz = binding.get_mut(&0).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:491:9 [INFO] [stdout] | [INFO] [stdout] 491 | let mut screen = SCREEN_SIZE.read().unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:511:9 [INFO] [stdout] | [INFO] [stdout] 511 | let mut w = camera_map.get_mut(&propid).unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:523:9 [INFO] [stdout] | [INFO] [stdout] 523 | let mut camera_map = CAMERAS.write().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:558:9 [INFO] [stdout] | [INFO] [stdout] 558 | let mut propz = CAMERAS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:594:9 [INFO] [stdout] | [INFO] [stdout] 594 | let mut propz = CAMERAS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:618:9 [INFO] [stdout] | [INFO] [stdout] 618 | let mut propz = CAMERAS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:642:9 [INFO] [stdout] | [INFO] [stdout] 642 | let mut propz = CAMERAS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:670:9 [INFO] [stdout] | [INFO] [stdout] 670 | let mut propz = CAMERAS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `propz` [INFO] [stdout] --> src/script.rs:670:9 [INFO] [stdout] | [INFO] [stdout] 670 | let mut propz = CAMERAS.read().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_propz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:803:9 [INFO] [stdout] | [INFO] [stdout] 803 | let mut womp = PointLight::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:833:9 [INFO] [stdout] | [INFO] [stdout] 833 | let mut lightz = LIGHTS.read().unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:945:9 [INFO] [stdout] | [INFO] [stdout] 945 | let mut menuz = MENUS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:1055:9 [INFO] [stdout] | [INFO] [stdout] 1055 | let mut phys_world = binding.get_mut(&(st as u32)).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trans` [INFO] [stdout] --> src/kbf.rs:98:47 [INFO] [stdout] | [INFO] [stdout] 98 | [">Baseplate", size, r, g, b, trans] => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_trans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/kbf.rs:126:29 [INFO] [stdout] | [INFO] [stdout] 126 | [">Script", id, script_local] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/kbf.rs:259:38 [INFO] [stdout] | [INFO] [stdout] 259 | ["Light", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/kbf.rs:259:41 [INFO] [stdout] | [INFO] [stdout] 259 | ["Light", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/kbf.rs:259:44 [INFO] [stdout] | [INFO] [stdout] 259 | ["Light", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/kbf.rs:266:44 [INFO] [stdout] | [INFO] [stdout] 266 | ["Spawn_Point", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/kbf.rs:266:47 [INFO] [stdout] | [INFO] [stdout] 266 | ["Spawn_Point", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/kbf.rs:266:50 [INFO] [stdout] | [INFO] [stdout] 266 | ["Spawn_Point", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/kbf.rs:269:32 [INFO] [stdout] | [INFO] [stdout] 269 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/kbf.rs:269:34 [INFO] [stdout] | [INFO] [stdout] 269 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/kbf.rs:269:36 [INFO] [stdout] | [INFO] [stdout] 269 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/kbf.rs:269:39 [INFO] [stdout] | [INFO] [stdout] 269 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/kbf.rs:269:42 [INFO] [stdout] | [INFO] [stdout] 269 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/kbf.rs:269:45 [INFO] [stdout] | [INFO] [stdout] 269 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/kbf.rs:272:32 [INFO] [stdout] | [INFO] [stdout] 272 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/kbf.rs:272:34 [INFO] [stdout] | [INFO] [stdout] 272 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/kbf.rs:272:36 [INFO] [stdout] | [INFO] [stdout] 272 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/kbf.rs:272:39 [INFO] [stdout] | [INFO] [stdout] 272 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/kbf.rs:272:42 [INFO] [stdout] | [INFO] [stdout] 272 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/kbf.rs:272:45 [INFO] [stdout] | [INFO] [stdout] 272 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/kbf.rs:348:45 [INFO] [stdout] | [INFO] [stdout] 348 | [x,y,z, xs,ys,zs, r,g,b,a] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trans` [INFO] [stdout] --> src/vmf.rs:97:47 [INFO] [stdout] | [INFO] [stdout] 97 | [">Baseplate", size, r, g, b, trans] => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_trans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/vmf.rs:125:29 [INFO] [stdout] | [INFO] [stdout] 125 | [">Script", id, script_local] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/vmf.rs:257:38 [INFO] [stdout] | [INFO] [stdout] 257 | ["Light", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/vmf.rs:257:41 [INFO] [stdout] | [INFO] [stdout] 257 | ["Light", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/vmf.rs:257:44 [INFO] [stdout] | [INFO] [stdout] 257 | ["Light", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/vmf.rs:264:44 [INFO] [stdout] | [INFO] [stdout] 264 | ["Spawn_Point", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/vmf.rs:264:47 [INFO] [stdout] | [INFO] [stdout] 264 | ["Spawn_Point", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/vmf.rs:264:50 [INFO] [stdout] | [INFO] [stdout] 264 | ["Spawn_Point", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/vmf.rs:267:32 [INFO] [stdout] | [INFO] [stdout] 267 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/vmf.rs:267:34 [INFO] [stdout] | [INFO] [stdout] 267 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/vmf.rs:267:36 [INFO] [stdout] | [INFO] [stdout] 267 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/vmf.rs:267:39 [INFO] [stdout] | [INFO] [stdout] 267 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/vmf.rs:267:42 [INFO] [stdout] | [INFO] [stdout] 267 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/vmf.rs:267:45 [INFO] [stdout] | [INFO] [stdout] 267 | ["Prefab", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/vmf.rs:270:32 [INFO] [stdout] | [INFO] [stdout] 270 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/vmf.rs:270:34 [INFO] [stdout] | [INFO] [stdout] 270 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/vmf.rs:270:36 [INFO] [stdout] | [INFO] [stdout] 270 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> src/vmf.rs:270:39 [INFO] [stdout] | [INFO] [stdout] 270 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ys` [INFO] [stdout] --> src/vmf.rs:270:42 [INFO] [stdout] | [INFO] [stdout] 270 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zs` [INFO] [stdout] --> src/vmf.rs:270:45 [INFO] [stdout] | [INFO] [stdout] 270 | ["Script", x,y,z, xs,ys,zs] => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_zs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/vmf.rs:346:45 [INFO] [stdout] | [INFO] [stdout] 346 | [x,y,z, xs,ys,zs, r,g,b,a] => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/script.rs:1192:16 [INFO] [stdout] | [INFO] [stdout] 1192 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `newid` [INFO] [stdout] --> src/physic_props.rs:195:25 [INFO] [stdout] | [INFO] [stdout] 195 | let newid = self.custom_collider_mesh.len() as i32; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_newid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/physic_props.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | let mut rigid_body = RigidBodyBuilder::new(RigidBodyType::Dynamic) [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/physic_props.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let mut rigid_body = self.rbbegining(prop); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/script.rs:1328:20 [INFO] [stdout] | [INFO] [stdout] 1328 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/script.rs:1342:13 [INFO] [stdout] | [INFO] [stdout] 1342 | for code in &self.scripts { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/script.rs:1344:20 [INFO] [stdout] | [INFO] [stdout] 1344 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctype` [INFO] [stdout] --> src/physic_props.rs:358:48 [INFO] [stdout] | [INFO] [stdout] 358 | pub fn delete_prop(&mut self, prop: &Prop, ctype: CopyWhat) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ctype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rb` [INFO] [stdout] --> src/physic_props.rs:364:13 [INFO] [stdout] | [INFO] [stdout] 364 | let rb = self.ridgid_world.get_mut(*rb_id).unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/script.rs:1368:16 [INFO] [stdout] | [INFO] [stdout] 1368 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/script.rs:1385:16 [INFO] [stdout] | [INFO] [stdout] 1385 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/script.rs:1401:16 [INFO] [stdout] | [INFO] [stdout] 1401 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phys_world` [INFO] [stdout] --> src/char_control.rs:129:34 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn interp_key(&mut self, phys_world: &mut HashMap, propz: &mut HashMap, input: KeyboardInput, del... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_phys_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `propz` [INFO] [stdout] --> src/char_control.rs:129:75 [INFO] [stdout] | [INFO] [stdout] 129 | ...ut HashMap, propz: &mut HashMap, input: KeyboardInput, delta_time: f32){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_propz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/char_control.rs:129:129 [INFO] [stdout] | [INFO] [stdout] 129 | ...input: KeyboardInput, delta_time: f32){ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/char_control.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | let speed = self.speed; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phys_world` [INFO] [stdout] --> src/char_control.rs:174:36 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn interp_mouse(&mut self, phys_world: &mut HashMap, propz: &mut HashMap, camera_map: &mut HashM... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_phys_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `propz` [INFO] [stdout] --> src/char_control.rs:174:78 [INFO] [stdout] | [INFO] [stdout] 174 | ...t HashMap, propz: &mut HashMap, camera_map: &mut HashMap, mouse_delta: Vector2, scr... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_propz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen_size` [INFO] [stdout] --> src/char_control.rs:174:176 [INFO] [stdout] | [INFO] [stdout] 174 | ...delta: Vector2, screen_size: Vector2, delta_time: f32){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/char_control.rs:174:203 [INFO] [stdout] | [INFO] [stdout] 174 | ...n_size: Vector2, delta_time: f32){ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `st` [INFO] [stdout] --> src/script.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | let st = _nargs.get_or_undefined(1).to_i32(_ctx).unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_st` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `st` [INFO] [stdout] --> src/script.rs:274:9 [INFO] [stdout] | [INFO] [stdout] 274 | let st = _nargs.get_or_undefined(1).to_i32(_ctx).unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_st` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:300:9 [INFO] [stdout] | [INFO] [stdout] 300 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | let mut propz = PROPS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:425:9 [INFO] [stdout] | [INFO] [stdout] 425 | let mut worldz = binding.get_mut(&(world as u32)).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:442:9 [INFO] [stdout] | [INFO] [stdout] 442 | let mut worldz = binding.get_mut(&0).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:491:9 [INFO] [stdout] | [INFO] [stdout] 491 | let mut screen = SCREEN_SIZE.read().unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:511:9 [INFO] [stdout] | [INFO] [stdout] 511 | let mut w = camera_map.get_mut(&propid).unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:523:9 [INFO] [stdout] | [INFO] [stdout] 523 | let mut camera_map = CAMERAS.write().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:558:9 [INFO] [stdout] | [INFO] [stdout] 558 | let mut propz = CAMERAS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:594:9 [INFO] [stdout] | [INFO] [stdout] 594 | let mut propz = CAMERAS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:618:9 [INFO] [stdout] | [INFO] [stdout] 618 | let mut propz = CAMERAS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:642:9 [INFO] [stdout] | [INFO] [stdout] 642 | let mut propz = CAMERAS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:670:9 [INFO] [stdout] | [INFO] [stdout] 670 | let mut propz = CAMERAS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `propz` [INFO] [stdout] --> src/script.rs:670:9 [INFO] [stdout] | [INFO] [stdout] 670 | let mut propz = CAMERAS.read().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_propz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:803:9 [INFO] [stdout] | [INFO] [stdout] 803 | let mut womp = PointLight::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:833:9 [INFO] [stdout] | [INFO] [stdout] 833 | let mut lightz = LIGHTS.read().unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:945:9 [INFO] [stdout] | [INFO] [stdout] 945 | let mut menuz = MENUS.read().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/script.rs:1055:9 [INFO] [stdout] | [INFO] [stdout] 1055 | let mut phys_world = binding.get_mut(&(st as u32)).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:758:13 [INFO] [stdout] | [INFO] [stdout] 758 | let mut nanos = SystemTime::now() [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:763:13 [INFO] [stdout] | [INFO] [stdout] 763 | let mut delta_time = (nanos - last_nanos) as f32*0.0000001; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:945:25 [INFO] [stdout] | [INFO] [stdout] 945 | let mut phys_world = binding.get_mut(&w.world).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:955:25 [INFO] [stdout] | [INFO] [stdout] 955 | let mut propa = propz.get_mut(&propid).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:957:25 [INFO] [stdout] | [INFO] [stdout] 957 | let mut phys_world = binding.get_mut(&propa.world).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:962:25 [INFO] [stdout] | [INFO] [stdout] 962 | let mut propa = propz.get_mut(&propid).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:964:25 [INFO] [stdout] | [INFO] [stdout] 964 | let mut phys_world = binding.get_mut(&propa.world).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:978:25 [INFO] [stdout] | [INFO] [stdout] 978 | let mut propa = propz.get_mut(&propid).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:980:25 [INFO] [stdout] | [INFO] [stdout] 980 | let mut phys_world = binding.get_mut(&propa.world).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1019:21 [INFO] [stdout] | [INFO] [stdout] 1019 | let mut sh = x.1; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1040:21 [INFO] [stdout] | [INFO] [stdout] 1040 | let mut sh = Faona.get_mut(&x).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1110:21 [INFO] [stdout] | [INFO] [stdout] 1110 | let mut world = world.get(&main_cam.world).unwrap().clone(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | let mut shader_vars: HashMap = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:700:9 [INFO] [stdout] | [INFO] [stdout] 700 | let mut nanos = SystemTime::now() [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:705:9 [INFO] [stdout] | [INFO] [stdout] 705 | let mut start = nanos; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ele` [INFO] [stdout] --> src/main.rs:815:25 [INFO] [stdout] | [INFO] [stdout] 815 | for ele in &bufferz { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ele` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device_id` [INFO] [stdout] --> src/main.rs:825:46 [INFO] [stdout] | [INFO] [stdout] 825 | WindowEvent::KeyboardInput { device_id, input, is_synthetic } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `device_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device_id` [INFO] [stdout] --> src/main.rs:861:34 [INFO] [stdout] | [INFO] [stdout] 861 | Event::DeviceEvent { device_id, event } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `device_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `worldid` [INFO] [stdout] --> src/main.rs:1003:38 [INFO] [stdout] | [INFO] [stdout] 1003 | KERequest::move_char(worldid) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_worldid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uv` [INFO] [stdout] --> src/main.rs:1261:33 [INFO] [stdout] | [INFO] [stdout] 1261 | ... let uv = Vector2::new(fontchar.pos.x as f32,fontchar.pos.y as f32); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_uv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `socket` [INFO] [stdout] --> src/main.rs:611:47 [INFO] [stdout] | [INFO] [stdout] 611 | .on("update", move |payload: Payload, socket: RawClient| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_socket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bin_data` [INFO] [stdout] --> src/main.rs:619:33 [INFO] [stdout] | [INFO] [stdout] 619 | Payload::Binary(bin_data) => {}, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bin_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `socket` [INFO] [stdout] --> src/main.rs:600:51 [INFO] [stdout] | [INFO] [stdout] 600 | .on("update", move |payload: Payload, socket: RawClient| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_socket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bin_data` [INFO] [stdout] --> src/main.rs:608:37 [INFO] [stdout] | [INFO] [stdout] 608 | Payload::Binary(bin_data) => {}, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bin_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `single` [INFO] [stdout] --> src/main.rs:118:22 [INFO] [stdout] | [INFO] [stdout] 118 | let (client, single) = Client::init().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_single` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `light` [INFO] [stdout] --> src/main.rs:402:9 [INFO] [stdout] | [INFO] [stdout] 402 | let light = [1.4, 0.4, 0.7f32]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_light` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nr_clone` [INFO] [stdout] --> src/main.rs:593:17 [INFO] [stdout] | [INFO] [stdout] 593 | let nr_clone = network_requests.clone(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nr_clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ns_clone` [INFO] [stdout] --> src/main.rs:594:17 [INFO] [stdout] | [INFO] [stdout] 594 | let ns_clone = next_slot.clone(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ns_clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/main.rs:705:9 [INFO] [stdout] | [INFO] [stdout] 705 | let mut start = nanos; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/script.rs:1192:16 [INFO] [stdout] | [INFO] [stdout] 1192 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | let mut phys_world = binding.get_mut(&worldid).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:336:13 [INFO] [stdout] | [INFO] [stdout] 336 | let mut worlda = binding.get_mut(&worldid).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `dat` is never read [INFO] [stdout] --> src/main.rs:516:54 [INFO] [stdout] | [INFO] [stdout] 516 | let mut dat: Option = None; [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: `auth` [INFO] [stdout] --> src/main.rs:486:37 [INFO] [stdout] | [INFO] [stdout] 486 | io.ns("/", |socket, auth: Value| async move { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_auth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1323:9 [INFO] [stdout] | [INFO] [stdout] 1323 | let mut phys_world = binding.get_mut(&w.world).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1328:9 [INFO] [stdout] | [INFO] [stdout] 1328 | let mut phys_world = binding.get_mut(&worldid).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/script.rs:1328:20 [INFO] [stdout] | [INFO] [stdout] 1328 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/script.rs:1342:13 [INFO] [stdout] | [INFO] [stdout] 1342 | for code in &self.scripts { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/script.rs:1344:20 [INFO] [stdout] | [INFO] [stdout] 1344 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/script.rs:1368:16 [INFO] [stdout] | [INFO] [stdout] 1368 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/script.rs:1385:16 [INFO] [stdout] | [INFO] [stdout] 1385 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/script.rs:1401:16 [INFO] [stdout] | [INFO] [stdout] 1401 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/main.rs:1399:365 [INFO] [stdout] | [INFO] [stdout] 1399 | ...z2: &Vec, target: &mut glium::Frame, modelz: &HashMap, shaderz: &HashMap, params: &Draw... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/main.rs:1541:9 [INFO] [stdout] | [INFO] [stdout] 1541 | for text in &prop.textures { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delay` is never used [INFO] [stdout] --> src/script.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn delay( [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/fs_system.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | let file = fs::read_to_string(location).unwrap(); [INFO] [stdout] | ------------------------------------------------- unnecessary `let` binding [INFO] [stdout] 7 | file [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 6 ~ [INFO] [stdout] 7 ~ fs::read_to_string(location).unwrap() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of a fallible conversion when an infallible one could be used [INFO] [stdout] --> src/cameras.rs:70:58 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn view_drop(&self) -> [[f32; 4]; 4] { self.view.try_into().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: converting `Matrix, Const<4>, ArrayStorage>` to `[[f32; 4]; 4]` cannot fail [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions [INFO] [stdout] = note: `#[warn(clippy::unnecessary_fallible_conversions)]` on by default [INFO] [stdout] help: use [INFO] [stdout] | [INFO] [stdout] 70 - pub fn view_drop(&self) -> [[f32; 4]; 4] { self.view.try_into().unwrap() } [INFO] [stdout] 70 + pub fn view_drop(&self) -> [[f32; 4]; 4] { self.view.into() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of left operand [INFO] [stdout] --> src/cameras.rs:74:44 [INFO] [stdout] | [INFO] [stdout] 74 | model = model.prepend_translation(&(&self.position*-1.0)); [INFO] [stdout] | ^--------------^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: use the left value directly: `self.position` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] = note: `#[warn(clippy::op_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/ke_units.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn radians(dgr: f32) -> f32{return dgr*PI/180.0;} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 43 - pub fn radians(dgr: f32) -> f32{return dgr*PI/180.0;} [INFO] [stdout] 43 + pub fn radians(dgr: f32) -> f32{dgr*PI/180.0} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/ke_units.rs:44:33 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn degrees(rag: f32) -> f32{return rag*180.0/PI;} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 44 - pub fn degrees(rag: f32) -> f32{return rag*180.0/PI;} [INFO] [stdout] 44 + pub fn degrees(rag: f32) -> f32{rag*180.0/PI} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `PointLight` [INFO] [stdout] --> src/lights.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | / pub fn new () -> PointLight { [INFO] [stdout] 18 | | PointLight { [INFO] [stdout] 19 | | position: Vector3::new(0.0,0.0,0.0), [INFO] [stdout] 20 | | ambient: Vector3::new(0.05,0.05,0.05), [INFO] [stdout] ... | [INFO] [stdout] 28 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 16 + impl Default for PointLight { [INFO] [stdout] 17 + fn default() -> Self { [INFO] [stdout] 18 + Self::new() [INFO] [stdout] 19 + } [INFO] [stdout] 20 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/models.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn load_obj<'a>(location: &str, display: &'a glium::Display) -> Model { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 37 - pub fn load_obj<'a>(location: &str, display: &'a glium::Display) -> Model { [INFO] [stdout] 37 + pub fn load_obj(location: &str, display: &glium::Display) -> Model { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/models.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn load_fbx<'a>(location: &str, display: &'a glium::Display) -> Model { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 104 - pub fn load_fbx<'a>(location: &str, display: &'a glium::Display) -> Model { [INFO] [stdout] 104 + pub fn load_fbx(location: &str, display: &glium::Display) -> Model { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/models.rs:120:18 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn load_gltf<'a>(location: &str, display: &'a glium::Display) -> Model { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 120 - pub fn load_gltf<'a>(location: &str, display: &'a glium::Display) -> Model { [INFO] [stdout] 120 + pub fn load_gltf(location: &str, display: &glium::Display) -> Model { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:172:32 [INFO] [stdout] | [INFO] [stdout] 172 | position: [posicao[q as usize][0] as f32,posicao[q as usize][1] as f32,posicao[q as usize][2] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `posicao[q as usize][0]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:172:62 [INFO] [stdout] | [INFO] [stdout] 172 | position: [posicao[q as usize][0] as f32,posicao[q as usize][1] as f32,posicao[q as usize][2] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `posicao[q as usize][1]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:758:13 [INFO] [stdout] | [INFO] [stdout] 758 | let mut nanos = SystemTime::now() [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:172:92 [INFO] [stdout] | [INFO] [stdout] 172 | position: [posicao[q as usize][0] as f32,posicao[q as usize][1] as f32,posicao[q as usize][2] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `posicao[q as usize][2]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:173:30 [INFO] [stdout] | [INFO] [stdout] 173 | normal: [normais[q as usize][0] as f32,normais[q as usize][1] as f32,normais[q as usize][2] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `normais[q as usize][0]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:763:13 [INFO] [stdout] | [INFO] [stdout] 763 | let mut delta_time = (nanos - last_nanos) as f32*0.0000001; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:173:60 [INFO] [stdout] | [INFO] [stdout] 173 | normal: [normais[q as usize][0] as f32,normais[q as usize][1] as f32,normais[q as usize][2] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `normais[q as usize][1]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:173:90 [INFO] [stdout] | [INFO] [stdout] 173 | normal: [normais[q as usize][0] as f32,normais[q as usize][1] as f32,normais[q as usize][2] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `normais[q as usize][2]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:174:34 [INFO] [stdout] | [INFO] [stdout] 174 | tex_coords: [textura[q as usize][0] as f32,textura[q as usize][1] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `textura[q as usize][0]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:174:64 [INFO] [stdout] | [INFO] [stdout] 174 | tex_coords: [textura[q as usize][0] as f32,textura[q as usize][1] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `textura[q as usize][1]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:945:25 [INFO] [stdout] | [INFO] [stdout] 945 | let mut phys_world = binding.get_mut(&w.world).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:955:25 [INFO] [stdout] | [INFO] [stdout] 955 | let mut propa = propz.get_mut(&propid).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:957:25 [INFO] [stdout] | [INFO] [stdout] 957 | let mut phys_world = binding.get_mut(&propa.world).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:962:25 [INFO] [stdout] | [INFO] [stdout] 962 | let mut propa = propz.get_mut(&propid).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:964:25 [INFO] [stdout] | [INFO] [stdout] 964 | let mut phys_world = binding.get_mut(&propa.world).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:978:25 [INFO] [stdout] | [INFO] [stdout] 978 | let mut propa = propz.get_mut(&propid).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:980:25 [INFO] [stdout] | [INFO] [stdout] 980 | let mut phys_world = binding.get_mut(&propa.world).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1019:21 [INFO] [stdout] | [INFO] [stdout] 1019 | let mut sh = x.1; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1040:21 [INFO] [stdout] | [INFO] [stdout] 1040 | let mut sh = Faona.get_mut(&x).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1110:21 [INFO] [stdout] | [INFO] [stdout] 1110 | let mut world = world.get(&main_cam.world).unwrap().clone(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | let mut shader_vars: HashMap = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:700:9 [INFO] [stdout] | [INFO] [stdout] 700 | let mut nanos = SystemTime::now() [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:705:9 [INFO] [stdout] | [INFO] [stdout] 705 | let mut start = nanos; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ele` [INFO] [stdout] --> src/main.rs:815:25 [INFO] [stdout] | [INFO] [stdout] 815 | for ele in &bufferz { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ele` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device_id` [INFO] [stdout] --> src/main.rs:825:46 [INFO] [stdout] | [INFO] [stdout] 825 | WindowEvent::KeyboardInput { device_id, input, is_synthetic } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `device_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device_id` [INFO] [stdout] --> src/main.rs:861:34 [INFO] [stdout] | [INFO] [stdout] 861 | Event::DeviceEvent { device_id, event } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `device_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `worldid` [INFO] [stdout] --> src/main.rs:1003:38 [INFO] [stdout] | [INFO] [stdout] 1003 | KERequest::move_char(worldid) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_worldid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uv` [INFO] [stdout] --> src/main.rs:1261:33 [INFO] [stdout] | [INFO] [stdout] 1261 | ... let uv = Vector2::new(fontchar.pos.x as f32,fontchar.pos.y as f32); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_uv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `socket` [INFO] [stdout] --> src/main.rs:611:47 [INFO] [stdout] | [INFO] [stdout] 611 | .on("update", move |payload: Payload, socket: RawClient| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_socket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bin_data` [INFO] [stdout] --> src/main.rs:619:33 [INFO] [stdout] | [INFO] [stdout] 619 | Payload::Binary(bin_data) => {}, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bin_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `socket` [INFO] [stdout] --> src/main.rs:600:51 [INFO] [stdout] | [INFO] [stdout] 600 | .on("update", move |payload: Payload, socket: RawClient| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_socket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bin_data` [INFO] [stdout] --> src/main.rs:608:37 [INFO] [stdout] | [INFO] [stdout] 608 | Payload::Binary(bin_data) => {}, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bin_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `single` [INFO] [stdout] --> src/main.rs:118:22 [INFO] [stdout] | [INFO] [stdout] 118 | let (client, single) = Client::init().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_single` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `light` [INFO] [stdout] --> src/main.rs:402:9 [INFO] [stdout] | [INFO] [stdout] 402 | let light = [1.4, 0.4, 0.7f32]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_light` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nr_clone` [INFO] [stdout] --> src/main.rs:593:17 [INFO] [stdout] | [INFO] [stdout] 593 | let nr_clone = network_requests.clone(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nr_clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ns_clone` [INFO] [stdout] --> src/main.rs:594:17 [INFO] [stdout] | [INFO] [stdout] 594 | let ns_clone = next_slot.clone(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ns_clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/main.rs:705:9 [INFO] [stdout] | [INFO] [stdout] 705 | let mut start = nanos; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | let mut phys_world = binding.get_mut(&worldid).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:336:13 [INFO] [stdout] | [INFO] [stdout] 336 | let mut worlda = binding.get_mut(&worldid).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `dat` is never read [INFO] [stdout] --> src/main.rs:516:54 [INFO] [stdout] | [INFO] [stdout] 516 | let mut dat: Option = None; [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: `auth` [INFO] [stdout] --> src/main.rs:486:37 [INFO] [stdout] | [INFO] [stdout] 486 | io.ns("/", |socket, auth: Value| async move { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_auth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/menu_system.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | *texturecount = *texturecount + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `*texturecount += 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] = note: `#[warn(clippy::assign_op_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/menu_system.rs:65:87 [INFO] [stdout] | [INFO] [stdout] 65 | texturez.insert(*texturecount, Texture::craft(&format!("{location}.png"), &display)); [INFO] [stdout] | ^^^^^^^^ help: change this to: `display` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1323:9 [INFO] [stdout] | [INFO] [stdout] 1323 | let mut phys_world = binding.get_mut(&w.world).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1328:9 [INFO] [stdout] | [INFO] [stdout] 1328 | let mut phys_world = binding.get_mut(&worldid).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/textures.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | url: format!("betternot") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"betternot".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/kbf.rs:137:20 [INFO] [stdout] | [INFO] [stdout] 137 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] = note: `#[warn(clippy::chars_next_cmp)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/kbf.rs:165:76 [INFO] [stdout] | [INFO] [stdout] 165 | ... current_brick.textures[parse(slot)-1] = parsei(&texture_id); [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `texture_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/main.rs:1399:365 [INFO] [stdout] | [INFO] [stdout] 1399 | ...z2: &Vec, target: &mut glium::Frame, modelz: &HashMap, shaderz: &HashMap, params: &Draw... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/main.rs:1541:9 [INFO] [stdout] | [INFO] [stdout] 1541 | for text in &prop.textures { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/kbf.rs:168:58 [INFO] [stdout] | [INFO] [stdout] 168 | ... current_brick.model = parsei(&modelid); [INFO] [stdout] | ^^^^^^^^ help: change this to: `modelid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/kbf.rs:171:59 [INFO] [stdout] | [INFO] [stdout] 171 | ... current_brick.shader = parsei(&modelid); [INFO] [stdout] | ^^^^^^^^ help: change this to: `modelid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/kbf.rs:187:20 [INFO] [stdout] | [INFO] [stdout] 187 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/kbf.rs:205:20 [INFO] [stdout] | [INFO] [stdout] 205 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/kbf.rs:206:21 [INFO] [stdout] | [INFO] [stdout] 206 | / match dat.as_slice() { [INFO] [stdout] 207 | | ["+file", namet] => { [INFO] [stdout] 208 | | *current_script = namet.to_string(); [INFO] [stdout] ... | [INFO] [stdout] 211 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 206 ~ if let ["+file", namet] = dat.as_slice() { [INFO] [stdout] 207 + *current_script = namet.to_string(); [INFO] [stdout] 208 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/kbf.rs:273:42 [INFO] [stdout] | [INFO] [stdout] 273 | neo_scripts.push(format!("")); [INFO] [stdout] | ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delay` is never used [INFO] [stdout] --> src/script.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn delay( [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/kbf.rs:329:20 [INFO] [stdout] | [INFO] [stdout] 329 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/kbf.rs:347:17 [INFO] [stdout] | [INFO] [stdout] 347 | / match dat.as_slice() { [INFO] [stdout] 348 | | [x,y,z, xs,ys,zs, r,g,b,a] => { [INFO] [stdout] ... | [INFO] [stdout] 394 | | _ => {} [INFO] [stdout] 395 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 347 ~ if let [x,y,z, xs,ys,zs, r,g,b,a] = dat.as_slice() { [INFO] [stdout] 348 + // for brk pos and scale yzx -> xyz [INFO] [stdout] 349 + [INFO] [stdout] 350 + let bscale = Vector3::new(parsef(ys), parsef(zs), parsef(xs))/2.0; [INFO] [stdout] 351 + [INFO] [stdout] 352 + let mut new_brick = Prop::new("what cat?".to_string()); [INFO] [stdout] 353 + new_brick.position = Vector3::new(parsef(y)+bscale.x/2.0, parsef(z)+bscale.y/2.0, parsef(x)+bscale.z/2.0); [INFO] [stdout] 354 + new_brick.model = 1; [INFO] [stdout] 355 + new_brick.phys_type = phytype::Collider; [INFO] [stdout] 356 + new_brick.phys_shape = physhape::Box; [INFO] [stdout] 357 + new_brick.scale = bscale; [INFO] [stdout] 358 + new_brick.shader_vars.insert("Color".to_string(), ShadvType::Vec3(Vector3::new(parsef(r),parsef(g),parsef(b)))); [INFO] [stdout] 359 + neo_prop.push(new_brick); [INFO] [stdout] 360 + inside_obj = true; [INFO] [stdout] 361 + [INFO] [stdout] 362 + //old code needing adapting [INFO] [stdout] 363 + // if(arg.rot)object.rotateY((arg.rot-rot_offset.y)*3.14/180); [INFO] [stdout] 364 + // else object.rotateY((90-180)*3.14/180); [INFO] [stdout] 365 + // object.position.x = arg.pos.y+arg.sca.y/2; [INFO] [stdout] 366 + // object.position.y = arg.pos.z+arg.sca.z/2; [INFO] [stdout] 367 + // object.position.z = (arg.pos.x+arg.sca.x/2)*-1; [INFO] [stdout] 368 + // if(offset!==0){ [INFO] [stdout] 369 + // if(offset.x!=0)object.translateX(offset.x); [INFO] [stdout] 370 + // if(offset.y!=0)object.translateY(offset.y); [INFO] [stdout] 371 + // if(offset.z!=0)object.translateZ(offset.z); [INFO] [stdout] 372 + // } [INFO] [stdout] 373 + [INFO] [stdout] 374 + // if(ignore_bh_rot == false){ [INFO] [stdout] 375 + // if(arg.rot !== 180 || arg.rot !== 360){ [INFO] [stdout] 376 + // if(ignore_sca.x!=1)object.scale.x = arg.sca.y; [INFO] [stdout] 377 + // if(ignore_sca.y!=1)object.scale.y = arg.sca.z; [INFO] [stdout] 378 + // if(ignore_sca.z!=1)object.scale.z = arg.sca.x; [INFO] [stdout] 379 + // }else{ [INFO] [stdout] 380 + // if(translateX.x!=0)object.translateX(rot_offset.x-1); [INFO] [stdout] 381 + // if(ignore_sca.x!=1)object.scale.x = arg.sca.x; [INFO] [stdout] 382 + // if(ignore_sca.y!=1)object.scale.y = arg.sca.z; [INFO] [stdout] 383 + // if(ignore_sca.z!=1)object.scale.z = arg.sca.y; [INFO] [stdout] 384 + // } [INFO] [stdout] 385 + // }else{ [INFO] [stdout] 386 + // if(ignore_sca.x!=1)object.scale.x = arg.sca.x; [INFO] [stdout] 387 + // if(ignore_sca.z!=1)object.scale.z = arg.sca.y; [INFO] [stdout] 388 + // if(ignore_sca.y!=1)object.scale.y = arg.sca.z; [INFO] [stdout] 389 + // } [INFO] [stdout] 390 + [INFO] [stdout] 391 + [INFO] [stdout] 392 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/vmf.rs:136:20 [INFO] [stdout] | [INFO] [stdout] 136 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/vmf.rs:164:76 [INFO] [stdout] | [INFO] [stdout] 164 | ... current_brick.textures[parse(slot)-1] = parsei(&texture_id); [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `texture_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/vmf.rs:167:58 [INFO] [stdout] | [INFO] [stdout] 167 | ... current_brick.model = parsei(&modelid); [INFO] [stdout] | ^^^^^^^^ help: change this to: `modelid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/vmf.rs:170:59 [INFO] [stdout] | [INFO] [stdout] 170 | ... current_brick.shader = parsei(&modelid); [INFO] [stdout] | ^^^^^^^^ help: change this to: `modelid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/vmf.rs:186:20 [INFO] [stdout] | [INFO] [stdout] 186 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/vmf.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 204 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/vmf.rs:205:21 [INFO] [stdout] | [INFO] [stdout] 205 | / match dat.as_slice() { [INFO] [stdout] 206 | | ["+file", namet] => { [INFO] [stdout] 207 | | *current_script = namet.to_string(); [INFO] [stdout] ... | [INFO] [stdout] 210 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 205 ~ if let ["+file", namet] = dat.as_slice() { [INFO] [stdout] 206 + *current_script = namet.to_string(); [INFO] [stdout] 207 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/fs_system.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | let file = fs::read_to_string(location).unwrap(); [INFO] [stdout] | ------------------------------------------------- unnecessary `let` binding [INFO] [stdout] 7 | file [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 6 ~ [INFO] [stdout] 7 ~ fs::read_to_string(location).unwrap() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/vmf.rs:271:42 [INFO] [stdout] | [INFO] [stdout] 271 | neo_scripts.push(format!("")); [INFO] [stdout] | ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of a fallible conversion when an infallible one could be used [INFO] [stdout] --> src/cameras.rs:70:58 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn view_drop(&self) -> [[f32; 4]; 4] { self.view.try_into().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: converting `Matrix, Const<4>, ArrayStorage>` to `[[f32; 4]; 4]` cannot fail [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions [INFO] [stdout] = note: `#[warn(clippy::unnecessary_fallible_conversions)]` on by default [INFO] [stdout] help: use [INFO] [stdout] | [INFO] [stdout] 70 - pub fn view_drop(&self) -> [[f32; 4]; 4] { self.view.try_into().unwrap() } [INFO] [stdout] 70 + pub fn view_drop(&self) -> [[f32; 4]; 4] { self.view.into() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/vmf.rs:327:20 [INFO] [stdout] | [INFO] [stdout] 327 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of left operand [INFO] [stdout] --> src/cameras.rs:74:44 [INFO] [stdout] | [INFO] [stdout] 74 | model = model.prepend_translation(&(&self.position*-1.0)); [INFO] [stdout] | ^--------------^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: use the left value directly: `self.position` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] = note: `#[warn(clippy::op_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/vmf.rs:345:17 [INFO] [stdout] | [INFO] [stdout] 345 | / match dat.as_slice() { [INFO] [stdout] 346 | | [x,y,z, xs,ys,zs, r,g,b,a] => { [INFO] [stdout] ... | [INFO] [stdout] 392 | | _ => {} [INFO] [stdout] 393 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 345 ~ if let [x,y,z, xs,ys,zs, r,g,b,a] = dat.as_slice() { [INFO] [stdout] 346 + // for brk pos and scale yzx -> xyz [INFO] [stdout] 347 + [INFO] [stdout] 348 + let bscale = Vector3::new(parsef(ys), parsef(zs), parsef(xs))/2.0; [INFO] [stdout] 349 + [INFO] [stdout] 350 + let mut new_brick = Prop::new("what cat?".to_string()); [INFO] [stdout] 351 + new_brick.position = Vector3::new(parsef(y)+bscale.x/2.0, parsef(z)+bscale.y/2.0, parsef(x)+bscale.z/2.0); [INFO] [stdout] 352 + new_brick.model = 1; [INFO] [stdout] 353 + new_brick.phys_type = phytype::Collider; [INFO] [stdout] 354 + new_brick.phys_shape = physhape::Box; [INFO] [stdout] 355 + new_brick.scale = bscale; [INFO] [stdout] 356 + new_brick.shader_vars.insert("Color".to_string(), ShadvType::Vec3(Vector3::new(parsef(r),parsef(g),parsef(b)))); [INFO] [stdout] 357 + neo_prop.push(new_brick); [INFO] [stdout] 358 + inside_obj = true; [INFO] [stdout] 359 + [INFO] [stdout] 360 + //old code needing adapting [INFO] [stdout] 361 + // if(arg.rot)object.rotateY((arg.rot-rot_offset.y)*3.14/180); [INFO] [stdout] 362 + // else object.rotateY((90-180)*3.14/180); [INFO] [stdout] 363 + // object.position.x = arg.pos.y+arg.sca.y/2; [INFO] [stdout] 364 + // object.position.y = arg.pos.z+arg.sca.z/2; [INFO] [stdout] 365 + // object.position.z = (arg.pos.x+arg.sca.x/2)*-1; [INFO] [stdout] 366 + // if(offset!==0){ [INFO] [stdout] 367 + // if(offset.x!=0)object.translateX(offset.x); [INFO] [stdout] 368 + // if(offset.y!=0)object.translateY(offset.y); [INFO] [stdout] 369 + // if(offset.z!=0)object.translateZ(offset.z); [INFO] [stdout] 370 + // } [INFO] [stdout] 371 + [INFO] [stdout] 372 + // if(ignore_bh_rot == false){ [INFO] [stdout] 373 + // if(arg.rot !== 180 || arg.rot !== 360){ [INFO] [stdout] 374 + // if(ignore_sca.x!=1)object.scale.x = arg.sca.y; [INFO] [stdout] 375 + // if(ignore_sca.y!=1)object.scale.y = arg.sca.z; [INFO] [stdout] 376 + // if(ignore_sca.z!=1)object.scale.z = arg.sca.x; [INFO] [stdout] 377 + // }else{ [INFO] [stdout] 378 + // if(translateX.x!=0)object.translateX(rot_offset.x-1); [INFO] [stdout] 379 + // if(ignore_sca.x!=1)object.scale.x = arg.sca.x; [INFO] [stdout] 380 + // if(ignore_sca.y!=1)object.scale.y = arg.sca.z; [INFO] [stdout] 381 + // if(ignore_sca.z!=1)object.scale.z = arg.sca.y; [INFO] [stdout] 382 + // } [INFO] [stdout] 383 + // }else{ [INFO] [stdout] 384 + // if(ignore_sca.x!=1)object.scale.x = arg.sca.x; [INFO] [stdout] 385 + // if(ignore_sca.z!=1)object.scale.z = arg.sca.y; [INFO] [stdout] 386 + // if(ignore_sca.y!=1)object.scale.y = arg.sca.z; [INFO] [stdout] 387 + // } [INFO] [stdout] 388 + [INFO] [stdout] 389 + [INFO] [stdout] 390 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/ke_units.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn radians(dgr: f32) -> f32{return dgr*PI/180.0;} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 43 - pub fn radians(dgr: f32) -> f32{return dgr*PI/180.0;} [INFO] [stdout] 43 + pub fn radians(dgr: f32) -> f32{dgr*PI/180.0} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/ke_units.rs:44:33 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn degrees(rag: f32) -> f32{return rag*180.0/PI;} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 44 - pub fn degrees(rag: f32) -> f32{return rag*180.0/PI;} [INFO] [stdout] 44 + pub fn degrees(rag: f32) -> f32{rag*180.0/PI} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/physic_props.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | / return RaycastResult{ [INFO] [stdout] 107 | | hit: true, [INFO] [stdout] 108 | | point: Vector3::new(hit_point.x, hit_point.y, hit_point.z), [INFO] [stdout] 109 | | normal: Vector3::new(hit_normal.x, hit_normal.y, hit_normal.z), [INFO] [stdout] 110 | | whats: hites, [INFO] [stdout] 111 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 106 ~ RaycastResult{ [INFO] [stdout] 107 + hit: true, [INFO] [stdout] 108 + point: Vector3::new(hit_point.x, hit_point.y, hit_point.z), [INFO] [stdout] 109 + normal: Vector3::new(hit_normal.x, hit_normal.y, hit_normal.z), [INFO] [stdout] 110 + whats: hites, [INFO] [stdout] 111 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/physic_props.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | / return RaycastResult{ [INFO] [stdout] 114 | | hit: false, [INFO] [stdout] 115 | | point: Vector3::zeros(), [INFO] [stdout] 116 | | normal: Vector3::zeros(), [INFO] [stdout] 117 | | whats: None, [INFO] [stdout] 118 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 113 ~ RaycastResult{ [INFO] [stdout] 114 + hit: false, [INFO] [stdout] 115 + point: Vector3::zeros(), [INFO] [stdout] 116 + normal: Vector3::zeros(), [INFO] [stdout] 117 + whats: None, [INFO] [stdout] 118 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `PointLight` [INFO] [stdout] --> src/lights.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | / pub fn new () -> PointLight { [INFO] [stdout] 18 | | PointLight { [INFO] [stdout] 19 | | position: Vector3::new(0.0,0.0,0.0), [INFO] [stdout] 20 | | ambient: Vector3::new(0.05,0.05,0.05), [INFO] [stdout] ... | [INFO] [stdout] 28 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 16 + impl Default for PointLight { [INFO] [stdout] 17 + fn default() -> Self { [INFO] [stdout] 18 + Self::new() [INFO] [stdout] 19 + } [INFO] [stdout] 20 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/models.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn load_obj<'a>(location: &str, display: &'a glium::Display) -> Model { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 37 - pub fn load_obj<'a>(location: &str, display: &'a glium::Display) -> Model { [INFO] [stdout] 37 + pub fn load_obj(location: &str, display: &glium::Display) -> Model { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/physic_props.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | return rigid_body; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 246 - return rigid_body; [INFO] [stdout] 246 + rigid_body [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/models.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn load_fbx<'a>(location: &str, display: &'a glium::Display) -> Model { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 104 - pub fn load_fbx<'a>(location: &str, display: &'a glium::Display) -> Model { [INFO] [stdout] 104 + pub fn load_fbx(location: &str, display: &glium::Display) -> Model { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/models.rs:120:18 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn load_gltf<'a>(location: &str, display: &'a glium::Display) -> Model { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 120 - pub fn load_gltf<'a>(location: &str, display: &'a glium::Display) -> Model { [INFO] [stdout] 120 + pub fn load_gltf(location: &str, display: &glium::Display) -> Model { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `nalgebra::Matrix, nalgebra::Const<1>, nalgebra::ArrayStorage>` [INFO] [stdout] --> src/physic_props.rs:400:31 [INFO] [stdout] | [INFO] [stdout] 400 | rb.set_linvel(prop.velocity.into(), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `prop.velocity` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/physic_props.rs:407:34 [INFO] [stdout] | [INFO] [stdout] 407 | if prop.phys_id == -1 || self.phys_handles.len() == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `self.phys_handles.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:172:32 [INFO] [stdout] | [INFO] [stdout] 172 | position: [posicao[q as usize][0] as f32,posicao[q as usize][1] as f32,posicao[q as usize][2] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `posicao[q as usize][0]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:172:62 [INFO] [stdout] | [INFO] [stdout] 172 | position: [posicao[q as usize][0] as f32,posicao[q as usize][1] as f32,posicao[q as usize][2] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `posicao[q as usize][1]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:172:92 [INFO] [stdout] | [INFO] [stdout] 172 | position: [posicao[q as usize][0] as f32,posicao[q as usize][1] as f32,posicao[q as usize][2] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `posicao[q as usize][2]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:173:30 [INFO] [stdout] | [INFO] [stdout] 173 | normal: [normais[q as usize][0] as f32,normais[q as usize][1] as f32,normais[q as usize][2] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `normais[q as usize][0]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `nalgebra::Matrix, nalgebra::Const<1>, nalgebra::ArrayStorage>` [INFO] [stdout] --> src/physic_props.rs:451:23 [INFO] [stdout] | [INFO] [stdout] 451 | rb.set_linvel(push.into(), true); [INFO] [stdout] | ^^^^^^^^^^^ help: consider removing `.into()`: `push` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:173:60 [INFO] [stdout] | [INFO] [stdout] 173 | normal: [normais[q as usize][0] as f32,normais[q as usize][1] as f32,normais[q as usize][2] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `normais[q as usize][1]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:173:90 [INFO] [stdout] | [INFO] [stdout] 173 | normal: [normais[q as usize][0] as f32,normais[q as usize][1] as f32,normais[q as usize][2] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `normais[q as usize][2]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:174:34 [INFO] [stdout] | [INFO] [stdout] 174 | tex_coords: [textura[q as usize][0] as f32,textura[q as usize][1] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `textura[q as usize][0]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`f32` -> `f32`) [INFO] [stdout] --> src/models.rs:174:64 [INFO] [stdout] | [INFO] [stdout] 174 | tex_coords: [textura[q as usize][0] as f32,textura[q as usize][1] as f32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `textura[q as usize][1]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `nalgebra::Matrix, nalgebra::Const<1>, nalgebra::ArrayStorage>` [INFO] [stdout] --> src/physic_props.rs:461:23 [INFO] [stdout] | [INFO] [stdout] 461 | rb.set_linvel(Vector3::new(push.x, rb.linvel().y, push.y).into(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `Vector3::new(push.x, rb.linvel().y, push.y)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used to substitute value for `Option::None` [INFO] [stdout] --> src/char_control.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | let a = input.virtual_keycode.unwrap_or_else(|| winit::event::VirtualKeyCode::NoConvert); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default [INFO] [stdout] help: use `unwrap_or` instead [INFO] [stdout] | [INFO] [stdout] 130 - let a = input.virtual_keycode.unwrap_or_else(|| winit::event::VirtualKeyCode::NoConvert); [INFO] [stdout] 130 + let a = input.virtual_keycode.unwrap_or(winit::event::VirtualKeyCode::NoConvert); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> src/char_control.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | / if self.pitch > 89.0 [INFO] [stdout] 196 | | {self.pitch = 89.0;} [INFO] [stdout] 197 | | if self.pitch < -89.0 [INFO] [stdout] 198 | | {self.pitch = -89.0;} [INFO] [stdout] | |_________________________________________^ help: replace with clamp: `self.pitch = self.pitch.clamp(-89.0, 89.0);` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min, min.is_nan(), or max.is_nan() [INFO] [stdout] = note: clamp returns NaN if the input is NaN [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] = note: `#[warn(clippy::manual_clamp)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `args.get(0)` [INFO] [stdout] --> src/script.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | let arg = args.get(0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: try: `args.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/menu_system.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | *texturecount = *texturecount + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `*texturecount += 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] = note: `#[warn(clippy::assign_op_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/menu_system.rs:65:87 [INFO] [stdout] | [INFO] [stdout] 65 | texturez.insert(*texturecount, Texture::craft(&format!("{location}.png"), &display)); [INFO] [stdout] | ^^^^^^^^ help: change this to: `display` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/script.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | return Ok(fvalue); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 106 - return Ok(fvalue); [INFO] [stdout] 106 + Ok(fvalue) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/textures.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | url: format!("betternot") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"betternot".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/kbf.rs:137:20 [INFO] [stdout] | [INFO] [stdout] 137 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] = note: `#[warn(clippy::chars_next_cmp)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/kbf.rs:165:76 [INFO] [stdout] | [INFO] [stdout] 165 | ... current_brick.textures[parse(slot)-1] = parsei(&texture_id); [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `texture_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/kbf.rs:168:58 [INFO] [stdout] | [INFO] [stdout] 168 | ... current_brick.model = parsei(&modelid); [INFO] [stdout] | ^^^^^^^^ help: change this to: `modelid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/kbf.rs:171:59 [INFO] [stdout] | [INFO] [stdout] 171 | ... current_brick.shader = parsei(&modelid); [INFO] [stdout] | ^^^^^^^^ help: change this to: `modelid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/kbf.rs:187:20 [INFO] [stdout] | [INFO] [stdout] 187 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/kbf.rs:205:20 [INFO] [stdout] | [INFO] [stdout] 205 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/kbf.rs:206:21 [INFO] [stdout] | [INFO] [stdout] 206 | / match dat.as_slice() { [INFO] [stdout] 207 | | ["+file", namet] => { [INFO] [stdout] 208 | | *current_script = namet.to_string(); [INFO] [stdout] ... | [INFO] [stdout] 211 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 206 ~ if let ["+file", namet] = dat.as_slice() { [INFO] [stdout] 207 + *current_script = namet.to_string(); [INFO] [stdout] 208 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/kbf.rs:273:42 [INFO] [stdout] | [INFO] [stdout] 273 | neo_scripts.push(format!("")); [INFO] [stdout] | ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/kbf.rs:329:20 [INFO] [stdout] | [INFO] [stdout] 329 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/script.rs:721:5 [INFO] [stdout] | [INFO] [stdout] 721 | *texturecount = *texturecount + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `*texturecount += 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/kbf.rs:347:17 [INFO] [stdout] | [INFO] [stdout] 347 | / match dat.as_slice() { [INFO] [stdout] 348 | | [x,y,z, xs,ys,zs, r,g,b,a] => { [INFO] [stdout] ... | [INFO] [stdout] 394 | | _ => {} [INFO] [stdout] 395 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 347 ~ if let [x,y,z, xs,ys,zs, r,g,b,a] = dat.as_slice() { [INFO] [stdout] 348 + // for brk pos and scale yzx -> xyz [INFO] [stdout] 349 + [INFO] [stdout] 350 + let bscale = Vector3::new(parsef(ys), parsef(zs), parsef(xs))/2.0; [INFO] [stdout] 351 + [INFO] [stdout] 352 + let mut new_brick = Prop::new("what cat?".to_string()); [INFO] [stdout] 353 + new_brick.position = Vector3::new(parsef(y)+bscale.x/2.0, parsef(z)+bscale.y/2.0, parsef(x)+bscale.z/2.0); [INFO] [stdout] 354 + new_brick.model = 1; [INFO] [stdout] 355 + new_brick.phys_type = phytype::Collider; [INFO] [stdout] 356 + new_brick.phys_shape = physhape::Box; [INFO] [stdout] 357 + new_brick.scale = bscale; [INFO] [stdout] 358 + new_brick.shader_vars.insert("Color".to_string(), ShadvType::Vec3(Vector3::new(parsef(r),parsef(g),parsef(b)))); [INFO] [stdout] 359 + neo_prop.push(new_brick); [INFO] [stdout] 360 + inside_obj = true; [INFO] [stdout] 361 + [INFO] [stdout] 362 + //old code needing adapting [INFO] [stdout] 363 + // if(arg.rot)object.rotateY((arg.rot-rot_offset.y)*3.14/180); [INFO] [stdout] 364 + // else object.rotateY((90-180)*3.14/180); [INFO] [stdout] 365 + // object.position.x = arg.pos.y+arg.sca.y/2; [INFO] [stdout] 366 + // object.position.y = arg.pos.z+arg.sca.z/2; [INFO] [stdout] 367 + // object.position.z = (arg.pos.x+arg.sca.x/2)*-1; [INFO] [stdout] 368 + // if(offset!==0){ [INFO] [stdout] 369 + // if(offset.x!=0)object.translateX(offset.x); [INFO] [stdout] 370 + // if(offset.y!=0)object.translateY(offset.y); [INFO] [stdout] 371 + // if(offset.z!=0)object.translateZ(offset.z); [INFO] [stdout] 372 + // } [INFO] [stdout] 373 + [INFO] [stdout] 374 + // if(ignore_bh_rot == false){ [INFO] [stdout] 375 + // if(arg.rot !== 180 || arg.rot !== 360){ [INFO] [stdout] 376 + // if(ignore_sca.x!=1)object.scale.x = arg.sca.y; [INFO] [stdout] 377 + // if(ignore_sca.y!=1)object.scale.y = arg.sca.z; [INFO] [stdout] 378 + // if(ignore_sca.z!=1)object.scale.z = arg.sca.x; [INFO] [stdout] 379 + // }else{ [INFO] [stdout] 380 + // if(translateX.x!=0)object.translateX(rot_offset.x-1); [INFO] [stdout] 381 + // if(ignore_sca.x!=1)object.scale.x = arg.sca.x; [INFO] [stdout] 382 + // if(ignore_sca.y!=1)object.scale.y = arg.sca.z; [INFO] [stdout] 383 + // if(ignore_sca.z!=1)object.scale.z = arg.sca.y; [INFO] [stdout] 384 + // } [INFO] [stdout] 385 + // }else{ [INFO] [stdout] 386 + // if(ignore_sca.x!=1)object.scale.x = arg.sca.x; [INFO] [stdout] 387 + // if(ignore_sca.z!=1)object.scale.z = arg.sca.y; [INFO] [stdout] 388 + // if(ignore_sca.y!=1)object.scale.y = arg.sca.z; [INFO] [stdout] 389 + // } [INFO] [stdout] 390 + [INFO] [stdout] 391 + [INFO] [stdout] 392 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/script.rs:745:5 [INFO] [stdout] | [INFO] [stdout] 745 | *modelcount = *modelcount + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `*modelcount += 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/script.rs:769:5 [INFO] [stdout] | [INFO] [stdout] 769 | *modelcount = *modelcount + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `*modelcount += 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/script.rs:871:25 [INFO] [stdout] | [INFO] [stdout] 871 | Ok(JsValue::Integer(i as i32)) [INFO] [stdout] | ^^^^^^^^ help: try: `i` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/script.rs:883:5 [INFO] [stdout] | [INFO] [stdout] 883 | / match w { [INFO] [stdout] 884 | | KEmenuTypes::image(awa) => { [INFO] [stdout] 885 | | awa.texture = st; [INFO] [stdout] 886 | | }, [INFO] [stdout] 887 | | _ => () [INFO] [stdout] 888 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 883 ~ if let KEmenuTypes::image(awa) = w { [INFO] [stdout] 884 + awa.texture = st; [INFO] [stdout] 885 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/vmf.rs:136:20 [INFO] [stdout] | [INFO] [stdout] 136 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/script.rs:915:25 [INFO] [stdout] | [INFO] [stdout] 915 | Ok(JsValue::Integer(i as i32)) [INFO] [stdout] | ^^^^^^^^ help: try: `i` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/vmf.rs:164:76 [INFO] [stdout] | [INFO] [stdout] 164 | ... current_brick.textures[parse(slot)-1] = parsei(&texture_id); [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `texture_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/script.rs:931:5 [INFO] [stdout] | [INFO] [stdout] 931 | / match w { [INFO] [stdout] 932 | | KEmenuTypes::text(awa) => { [INFO] [stdout] 933 | | awa.text = rawtext [INFO] [stdout] 934 | | }, [INFO] [stdout] 935 | | _ => () [INFO] [stdout] 936 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 931 ~ if let KEmenuTypes::text(awa) = w { [INFO] [stdout] 932 + awa.text = rawtext [INFO] [stdout] 933 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/vmf.rs:167:58 [INFO] [stdout] | [INFO] [stdout] 167 | ... current_brick.model = parsei(&modelid); [INFO] [stdout] | ^^^^^^^^ help: change this to: `modelid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/vmf.rs:170:59 [INFO] [stdout] | [INFO] [stdout] 170 | ... current_brick.shader = parsei(&modelid); [INFO] [stdout] | ^^^^^^^^ help: change this to: `modelid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/vmf.rs:186:20 [INFO] [stdout] | [INFO] [stdout] 186 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/vmf.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 204 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/vmf.rs:205:21 [INFO] [stdout] | [INFO] [stdout] 205 | / match dat.as_slice() { [INFO] [stdout] 206 | | ["+file", namet] => { [INFO] [stdout] 207 | | *current_script = namet.to_string(); [INFO] [stdout] ... | [INFO] [stdout] 210 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 205 ~ if let ["+file", namet] = dat.as_slice() { [INFO] [stdout] 206 + *current_script = namet.to_string(); [INFO] [stdout] 207 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/vmf.rs:271:42 [INFO] [stdout] | [INFO] [stdout] 271 | neo_scripts.push(format!("")); [INFO] [stdout] | ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should use the `starts_with` method [INFO] [stdout] --> src/vmf.rs:327:20 [INFO] [stdout] | [INFO] [stdout] 327 | if dat.first().unwrap().chars().next().unwrap() == '+'{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `dat.first().unwrap().starts_with('+')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/vmf.rs:345:17 [INFO] [stdout] | [INFO] [stdout] 345 | / match dat.as_slice() { [INFO] [stdout] 346 | | [x,y,z, xs,ys,zs, r,g,b,a] => { [INFO] [stdout] ... | [INFO] [stdout] 392 | | _ => {} [INFO] [stdout] 393 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 345 ~ if let [x,y,z, xs,ys,zs, r,g,b,a] = dat.as_slice() { [INFO] [stdout] 346 + // for brk pos and scale yzx -> xyz [INFO] [stdout] 347 + [INFO] [stdout] 348 + let bscale = Vector3::new(parsef(ys), parsef(zs), parsef(xs))/2.0; [INFO] [stdout] 349 + [INFO] [stdout] 350 + let mut new_brick = Prop::new("what cat?".to_string()); [INFO] [stdout] 351 + new_brick.position = Vector3::new(parsef(y)+bscale.x/2.0, parsef(z)+bscale.y/2.0, parsef(x)+bscale.z/2.0); [INFO] [stdout] 352 + new_brick.model = 1; [INFO] [stdout] 353 + new_brick.phys_type = phytype::Collider; [INFO] [stdout] 354 + new_brick.phys_shape = physhape::Box; [INFO] [stdout] 355 + new_brick.scale = bscale; [INFO] [stdout] 356 + new_brick.shader_vars.insert("Color".to_string(), ShadvType::Vec3(Vector3::new(parsef(r),parsef(g),parsef(b)))); [INFO] [stdout] 357 + neo_prop.push(new_brick); [INFO] [stdout] 358 + inside_obj = true; [INFO] [stdout] 359 + [INFO] [stdout] 360 + //old code needing adapting [INFO] [stdout] 361 + // if(arg.rot)object.rotateY((arg.rot-rot_offset.y)*3.14/180); [INFO] [stdout] 362 + // else object.rotateY((90-180)*3.14/180); [INFO] [stdout] 363 + // object.position.x = arg.pos.y+arg.sca.y/2; [INFO] [stdout] 364 + // object.position.y = arg.pos.z+arg.sca.z/2; [INFO] [stdout] 365 + // object.position.z = (arg.pos.x+arg.sca.x/2)*-1; [INFO] [stdout] 366 + // if(offset!==0){ [INFO] [stdout] 367 + // if(offset.x!=0)object.translateX(offset.x); [INFO] [stdout] 368 + // if(offset.y!=0)object.translateY(offset.y); [INFO] [stdout] 369 + // if(offset.z!=0)object.translateZ(offset.z); [INFO] [stdout] 370 + // } [INFO] [stdout] 371 + [INFO] [stdout] 372 + // if(ignore_bh_rot == false){ [INFO] [stdout] 373 + // if(arg.rot !== 180 || arg.rot !== 360){ [INFO] [stdout] 374 + // if(ignore_sca.x!=1)object.scale.x = arg.sca.y; [INFO] [stdout] 375 + // if(ignore_sca.y!=1)object.scale.y = arg.sca.z; [INFO] [stdout] 376 + // if(ignore_sca.z!=1)object.scale.z = arg.sca.x; [INFO] [stdout] 377 + // }else{ [INFO] [stdout] 378 + // if(translateX.x!=0)object.translateX(rot_offset.x-1); [INFO] [stdout] 379 + // if(ignore_sca.x!=1)object.scale.x = arg.sca.x; [INFO] [stdout] 380 + // if(ignore_sca.y!=1)object.scale.y = arg.sca.z; [INFO] [stdout] 381 + // if(ignore_sca.z!=1)object.scale.z = arg.sca.y; [INFO] [stdout] 382 + // } [INFO] [stdout] 383 + // }else{ [INFO] [stdout] 384 + // if(ignore_sca.x!=1)object.scale.x = arg.sca.x; [INFO] [stdout] 385 + // if(ignore_sca.z!=1)object.scale.z = arg.sca.y; [INFO] [stdout] 386 + // if(ignore_sca.y!=1)object.scale.y = arg.sca.z; [INFO] [stdout] 387 + // } [INFO] [stdout] 388 + [INFO] [stdout] 389 + [INFO] [stdout] 390 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/physic_props.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | / return RaycastResult{ [INFO] [stdout] 107 | | hit: true, [INFO] [stdout] 108 | | point: Vector3::new(hit_point.x, hit_point.y, hit_point.z), [INFO] [stdout] 109 | | normal: Vector3::new(hit_normal.x, hit_normal.y, hit_normal.z), [INFO] [stdout] 110 | | whats: hites, [INFO] [stdout] 111 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 106 ~ RaycastResult{ [INFO] [stdout] 107 + hit: true, [INFO] [stdout] 108 + point: Vector3::new(hit_point.x, hit_point.y, hit_point.z), [INFO] [stdout] 109 + normal: Vector3::new(hit_normal.x, hit_normal.y, hit_normal.z), [INFO] [stdout] 110 + whats: hites, [INFO] [stdout] 111 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/physic_props.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | / return RaycastResult{ [INFO] [stdout] 114 | | hit: false, [INFO] [stdout] 115 | | point: Vector3::zeros(), [INFO] [stdout] 116 | | normal: Vector3::zeros(), [INFO] [stdout] 117 | | whats: None, [INFO] [stdout] 118 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 113 ~ RaycastResult{ [INFO] [stdout] 114 + hit: false, [INFO] [stdout] 115 + point: Vector3::zeros(), [INFO] [stdout] 116 + normal: Vector3::zeros(), [INFO] [stdout] 117 + whats: None, [INFO] [stdout] 118 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/script.rs:1358:39 [INFO] [stdout] | [INFO] [stdout] 1358 | pub fn triggerlis(&mut self, what:&String, data: &String){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 1358 - pub fn triggerlis(&mut self, what:&String, data: &String){ [INFO] [stdout] 1358 + pub fn triggerlis(&mut self, what:&str, data: &String){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/script.rs:1358:54 [INFO] [stdout] | [INFO] [stdout] 1358 | pub fn triggerlis(&mut self, what:&String, data: &String){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 1358 - pub fn triggerlis(&mut self, what:&String, data: &String){ [INFO] [stdout] 1358 + pub fn triggerlis(&mut self, what:&String, data: &str){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/physic_props.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | return rigid_body; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 246 - return rigid_body; [INFO] [stdout] 246 + rigid_body [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/garbage_collector.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / let mut found: Vec> = Vec::new(); [INFO] [stdout] 14 | | found.push(Vec::new()); // found[0] = Vec::new(); //scripts [INFO] [stdout] 15 | | found.push(Vec::new()); // found[1] = Vec::new(); //textures [INFO] [stdout] 16 | | found.push(Vec::new()); // found[2] = Vec::new(); //models [INFO] [stdout] 17 | | found.push(Vec::new()); // found[3] = Vec::new(); //shaders [INFO] [stdout] | |___________________________^ help: consider using the `vec![]` macro: `let mut found: Vec> = vec![..];` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push [INFO] [stdout] = note: `#[warn(clippy::vec_init_then_push)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | if !found[1].contains(&tex) {found[1].push(*tex);} [INFO] [stdout] | ^^^^ help: change this to: `tex` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:24:31 [INFO] [stdout] | [INFO] [stdout] 24 | if !found[2].contains(&&pr.model) {found[2].push(pr.model);} [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `(&pr.model)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:25:31 [INFO] [stdout] | [INFO] [stdout] 25 | if !found[3].contains(&&pr.shader) {found[3].push(pr.shader);} [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `(&pr.shader)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/garbage_collector.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | / let mut found: Vec> = Vec::new(); [INFO] [stdout] 33 | | found.push(Vec::new()); // found[0] = Vec::new(); //scripts [INFO] [stdout] 34 | | found.push(Vec::new()); // found[1] = Vec::new(); //textures [INFO] [stdout] 35 | | found.push(Vec::new()); // found[2] = Vec::new(); //models [INFO] [stdout] 36 | | found.push(Vec::new()); // found[3] = Vec::new(); //shaders [INFO] [stdout] | |___________________________^ help: consider using the `vec![]` macro: `let mut found: Vec> = vec![..];` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `nalgebra::Matrix, nalgebra::Const<1>, nalgebra::ArrayStorage>` [INFO] [stdout] --> src/physic_props.rs:400:31 [INFO] [stdout] | [INFO] [stdout] 400 | rb.set_linvel(prop.velocity.into(), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `prop.velocity` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:44:39 [INFO] [stdout] | [INFO] [stdout] 44 | if !found[3].contains(&&pr.shader) {found[3].push(pr.shader);} [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `(&pr.shader)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:48:39 [INFO] [stdout] | [INFO] [stdout] 48 | if !found[3].contains(&&pr.shader) {found[3].push(pr.shader);} [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `(&pr.shader)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/physic_props.rs:407:34 [INFO] [stdout] | [INFO] [stdout] 407 | if prop.phys_id == -1 || self.phys_handles.len() == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `self.phys_handles.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `nalgebra::Matrix, nalgebra::Const<1>, nalgebra::ArrayStorage>` [INFO] [stdout] --> src/physic_props.rs:451:23 [INFO] [stdout] | [INFO] [stdout] 451 | rb.set_linvel(push.into(), true); [INFO] [stdout] | ^^^^^^^^^^^ help: consider removing `.into()`: `push` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:84:39 [INFO] [stdout] | [INFO] [stdout] 84 | if !choppingblock[1].contains(&tx) { [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:85:39 [INFO] [stdout] | [INFO] [stdout] 85 | if ignorelist[1].contains(&tx) {continue;} [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | if texturez.get(&tx).unwrap().bebufpointer { [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:102:39 [INFO] [stdout] | [INFO] [stdout] 102 | if !choppingblock[2].contains(&tx) { [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:103:39 [INFO] [stdout] | [INFO] [stdout] 103 | if ignorelist[2].contains(&tx) {continue;} [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `nalgebra::Matrix, nalgebra::Const<1>, nalgebra::ArrayStorage>` [INFO] [stdout] --> src/physic_props.rs:461:23 [INFO] [stdout] | [INFO] [stdout] 461 | rb.set_linvel(Vector3::new(push.x, rb.linvel().y, push.y).into(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `Vector3::new(push.x, rb.linvel().y, push.y)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:115:39 [INFO] [stdout] | [INFO] [stdout] 115 | if !choppingblock[3].contains(&tx) { [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:116:39 [INFO] [stdout] | [INFO] [stdout] 116 | if ignorelist[3].contains(&tx) {continue;} [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/main.rs:85:24 [INFO] [stdout] | [INFO] [stdout] 85 | static ref WORLDS: RwLock, Vec)>> = RwLock::new(HashMap::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used to substitute value for `Option::None` [INFO] [stdout] --> src/char_control.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | let a = input.virtual_keycode.unwrap_or_else(|| winit::event::VirtualKeyCode::NoConvert); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default [INFO] [stdout] help: use `unwrap_or` instead [INFO] [stdout] | [INFO] [stdout] 130 - let a = input.virtual_keycode.unwrap_or_else(|| winit::event::VirtualKeyCode::NoConvert); [INFO] [stdout] 130 + let a = input.virtual_keycode.unwrap_or(winit::event::VirtualKeyCode::NoConvert); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> src/char_control.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | / if self.pitch > 89.0 [INFO] [stdout] 196 | | {self.pitch = 89.0;} [INFO] [stdout] 197 | | if self.pitch < -89.0 [INFO] [stdout] 198 | | {self.pitch = -89.0;} [INFO] [stdout] | |_________________________________________^ help: replace with clamp: `self.pitch = self.pitch.clamp(-89.0, 89.0);` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min, min.is_nan(), or max.is_nan() [INFO] [stdout] = note: clamp returns NaN if the input is NaN [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] = note: `#[warn(clippy::manual_clamp)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `args.get(0)` [INFO] [stdout] --> src/script.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | let arg = args.get(0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: try: `args.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/main.rs:102:70 [INFO] [stdout] | [INFO] [stdout] 102 | pub static ref FIRST: Arc> = Arc::new(RwLock::new(format!(""))); [INFO] [stdout] | ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/script.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | return Ok(fvalue); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 106 - return Ok(fvalue); [INFO] [stdout] 106 + Ok(fvalue) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/main.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | if keconf.override_shader.len()==0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `keconf.override_shader.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/main.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | fn loadmap(map:&String, propz: &mut st...splay, worldid: u32) -> (Environment, Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:301:47 [INFO] [stdout] | [INFO] [stdout] 301 | let map = load(&("./maps/".to_owned()+&map)); [INFO] [stdout] | ^^^^ help: change this to: `map` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:306:89 [INFO] [stdout] | [INFO] [stdout] 306 | texturez.insert(txCount+tx.0, Texture::craft(&("./textures/".to_owned()+&tx.1), &display)); [INFO] [stdout] | ^^^^^^^^ help: change this to: `display` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:314:91 [INFO] [stdout] | [INFO] [stdout] 314 | modelz.insert(mdCount+md.0, models::load_obj(&("./models/".to_owned()+&md.1), &display)); [INFO] [stdout] | ^^^^^^^^ help: change this to: `display` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:316:91 [INFO] [stdout] | [INFO] [stdout] 316 | modelz.insert(mdCount+md.0, models::load_fbx(&("./models/".to_owned()+&md.1), &display)); [INFO] [stdout] | ^^^^^^^^ help: change this to: `display` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:318:92 [INFO] [stdout] | [INFO] [stdout] 318 | modelz.insert(mdCount+md.0, models::load_gltf(&("./models/".to_owned()+&md.1), &display)); [INFO] [stdout] | ^^^^^^^^ help: change this to: `display` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:327:64 [INFO] [stdout] | [INFO] [stdout] 327 | shaderz.insert(shCount+sh.0, Shader::craft(&de_shader, &display)); [INFO] [stdout] | ^^^^^^^^ help: change this to: `display` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the variable `partnp` is used as a loop counter [INFO] [stdout] --> src/main.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | for np in map.props { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: consider using: `for (partnp, np) in (propz.len() as i32..).zip(map.props.into_iter())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop [INFO] [stdout] = note: `#[warn(clippy::explicit_counter_loop)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `usize` is unnecessary [INFO] [stdout] --> src/main.rs:342:43 [INFO] [stdout] | [INFO] [stdout] 342 | let mut current_new_texture = 0 as usize; [INFO] [stdout] | ^^^^^^^^^^ help: try: `0_usize` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/main.rs:346:17 [INFO] [stdout] | [INFO] [stdout] 346 | np.textures[current_new_texture] = np.textures[current_new_texture]+txCount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `np.textures[current_new_texture] += txCount` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/main.rs:351:17 [INFO] [stdout] | [INFO] [stdout] 351 | np.model = np.model+mdCount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `np.model += mdCount` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/main.rs:355:17 [INFO] [stdout] | [INFO] [stdout] 355 | np.shader = np.shader+shCount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `np.shader += shCount` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the variable `partnp` is used as a loop counter [INFO] [stdout] --> src/main.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | for nl in map.lights { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `for (partnp, nl) in (lightz.len()..).zip(map.lights.into_iter())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:431:88 [INFO] [stdout] | [INFO] [stdout] 431 | real_char = Character::new(keconf.char_pov, &display, &mut propz, &mut modelz, &mut phys_world, &mut camera_mapc); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `phys_world` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/main.rs:437:12 [INFO] [stdout] | [INFO] [stdout] 437 | if world_emv.spawnpoints.len() != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!world_emv.spawnpoints.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:438:26 [INFO] [stdout] | [INFO] [stdout] 438 | real_char.tp(&mut phys_world, &mut propz, world_emv.spawnpoints[0]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `phys_world` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:458:53 [INFO] [stdout] | [INFO] [stdout] 458 | js_world.add_script("./scripts/".to_owned()+&scrpt); [INFO] [stdout] | ^^^^^^ help: change this to: `scrpt` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/main.rs:498:33 [INFO] [stdout] | [INFO] [stdout] 498 | if *firs == format!("") { [INFO] [stdout] | ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/main.rs:527:33 [INFO] [stdout] | [INFO] [stdout] 527 | ... format!("\"\"") [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"\"\"".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/script.rs:721:5 [INFO] [stdout] | [INFO] [stdout] 721 | *texturecount = *texturecount + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `*texturecount += 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/script.rs:745:5 [INFO] [stdout] | [INFO] [stdout] 745 | *modelcount = *modelcount + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `*modelcount += 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/script.rs:769:5 [INFO] [stdout] | [INFO] [stdout] 769 | *modelcount = *modelcount + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `*modelcount += 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/script.rs:871:25 [INFO] [stdout] | [INFO] [stdout] 871 | Ok(JsValue::Integer(i as i32)) [INFO] [stdout] | ^^^^^^^^ help: try: `i` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/script.rs:883:5 [INFO] [stdout] | [INFO] [stdout] 883 | / match w { [INFO] [stdout] 884 | | KEmenuTypes::image(awa) => { [INFO] [stdout] 885 | | awa.texture = st; [INFO] [stdout] 886 | | }, [INFO] [stdout] 887 | | _ => () [INFO] [stdout] 888 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 883 ~ if let KEmenuTypes::image(awa) = w { [INFO] [stdout] 884 + awa.texture = st; [INFO] [stdout] 885 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/script.rs:915:25 [INFO] [stdout] | [INFO] [stdout] 915 | Ok(JsValue::Integer(i as i32)) [INFO] [stdout] | ^^^^^^^^ help: try: `i` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/script.rs:931:5 [INFO] [stdout] | [INFO] [stdout] 931 | / match w { [INFO] [stdout] 932 | | KEmenuTypes::text(awa) => { [INFO] [stdout] 933 | | awa.text = rawtext [INFO] [stdout] 934 | | }, [INFO] [stdout] 935 | | _ => () [INFO] [stdout] 936 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 931 ~ if let KEmenuTypes::text(awa) = w { [INFO] [stdout] 932 + awa.text = rawtext [INFO] [stdout] 933 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/main.rs:786:13 [INFO] [stdout] | [INFO] [stdout] 786 | / match receiver.try_recv() { [INFO] [stdout] 787 | | Ok(packet) => { [INFO] [stdout] 788 | | js_world.triggerlis(&"client_update".to_string(), &packet); [INFO] [stdout] ... | [INFO] [stdout] 791 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 786 ~ if let Ok(packet) = receiver.try_recv() { [INFO] [stdout] 787 + js_world.triggerlis(&"client_update".to_string(), &packet); [INFO] [stdout] 788 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/main.rs:793:13 [INFO] [stdout] | [INFO] [stdout] 793 | / match receiverEmit.try_recv() { [INFO] [stdout] 794 | | Ok(packet) => { [INFO] [stdout] 795 | | let socket = socket.as_ref().unwrap(); [INFO] [stdout] 796 | | socket [INFO] [stdout] ... | [INFO] [stdout] 800 | | _ => (), [INFO] [stdout] 801 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 793 ~ if let Ok(packet) = receiverEmit.try_recv() { [INFO] [stdout] 794 + let socket = socket.as_ref().unwrap(); [INFO] [stdout] 795 + socket [INFO] [stdout] 796 + .emit("update", packet) [INFO] [stdout] 797 + .expect("Server unreachable"); [INFO] [stdout] 798 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `match` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:862:17 [INFO] [stdout] | [INFO] [stdout] 862 | / match event { [INFO] [stdout] 863 | | DeviceEvent::MouseMotion { delta } => { [INFO] [stdout] 864 | | if(!keconf.headless){ [INFO] [stdout] 865 | | let mut propz: std::sync::RwLockWriteGuard> = PROPS.try_write().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 878 | | _ => {} [INFO] [stdout] 879 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/main.rs:861:45 [INFO] [stdout] | [INFO] [stdout] 861 | Event::DeviceEvent { device_id, event } => { [INFO] [stdout] | ^^^^^ replace this binding [INFO] [stdout] 862 | match event { [INFO] [stdout] 863 | DeviceEvent::MouseMotion { delta } => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern, prefixed by `event: ` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:864:25 [INFO] [stdout] | [INFO] [stdout] 864 | / if(!keconf.headless){ [INFO] [stdout] 865 | | let mut propz: std::sync::RwLockWriteGuard> = PROPS.try_write().unwrap(); [INFO] [stdout] 866 | | let mut phys_world = PW.write().unwrap(); [INFO] [stdout] 867 | | let mut _main_camera = MAIN_CAM.write().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 876 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 863 ~ DeviceEvent::MouseMotion { delta } [INFO] [stdout] 864 ~ if(!keconf.headless)=> { [INFO] [stdout] 865 | let mut propz: std::sync::RwLockWriteGuard> = PROPS.try_write().unwrap(); [INFO] [stdout] ... [INFO] [stdout] 875 | } [INFO] [stdout] 876 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/main.rs:862:17 [INFO] [stdout] | [INFO] [stdout] 862 | / match event { [INFO] [stdout] 863 | | DeviceEvent::MouseMotion { delta } => { [INFO] [stdout] 864 | | if(!keconf.headless){ [INFO] [stdout] 865 | | let mut propz: std::sync::RwLockWriteGuard> = PROPS.try_write().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 878 | | _ => {} [INFO] [stdout] 879 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 862 ~ if let DeviceEvent::MouseMotion { delta } = event { [INFO] [stdout] 863 + if(!keconf.headless){ [INFO] [stdout] 864 + let mut propz: std::sync::RwLockWriteGuard> = PROPS.try_write().unwrap(); [INFO] [stdout] 865 + let mut phys_world = PW.write().unwrap(); [INFO] [stdout] 866 + let mut _main_camera = MAIN_CAM.write().unwrap(); [INFO] [stdout] 867 + let mut camera_map = CAMERAS.write().unwrap(); [INFO] [stdout] 868 + let (width, height) = display.get_framebuffer_dimensions(); [INFO] [stdout] 869 + let a = Vector2::new(delta.0 as f32, delta.1 as f32); [INFO] [stdout] 870 + real_char.interp_mouse(&mut phys_world, &mut propz, &mut camera_map, a, screen_size, delta_time*keconf.mouse_sensitivity); [INFO] [stdout] 871 + [INFO] [stdout] 872 + if cursor_locked { [INFO] [stdout] 873 + v.set_cursor_position(LogicalPosition::new(width/2, height/2)); [INFO] [stdout] 874 + } [INFO] [stdout] 875 + } [INFO] [stdout] 876 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/main.rs:891:24 [INFO] [stdout] | [INFO] [stdout] 891 | if location == "" { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `location.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] = note: `#[warn(clippy::comparison_to_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/main.rs:900:24 [INFO] [stdout] | [INFO] [stdout] 900 | if location == "" { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `location.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:909:49 [INFO] [stdout] | [INFO] [stdout] 909 | let modael = modelz.get_mut(&modelID).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: change this to: `modelID` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:910:40 [INFO] [stdout] | [INFO] [stdout] 910 | modael.verts.write(&mesh); [INFO] [stdout] | ^^^^^ help: change this to: `mesh` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/main.rs:915:24 [INFO] [stdout] | [INFO] [stdout] 915 | if local == "" { [INFO] [stdout] | ^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `local.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:923:53 [INFO] [stdout] | [INFO] [stdout] 923 | let projecto = texturez.get_mut(&wheret).unwrap(); [INFO] [stdout] | ^^^^^^^ help: change this to: `wheret` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:930:49 [INFO] [stdout] | [INFO] [stdout] 930 | let w = match propz.get_mut(&propid) { [INFO] [stdout] | ^^^^^^^ help: change this to: `propid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:948:34 [INFO] [stdout] | [INFO] [stdout] 948 | propz.remove(&propid); [INFO] [stdout] | ^^^^^^^ help: change this to: `propid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:955:51 [INFO] [stdout] | [INFO] [stdout] 955 | let mut propa = propz.get_mut(&propid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: change this to: `propid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:962:51 [INFO] [stdout] | [INFO] [stdout] 962 | let mut propa = propz.get_mut(&propid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: change this to: `propid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:970:29 [INFO] [stdout] | [INFO] [stdout] 970 | loadmap(&locala, &mut propz, &mut texturez, &mut modelz, &mut shaderz, &mut lightz, &display, *worldid); [INFO] [stdout] | ^^^^^^^ help: change this to: `locala` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:974:41 [INFO] [stdout] | [INFO] [stdout] 974 | js_world.triggerlis(&namre, &dattaa); [INFO] [stdout] | ^^^^^^ help: change this to: `namre` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:974:49 [INFO] [stdout] | [INFO] [stdout] 974 | js_world.triggerlis(&namre, &dattaa); [INFO] [stdout] | ^^^^^^^ help: change this to: `dattaa` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:978:51 [INFO] [stdout] | [INFO] [stdout] 978 | let mut propa = propz.get_mut(&propid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: change this to: `propid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/script.rs:1358:39 [INFO] [stdout] | [INFO] [stdout] 1358 | pub fn triggerlis(&mut self, what:&String, data: &String){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 1358 - pub fn triggerlis(&mut self, what:&String, data: &String){ [INFO] [stdout] 1358 + pub fn triggerlis(&mut self, what:&str, data: &String){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/script.rs:1358:54 [INFO] [stdout] | [INFO] [stdout] 1358 | pub fn triggerlis(&mut self, what:&String, data: &String){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 1358 - pub fn triggerlis(&mut self, what:&String, data: &String){ [INFO] [stdout] 1358 + pub fn triggerlis(&mut self, what:&String, data: &str){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1156:46 [INFO] [stdout] | [INFO] [stdout] 1156 | let prop = propz.get_mut(&pid).unwrap(); [INFO] [stdout] | ^^^^ help: change this to: `pid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1188:132 [INFO] [stdout] | [INFO] [stdout] 1188 | ...lastscreen_texture, &lastdepthtext, &mut screenbuffer, &texturez, &texturez2, &mut target, &modelz, &shaderz, ¶ms); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `screenbuffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/garbage_collector.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / let mut found: Vec> = Vec::new(); [INFO] [stdout] 14 | | found.push(Vec::new()); // found[0] = Vec::new(); //scripts [INFO] [stdout] 15 | | found.push(Vec::new()); // found[1] = Vec::new(); //textures [INFO] [stdout] 16 | | found.push(Vec::new()); // found[2] = Vec::new(); //models [INFO] [stdout] 17 | | found.push(Vec::new()); // found[3] = Vec::new(); //shaders [INFO] [stdout] | |___________________________^ help: consider using the `vec![]` macro: `let mut found: Vec> = vec![..];` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push [INFO] [stdout] = note: `#[warn(clippy::vec_init_then_push)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | if !found[1].contains(&tex) {found[1].push(*tex);} [INFO] [stdout] | ^^^^ help: change this to: `tex` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:24:31 [INFO] [stdout] | [INFO] [stdout] 24 | if !found[2].contains(&&pr.model) {found[2].push(pr.model);} [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `(&pr.model)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:25:31 [INFO] [stdout] | [INFO] [stdout] 25 | if !found[3].contains(&&pr.shader) {found[3].push(pr.shader);} [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `(&pr.shader)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/garbage_collector.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | / let mut found: Vec> = Vec::new(); [INFO] [stdout] 33 | | found.push(Vec::new()); // found[0] = Vec::new(); //scripts [INFO] [stdout] 34 | | found.push(Vec::new()); // found[1] = Vec::new(); //textures [INFO] [stdout] 35 | | found.push(Vec::new()); // found[2] = Vec::new(); //models [INFO] [stdout] 36 | | found.push(Vec::new()); // found[3] = Vec::new(); //shaders [INFO] [stdout] | |___________________________^ help: consider using the `vec![]` macro: `let mut found: Vec> = vec![..];` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:44:39 [INFO] [stdout] | [INFO] [stdout] 44 | if !found[3].contains(&&pr.shader) {found[3].push(pr.shader);} [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `(&pr.shader)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1199:71 [INFO] [stdout] | [INFO] [stdout] 1199 | ... lastscreenbuffer.blit_buffers_from_simple_framebuffer(&screenbuffer, &glium::Rect { left: 0, bottom: 0, width: width, height... [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `screenbuffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1203:46 [INFO] [stdout] | [INFO] [stdout] 1203 | let prop = propz.get_mut(&po).unwrap(); [INFO] [stdout] | ^^^ help: change this to: `po` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1212:132 [INFO] [stdout] | [INFO] [stdout] 1212 | ...lastscreen_texture, &lastdepthtext, &mut screenbuffer, &texturez, &texturez2, &mut target, &modelz, &shaderz, ¶ms); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `screenbuffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1221:117 [INFO] [stdout] | [INFO] [stdout] 1221 | ...texture, &lastscreen_depth_texture, &mut screenbuffer, &mut target, &shaderz, &screenparams); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `screenbuffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1230:139 [INFO] [stdout] | [INFO] [stdout] 1230 | ...&imelm.shader, &shader_vars, &get_texture_raw(&texturez, imelm.texture, &texturez2), &screen_texture, &lastscreen_depth_texture... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `get_texture_raw(&texturez, imelm.texture, &texturez2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1230:239 [INFO] [stdout] | [INFO] [stdout] 1230 | ...texture, &lastscreen_depth_texture, &mut screenbuffer, &mut target, &shaderz, &screenparams); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `screenbuffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/main.rs:1249:33 [INFO] [stdout] | [INFO] [stdout] 1249 | ... currentheight=(currentheight)-(fonta.default_line_height as f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `currentheight -= (fonta.default_line_height as f32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:48:39 [INFO] [stdout] | [INFO] [stdout] 48 | if !found[3].contains(&&pr.shader) {found[3].push(pr.shader);} [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `(&pr.shader)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:84:39 [INFO] [stdout] | [INFO] [stdout] 84 | if !choppingblock[1].contains(&tx) { [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1277:216 [INFO] [stdout] | [INFO] [stdout] 1277 | ...&imelm.shader, &shader_vars, &get_texture_raw(&texturez, fonta.texture, &texturez2), &screen_texture, &lastscreen_depth_texture... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `get_texture_raw(&texturez, fonta.texture, &texturez2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:85:39 [INFO] [stdout] | [INFO] [stdout] 85 | if ignorelist[1].contains(&tx) {continue;} [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1277:316 [INFO] [stdout] | [INFO] [stdout] 1277 | ...texture, &lastscreen_depth_texture, &mut screenbuffer, &mut target, &shaderz, &screenparams); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `screenbuffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | if texturez.get(&tx).unwrap().bebufpointer { [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/main.rs:1335:5 [INFO] [stdout] | [INFO] [stdout] 1335 | return (*prpalce.1.last().unwrap(), *worldid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 1335 - return (*prpalce.1.last().unwrap(), *worldid); [INFO] [stdout] 1335 + (*prpalce.1.last().unwrap(), *worldid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:102:39 [INFO] [stdout] | [INFO] [stdout] 102 | if !choppingblock[2].contains(&tx) { [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1306:33 [INFO] [stdout] | [INFO] [stdout] 1306 | let w = match propz.get_mut(&propid) { [INFO] [stdout] | ^^^^^^^ help: change this to: `propid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:103:39 [INFO] [stdout] | [INFO] [stdout] 103 | if ignorelist[2].contains(&tx) {continue;} [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1320:34 [INFO] [stdout] | [INFO] [stdout] 1320 | let prpalce = worldz.get_mut(&worldid).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: change this to: `worldid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:115:39 [INFO] [stdout] | [INFO] [stdout] 115 | if !choppingblock[3].contains(&tx) { [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1328:42 [INFO] [stdout] | [INFO] [stdout] 1328 | let mut phys_world = binding.get_mut(&worldid).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: change this to: `worldid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/garbage_collector.rs:116:39 [INFO] [stdout] | [INFO] [stdout] 116 | if ignorelist[3].contains(&tx) {continue;} [INFO] [stdout] | ^^^ help: change this to: `tx` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (10/7) [INFO] [stdout] --> src/main.rs:1338:1 [INFO] [stdout] | [INFO] [stdout] 1338 | fn screen_compile(loop_wawa: f32, scr...&HashMap, params: &DrawParameters<'_>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/main.rs:85:24 [INFO] [stdout] | [INFO] [stdout] 85 | static ref WORLDS: RwLock, Vec)>> = RwLock::new(HashMap::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1391:13 [INFO] [stdout] | [INFO] [stdout] 1391 | &shaderz.get(screen_shader).unwrap().program.as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `shaderz.get(screen_shader).unwrap().program.as_ref().unwrap()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (15/7) [INFO] [stdout] --> src/main.rs:1399:1 [INFO] [stdout] | [INFO] [stdout] 1399 | fn render_prop(loop_wawa: f32, prop: ...&HashMap, params: &DrawParameters<'_>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/main.rs:1495:54 [INFO] [stdout] | [INFO] [stdout] 1495 | uniform.add("LeDirLight.diffuse".to_owned(), &*world_emv.skyColor.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `world_emv.skyColor.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] = note: `#[warn(clippy::borrow_deref_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/main.rs:1501:72 [INFO] [stdout] | [INFO] [stdout] 1501 | uniform.add("pointLights[".to_owned()+&index+"].position", &*light.position.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `light.position.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/main.rs:1502:71 [INFO] [stdout] | [INFO] [stdout] 1502 | uniform.add("pointLights[".to_owned()+&index+"].ambient", &*light.ambient.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `light.ambient.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/main.rs:1503:71 [INFO] [stdout] | [INFO] [stdout] 1503 | uniform.add("pointLights[".to_owned()+&index+"].diffuse", &*light.diffuse.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `light.diffuse.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/main.rs:1504:72 [INFO] [stdout] | [INFO] [stdout] 1504 | uniform.add("pointLights[".to_owned()+&index+"].specular", &*light.specular.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `light.specular.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the variable `currrent_text` is used as a loop counter [INFO] [stdout] --> src/main.rs:1541:5 [INFO] [stdout] | [INFO] [stdout] 1541 | for text in &prop.textures { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `for (currrent_text, text) in prop.textures.iter().enumerate()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/main.rs:102:70 [INFO] [stdout] | [INFO] [stdout] 102 | pub static ref FIRST: Arc> = Arc::new(RwLock::new(format!(""))); [INFO] [stdout] | ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1551:13 [INFO] [stdout] | [INFO] [stdout] 1551 | &get_shader(shaderz, prop), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `get_shader(shaderz, prop)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (14/7) [INFO] [stdout] --> src/main.rs:1558:1 [INFO] [stdout] | [INFO] [stdout] 1558 | fn render_menu(loop_wawa: f32, pos: V...&HashMap, params: &DrawParameters<'_>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1622:13 [INFO] [stdout] | [INFO] [stdout] 1622 | &shaderz.get(screen_shader).unwrap().program.as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `shaderz.get(screen_shader).unwrap().program.as_ref().unwrap()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1637:21 [INFO] [stdout] | [INFO] [stdout] 1637 | &real [INFO] [stdout] | ^^^^^ help: change this to: `real` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1639:25 [INFO] [stdout] | [INFO] [stdout] 1639 | None => &shadersz.get(&5).unwrap().program.as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `shadersz.get(&5).unwrap().program.as_ref().unwrap()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1642:17 [INFO] [stdout] | [INFO] [stdout] 1642 | None => &shadersz.get(&5).unwrap().program.as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `shadersz.get(&5).unwrap().program.as_ref().unwrap()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/main.rs:1653:97 [INFO] [stdout] | [INFO] [stdout] 1653 | fn get_texture<'a>(texturez: &'a HashMap, prop: &Prop, texture: usize, texturez2: &'a Vec) -> &'a Srg... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 1653 - fn get_texture<'a>(texturez: &'a HashMap, prop: &Prop, texture: usize, texturez2: &'a Vec) -> &'a SrgbTexture2d { [INFO] [stdout] 1653 + fn get_texture<'a>(texturez: &'a HashMap, prop: &Prop, texture: usize, texturez2: &'a [SrgbTexture2d]) -> &'a SrgbTexture2d { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/main.rs:1666:82 [INFO] [stdout] | [INFO] [stdout] 1666 | fn get_texture_raw<'a>(texturez: &'a HashMap, ida: i32, texturez2: &'a Vec) -> &'a SrgbTexture2d { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 1666 - fn get_texture_raw<'a>(texturez: &'a HashMap, ida: i32, texturez2: &'a Vec) -> &'a SrgbTexture2d { [INFO] [stdout] 1666 + fn get_texture_raw<'a>(texturez: &'a HashMap, ida: i32, texturez2: &'a [SrgbTexture2d]) -> &'a SrgbTexture2d { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/garbage_collector.rs:73:22 [INFO] [stdout] | [INFO] [stdout] 73 | let ignorelist = vec![ [INFO] [stdout] | ______________________^ [INFO] [stdout] 74 | | vec![], [INFO] [stdout] 75 | | vec![0,1], [INFO] [stdout] 76 | | vec![0,1,2], [INFO] [stdout] 77 | | vec![0,1,2,3,4,5] [INFO] [stdout] 78 | | ]; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 73 ~ let ignorelist = [vec![], [INFO] [stdout] 74 + vec![0,1], [INFO] [stdout] 75 + vec![0,1,2], [INFO] [stdout] 76 ~ vec![0,1,2,3,4,5]]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_KE_MAIN_PATH` should have a snake case name [INFO] [stdout] --> src/main.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | let _KE_MAIN_PATH = "."; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `_ke_main_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_KE_MAIN_DEPENDENTS` should have a snake case name [INFO] [stdout] --> src/main.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | let _KE_MAIN_DEPENDENTS = "./engine_dependent"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `_ke_main_dependents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | v.set_cursor_grab(CursorGrabMode::Locked); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 163 | let _ = v.set_cursor_grab(CursorGrabMode::Locked); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txCount` should have a snake case name [INFO] [stdout] --> src/main.rs:303:13 [INFO] [stdout] | [INFO] [stdout] 303 | let txCount = *TEXTURE_COUNT.read().unwrap()-1; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tx_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mdCount` should have a snake case name [INFO] [stdout] --> src/main.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 310 | let mdCount = *MODEL_COUNT.read().unwrap()-1 ; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `md_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/main.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | if keconf.override_shader.len()==0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `keconf.override_shader.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `shCount` should have a snake case name [INFO] [stdout] --> src/main.rs:323:9 [INFO] [stdout] | [INFO] [stdout] 323 | let shCount = *SHADER_COUNT.read().unwrap()-1; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `sh_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:491:21 [INFO] [stdout] | [INFO] [stdout] 491 | / socket.emit("update", json!({ [INFO] [stdout] 492 | | "type":"server_your_ticket", [INFO] [stdout] 493 | | "id":socket.id, [INFO] [stdout] 494 | | })); [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 491 | let _ = socket.emit("update", json!({ [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:503:25 [INFO] [stdout] | [INFO] [stdout] 503 | / socket.emit("update", json!({ [INFO] [stdout] 504 | | "type":"join", [INFO] [stdout] 505 | | "id":socket.id, [INFO] [stdout] 506 | | })); [INFO] [stdout] | |___________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 503 | let _ = socket.emit("update", json!({ [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:509:25 [INFO] [stdout] | [INFO] [stdout] 509 | / socket.to(firs).emit("update", json!({ [INFO] [stdout] 510 | | "type":"join", [INFO] [stdout] 511 | | "id":socket.id, [INFO] [stdout] 512 | | })); [INFO] [stdout] | |___________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 509 | let _ = socket.to(firs).emit("update", json!({ [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderEmit` should have a snake case name [INFO] [stdout] --> src/main.rs:589:14 [INFO] [stdout] | [INFO] [stdout] 589 | let (senderEmit, receiverEmit) = channel::(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `sender_emit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `receiverEmit` should have a snake case name [INFO] [stdout] --> src/main.rs:589:26 [INFO] [stdout] | [INFO] [stdout] 589 | let (senderEmit, receiverEmit) = channel::(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `receiver_emit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:604:25 [INFO] [stdout] | [INFO] [stdout] 604 | sender.send(whatt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 604 | let _ = sender.send(whatt); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:615:21 [INFO] [stdout] | [INFO] [stdout] 615 | sendera.send(whatt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 615 | let _ = sendera.send(whatt); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:874:33 [INFO] [stdout] | [INFO] [stdout] 874 | ... v.set_cursor_position(LogicalPosition::new(width/2, height/2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 874 | let _ = v.set_cursor_position(LogicalPosition::new(width/2, height/2)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `modelID` should have a snake case name [INFO] [stdout] --> src/main.rs:908:52 [INFO] [stdout] | [INFO] [stdout] 908 | KERequest::Create_Model_From_Magic(modelID, mesh) => { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `model_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/main.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | fn loadmap(map:&String, propz: &mut st...splay, worldid: u32) -> (Environment, Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:985:25 [INFO] [stdout] | [INFO] [stdout] 985 | v.set_cursor_grab(CursorGrabMode::Locked); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 985 | let _ = v.set_cursor_grab(CursorGrabMode::Locked); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:989:25 [INFO] [stdout] | [INFO] [stdout] 989 | v.set_cursor_grab(CursorGrabMode::None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 989 | let _ = v.set_cursor_grab(CursorGrabMode::None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `metadataF` should have a snake case name [INFO] [stdout] --> src/main.rs:1021:21 [INFO] [stdout] | [INFO] [stdout] 1021 | let metadataF = fs::metadata(format!("{name}.frag")).expect("failed to check shader file"); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `metadata_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `metadataV` should have a snake case name [INFO] [stdout] --> src/main.rs:1022:21 [INFO] [stdout] | [INFO] [stdout] 1022 | let metadataV = fs::metadata(format!("{name}.vert")).expect("failed to check shader file"); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `metadata_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Faona` should have a snake case name [INFO] [stdout] --> src/main.rs:1038:21 [INFO] [stdout] | [INFO] [stdout] 1038 | let mut Faona = FONTS.write().unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `faona` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:301:47 [INFO] [stdout] | [INFO] [stdout] 301 | let map = load(&("./maps/".to_owned()+&map)); [INFO] [stdout] | ^^^^ help: change this to: `map` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Faona` should have a snake case name [INFO] [stdout] --> src/main.rs:1235:29 [INFO] [stdout] | [INFO] [stdout] 1235 | let Faona = FONTS.write().unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `faona` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:306:89 [INFO] [stdout] | [INFO] [stdout] 306 | texturez.insert(txCount+tx.0, Texture::craft(&("./textures/".to_owned()+&tx.1), &display)); [INFO] [stdout] | ^^^^^^^^ help: change this to: `display` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New` should have a snake case name [INFO] [stdout] --> src/ke_units.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn New(x:f32,y:f32) -> Vec2{ [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New` should have a snake case name [INFO] [stdout] --> src/ke_units.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn New(x:f32,y:f32,z:f32) -> Vec3{ [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:314:91 [INFO] [stdout] | [INFO] [stdout] 314 | modelz.insert(mdCount+md.0, models::load_obj(&("./models/".to_owned()+&md.1), &display)); [INFO] [stdout] | ^^^^^^^^ help: change this to: `display` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Char` should have a snake case name [INFO] [stdout] --> src/menu_system.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub Char: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:316:91 [INFO] [stdout] | [INFO] [stdout] 316 | modelz.insert(mdCount+md.0, models::load_fbx(&("./models/".to_owned()+&md.1), &display)); [INFO] [stdout] | ^^^^^^^^ help: change this to: `display` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Char` should have a snake case name [INFO] [stdout] --> src/menu_system.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub Char: char, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:318:92 [INFO] [stdout] | [INFO] [stdout] 318 | modelz.insert(mdCount+md.0, models::load_gltf(&("./models/".to_owned()+&md.1), &display)); [INFO] [stdout] | ^^^^^^^^ help: change this to: `display` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:327:64 [INFO] [stdout] | [INFO] [stdout] 327 | shaderz.insert(shCount+sh.0, Shader::craft(&de_shader, &display)); [INFO] [stdout] | ^^^^^^^^ help: change this to: `display` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `skyColor` should have a snake case name [INFO] [stdout] --> src/kbf.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub skyColor: Vector3, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `sky_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the variable `partnp` is used as a loop counter [INFO] [stdout] --> src/main.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | for np in map.props { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: consider using: `for (partnp, np) in (propz.len() as i32..).zip(map.props.into_iter())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop [INFO] [stdout] = note: `#[warn(clippy::explicit_counter_loop)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `skyColor` should have a snake case name [INFO] [stdout] --> src/vmf.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub skyColor: Vector3, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `sky_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `usize` is unnecessary [INFO] [stdout] --> src/main.rs:342:43 [INFO] [stdout] | [INFO] [stdout] 342 | let mut current_new_texture = 0 as usize; [INFO] [stdout] | ^^^^^^^^^^ help: try: `0_usize` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/main.rs:346:17 [INFO] [stdout] | [INFO] [stdout] 346 | np.textures[current_new_texture] = np.textures[current_new_texture]+txCount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `np.textures[current_new_texture] += txCount` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `last_ID` should have a snake case name [INFO] [stdout] --> src/physic_props.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | last_ID: i32, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `last_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/main.rs:351:17 [INFO] [stdout] | [INFO] [stdout] 351 | np.model = np.model+mdCount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `np.model += mdCount` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/main.rs:355:17 [INFO] [stdout] | [INFO] [stdout] 355 | np.shader = np.shader+shCount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `np.shader += shCount` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `nalgebra::base::norm::>::normalize` that must be used [INFO] [stdout] --> src/char_control.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | front.normalize(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: Did you mean to use normalize_mut()? [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 206 | let _ = front.normalize(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the variable `partnp` is used as a loop counter [INFO] [stdout] --> src/main.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | for nl in map.lights { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `for (partnp, nl) in (lightz.len()..).zip(map.lights.into_iter())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:431:88 [INFO] [stdout] | [INFO] [stdout] 431 | real_char = Character::new(keconf.char_pov, &display, &mut propz, &mut modelz, &mut phys_world, &mut camera_mapc); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `phys_world` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/main.rs:437:12 [INFO] [stdout] | [INFO] [stdout] 437 | if world_emv.spawnpoints.len() != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!world_emv.spawnpoints.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:438:26 [INFO] [stdout] | [INFO] [stdout] 438 | real_char.tp(&mut phys_world, &mut propz, world_emv.spawnpoints[0]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `phys_world` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1212:9 [INFO] [stdout] | [INFO] [stdout] 1212 | ... self.context.register_global_builtin_callable("get_existing_prop_by_name", 1, NativeFunction::from_fn_ptr(get_existing_prop_by_name)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1212 | let _ = self.context.register_global_builtin_callable("get_existing_prop_by_name", 1, NativeFunction::from_fn_ptr(get_existing_prop_by_name)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1214:9 [INFO] [stdout] | [INFO] [stdout] 1214 | self.context.register_global_builtin_callable("create_prop", 1, NativeFunction::from_fn_ptr(create_prop)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1214 | let _ = self.context.register_global_builtin_callable("create_prop", 1, NativeFunction::from_fn_ptr(create_prop)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1215:9 [INFO] [stdout] | [INFO] [stdout] 1215 | self.context.register_global_builtin_callable("delete_prop", 1, NativeFunction::from_fn_ptr(delete_prop)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1215 | let _ = self.context.register_global_builtin_callable("delete_prop", 1, NativeFunction::from_fn_ptr(delete_prop)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1216:9 [INFO] [stdout] | [INFO] [stdout] 1216 | self.context.register_global_builtin_callable("mod_prop_pos", 1, NativeFunction::from_fn_ptr(mod_prop_pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1216 | let _ = self.context.register_global_builtin_callable("mod_prop_pos", 1, NativeFunction::from_fn_ptr(mod_prop_pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1217:9 [INFO] [stdout] | [INFO] [stdout] 1217 | self.context.register_global_builtin_callable("get_prop_pos", 1, NativeFunction::from_fn_ptr(get_prop_pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1217 | let _ = self.context.register_global_builtin_callable("get_prop_pos", 1, NativeFunction::from_fn_ptr(get_prop_pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1218:9 [INFO] [stdout] | [INFO] [stdout] 1218 | self.context.register_global_builtin_callable("mod_prop_scale", 1, NativeFunction::from_fn_ptr(mod_prop_scale)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1218 | let _ = self.context.register_global_builtin_callable("mod_prop_scale", 1, NativeFunction::from_fn_ptr(mod_prop_scale)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1219:9 [INFO] [stdout] | [INFO] [stdout] 1219 | self.context.register_global_builtin_callable("get_prop_scale", 1, NativeFunction::from_fn_ptr(get_prop_scale)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1219 | let _ = self.context.register_global_builtin_callable("get_prop_scale", 1, NativeFunction::from_fn_ptr(get_prop_scale)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1220:9 [INFO] [stdout] | [INFO] [stdout] 1220 | self.context.register_global_builtin_callable("mod_prop_shader", 1, NativeFunction::from_fn_ptr(mod_prop_shader)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1220 | let _ = self.context.register_global_builtin_callable("mod_prop_shader", 1, NativeFunction::from_fn_ptr(mod_prop_shader)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1221:9 [INFO] [stdout] | [INFO] [stdout] 1221 | self.context.register_global_builtin_callable("get_prop_shader", 1, NativeFunction::from_fn_ptr(get_prop_shader)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1221 | let _ = self.context.register_global_builtin_callable("get_prop_shader", 1, NativeFunction::from_fn_ptr(get_prop_shader)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1222:9 [INFO] [stdout] | [INFO] [stdout] 1222 | self.context.register_global_builtin_callable("mod_prop_model", 1, NativeFunction::from_fn_ptr(mod_prop_model)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1222 | let _ = self.context.register_global_builtin_callable("mod_prop_model", 1, NativeFunction::from_fn_ptr(mod_prop_model)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1223:9 [INFO] [stdout] | [INFO] [stdout] 1223 | self.context.register_global_builtin_callable("get_prop_model", 1, NativeFunction::from_fn_ptr(get_prop_model)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1223 | let _ = self.context.register_global_builtin_callable("get_prop_model", 1, NativeFunction::from_fn_ptr(get_prop_model)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1224:9 [INFO] [stdout] | [INFO] [stdout] 1224 | self.context.register_global_builtin_callable("mod_prop_texture", 1, NativeFunction::from_fn_ptr(mod_prop_texture)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1224 | let _ = self.context.register_global_builtin_callable("mod_prop_texture", 1, NativeFunction::from_fn_ptr(mod_prop_texture)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1225:9 [INFO] [stdout] | [INFO] [stdout] 1225 | self.context.register_global_builtin_callable("get_prop_texture", 1, NativeFunction::from_fn_ptr(get_prop_texture)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1225 | let _ = self.context.register_global_builtin_callable("get_prop_texture", 1, NativeFunction::from_fn_ptr(get_prop_texture)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1226:9 [INFO] [stdout] | [INFO] [stdout] 1226 | self.context.register_global_builtin_callable("mod_prop_rot", 1, NativeFunction::from_fn_ptr(mod_prop_rot)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1226 | let _ = self.context.register_global_builtin_callable("mod_prop_rot", 1, NativeFunction::from_fn_ptr(mod_prop_rot)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1227:9 [INFO] [stdout] | [INFO] [stdout] 1227 | self.context.register_global_builtin_callable("get_prop_rot", 1, NativeFunction::from_fn_ptr(get_prop_rot)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1227 | let _ = self.context.register_global_builtin_callable("get_prop_rot", 1, NativeFunction::from_fn_ptr(get_prop_rot)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1228:9 [INFO] [stdout] | [INFO] [stdout] 1228 | self.context.register_global_builtin_callable("mod_prop_backcull", 1, NativeFunction::from_fn_ptr(mod_prop_backcull)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1228 | let _ = self.context.register_global_builtin_callable("mod_prop_backcull", 1, NativeFunction::from_fn_ptr(mod_prop_backcull)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1229:9 [INFO] [stdout] | [INFO] [stdout] 1229 | self.context.register_global_builtin_callable("get_prop_backcull", 1, NativeFunction::from_fn_ptr(get_prop_backcull)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1229 | let _ = self.context.register_global_builtin_callable("get_prop_backcull", 1, NativeFunction::from_fn_ptr(get_prop_backcull)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1230:9 [INFO] [stdout] | [INFO] [stdout] 1230 | self.context.register_global_builtin_callable("mod_prop_render", 1, NativeFunction::from_fn_ptr(mod_prop_render)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1230 | let _ = self.context.register_global_builtin_callable("mod_prop_render", 1, NativeFunction::from_fn_ptr(mod_prop_render)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1231:9 [INFO] [stdout] | [INFO] [stdout] 1231 | self.context.register_global_builtin_callable("get_prop_render", 1, NativeFunction::from_fn_ptr(get_prop_render)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1231 | let _ = self.context.register_global_builtin_callable("get_prop_render", 1, NativeFunction::from_fn_ptr(get_prop_render)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1232:9 [INFO] [stdout] | [INFO] [stdout] 1232 | self.context.register_global_builtin_callable("mod_prop_trans", 1, NativeFunction::from_fn_ptr(mod_prop_trans)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1232 | let _ = self.context.register_global_builtin_callable("mod_prop_trans", 1, NativeFunction::from_fn_ptr(mod_prop_trans)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1233:9 [INFO] [stdout] | [INFO] [stdout] 1233 | self.context.register_global_builtin_callable("get_prop_trans", 1, NativeFunction::from_fn_ptr(get_prop_trans)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1233 | let _ = self.context.register_global_builtin_callable("get_prop_trans", 1, NativeFunction::from_fn_ptr(get_prop_trans)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1234:9 [INFO] [stdout] | [INFO] [stdout] 1234 | self.context.register_global_builtin_callable("lookat_prop", 1, NativeFunction::from_fn_ptr(lookat_prop)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1234 | let _ = self.context.register_global_builtin_callable("lookat_prop", 1, NativeFunction::from_fn_ptr(lookat_prop)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1235:9 [INFO] [stdout] | [INFO] [stdout] 1235 | self.context.register_global_builtin_callable("mod_prop_vel", 1, NativeFunction::from_fn_ptr(mod_prop_vel)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1235 | let _ = self.context.register_global_builtin_callable("mod_prop_vel", 1, NativeFunction::from_fn_ptr(mod_prop_vel)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1236:9 [INFO] [stdout] | [INFO] [stdout] 1236 | self.context.register_global_builtin_callable("get_prop_vel", 1, NativeFunction::from_fn_ptr(get_prop_vel)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1236 | let _ = self.context.register_global_builtin_callable("get_prop_vel", 1, NativeFunction::from_fn_ptr(get_prop_vel)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1237:9 [INFO] [stdout] | [INFO] [stdout] 1237 | ... self.context.register_global_builtin_callable("mod_prop_vel_onlyside", 1, NativeFunction::from_fn_ptr(mod_prop_vel_onlyside)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1237 | let _ = self.context.register_global_builtin_callable("mod_prop_vel_onlyside", 1, NativeFunction::from_fn_ptr(mod_prop_vel_onlyside)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1238:9 [INFO] [stdout] | [INFO] [stdout] 1238 | self.context.register_global_builtin_callable("mod_prop_copy_phys", 1, NativeFunction::from_fn_ptr(mod_prop_copy_phys)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1238 | let _ = self.context.register_global_builtin_callable("mod_prop_copy_phys", 1, NativeFunction::from_fn_ptr(mod_prop_copy_phys)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1239:9 [INFO] [stdout] | [INFO] [stdout] 1239 | ... self.context.register_global_builtin_callable("get_all_props_in_world", 1, NativeFunction::from_fn_ptr(get_all_props_in_world)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1239 | let _ = self.context.register_global_builtin_callable("get_all_props_in_world", 1, NativeFunction::from_fn_ptr(get_all_props_in_world)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1241:9 [INFO] [stdout] | [INFO] [stdout] 1241 | ... self.context.register_global_builtin_callable("get_existing_cam_by_name", 1, NativeFunction::from_fn_ptr(get_existing_cam_by_name)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1241 | let _ = self.context.register_global_builtin_callable("get_existing_cam_by_name", 1, NativeFunction::from_fn_ptr(get_existing_cam_by_name)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1243:9 [INFO] [stdout] | [INFO] [stdout] 1243 | self.context.register_global_builtin_callable("create_camera", 1, NativeFunction::from_fn_ptr(create_camera)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1243 | let _ = self.context.register_global_builtin_callable("create_camera", 1, NativeFunction::from_fn_ptr(create_camera)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1244:9 [INFO] [stdout] | [INFO] [stdout] 1244 | self.context.register_global_builtin_callable("mod_camera_pos", 1, NativeFunction::from_fn_ptr(mod_camera_pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1244 | let _ = self.context.register_global_builtin_callable("mod_camera_pos", 1, NativeFunction::from_fn_ptr(mod_camera_pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1245:9 [INFO] [stdout] | [INFO] [stdout] 1245 | self.context.register_global_builtin_callable("get_camera_pos", 1, NativeFunction::from_fn_ptr(get_camera_pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1245 | let _ = self.context.register_global_builtin_callable("get_camera_pos", 1, NativeFunction::from_fn_ptr(get_camera_pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1246:9 [INFO] [stdout] | [INFO] [stdout] 1246 | self.context.register_global_builtin_callable("mod_camera_rot", 1, NativeFunction::from_fn_ptr(mod_camera_rot)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1246 | let _ = self.context.register_global_builtin_callable("mod_camera_rot", 1, NativeFunction::from_fn_ptr(mod_camera_rot)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1247:9 [INFO] [stdout] | [INFO] [stdout] 1247 | self.context.register_global_builtin_callable("get_camera_rot", 1, NativeFunction::from_fn_ptr(get_camera_rot)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1247 | let _ = self.context.register_global_builtin_callable("get_camera_rot", 1, NativeFunction::from_fn_ptr(get_camera_rot)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1248:9 [INFO] [stdout] | [INFO] [stdout] 1248 | self.context.register_global_builtin_callable("mod_camera_dis", 1, NativeFunction::from_fn_ptr(mod_camera_dis)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1248 | let _ = self.context.register_global_builtin_callable("mod_camera_dis", 1, NativeFunction::from_fn_ptr(mod_camera_dis)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1249:9 [INFO] [stdout] | [INFO] [stdout] 1249 | self.context.register_global_builtin_callable("get_camera_dis", 1, NativeFunction::from_fn_ptr(get_camera_dis)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1249 | let _ = self.context.register_global_builtin_callable("get_camera_dis", 1, NativeFunction::from_fn_ptr(get_camera_dis)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1250:9 [INFO] [stdout] | [INFO] [stdout] 1250 | self.context.register_global_builtin_callable("mod_camera_world", 1, NativeFunction::from_fn_ptr(mod_camera_world)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1250 | let _ = self.context.register_global_builtin_callable("mod_camera_world", 1, NativeFunction::from_fn_ptr(mod_camera_world)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1251:9 [INFO] [stdout] | [INFO] [stdout] 1251 | self.context.register_global_builtin_callable("get_camera_world", 1, NativeFunction::from_fn_ptr(get_camera_world)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1251 | let _ = self.context.register_global_builtin_callable("get_camera_world", 1, NativeFunction::from_fn_ptr(get_camera_world)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1252:9 [INFO] [stdout] | [INFO] [stdout] 1252 | self.context.register_global_builtin_callable("mod_camera_bw2", 1, NativeFunction::from_fn_ptr(mod_camera_bw2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1252 | let _ = self.context.register_global_builtin_callable("mod_camera_bw2", 1, NativeFunction::from_fn_ptr(mod_camera_bw2)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1253:9 [INFO] [stdout] | [INFO] [stdout] 1253 | self.context.register_global_builtin_callable("get_camera_bw2", 1, NativeFunction::from_fn_ptr(get_camera_bw2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1253 | let _ = self.context.register_global_builtin_callable("get_camera_bw2", 1, NativeFunction::from_fn_ptr(get_camera_bw2)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1254:9 [INFO] [stdout] | [INFO] [stdout] 1254 | self.context.register_global_builtin_callable("lookat_camera", 1, NativeFunction::from_fn_ptr(lookat_camera)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1254 | let _ = self.context.register_global_builtin_callable("lookat_camera", 1, NativeFunction::from_fn_ptr(lookat_camera)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1255:9 [INFO] [stdout] | [INFO] [stdout] 1255 | self.context.register_global_builtin_callable("set_main_camera", 1, NativeFunction::from_fn_ptr(set_main_camera)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1255 | let _ = self.context.register_global_builtin_callable("set_main_camera", 1, NativeFunction::from_fn_ptr(set_main_camera)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1257:9 [INFO] [stdout] | [INFO] [stdout] 1257 | self.context.register_global_builtin_callable("create_world", 1, NativeFunction::from_fn_ptr(create_world)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1257 | let _ = self.context.register_global_builtin_callable("create_world", 1, NativeFunction::from_fn_ptr(create_world)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1259:9 [INFO] [stdout] | [INFO] [stdout] 1259 | self.context.register_global_builtin_callable("create_light", 1, NativeFunction::from_fn_ptr(create_light)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1259 | let _ = self.context.register_global_builtin_callable("create_light", 1, NativeFunction::from_fn_ptr(create_light)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1260:9 [INFO] [stdout] | [INFO] [stdout] 1260 | self.context.register_global_builtin_callable("mod_light_pos", 1, NativeFunction::from_fn_ptr(mod_light_pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1260 | let _ = self.context.register_global_builtin_callable("mod_light_pos", 1, NativeFunction::from_fn_ptr(mod_light_pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:458:53 [INFO] [stdout] | [INFO] [stdout] 458 | js_world.add_script("./scripts/".to_owned()+&scrpt); [INFO] [stdout] | ^^^^^^ help: change this to: `scrpt` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1261:9 [INFO] [stdout] | [INFO] [stdout] 1261 | self.context.register_global_builtin_callable("get_light_pos", 1, NativeFunction::from_fn_ptr(get_light_pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1261 | let _ = self.context.register_global_builtin_callable("get_light_pos", 1, NativeFunction::from_fn_ptr(get_light_pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1263:9 [INFO] [stdout] | [INFO] [stdout] 1263 | self.context.register_global_builtin_callable("create_menu_image", 1, NativeFunction::from_fn_ptr(create_menu_image)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1263 | let _ = self.context.register_global_builtin_callable("create_menu_image", 1, NativeFunction::from_fn_ptr(create_menu_image)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1264:9 [INFO] [stdout] | [INFO] [stdout] 1264 | self.context.register_global_builtin_callable("create_menu_image_texture", 1, NativeFunction::from_fn_ptr(mod_menu_texture)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1264 | let _ = self.context.register_global_builtin_callable("create_menu_image_texture", 1, NativeFunction::from_fn_ptr(mod_menu_texture)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1266:9 [INFO] [stdout] | [INFO] [stdout] 1266 | self.context.register_global_builtin_callable("create_menu_text", 1, NativeFunction::from_fn_ptr(create_menu_text)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1266 | let _ = self.context.register_global_builtin_callable("create_menu_text", 1, NativeFunction::from_fn_ptr(create_menu_text)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1267:9 [INFO] [stdout] | [INFO] [stdout] 1267 | self.context.register_global_builtin_callable("mod_menu_text_text", 1, NativeFunction::from_fn_ptr(mod_menu_text_text)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1267 | let _ = self.context.register_global_builtin_callable("mod_menu_text_text", 1, NativeFunction::from_fn_ptr(mod_menu_text_text)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1268:9 [INFO] [stdout] | [INFO] [stdout] 1268 | self.context.register_global_builtin_callable("get_menu_text_text", 1, NativeFunction::from_fn_ptr(get_menu_text_text)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1268 | let _ = self.context.register_global_builtin_callable("get_menu_text_text", 1, NativeFunction::from_fn_ptr(get_menu_text_text)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1271:9 [INFO] [stdout] | [INFO] [stdout] 1271 | self.context.register_global_builtin_callable("mod_menu_pos", 1, NativeFunction::from_fn_ptr(mod_menu_pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1271 | let _ = self.context.register_global_builtin_callable("mod_menu_pos", 1, NativeFunction::from_fn_ptr(mod_menu_pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1272:9 [INFO] [stdout] | [INFO] [stdout] 1272 | self.context.register_global_builtin_callable("mod_menu_scale", 1, NativeFunction::from_fn_ptr(mod_menu_scale)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1272 | let _ = self.context.register_global_builtin_callable("mod_menu_scale", 1, NativeFunction::from_fn_ptr(mod_menu_scale)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1273:9 [INFO] [stdout] | [INFO] [stdout] 1273 | self.context.register_global_builtin_callable("mod_menu_shader", 1, NativeFunction::from_fn_ptr(mod_menu_shader)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1273 | let _ = self.context.register_global_builtin_callable("mod_menu_shader", 1, NativeFunction::from_fn_ptr(mod_menu_shader)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1274:9 [INFO] [stdout] | [INFO] [stdout] 1274 | self.context.register_global_builtin_callable("mod_menu_render", 1, NativeFunction::from_fn_ptr(mod_menu_render)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1274 | let _ = self.context.register_global_builtin_callable("mod_menu_render", 1, NativeFunction::from_fn_ptr(mod_menu_render)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1276:9 [INFO] [stdout] | [INFO] [stdout] 1276 | self.context.register_global_builtin_callable("create_texture", 1, NativeFunction::from_fn_ptr(create_texture)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1276 | let _ = self.context.register_global_builtin_callable("create_texture", 1, NativeFunction::from_fn_ptr(create_texture)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1278:9 [INFO] [stdout] | [INFO] [stdout] 1278 | self.context.register_global_builtin_callable("create_shader", 1, NativeFunction::from_fn_ptr(create_shader)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1278 | let _ = self.context.register_global_builtin_callable("create_shader", 1, NativeFunction::from_fn_ptr(create_shader)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1280:9 [INFO] [stdout] | [INFO] [stdout] 1280 | self.context.register_global_builtin_callable("create_model", 1, NativeFunction::from_fn_ptr(create_model)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1280 | let _ = self.context.register_global_builtin_callable("create_model", 1, NativeFunction::from_fn_ptr(create_model)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1282:9 [INFO] [stdout] | [INFO] [stdout] 1282 | self.context.register_global_builtin_callable("exit", 1, NativeFunction::from_fn_ptr(engineexit)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1282 | let _ = self.context.register_global_builtin_callable("exit", 1, NativeFunction::from_fn_ptr(engineexit)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1284:9 [INFO] [stdout] | [INFO] [stdout] 1284 | self.context.register_global_builtin_callable("tepter", 1, NativeFunction::from_fn_ptr(tepter)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1284 | let _ = self.context.register_global_builtin_callable("tepter", 1, NativeFunction::from_fn_ptr(tepter)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1285:9 [INFO] [stdout] | [INFO] [stdout] 1285 | self.context.register_global_builtin_callable("window_cursor_lock", 1, NativeFunction::from_fn_ptr(window_cursor_lock)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1285 | let _ = self.context.register_global_builtin_callable("window_cursor_lock", 1, NativeFunction::from_fn_ptr(window_cursor_lock)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1286:9 [INFO] [stdout] | [INFO] [stdout] 1286 | self.context.register_global_builtin_callable("garbage_collect", 1, NativeFunction::from_fn_ptr(garbage_collect)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1286 | let _ = self.context.register_global_builtin_callable("garbage_collect", 1, NativeFunction::from_fn_ptr(garbage_collect)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1288:9 [INFO] [stdout] | [INFO] [stdout] 1288 | self.context.register_global_builtin_callable("load_map", 1, NativeFunction::from_fn_ptr(fnloadmap)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1288 | let _ = self.context.register_global_builtin_callable("load_map", 1, NativeFunction::from_fn_ptr(fnloadmap)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1290:9 [INFO] [stdout] | [INFO] [stdout] 1290 | self.context.register_global_builtin_callable("move_char", 1, NativeFunction::from_fn_ptr(move_char)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1290 | let _ = self.context.register_global_builtin_callable("move_char", 1, NativeFunction::from_fn_ptr(move_char)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1292:9 [INFO] [stdout] | [INFO] [stdout] 1292 | self.context.register_global_builtin_callable("raycast_fire", 1, NativeFunction::from_fn_ptr(raycast_fire)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1292 | let _ = self.context.register_global_builtin_callable("raycast_fire", 1, NativeFunction::from_fn_ptr(raycast_fire)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1294:9 [INFO] [stdout] | [INFO] [stdout] 1294 | self.context.register_global_builtin_callable("get_file", 1, NativeFunction::from_fn_ptr(get_file)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1294 | let _ = self.context.register_global_builtin_callable("get_file", 1, NativeFunction::from_fn_ptr(get_file)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1303:13 [INFO] [stdout] | [INFO] [stdout] 1303 | reseve.send(st); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1303 | let _ = reseve.send(st); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1306:9 [INFO] [stdout] | [INFO] [stdout] 1306 | self.context.register_global_builtin_callable("_emit", 1, unsafe { NativeFunction::from_closure(wopper) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1306 | let _ = self.context.register_global_builtin_callable("_emit", 1, unsafe { NativeFunction::from_closure(wopper) }); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1314:9 [INFO] [stdout] | [INFO] [stdout] 1314 | self.context.register_global_builtin_callable("_emit", 1, unsafe { NativeFunction::from_closure(wopper) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1314 | let _ = self.context.register_global_builtin_callable("_emit", 1, unsafe { NativeFunction::from_closure(wopper) }); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/main.rs:498:33 [INFO] [stdout] | [INFO] [stdout] 498 | if *firs == format!("") { [INFO] [stdout] | ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/main.rs:527:33 [INFO] [stdout] | [INFO] [stdout] 527 | ... format!("\"\"") [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"\"\"".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/main.rs:786:13 [INFO] [stdout] | [INFO] [stdout] 786 | / match receiver.try_recv() { [INFO] [stdout] 787 | | Ok(packet) => { [INFO] [stdout] 788 | | js_world.triggerlis(&"client_update".to_string(), &packet); [INFO] [stdout] ... | [INFO] [stdout] 791 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 786 ~ if let Ok(packet) = receiver.try_recv() { [INFO] [stdout] 787 + js_world.triggerlis(&"client_update".to_string(), &packet); [INFO] [stdout] 788 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/main.rs:793:13 [INFO] [stdout] | [INFO] [stdout] 793 | / match receiverEmit.try_recv() { [INFO] [stdout] 794 | | Ok(packet) => { [INFO] [stdout] 795 | | let socket = socket.as_ref().unwrap(); [INFO] [stdout] 796 | | socket [INFO] [stdout] ... | [INFO] [stdout] 800 | | _ => (), [INFO] [stdout] 801 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 793 ~ if let Ok(packet) = receiverEmit.try_recv() { [INFO] [stdout] 794 + let socket = socket.as_ref().unwrap(); [INFO] [stdout] 795 + socket [INFO] [stdout] 796 + .emit("update", packet) [INFO] [stdout] 797 + .expect("Server unreachable"); [INFO] [stdout] 798 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `match` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:862:17 [INFO] [stdout] | [INFO] [stdout] 862 | / match event { [INFO] [stdout] 863 | | DeviceEvent::MouseMotion { delta } => { [INFO] [stdout] 864 | | if(!keconf.headless){ [INFO] [stdout] 865 | | let mut propz: std::sync::RwLockWriteGuard> = PROPS.try_write().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 878 | | _ => {} [INFO] [stdout] 879 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/main.rs:861:45 [INFO] [stdout] | [INFO] [stdout] 861 | Event::DeviceEvent { device_id, event } => { [INFO] [stdout] | ^^^^^ replace this binding [INFO] [stdout] 862 | match event { [INFO] [stdout] 863 | DeviceEvent::MouseMotion { delta } => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern, prefixed by `event: ` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:864:25 [INFO] [stdout] | [INFO] [stdout] 864 | / if(!keconf.headless){ [INFO] [stdout] 865 | | let mut propz: std::sync::RwLockWriteGuard> = PROPS.try_write().unwrap(); [INFO] [stdout] 866 | | let mut phys_world = PW.write().unwrap(); [INFO] [stdout] 867 | | let mut _main_camera = MAIN_CAM.write().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 876 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 863 ~ DeviceEvent::MouseMotion { delta } [INFO] [stdout] 864 ~ if(!keconf.headless)=> { [INFO] [stdout] 865 | let mut propz: std::sync::RwLockWriteGuard> = PROPS.try_write().unwrap(); [INFO] [stdout] ... [INFO] [stdout] 875 | } [INFO] [stdout] 876 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/main.rs:862:17 [INFO] [stdout] | [INFO] [stdout] 862 | / match event { [INFO] [stdout] 863 | | DeviceEvent::MouseMotion { delta } => { [INFO] [stdout] 864 | | if(!keconf.headless){ [INFO] [stdout] 865 | | let mut propz: std::sync::RwLockWriteGuard> = PROPS.try_write().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 878 | | _ => {} [INFO] [stdout] 879 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 862 ~ if let DeviceEvent::MouseMotion { delta } = event { [INFO] [stdout] 863 + if(!keconf.headless){ [INFO] [stdout] 864 + let mut propz: std::sync::RwLockWriteGuard> = PROPS.try_write().unwrap(); [INFO] [stdout] 865 + let mut phys_world = PW.write().unwrap(); [INFO] [stdout] 866 + let mut _main_camera = MAIN_CAM.write().unwrap(); [INFO] [stdout] 867 + let mut camera_map = CAMERAS.write().unwrap(); [INFO] [stdout] 868 + let (width, height) = display.get_framebuffer_dimensions(); [INFO] [stdout] 869 + let a = Vector2::new(delta.0 as f32, delta.1 as f32); [INFO] [stdout] 870 + real_char.interp_mouse(&mut phys_world, &mut propz, &mut camera_map, a, screen_size, delta_time*keconf.mouse_sensitivity); [INFO] [stdout] 871 + [INFO] [stdout] 872 + if cursor_locked { [INFO] [stdout] 873 + v.set_cursor_position(LogicalPosition::new(width/2, height/2)); [INFO] [stdout] 874 + } [INFO] [stdout] 875 + } [INFO] [stdout] 876 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/main.rs:891:24 [INFO] [stdout] | [INFO] [stdout] 891 | if location == "" { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `location.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] = note: `#[warn(clippy::comparison_to_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/main.rs:900:24 [INFO] [stdout] | [INFO] [stdout] 900 | if location == "" { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `location.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:909:49 [INFO] [stdout] | [INFO] [stdout] 909 | let modael = modelz.get_mut(&modelID).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: change this to: `modelID` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:910:40 [INFO] [stdout] | [INFO] [stdout] 910 | modael.verts.write(&mesh); [INFO] [stdout] | ^^^^^ help: change this to: `mesh` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/main.rs:915:24 [INFO] [stdout] | [INFO] [stdout] 915 | if local == "" { [INFO] [stdout] | ^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `local.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:923:53 [INFO] [stdout] | [INFO] [stdout] 923 | let projecto = texturez.get_mut(&wheret).unwrap(); [INFO] [stdout] | ^^^^^^^ help: change this to: `wheret` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:930:49 [INFO] [stdout] | [INFO] [stdout] 930 | let w = match propz.get_mut(&propid) { [INFO] [stdout] | ^^^^^^^ help: change this to: `propid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:948:34 [INFO] [stdout] | [INFO] [stdout] 948 | propz.remove(&propid); [INFO] [stdout] | ^^^^^^^ help: change this to: `propid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:955:51 [INFO] [stdout] | [INFO] [stdout] 955 | let mut propa = propz.get_mut(&propid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: change this to: `propid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:962:51 [INFO] [stdout] | [INFO] [stdout] 962 | let mut propa = propz.get_mut(&propid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: change this to: `propid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:970:29 [INFO] [stdout] | [INFO] [stdout] 970 | loadmap(&locala, &mut propz, &mut texturez, &mut modelz, &mut shaderz, &mut lightz, &display, *worldid); [INFO] [stdout] | ^^^^^^^ help: change this to: `locala` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:974:41 [INFO] [stdout] | [INFO] [stdout] 974 | js_world.triggerlis(&namre, &dattaa); [INFO] [stdout] | ^^^^^^ help: change this to: `namre` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:974:49 [INFO] [stdout] | [INFO] [stdout] 974 | js_world.triggerlis(&namre, &dattaa); [INFO] [stdout] | ^^^^^^^ help: change this to: `dattaa` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:978:51 [INFO] [stdout] | [INFO] [stdout] 978 | let mut propa = propz.get_mut(&propid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: change this to: `propid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1156:46 [INFO] [stdout] | [INFO] [stdout] 1156 | let prop = propz.get_mut(&pid).unwrap(); [INFO] [stdout] | ^^^^ help: change this to: `pid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1188:132 [INFO] [stdout] | [INFO] [stdout] 1188 | ...lastscreen_texture, &lastdepthtext, &mut screenbuffer, &texturez, &texturez2, &mut target, &modelz, &shaderz, ¶ms); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `screenbuffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1199:71 [INFO] [stdout] | [INFO] [stdout] 1199 | ... lastscreenbuffer.blit_buffers_from_simple_framebuffer(&screenbuffer, &glium::Rect { left: 0, bottom: 0, width: width, height... [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `screenbuffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1203:46 [INFO] [stdout] | [INFO] [stdout] 1203 | let prop = propz.get_mut(&po).unwrap(); [INFO] [stdout] | ^^^ help: change this to: `po` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1212:132 [INFO] [stdout] | [INFO] [stdout] 1212 | ...lastscreen_texture, &lastdepthtext, &mut screenbuffer, &texturez, &texturez2, &mut target, &modelz, &shaderz, ¶ms); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `screenbuffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1221:117 [INFO] [stdout] | [INFO] [stdout] 1221 | ...texture, &lastscreen_depth_texture, &mut screenbuffer, &mut target, &shaderz, &screenparams); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `screenbuffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1230:139 [INFO] [stdout] | [INFO] [stdout] 1230 | ...&imelm.shader, &shader_vars, &get_texture_raw(&texturez, imelm.texture, &texturez2), &screen_texture, &lastscreen_depth_texture... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `get_texture_raw(&texturez, imelm.texture, &texturez2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1230:239 [INFO] [stdout] | [INFO] [stdout] 1230 | ...texture, &lastscreen_depth_texture, &mut screenbuffer, &mut target, &shaderz, &screenparams); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `screenbuffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/main.rs:1249:33 [INFO] [stdout] | [INFO] [stdout] 1249 | ... currentheight=(currentheight)-(fonta.default_line_height as f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `currentheight -= (fonta.default_line_height as f32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1277:216 [INFO] [stdout] | [INFO] [stdout] 1277 | ...&imelm.shader, &shader_vars, &get_texture_raw(&texturez, fonta.texture, &texturez2), &screen_texture, &lastscreen_depth_texture... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `get_texture_raw(&texturez, fonta.texture, &texturez2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1277:316 [INFO] [stdout] | [INFO] [stdout] 1277 | ...texture, &lastscreen_depth_texture, &mut screenbuffer, &mut target, &shaderz, &screenparams); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `screenbuffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/main.rs:1335:5 [INFO] [stdout] | [INFO] [stdout] 1335 | return (*prpalce.1.last().unwrap(), *worldid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 1335 - return (*prpalce.1.last().unwrap(), *worldid); [INFO] [stdout] 1335 + (*prpalce.1.last().unwrap(), *worldid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1306:33 [INFO] [stdout] | [INFO] [stdout] 1306 | let w = match propz.get_mut(&propid) { [INFO] [stdout] | ^^^^^^^ help: change this to: `propid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1320:34 [INFO] [stdout] | [INFO] [stdout] 1320 | let prpalce = worldz.get_mut(&worldid).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: change this to: `worldid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1328:42 [INFO] [stdout] | [INFO] [stdout] 1328 | let mut phys_world = binding.get_mut(&worldid).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: change this to: `worldid` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (10/7) [INFO] [stdout] --> src/main.rs:1338:1 [INFO] [stdout] | [INFO] [stdout] 1338 | fn screen_compile(loop_wawa: f32, scr...&HashMap, params: &DrawParameters<'_>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1391:13 [INFO] [stdout] | [INFO] [stdout] 1391 | &shaderz.get(screen_shader).unwrap().program.as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `shaderz.get(screen_shader).unwrap().program.as_ref().unwrap()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (15/7) [INFO] [stdout] --> src/main.rs:1399:1 [INFO] [stdout] | [INFO] [stdout] 1399 | fn render_prop(loop_wawa: f32, prop: ...&HashMap, params: &DrawParameters<'_>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/main.rs:1495:54 [INFO] [stdout] | [INFO] [stdout] 1495 | uniform.add("LeDirLight.diffuse".to_owned(), &*world_emv.skyColor.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `world_emv.skyColor.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] = note: `#[warn(clippy::borrow_deref_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/main.rs:1501:72 [INFO] [stdout] | [INFO] [stdout] 1501 | uniform.add("pointLights[".to_owned()+&index+"].position", &*light.position.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `light.position.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/main.rs:1502:71 [INFO] [stdout] | [INFO] [stdout] 1502 | uniform.add("pointLights[".to_owned()+&index+"].ambient", &*light.ambient.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `light.ambient.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/main.rs:1503:71 [INFO] [stdout] | [INFO] [stdout] 1503 | uniform.add("pointLights[".to_owned()+&index+"].diffuse", &*light.diffuse.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `light.diffuse.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/main.rs:1504:72 [INFO] [stdout] | [INFO] [stdout] 1504 | uniform.add("pointLights[".to_owned()+&index+"].specular", &*light.specular.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `light.specular.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the variable `currrent_text` is used as a loop counter [INFO] [stdout] --> src/main.rs:1541:5 [INFO] [stdout] | [INFO] [stdout] 1541 | for text in &prop.textures { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `for (currrent_text, text) in prop.textures.iter().enumerate()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1551:13 [INFO] [stdout] | [INFO] [stdout] 1551 | &get_shader(shaderz, prop), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `get_shader(shaderz, prop)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (14/7) [INFO] [stdout] --> src/main.rs:1558:1 [INFO] [stdout] | [INFO] [stdout] 1558 | fn render_menu(loop_wawa: f32, pos: V...&HashMap, params: &DrawParameters<'_>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1622:13 [INFO] [stdout] | [INFO] [stdout] 1622 | &shaderz.get(screen_shader).unwrap().program.as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `shaderz.get(screen_shader).unwrap().program.as_ref().unwrap()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1637:21 [INFO] [stdout] | [INFO] [stdout] 1637 | &real [INFO] [stdout] | ^^^^^ help: change this to: `real` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1639:25 [INFO] [stdout] | [INFO] [stdout] 1639 | None => &shadersz.get(&5).unwrap().program.as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `shadersz.get(&5).unwrap().program.as_ref().unwrap()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:1642:17 [INFO] [stdout] | [INFO] [stdout] 1642 | None => &shadersz.get(&5).unwrap().program.as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `shadersz.get(&5).unwrap().program.as_ref().unwrap()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/main.rs:1653:97 [INFO] [stdout] | [INFO] [stdout] 1653 | fn get_texture<'a>(texturez: &'a HashMap, prop: &Prop, texture: usize, texturez2: &'a Vec) -> &'a Srg... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 1653 - fn get_texture<'a>(texturez: &'a HashMap, prop: &Prop, texture: usize, texturez2: &'a Vec) -> &'a SrgbTexture2d { [INFO] [stdout] 1653 + fn get_texture<'a>(texturez: &'a HashMap, prop: &Prop, texture: usize, texturez2: &'a [SrgbTexture2d]) -> &'a SrgbTexture2d { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/main.rs:1666:82 [INFO] [stdout] | [INFO] [stdout] 1666 | fn get_texture_raw<'a>(texturez: &'a HashMap, ida: i32, texturez2: &'a Vec) -> &'a SrgbTexture2d { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 1666 - fn get_texture_raw<'a>(texturez: &'a HashMap, ida: i32, texturez2: &'a Vec) -> &'a SrgbTexture2d { [INFO] [stdout] 1666 + fn get_texture_raw<'a>(texturez: &'a HashMap, ida: i32, texturez2: &'a [SrgbTexture2d]) -> &'a SrgbTexture2d { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/garbage_collector.rs:73:22 [INFO] [stdout] | [INFO] [stdout] 73 | let ignorelist = vec![ [INFO] [stdout] | ______________________^ [INFO] [stdout] 74 | | vec![], [INFO] [stdout] 75 | | vec![0,1], [INFO] [stdout] 76 | | vec![0,1,2], [INFO] [stdout] 77 | | vec![0,1,2,3,4,5] [INFO] [stdout] 78 | | ]; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 73 ~ let ignorelist = [vec![], [INFO] [stdout] 74 + vec![0,1], [INFO] [stdout] 75 + vec![0,1,2], [INFO] [stdout] 76 ~ vec![0,1,2,3,4,5]]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_KE_MAIN_PATH` should have a snake case name [INFO] [stdout] --> src/main.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | let _KE_MAIN_PATH = "."; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `_ke_main_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_KE_MAIN_DEPENDENTS` should have a snake case name [INFO] [stdout] --> src/main.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | let _KE_MAIN_DEPENDENTS = "./engine_dependent"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `_ke_main_dependents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | v.set_cursor_grab(CursorGrabMode::Locked); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 163 | let _ = v.set_cursor_grab(CursorGrabMode::Locked); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txCount` should have a snake case name [INFO] [stdout] --> src/main.rs:303:13 [INFO] [stdout] | [INFO] [stdout] 303 | let txCount = *TEXTURE_COUNT.read().unwrap()-1; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tx_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mdCount` should have a snake case name [INFO] [stdout] --> src/main.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 310 | let mdCount = *MODEL_COUNT.read().unwrap()-1 ; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `md_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `shCount` should have a snake case name [INFO] [stdout] --> src/main.rs:323:9 [INFO] [stdout] | [INFO] [stdout] 323 | let shCount = *SHADER_COUNT.read().unwrap()-1; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `sh_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:491:21 [INFO] [stdout] | [INFO] [stdout] 491 | / socket.emit("update", json!({ [INFO] [stdout] 492 | | "type":"server_your_ticket", [INFO] [stdout] 493 | | "id":socket.id, [INFO] [stdout] 494 | | })); [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 491 | let _ = socket.emit("update", json!({ [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:503:25 [INFO] [stdout] | [INFO] [stdout] 503 | / socket.emit("update", json!({ [INFO] [stdout] 504 | | "type":"join", [INFO] [stdout] 505 | | "id":socket.id, [INFO] [stdout] 506 | | })); [INFO] [stdout] | |___________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 503 | let _ = socket.emit("update", json!({ [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:509:25 [INFO] [stdout] | [INFO] [stdout] 509 | / socket.to(firs).emit("update", json!({ [INFO] [stdout] 510 | | "type":"join", [INFO] [stdout] 511 | | "id":socket.id, [INFO] [stdout] 512 | | })); [INFO] [stdout] | |___________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 509 | let _ = socket.to(firs).emit("update", json!({ [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderEmit` should have a snake case name [INFO] [stdout] --> src/main.rs:589:14 [INFO] [stdout] | [INFO] [stdout] 589 | let (senderEmit, receiverEmit) = channel::(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `sender_emit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `receiverEmit` should have a snake case name [INFO] [stdout] --> src/main.rs:589:26 [INFO] [stdout] | [INFO] [stdout] 589 | let (senderEmit, receiverEmit) = channel::(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `receiver_emit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:604:25 [INFO] [stdout] | [INFO] [stdout] 604 | sender.send(whatt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 604 | let _ = sender.send(whatt); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:615:21 [INFO] [stdout] | [INFO] [stdout] 615 | sendera.send(whatt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 615 | let _ = sendera.send(whatt); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:874:33 [INFO] [stdout] | [INFO] [stdout] 874 | ... v.set_cursor_position(LogicalPosition::new(width/2, height/2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 874 | let _ = v.set_cursor_position(LogicalPosition::new(width/2, height/2)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `modelID` should have a snake case name [INFO] [stdout] --> src/main.rs:908:52 [INFO] [stdout] | [INFO] [stdout] 908 | KERequest::Create_Model_From_Magic(modelID, mesh) => { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `model_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:985:25 [INFO] [stdout] | [INFO] [stdout] 985 | v.set_cursor_grab(CursorGrabMode::Locked); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 985 | let _ = v.set_cursor_grab(CursorGrabMode::Locked); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:989:25 [INFO] [stdout] | [INFO] [stdout] 989 | v.set_cursor_grab(CursorGrabMode::None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 989 | let _ = v.set_cursor_grab(CursorGrabMode::None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `metadataF` should have a snake case name [INFO] [stdout] --> src/main.rs:1021:21 [INFO] [stdout] | [INFO] [stdout] 1021 | let metadataF = fs::metadata(format!("{name}.frag")).expect("failed to check shader file"); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `metadata_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `metadataV` should have a snake case name [INFO] [stdout] --> src/main.rs:1022:21 [INFO] [stdout] | [INFO] [stdout] 1022 | let metadataV = fs::metadata(format!("{name}.vert")).expect("failed to check shader file"); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `metadata_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Faona` should have a snake case name [INFO] [stdout] --> src/main.rs:1038:21 [INFO] [stdout] | [INFO] [stdout] 1038 | let mut Faona = FONTS.write().unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `faona` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Faona` should have a snake case name [INFO] [stdout] --> src/main.rs:1235:29 [INFO] [stdout] | [INFO] [stdout] 1235 | let Faona = FONTS.write().unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `faona` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New` should have a snake case name [INFO] [stdout] --> src/ke_units.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn New(x:f32,y:f32) -> Vec2{ [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New` should have a snake case name [INFO] [stdout] --> src/ke_units.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn New(x:f32,y:f32,z:f32) -> Vec3{ [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Char` should have a snake case name [INFO] [stdout] --> src/menu_system.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub Char: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Char` should have a snake case name [INFO] [stdout] --> src/menu_system.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub Char: char, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `skyColor` should have a snake case name [INFO] [stdout] --> src/kbf.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub skyColor: Vector3, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `sky_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `skyColor` should have a snake case name [INFO] [stdout] --> src/vmf.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub skyColor: Vector3, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `sky_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `last_ID` should have a snake case name [INFO] [stdout] --> src/physic_props.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | last_ID: i32, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `last_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `nalgebra::base::norm::>::normalize` that must be used [INFO] [stdout] --> src/char_control.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | front.normalize(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: Did you mean to use normalize_mut()? [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 206 | let _ = front.normalize(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1212:9 [INFO] [stdout] | [INFO] [stdout] 1212 | ... self.context.register_global_builtin_callable("get_existing_prop_by_name", 1, NativeFunction::from_fn_ptr(get_existing_prop_by_name)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1212 | let _ = self.context.register_global_builtin_callable("get_existing_prop_by_name", 1, NativeFunction::from_fn_ptr(get_existing_prop_by_name)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1214:9 [INFO] [stdout] | [INFO] [stdout] 1214 | self.context.register_global_builtin_callable("create_prop", 1, NativeFunction::from_fn_ptr(create_prop)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1214 | let _ = self.context.register_global_builtin_callable("create_prop", 1, NativeFunction::from_fn_ptr(create_prop)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1215:9 [INFO] [stdout] | [INFO] [stdout] 1215 | self.context.register_global_builtin_callable("delete_prop", 1, NativeFunction::from_fn_ptr(delete_prop)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1215 | let _ = self.context.register_global_builtin_callable("delete_prop", 1, NativeFunction::from_fn_ptr(delete_prop)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1216:9 [INFO] [stdout] | [INFO] [stdout] 1216 | self.context.register_global_builtin_callable("mod_prop_pos", 1, NativeFunction::from_fn_ptr(mod_prop_pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1216 | let _ = self.context.register_global_builtin_callable("mod_prop_pos", 1, NativeFunction::from_fn_ptr(mod_prop_pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1217:9 [INFO] [stdout] | [INFO] [stdout] 1217 | self.context.register_global_builtin_callable("get_prop_pos", 1, NativeFunction::from_fn_ptr(get_prop_pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1217 | let _ = self.context.register_global_builtin_callable("get_prop_pos", 1, NativeFunction::from_fn_ptr(get_prop_pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1218:9 [INFO] [stdout] | [INFO] [stdout] 1218 | self.context.register_global_builtin_callable("mod_prop_scale", 1, NativeFunction::from_fn_ptr(mod_prop_scale)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1218 | let _ = self.context.register_global_builtin_callable("mod_prop_scale", 1, NativeFunction::from_fn_ptr(mod_prop_scale)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1219:9 [INFO] [stdout] | [INFO] [stdout] 1219 | self.context.register_global_builtin_callable("get_prop_scale", 1, NativeFunction::from_fn_ptr(get_prop_scale)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1219 | let _ = self.context.register_global_builtin_callable("get_prop_scale", 1, NativeFunction::from_fn_ptr(get_prop_scale)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1220:9 [INFO] [stdout] | [INFO] [stdout] 1220 | self.context.register_global_builtin_callable("mod_prop_shader", 1, NativeFunction::from_fn_ptr(mod_prop_shader)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1220 | let _ = self.context.register_global_builtin_callable("mod_prop_shader", 1, NativeFunction::from_fn_ptr(mod_prop_shader)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1221:9 [INFO] [stdout] | [INFO] [stdout] 1221 | self.context.register_global_builtin_callable("get_prop_shader", 1, NativeFunction::from_fn_ptr(get_prop_shader)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1221 | let _ = self.context.register_global_builtin_callable("get_prop_shader", 1, NativeFunction::from_fn_ptr(get_prop_shader)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1222:9 [INFO] [stdout] | [INFO] [stdout] 1222 | self.context.register_global_builtin_callable("mod_prop_model", 1, NativeFunction::from_fn_ptr(mod_prop_model)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1222 | let _ = self.context.register_global_builtin_callable("mod_prop_model", 1, NativeFunction::from_fn_ptr(mod_prop_model)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1223:9 [INFO] [stdout] | [INFO] [stdout] 1223 | self.context.register_global_builtin_callable("get_prop_model", 1, NativeFunction::from_fn_ptr(get_prop_model)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1223 | let _ = self.context.register_global_builtin_callable("get_prop_model", 1, NativeFunction::from_fn_ptr(get_prop_model)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1224:9 [INFO] [stdout] | [INFO] [stdout] 1224 | self.context.register_global_builtin_callable("mod_prop_texture", 1, NativeFunction::from_fn_ptr(mod_prop_texture)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1224 | let _ = self.context.register_global_builtin_callable("mod_prop_texture", 1, NativeFunction::from_fn_ptr(mod_prop_texture)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1225:9 [INFO] [stdout] | [INFO] [stdout] 1225 | self.context.register_global_builtin_callable("get_prop_texture", 1, NativeFunction::from_fn_ptr(get_prop_texture)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1225 | let _ = self.context.register_global_builtin_callable("get_prop_texture", 1, NativeFunction::from_fn_ptr(get_prop_texture)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1226:9 [INFO] [stdout] | [INFO] [stdout] 1226 | self.context.register_global_builtin_callable("mod_prop_rot", 1, NativeFunction::from_fn_ptr(mod_prop_rot)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1226 | let _ = self.context.register_global_builtin_callable("mod_prop_rot", 1, NativeFunction::from_fn_ptr(mod_prop_rot)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1227:9 [INFO] [stdout] | [INFO] [stdout] 1227 | self.context.register_global_builtin_callable("get_prop_rot", 1, NativeFunction::from_fn_ptr(get_prop_rot)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1227 | let _ = self.context.register_global_builtin_callable("get_prop_rot", 1, NativeFunction::from_fn_ptr(get_prop_rot)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1228:9 [INFO] [stdout] | [INFO] [stdout] 1228 | self.context.register_global_builtin_callable("mod_prop_backcull", 1, NativeFunction::from_fn_ptr(mod_prop_backcull)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1228 | let _ = self.context.register_global_builtin_callable("mod_prop_backcull", 1, NativeFunction::from_fn_ptr(mod_prop_backcull)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1229:9 [INFO] [stdout] | [INFO] [stdout] 1229 | self.context.register_global_builtin_callable("get_prop_backcull", 1, NativeFunction::from_fn_ptr(get_prop_backcull)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1229 | let _ = self.context.register_global_builtin_callable("get_prop_backcull", 1, NativeFunction::from_fn_ptr(get_prop_backcull)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1230:9 [INFO] [stdout] | [INFO] [stdout] 1230 | self.context.register_global_builtin_callable("mod_prop_render", 1, NativeFunction::from_fn_ptr(mod_prop_render)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1230 | let _ = self.context.register_global_builtin_callable("mod_prop_render", 1, NativeFunction::from_fn_ptr(mod_prop_render)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1231:9 [INFO] [stdout] | [INFO] [stdout] 1231 | self.context.register_global_builtin_callable("get_prop_render", 1, NativeFunction::from_fn_ptr(get_prop_render)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1231 | let _ = self.context.register_global_builtin_callable("get_prop_render", 1, NativeFunction::from_fn_ptr(get_prop_render)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1232:9 [INFO] [stdout] | [INFO] [stdout] 1232 | self.context.register_global_builtin_callable("mod_prop_trans", 1, NativeFunction::from_fn_ptr(mod_prop_trans)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1232 | let _ = self.context.register_global_builtin_callable("mod_prop_trans", 1, NativeFunction::from_fn_ptr(mod_prop_trans)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1233:9 [INFO] [stdout] | [INFO] [stdout] 1233 | self.context.register_global_builtin_callable("get_prop_trans", 1, NativeFunction::from_fn_ptr(get_prop_trans)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1233 | let _ = self.context.register_global_builtin_callable("get_prop_trans", 1, NativeFunction::from_fn_ptr(get_prop_trans)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1234:9 [INFO] [stdout] | [INFO] [stdout] 1234 | self.context.register_global_builtin_callable("lookat_prop", 1, NativeFunction::from_fn_ptr(lookat_prop)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1234 | let _ = self.context.register_global_builtin_callable("lookat_prop", 1, NativeFunction::from_fn_ptr(lookat_prop)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1235:9 [INFO] [stdout] | [INFO] [stdout] 1235 | self.context.register_global_builtin_callable("mod_prop_vel", 1, NativeFunction::from_fn_ptr(mod_prop_vel)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1235 | let _ = self.context.register_global_builtin_callable("mod_prop_vel", 1, NativeFunction::from_fn_ptr(mod_prop_vel)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1236:9 [INFO] [stdout] | [INFO] [stdout] 1236 | self.context.register_global_builtin_callable("get_prop_vel", 1, NativeFunction::from_fn_ptr(get_prop_vel)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1236 | let _ = self.context.register_global_builtin_callable("get_prop_vel", 1, NativeFunction::from_fn_ptr(get_prop_vel)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1237:9 [INFO] [stdout] | [INFO] [stdout] 1237 | ... self.context.register_global_builtin_callable("mod_prop_vel_onlyside", 1, NativeFunction::from_fn_ptr(mod_prop_vel_onlyside)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1237 | let _ = self.context.register_global_builtin_callable("mod_prop_vel_onlyside", 1, NativeFunction::from_fn_ptr(mod_prop_vel_onlyside)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1238:9 [INFO] [stdout] | [INFO] [stdout] 1238 | self.context.register_global_builtin_callable("mod_prop_copy_phys", 1, NativeFunction::from_fn_ptr(mod_prop_copy_phys)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1238 | let _ = self.context.register_global_builtin_callable("mod_prop_copy_phys", 1, NativeFunction::from_fn_ptr(mod_prop_copy_phys)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1239:9 [INFO] [stdout] | [INFO] [stdout] 1239 | ... self.context.register_global_builtin_callable("get_all_props_in_world", 1, NativeFunction::from_fn_ptr(get_all_props_in_world)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1239 | let _ = self.context.register_global_builtin_callable("get_all_props_in_world", 1, NativeFunction::from_fn_ptr(get_all_props_in_world)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1241:9 [INFO] [stdout] | [INFO] [stdout] 1241 | ... self.context.register_global_builtin_callable("get_existing_cam_by_name", 1, NativeFunction::from_fn_ptr(get_existing_cam_by_name)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1241 | let _ = self.context.register_global_builtin_callable("get_existing_cam_by_name", 1, NativeFunction::from_fn_ptr(get_existing_cam_by_name)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1243:9 [INFO] [stdout] | [INFO] [stdout] 1243 | self.context.register_global_builtin_callable("create_camera", 1, NativeFunction::from_fn_ptr(create_camera)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1243 | let _ = self.context.register_global_builtin_callable("create_camera", 1, NativeFunction::from_fn_ptr(create_camera)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1244:9 [INFO] [stdout] | [INFO] [stdout] 1244 | self.context.register_global_builtin_callable("mod_camera_pos", 1, NativeFunction::from_fn_ptr(mod_camera_pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1244 | let _ = self.context.register_global_builtin_callable("mod_camera_pos", 1, NativeFunction::from_fn_ptr(mod_camera_pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1245:9 [INFO] [stdout] | [INFO] [stdout] 1245 | self.context.register_global_builtin_callable("get_camera_pos", 1, NativeFunction::from_fn_ptr(get_camera_pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1245 | let _ = self.context.register_global_builtin_callable("get_camera_pos", 1, NativeFunction::from_fn_ptr(get_camera_pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1246:9 [INFO] [stdout] | [INFO] [stdout] 1246 | self.context.register_global_builtin_callable("mod_camera_rot", 1, NativeFunction::from_fn_ptr(mod_camera_rot)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1246 | let _ = self.context.register_global_builtin_callable("mod_camera_rot", 1, NativeFunction::from_fn_ptr(mod_camera_rot)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1247:9 [INFO] [stdout] | [INFO] [stdout] 1247 | self.context.register_global_builtin_callable("get_camera_rot", 1, NativeFunction::from_fn_ptr(get_camera_rot)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1247 | let _ = self.context.register_global_builtin_callable("get_camera_rot", 1, NativeFunction::from_fn_ptr(get_camera_rot)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1248:9 [INFO] [stdout] | [INFO] [stdout] 1248 | self.context.register_global_builtin_callable("mod_camera_dis", 1, NativeFunction::from_fn_ptr(mod_camera_dis)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1248 | let _ = self.context.register_global_builtin_callable("mod_camera_dis", 1, NativeFunction::from_fn_ptr(mod_camera_dis)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1249:9 [INFO] [stdout] | [INFO] [stdout] 1249 | self.context.register_global_builtin_callable("get_camera_dis", 1, NativeFunction::from_fn_ptr(get_camera_dis)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1249 | let _ = self.context.register_global_builtin_callable("get_camera_dis", 1, NativeFunction::from_fn_ptr(get_camera_dis)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1250:9 [INFO] [stdout] | [INFO] [stdout] 1250 | self.context.register_global_builtin_callable("mod_camera_world", 1, NativeFunction::from_fn_ptr(mod_camera_world)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1250 | let _ = self.context.register_global_builtin_callable("mod_camera_world", 1, NativeFunction::from_fn_ptr(mod_camera_world)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1251:9 [INFO] [stdout] | [INFO] [stdout] 1251 | self.context.register_global_builtin_callable("get_camera_world", 1, NativeFunction::from_fn_ptr(get_camera_world)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1251 | let _ = self.context.register_global_builtin_callable("get_camera_world", 1, NativeFunction::from_fn_ptr(get_camera_world)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1252:9 [INFO] [stdout] | [INFO] [stdout] 1252 | self.context.register_global_builtin_callable("mod_camera_bw2", 1, NativeFunction::from_fn_ptr(mod_camera_bw2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1252 | let _ = self.context.register_global_builtin_callable("mod_camera_bw2", 1, NativeFunction::from_fn_ptr(mod_camera_bw2)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1253:9 [INFO] [stdout] | [INFO] [stdout] 1253 | self.context.register_global_builtin_callable("get_camera_bw2", 1, NativeFunction::from_fn_ptr(get_camera_bw2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1253 | let _ = self.context.register_global_builtin_callable("get_camera_bw2", 1, NativeFunction::from_fn_ptr(get_camera_bw2)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1254:9 [INFO] [stdout] | [INFO] [stdout] 1254 | self.context.register_global_builtin_callable("lookat_camera", 1, NativeFunction::from_fn_ptr(lookat_camera)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1254 | let _ = self.context.register_global_builtin_callable("lookat_camera", 1, NativeFunction::from_fn_ptr(lookat_camera)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1255:9 [INFO] [stdout] | [INFO] [stdout] 1255 | self.context.register_global_builtin_callable("set_main_camera", 1, NativeFunction::from_fn_ptr(set_main_camera)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1255 | let _ = self.context.register_global_builtin_callable("set_main_camera", 1, NativeFunction::from_fn_ptr(set_main_camera)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/script.rs:1257:9 [INFO] [stdout] | [INFO] [stdout] 1257 | self.context.register_global_builtin_callable("create_world", 1, NativeFunction::from_fn_ptr(create_world)); [WARN] too many lines in the log, truncating it