[INFO] cloning repository https://github.com/OrtheSnowJames/RustSandbox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/OrtheSnowJames/RustSandbox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOrtheSnowJames%2FRustSandbox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOrtheSnowJames%2FRustSandbox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7aab3d7362233af3bd815f43ea23cb11397b74b4 [INFO] building OrtheSnowJames/RustSandbox against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOrtheSnowJames%2FRustSandbox" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/OrtheSnowJames/RustSandbox [INFO] finished tweaking git repo https://github.com/OrtheSnowJames/RustSandbox [INFO] tweaked toml for git repo https://github.com/OrtheSnowJames/RustSandbox written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/OrtheSnowJames/RustSandbox on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/OrtheSnowJames/RustSandbox 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded c_linked_list v1.1.1 [INFO] [stderr] Downloaded serde_derive v1.0.216 [INFO] [stderr] Downloaded get_if_addrs-sys v0.1.1 [INFO] [stderr] Downloaded get_if_addrs v0.5.3 [INFO] [stderr] Downloaded ascii v1.1.0 [INFO] [stderr] Downloaded cmake v0.1.52 [INFO] [stderr] Downloaded versions v5.0.1 [INFO] [stderr] Downloaded cc v1.2.5 [INFO] [stderr] Downloaded wfd v0.1.7 [INFO] [stderr] Downloaded native-dialog v0.7.0 [INFO] [stderr] Downloaded raylib_interactive v0.1.4 [INFO] [stderr] Downloaded serde v1.0.216 [INFO] [stderr] Downloaded syn v2.0.91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29dc5059acbc43a369a1184173d1fcd7f9ec8970df8fa5d5a27375b4dfb43c28 [INFO] running `Command { std: "docker" "start" "-a" "29dc5059acbc43a369a1184173d1fcd7f9ec8970df8fa5d5a27375b4dfb43c28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29dc5059acbc43a369a1184173d1fcd7f9ec8970df8fa5d5a27375b4dfb43c28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29dc5059acbc43a369a1184173d1fcd7f9ec8970df8fa5d5a27375b4dfb43c28", kill_on_drop: false }` [INFO] [stdout] 29dc5059acbc43a369a1184173d1fcd7f9ec8970df8fa5d5a27375b4dfb43c28 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4ff77b37096172d29f2cfc1b2acbe21912c01f265c3e093f58e2a5aa22c29f83 [INFO] running `Command { std: "docker" "start" "-a" "4ff77b37096172d29f2cfc1b2acbe21912c01f265c3e093f58e2a5aa22c29f83", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling prettyplease v0.2.25 [INFO] [stderr] Compiling rustix v0.38.42 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling libloading v0.8.6 [INFO] [stderr] Compiling bindgen v0.69.5 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling cc v1.2.5 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling hashbrown v0.7.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling value-bag v1.10.0 [INFO] [stderr] Compiling syn v2.0.91 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling futures-lite v2.5.0 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling event-listener-strategy v0.5.3 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling ahash v0.3.8 [INFO] [stderr] Compiling tynm v0.1.10 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling mopa v0.2.2 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling tuple_utils v0.3.0 [INFO] [stderr] Compiling hibitset v0.6.4 [INFO] [stderr] Compiling serde v1.0.216 [INFO] [stderr] Compiling cmake v0.1.52 [INFO] [stderr] Compiling shred v0.10.2 [INFO] [stderr] Compiling shrev v1.1.3 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling async-executor v1.13.1 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling ascii v1.1.0 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling c_linked_list v1.1.1 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling get_if_addrs v0.5.3 [INFO] [stderr] Compiling specs v0.16.1 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling versions v5.0.1 [INFO] [stderr] Compiling specs-derive v0.4.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_json v1.0.134 [INFO] [stderr] Compiling polling v3.7.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling async-io v2.4.0 [INFO] [stderr] Compiling native-dialog v0.7.0 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-std v1.13.0 [INFO] [stderr] Compiling raylib-sys v5.0.2 [INFO] [stderr] Compiling raylib v5.0.2 [INFO] [stderr] Compiling raylib_interactive v0.1.4 [INFO] [stderr] Compiling RustSandbox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/movement.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `line` should have an upper camel case name [INFO] [stdout] --> src/movement.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct line { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Line` [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: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/movement.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | ...if (check_collision(&Rectangle::new(x1 as f32, y1 as f32, owidth as f32, oheight as f32), &Rectangle::new(ending_point.x, ending_point.y, 1.0, 1.0))) { [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] 112 - if (check_collision(&Rectangle::new(x1 as f32, y1 as f32, owidth as f32, oheight as f32), &Rectangle::new(ending_point.x, ending_point.y, 1.0, 1.0))) { [INFO] [stdout] 112 + if check_collision(&Rectangle::new(x1 as f32, y1 as f32, owidth as f32, oheight as f32), &Rectangle::new(ending_point.x, ending_point.y, 1.0, 1.0)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/pathfinding.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `line` should have an upper camel case name [INFO] [stdout] --> src/pathfinding.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct line { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::path::PathBuf` [INFO] [stdout] --> src/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::randommods` [INFO] [stdout] --> src/client.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::randommods; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/settings.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | if (!path.exists()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if (!path.exists()) { [INFO] [stdout] 15 + if !path.exists() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/networking.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/networking.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::{Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SocketAddr` [INFO] [stdout] --> src/networking.rs:266:34 [INFO] [stdout] | [INFO] [stdout] 266 | use std::net::{IpAddr, Ipv4Addr, SocketAddr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `handle_readd` should have an upper camel case name [INFO] [stdout] --> src/handle_read.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct handle_readd; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HandleReadd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::io::prelude::*` [INFO] [stdout] --> src/randommods.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/randommods.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::IpAddr` [INFO] [stdout] --> src/server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::IpAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::Ipv4Addr` [INFO] [stdout] --> src/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::Ipv4Addr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/server.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::networking` [INFO] [stdout] --> src/server.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::networking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::os::unix::io::AsRawFd` [INFO] [stdout] --> src/randommods.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use async_std::os::unix::io::AsRawFd as AsyncRawFd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checklist` [INFO] [stdout] --> src/client.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut checklist: Value = json!({ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checklist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `open` is never read [INFO] [stdout] --> src/client.rs:238:5 [INFO] [stdout] | [INFO] [stdout] 238 | open = rl.window_should_close(); [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: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut client = AsyncTcpClient::new(format!("{}:{}", settings["IP"].as_str().unwrap(), settings["PORT"].as_str().unwrap()).as_str()); [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/client.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | let mut checklist: Value = json!({ [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monitor` [INFO] [stdout] --> src/settings.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let monitor: i32 = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monitor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_field` [INFO] [stdout] --> src/randommods.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | for (key, old_field) in old_obj { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `point1` and `point_on` are never read [INFO] [stdout] --> src/movement.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct line { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 63 | point1: Vector2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 64 | point2: Vector2, [INFO] [stdout] 65 | point_on: Vector2 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `point1`, `point2`, and `point_on` are never read [INFO] [stdout] --> src/pathfinding.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct line { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | point1: Vector2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | point2: Vector2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | point_on: Vector2 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_changes` is never used [INFO] [stdout] --> src/randommods.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn find_changes(old_value: &Value, new_value: &Value) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sockID` should have a snake case name [INFO] [stdout] --> src/client.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let sockID: i32 = AsyncTcpClient::get_socket_id(&io_stream.lock().unwrap()) as i32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `sock_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write` and `self` [INFO] [stdout] --> src/main.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{self, Write}; [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: `native_dialog::FileDialog` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use native_dialog::FileDialog; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::path::PathBuf` [INFO] [stdout] --> src/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::randommods` [INFO] [stdout] --> src/client.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::randommods; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::IpAddr` [INFO] [stdout] --> src/server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::IpAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::Ipv4Addr` [INFO] [stdout] --> src/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::Ipv4Addr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/server.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::networking` [INFO] [stdout] --> src/server.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::networking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::io::prelude::*` [INFO] [stdout] --> src/randommods.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/randommods.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/settings.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | if (!path.exists()) { [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] 15 - if (!path.exists()) { [INFO] [stdout] 15 + if !path.exists() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/networking.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/networking.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::{Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SocketAddr` [INFO] [stdout] --> src/networking.rs:266:34 [INFO] [stdout] | [INFO] [stdout] 266 | use std::net::{IpAddr, Ipv4Addr, SocketAddr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `handle_readd` should have an upper camel case name [INFO] [stdout] --> src/handle_read.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct handle_readd; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HandleReadd` [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: unused import: `async_std::os::unix::io::AsRawFd` [INFO] [stdout] --> src/randommods.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use async_std::os::unix::io::AsRawFd as AsyncRawFd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checklist` [INFO] [stdout] --> src/client.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut checklist: Value = json!({ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checklist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `open` is never read [INFO] [stdout] --> src/client.rs:238:5 [INFO] [stdout] | [INFO] [stdout] 238 | open = rl.window_should_close(); [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: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut client = AsyncTcpClient::new(format!("{}:{}", settings["IP"].as_str().unwrap(), settings["PORT"].as_str().unwrap()).as_str()); [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/client.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | let mut checklist: Value = json!({ [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_field` [INFO] [stdout] --> src/randommods.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | for (key, old_field) in old_obj { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monitor` [INFO] [stdout] --> src/settings.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let monitor: i32 = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monitor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_thread` [INFO] [stdout] --> src/main.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let server_thread: thread::JoinHandle<()> = thread::spawn(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_changes` is never used [INFO] [stdout] --> src/randommods.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn find_changes(old_value: &Value, new_value: &Value) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_collision` is never used [INFO] [stdout] --> src/collision.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn check_collision(player: &Movement, rect: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `handler` is never read [INFO] [stdout] --> src/networking.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct AsyncTcpServer { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 15 | address: String, [INFO] [stdout] 16 | handler: ClientHandler, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `run` and `receive` are never used [INFO] [stdout] --> src/networking.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 19 | impl AsyncTcpServer { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub async fn run(&self) -> async_std::io::Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub async fn receive(stream: &mut TcpStream) -> async_std::io::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `start_interactive_session` is never used [INFO] [stdout] --> src/networking.rs:203:18 [INFO] [stdout] | [INFO] [stdout] 140 | impl AsyncTcpClient { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 203 | pub async fn start_interactive_session(mut stream: TcpStream) -> async_std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_local_ip` is never used [INFO] [stdout] --> src/networking.rs:294:8 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn get_local_ip() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sockID` should have a snake case name [INFO] [stdout] --> src/client.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let sockID: i32 = AsyncTcpClient::get_socket_id(&io_stream.lock().unwrap()) as i32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `sock_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 04s [INFO] running `Command { std: "docker" "inspect" "4ff77b37096172d29f2cfc1b2acbe21912c01f265c3e093f58e2a5aa22c29f83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ff77b37096172d29f2cfc1b2acbe21912c01f265c3e093f58e2a5aa22c29f83", kill_on_drop: false }` [INFO] [stdout] 4ff77b37096172d29f2cfc1b2acbe21912c01f265c3e093f58e2a5aa22c29f83 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 01a68ffd2edc437ce47b4a757e7848b6517bf78a4ed2f67ff1a8cd4f4f84c7a6 [INFO] running `Command { std: "docker" "start" "-a" "01a68ffd2edc437ce47b4a757e7848b6517bf78a4ed2f67ff1a8cd4f4f84c7a6", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling specs-derive v0.4.1 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling async-std v1.13.0 [INFO] [stderr] Compiling raylib v5.0.2 [INFO] [stderr] Compiling raylib_interactive v0.1.4 [INFO] [stderr] Compiling RustSandbox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/movement.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `line` should have an upper camel case name [INFO] [stdout] --> src/movement.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct line { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Line` [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: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/movement.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | ...if (check_collision(&Rectangle::new(x1 as f32, y1 as f32, owidth as f32, oheight as f32), &Rectangle::new(ending_point.x, ending_point.y, 1.0, 1.0))) { [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] 112 - if (check_collision(&Rectangle::new(x1 as f32, y1 as f32, owidth as f32, oheight as f32), &Rectangle::new(ending_point.x, ending_point.y, 1.0, 1.0))) { [INFO] [stdout] 112 + if check_collision(&Rectangle::new(x1 as f32, y1 as f32, owidth as f32, oheight as f32), &Rectangle::new(ending_point.x, ending_point.y, 1.0, 1.0)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/pathfinding.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `line` should have an upper camel case name [INFO] [stdout] --> src/pathfinding.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct line { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::path::PathBuf` [INFO] [stdout] --> src/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::randommods` [INFO] [stdout] --> src/client.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::randommods; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/settings.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | if (!path.exists()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if (!path.exists()) { [INFO] [stdout] 15 + if !path.exists() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/networking.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/networking.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::{Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SocketAddr` [INFO] [stdout] --> src/networking.rs:266:34 [INFO] [stdout] | [INFO] [stdout] 266 | use std::net::{IpAddr, Ipv4Addr, SocketAddr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `handle_readd` should have an upper camel case name [INFO] [stdout] --> src/handle_read.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct handle_readd; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HandleReadd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::io::prelude::*` [INFO] [stdout] --> src/randommods.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/randommods.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::IpAddr` [INFO] [stdout] --> src/server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::IpAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::Ipv4Addr` [INFO] [stdout] --> src/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::Ipv4Addr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/server.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::networking` [INFO] [stdout] --> src/server.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::networking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::os::unix::io::AsRawFd` [INFO] [stdout] --> src/randommods.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use async_std::os::unix::io::AsRawFd as AsyncRawFd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checklist` [INFO] [stdout] --> src/client.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut checklist: Value = json!({ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checklist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `open` is never read [INFO] [stdout] --> src/client.rs:238:5 [INFO] [stdout] | [INFO] [stdout] 238 | open = rl.window_should_close(); [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: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut client = AsyncTcpClient::new(format!("{}:{}", settings["IP"].as_str().unwrap(), settings["PORT"].as_str().unwrap()).as_str()); [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/client.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | let mut checklist: Value = json!({ [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monitor` [INFO] [stdout] --> src/settings.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let monitor: i32 = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monitor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_field` [INFO] [stdout] --> src/randommods.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | for (key, old_field) in old_obj { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `point1` and `point_on` are never read [INFO] [stdout] --> src/movement.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct line { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 63 | point1: Vector2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 64 | point2: Vector2, [INFO] [stdout] 65 | point_on: Vector2 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `point1`, `point2`, and `point_on` are never read [INFO] [stdout] --> src/pathfinding.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct line { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | point1: Vector2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | point2: Vector2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | point_on: Vector2 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_changes` is never used [INFO] [stdout] --> src/randommods.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn find_changes(old_value: &Value, new_value: &Value) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sockID` should have a snake case name [INFO] [stdout] --> src/client.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let sockID: i32 = AsyncTcpClient::get_socket_id(&io_stream.lock().unwrap()) as i32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `sock_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/movement.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `line` should have an upper camel case name [INFO] [stdout] --> src/movement.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct line { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Line` [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: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/movement.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | ...if (check_collision(&Rectangle::new(x1 as f32, y1 as f32, owidth as f32, oheight as f32), &Rectangle::new(ending_point.x, ending_point.y, 1.0, 1.0))) { [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] 112 - if (check_collision(&Rectangle::new(x1 as f32, y1 as f32, owidth as f32, oheight as f32), &Rectangle::new(ending_point.x, ending_point.y, 1.0, 1.0))) { [INFO] [stdout] 112 + if check_collision(&Rectangle::new(x1 as f32, y1 as f32, owidth as f32, oheight as f32), &Rectangle::new(ending_point.x, ending_point.y, 1.0, 1.0)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/pathfinding.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `line` should have an upper camel case name [INFO] [stdout] --> src/pathfinding.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct line { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::path::PathBuf` [INFO] [stdout] --> src/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::randommods` [INFO] [stdout] --> src/client.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::randommods; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/settings.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | if (!path.exists()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if (!path.exists()) { [INFO] [stdout] 15 + if !path.exists() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/networking.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::{Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SocketAddr` [INFO] [stdout] --> src/networking.rs:266:34 [INFO] [stdout] | [INFO] [stdout] 266 | use std::net::{IpAddr, Ipv4Addr, SocketAddr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `handle_readd` should have an upper camel case name [INFO] [stdout] --> src/handle_read.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct handle_readd; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HandleReadd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::io::prelude::*` [INFO] [stdout] --> src/randommods.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/randommods.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::IpAddr` [INFO] [stdout] --> src/server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::IpAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::Ipv4Addr` [INFO] [stdout] --> src/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::Ipv4Addr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/server.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::networking` [INFO] [stdout] --> src/server.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::networking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::os::unix::io::AsRawFd` [INFO] [stdout] --> src/randommods.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use async_std::os::unix::io::AsRawFd as AsyncRawFd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checklist` [INFO] [stdout] --> src/client.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut checklist: Value = json!({ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checklist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `open` is never read [INFO] [stdout] --> src/client.rs:238:5 [INFO] [stdout] | [INFO] [stdout] 238 | open = rl.window_should_close(); [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: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut client = AsyncTcpClient::new(format!("{}:{}", settings["IP"].as_str().unwrap(), settings["PORT"].as_str().unwrap()).as_str()); [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/client.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | let mut checklist: Value = json!({ [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monitor` [INFO] [stdout] --> src/settings.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let monitor: i32 = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monitor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_field` [INFO] [stdout] --> src/randommods.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | for (key, old_field) in old_obj { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `point1` and `point_on` are never read [INFO] [stdout] --> src/movement.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct line { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 63 | point1: Vector2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 64 | point2: Vector2, [INFO] [stdout] 65 | point_on: Vector2 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `point1`, `point2`, and `point_on` are never read [INFO] [stdout] --> src/pathfinding.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct line { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | point1: Vector2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | point2: Vector2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | point_on: Vector2 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_changes` is never used [INFO] [stdout] --> src/randommods.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn find_changes(old_value: &Value, new_value: &Value) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sockID` should have a snake case name [INFO] [stdout] --> src/client.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let sockID: i32 = AsyncTcpClient::get_socket_id(&io_stream.lock().unwrap()) as i32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `sock_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write` and `self` [INFO] [stdout] --> src/main.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{self, Write}; [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: `native_dialog::FileDialog` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use native_dialog::FileDialog; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::path::PathBuf` [INFO] [stdout] --> src/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::randommods` [INFO] [stdout] --> src/client.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::randommods; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::IpAddr` [INFO] [stdout] --> src/server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::IpAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::Ipv4Addr` [INFO] [stdout] --> src/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::Ipv4Addr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/server.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::networking` [INFO] [stdout] --> src/server.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::networking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::io::prelude::*` [INFO] [stdout] --> src/randommods.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/randommods.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/settings.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | if (!path.exists()) { [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] 15 - if (!path.exists()) { [INFO] [stdout] 15 + if !path.exists() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/networking.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::{Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SocketAddr` [INFO] [stdout] --> src/networking.rs:266:34 [INFO] [stdout] | [INFO] [stdout] 266 | use std::net::{IpAddr, Ipv4Addr, SocketAddr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `handle_readd` should have an upper camel case name [INFO] [stdout] --> src/handle_read.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct handle_readd; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HandleReadd` [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: unused import: `async_std::os::unix::io::AsRawFd` [INFO] [stdout] --> src/randommods.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use async_std::os::unix::io::AsRawFd as AsyncRawFd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checklist` [INFO] [stdout] --> src/client.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut checklist: Value = json!({ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checklist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `open` is never read [INFO] [stdout] --> src/client.rs:238:5 [INFO] [stdout] | [INFO] [stdout] 238 | open = rl.window_should_close(); [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: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut client = AsyncTcpClient::new(format!("{}:{}", settings["IP"].as_str().unwrap(), settings["PORT"].as_str().unwrap()).as_str()); [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/client.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | let mut checklist: Value = json!({ [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_field` [INFO] [stdout] --> src/randommods.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | for (key, old_field) in old_obj { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monitor` [INFO] [stdout] --> src/settings.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let monitor: i32 = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monitor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_thread` [INFO] [stdout] --> src/main.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let server_thread: thread::JoinHandle<()> = thread::spawn(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_changes` is never used [INFO] [stdout] --> src/randommods.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn find_changes(old_value: &Value, new_value: &Value) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_collision` is never used [INFO] [stdout] --> src/collision.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn check_collision(player: &Movement, rect: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `receive` is never used [INFO] [stdout] --> src/networking.rs:107:18 [INFO] [stdout] | [INFO] [stdout] 19 | impl AsyncTcpServer { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub async fn receive(stream: &mut TcpStream) -> async_std::io::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `start_interactive_session` is never used [INFO] [stdout] --> src/networking.rs:203:18 [INFO] [stdout] | [INFO] [stdout] 140 | impl AsyncTcpClient { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 203 | pub async fn start_interactive_session(mut stream: TcpStream) -> async_std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_local_ip` is never used [INFO] [stdout] --> src/networking.rs:294:8 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn get_local_ip() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sockID` should have a snake case name [INFO] [stdout] --> src/client.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let sockID: i32 = AsyncTcpClient::get_socket_id(&io_stream.lock().unwrap()) as i32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `sock_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 12.69s [INFO] running `Command { std: "docker" "inspect" "01a68ffd2edc437ce47b4a757e7848b6517bf78a4ed2f67ff1a8cd4f4f84c7a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01a68ffd2edc437ce47b4a757e7848b6517bf78a4ed2f67ff1a8cd4f4f84c7a6", kill_on_drop: false }` [INFO] [stdout] 01a68ffd2edc437ce47b4a757e7848b6517bf78a4ed2f67ff1a8cd4f4f84c7a6