[INFO] cloning repository https://github.com/burbokop/lgh [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/burbokop/lgh" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fburbokop%2Flgh", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fburbokop%2Flgh'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d42738f67c530e616ec403fb0f3c0323e745fae6 [INFO] checking burbokop/lgh against master#8c6ce6b91b172f77c795a74bfeaf74b865146b3f for pr-101345 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fburbokop%2Flgh" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/burbokop/lgh on toolchain 8c6ce6b91b172f77c795a74bfeaf74b865146b3f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8c6ce6b91b172f77c795a74bfeaf74b865146b3f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/burbokop/lgh [INFO] finished tweaking git repo https://github.com/burbokop/lgh [INFO] tweaked toml for git repo https://github.com/burbokop/lgh written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/burbokop/lgh already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8c6ce6b91b172f77c795a74bfeaf74b865146b3f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded c_vec v2.0.0 [INFO] [stderr] Downloaded vecmat v0.7.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+8c6ce6b91b172f77c795a74bfeaf74b865146b3f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 60803f2832b903189ca98fb05c2d62934ae702702fa97fcdee2fad0b34b96f1d [INFO] running `Command { std: "docker" "start" "-a" "60803f2832b903189ca98fb05c2d62934ae702702fa97fcdee2fad0b34b96f1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "60803f2832b903189ca98fb05c2d62934ae702702fa97fcdee2fad0b34b96f1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60803f2832b903189ca98fb05c2d62934ae702702fa97fcdee2fad0b34b96f1d", kill_on_drop: false }` [INFO] [stdout] 60803f2832b903189ca98fb05c2d62934ae702702fa97fcdee2fad0b34b96f1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+8c6ce6b91b172f77c795a74bfeaf74b865146b3f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15fba410ca30dd8092a4009c2eadfbf3317f41f3868d904b44046f6826479b11 [INFO] running `Command { std: "docker" "start" "-a" "15fba410ca30dd8092a4009c2eadfbf3317f41f3868d904b44046f6826479b11", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.122 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libm v0.2.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version-compare v0.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking c_vec v2.0.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking vecmat v0.7.7 [INFO] [stderr] Checking lgh v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `fleet::Fleet` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use fleet::Fleet; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scene::Scene` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use scene::Scene; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RenderTarget` [INFO] [stdout] --> src/fleet.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use sdl2::{render::{RenderTarget, Canvas}, gfx::primitives::DrawRenderer, event::Event, pixels::Color, mouse::MouseButton, ttf::Font, vid... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::Dot` [INFO] [stdout] --> src/fleet.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use vecmat::{Vector, Complex, prelude::Dot}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::gfx` [INFO] [stdout] --> src/fleet.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::gfx; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Weak`, `convert::identity` [INFO] [stdout] --> src/scene.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{ops::Deref, rc::{Rc, Weak}, borrow::BorrowMut, cell::{RefCell, RefMut, Ref}, os::unix::prelude::CommandExt, convert::identity}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RenderTarget` [INFO] [stdout] --> src/scene.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::{render::{Canvas, RenderTarget}, event::Event, mouse::MouseButton, video::Window, ttf::Font}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/scenario.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Formation`, `Rotation` [INFO] [stdout] --> src/scenario.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{scene::Scene, fleet::{Fleet, Rotation, Formation}, admiral::Admiral, side::Side}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rect::Rect` [INFO] [stdout] --> src/graphics.rs:1:44 [INFO] [stdout] | [INFO] [stdout] 1 | use sdl2::{render::{RenderTarget, Canvas}, rect::Rect, gfx::primitives::DrawRenderer, pixels::Color, video::Window, ttf::Font}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::gfx` [INFO] [stdout] --> src/graphics.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::gfx; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/side.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{rc::Rc, cell::{RefCell, Ref}, convert::identity, borrow::BorrowMut}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PixelFormat` [INFO] [stdout] --> src/math.rs:1:54 [INFO] [stdout] | [INFO] [stdout] 1 | use sdl2::{gfx::primitives::ToColor, pixels::{Color, PixelFormat, PixelFormatEnum}}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/main.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | 'running: loop { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fleet::Fleet` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use fleet::Fleet; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scene::Scene` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use scene::Scene; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RenderTarget` [INFO] [stdout] --> src/fleet.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use sdl2::{render::{RenderTarget, Canvas}, gfx::primitives::DrawRenderer, event::Event, pixels::Color, mouse::MouseButton, ttf::Font, vid... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::Dot` [INFO] [stdout] --> src/fleet.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use vecmat::{Vector, Complex, prelude::Dot}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::gfx` [INFO] [stdout] --> src/fleet.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::gfx; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Weak`, `convert::identity` [INFO] [stdout] --> src/scene.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{ops::Deref, rc::{Rc, Weak}, borrow::BorrowMut, cell::{RefCell, RefMut, Ref}, os::unix::prelude::CommandExt, convert::identity}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RenderTarget` [INFO] [stdout] --> src/scene.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::{render::{Canvas, RenderTarget}, event::Event, mouse::MouseButton, video::Window, ttf::Font}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/scenario.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Formation`, `Rotation` [INFO] [stdout] --> src/scenario.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{scene::Scene, fleet::{Fleet, Rotation, Formation}, admiral::Admiral, side::Side}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rect::Rect` [INFO] [stdout] --> src/graphics.rs:1:44 [INFO] [stdout] | [INFO] [stdout] 1 | use sdl2::{render::{RenderTarget, Canvas}, rect::Rect, gfx::primitives::DrawRenderer, pixels::Color, video::Window, ttf::Font}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::gfx` [INFO] [stdout] --> src/graphics.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::gfx; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/side.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{rc::Rc, cell::{RefCell, Ref}, convert::identity, borrow::BorrowMut}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PixelFormat` [INFO] [stdout] --> src/math.rs:1:54 [INFO] [stdout] | [INFO] [stdout] 1 | use sdl2::{gfx::primitives::ToColor, pixels::{Color, PixelFormat, PixelFormatEnum}}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/main.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | 'running: loop { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::uniform::SampleBorrow` [INFO] [stdout] --> src/scene.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distributions::uniform::SampleBorrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/scene.rs:2:39 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{ops::Deref, rc::{Rc, Weak}, borrow::BorrowMut, cell::{RefCell, RefMut, Ref}, os::unix::prelude::CommandExt, convert::identity}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `os::unix::prelude::CommandExt` [INFO] [stdout] --> src/scene.rs:2:88 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{ops::Deref, rc::{Rc, Weak}, borrow::BorrowMut, cell::{RefCell, RefMut, Ref}, os::unix::prelude::CommandExt, convert::identity}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::uniform::SampleBorrow` [INFO] [stdout] --> src/side.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::distributions::uniform::SampleBorrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/fleet.rs:49:29 [INFO] [stdout] | [INFO] [stdout] 49 | let w = Rc::downgrade(&c); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contrast_side_color` [INFO] [stdout] --> src/fleet.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | let contrast_side_color = contrast_color(side_color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contrast_side_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/fleet.rs:235:58 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn paint(&mut self, canvas: &mut Canvas, scene: &Scene, font: &Font, selected: bool) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selected` [INFO] [stdout] --> src/fleet.rs:304:53 [INFO] [stdout] | [INFO] [stdout] 304 | fn proceed_kinematics(&mut self, scene: &Scene, selected: bool) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestamp` [INFO] [stdout] --> src/fleet.rs:371:42 [INFO] [stdout] | [INFO] [stdout] 371 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `timestamp: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/fleet.rs:371:53 [INFO] [stdout] | [INFO] [stdout] 371 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `window_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `which` [INFO] [stdout] --> src/fleet.rs:371:64 [INFO] [stdout] | [INFO] [stdout] 371 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `which: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clicks` [INFO] [stdout] --> src/fleet.rs:371:82 [INFO] [stdout] | [INFO] [stdout] 371 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `clicks: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestamp` [INFO] [stdout] --> src/fleet.rs:383:40 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `timestamp: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/fleet.rs:383:51 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `window_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `which` [INFO] [stdout] --> src/fleet.rs:383:62 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `which: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mouse_btn` [INFO] [stdout] --> src/fleet.rs:383:69 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `mouse_btn: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clicks` [INFO] [stdout] --> src/fleet.rs:383:80 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `clicks: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/fleet.rs:383:88 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/fleet.rs:383:91 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestamp` [INFO] [stdout] --> src/scene.rs:138:38 [INFO] [stdout] | [INFO] [stdout] 138 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `timestamp: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/scene.rs:138:49 [INFO] [stdout] | [INFO] [stdout] 138 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `window_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `which` [INFO] [stdout] --> src/scene.rs:138:60 [INFO] [stdout] | [INFO] [stdout] 138 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `which: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clicks` [INFO] [stdout] --> src/scene.rs:138:78 [INFO] [stdout] | [INFO] [stdout] 138 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `clicks: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestamp` [INFO] [stdout] --> src/scene.rs:156:36 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `timestamp: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/scene.rs:156:47 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `window_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `which` [INFO] [stdout] --> src/scene.rs:156:58 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `which: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mouse_btn` [INFO] [stdout] --> src/scene.rs:156:65 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `mouse_btn: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clicks` [INFO] [stdout] --> src/scene.rs:156:76 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `clicks: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/scene.rs:156:84 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/scene.rs:156:87 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group` [INFO] [stdout] --> src/side.rs:104:34 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn each_group(&mut self, group: &Group, scene: &Scene) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_group` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/side.rs:104:49 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn each_group(&mut self, group: &Group, scene: &Scene) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture_creator` [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let texture_creator = canvas.texture_creator(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture_creator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::uniform::SampleBorrow` [INFO] [stdout] --> src/scene.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distributions::uniform::SampleBorrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/scene.rs:2:39 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{ops::Deref, rc::{Rc, Weak}, borrow::BorrowMut, cell::{RefCell, RefMut, Ref}, os::unix::prelude::CommandExt, convert::identity}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `os::unix::prelude::CommandExt` [INFO] [stdout] --> src/scene.rs:2:88 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{ops::Deref, rc::{Rc, Weak}, borrow::BorrowMut, cell::{RefCell, RefMut, Ref}, os::unix::prelude::CommandExt, convert::identity}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::uniform::SampleBorrow` [INFO] [stdout] --> src/side.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::distributions::uniform::SampleBorrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/fleet.rs:49:29 [INFO] [stdout] | [INFO] [stdout] 49 | let w = Rc::downgrade(&c); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contrast_side_color` [INFO] [stdout] --> src/fleet.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | let contrast_side_color = contrast_color(side_color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contrast_side_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/fleet.rs:235:58 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn paint(&mut self, canvas: &mut Canvas, scene: &Scene, font: &Font, selected: bool) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selected` [INFO] [stdout] --> src/fleet.rs:304:53 [INFO] [stdout] | [INFO] [stdout] 304 | fn proceed_kinematics(&mut self, scene: &Scene, selected: bool) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestamp` [INFO] [stdout] --> src/fleet.rs:371:42 [INFO] [stdout] | [INFO] [stdout] 371 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `timestamp: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/fleet.rs:371:53 [INFO] [stdout] | [INFO] [stdout] 371 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `window_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `which` [INFO] [stdout] --> src/fleet.rs:371:64 [INFO] [stdout] | [INFO] [stdout] 371 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `which: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clicks` [INFO] [stdout] --> src/fleet.rs:371:82 [INFO] [stdout] | [INFO] [stdout] 371 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `clicks: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestamp` [INFO] [stdout] --> src/fleet.rs:383:40 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `timestamp: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/fleet.rs:383:51 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `window_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `which` [INFO] [stdout] --> src/fleet.rs:383:62 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `which: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mouse_btn` [INFO] [stdout] --> src/fleet.rs:383:69 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `mouse_btn: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clicks` [INFO] [stdout] --> src/fleet.rs:383:80 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `clicks: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/fleet.rs:383:88 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/fleet.rs:383:91 [INFO] [stdout] | [INFO] [stdout] 383 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestamp` [INFO] [stdout] --> src/scene.rs:138:38 [INFO] [stdout] | [INFO] [stdout] 138 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `timestamp: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/scene.rs:138:49 [INFO] [stdout] | [INFO] [stdout] 138 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `window_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `which` [INFO] [stdout] --> src/scene.rs:138:60 [INFO] [stdout] | [INFO] [stdout] 138 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `which: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clicks` [INFO] [stdout] --> src/scene.rs:138:78 [INFO] [stdout] | [INFO] [stdout] 138 | Event::MouseButtonDown { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `clicks: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestamp` [INFO] [stdout] --> src/scene.rs:156:36 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `timestamp: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/scene.rs:156:47 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `window_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `which` [INFO] [stdout] --> src/scene.rs:156:58 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `which: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mouse_btn` [INFO] [stdout] --> src/scene.rs:156:65 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `mouse_btn: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clicks` [INFO] [stdout] --> src/scene.rs:156:76 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `clicks: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/scene.rs:156:84 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/scene.rs:156:87 [INFO] [stdout] | [INFO] [stdout] 156 | Event::MouseButtonUp { timestamp, window_id, which, mouse_btn, clicks, x, y } => { [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group` [INFO] [stdout] --> src/side.rs:104:34 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn each_group(&mut self, group: &Group, scene: &Scene) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_group` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/side.rs:104:49 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn each_group(&mut self, group: &Group, scene: &Scene) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture_creator` [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let texture_creator = canvas.texture_creator(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture_creator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `childs` is never read [INFO] [stdout] --> src/fleet.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | struct Parent { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 16 | pub childs: Vec>> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: `Parent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target` is never read [INFO] [stdout] --> src/fleet.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | struct Child { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 32 | id: String, [INFO] [stdout] 33 | target: Option>> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Child` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Triangle` is never constructed [INFO] [stdout] --> src/fleet.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub enum Formation { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 77 | Triangle, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `formation` is never read [INFO] [stdout] --> src/fleet.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct Fleet { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 118 | formation: Formation, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `update` is never used [INFO] [stdout] --> src/fleet.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn update(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `update` is never used [INFO] [stdout] --> src/fleet.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn update(&mut self, parent: &Parent) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/fleet.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn new(id: String) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_cos` is never used [INFO] [stdout] --> src/fleet.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn from_cos(cos: f64) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `dst_to_sqr` is never used [INFO] [stdout] --> src/fleet.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn dst_to_sqr(&self, other: &Fleet) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `update` is never used [INFO] [stdout] --> src/admiral.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ByStrength` and `MulBoth` are never constructed [INFO] [stdout] --> src/side.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ChooseEnemy { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 10 | ByStrength, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | ByGroupStrength, [INFO] [stdout] 12 | MulBoth [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChooseEnemy` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_scalar` is never used [INFO] [stdout] --> src/math.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn add_scalar(value: Vector, scalar: f64) -> Vector { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fireVE` should have a snake case name [INFO] [stdout] --> src/fleet.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | fireVE: MultiFireVE [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `fire_ve` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eFunction` should have a snake case name [INFO] [stdout] --> src/fleet.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn eFunction(x: f64, c: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `e_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mass_coef` should have an upper case name [INFO] [stdout] --> src/fleet.rs:231:15 [INFO] [stdout] | [INFO] [stdout] 231 | const mass_coef: f64 = 1.; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `MASS_COEF` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `childs` is never read [INFO] [stdout] --> src/fleet.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | struct Parent { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 16 | pub childs: Vec>> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: `Parent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target` is never read [INFO] [stdout] --> src/fleet.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | struct Child { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 32 | id: String, [INFO] [stdout] 33 | target: Option>> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Child` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Triangle` is never constructed [INFO] [stdout] --> src/fleet.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub enum Formation { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 77 | Triangle, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `formation` is never read [INFO] [stdout] --> src/fleet.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct Fleet { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 118 | formation: Formation, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `update` is never used [INFO] [stdout] --> src/fleet.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn update(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `update` is never used [INFO] [stdout] --> src/fleet.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn update(&mut self, parent: &Parent) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/fleet.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn new(id: String) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_cos` is never used [INFO] [stdout] --> src/fleet.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn from_cos(cos: f64) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `dst_to_sqr` is never used [INFO] [stdout] --> src/fleet.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn dst_to_sqr(&self, other: &Fleet) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `update` is never used [INFO] [stdout] --> src/admiral.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ByStrength` and `MulBoth` are never constructed [INFO] [stdout] --> src/side.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ChooseEnemy { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 10 | ByStrength, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | ByGroupStrength, [INFO] [stdout] 12 | MulBoth [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChooseEnemy` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_scalar` is never used [INFO] [stdout] --> src/math.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn add_scalar(value: Vector, scalar: f64) -> Vector { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 62 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fireVE` should have a snake case name [INFO] [stdout] --> src/fleet.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | fireVE: MultiFireVE [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `fire_ve` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eFunction` should have a snake case name [INFO] [stdout] --> src/fleet.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn eFunction(x: f64, c: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `e_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mass_coef` should have an upper case name [INFO] [stdout] --> src/fleet.rs:231:15 [INFO] [stdout] | [INFO] [stdout] 231 | const mass_coef: f64 = 1.; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `MASS_COEF` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 62 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.06s [INFO] running `Command { std: "docker" "inspect" "15fba410ca30dd8092a4009c2eadfbf3317f41f3868d904b44046f6826479b11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15fba410ca30dd8092a4009c2eadfbf3317f41f3868d904b44046f6826479b11", kill_on_drop: false }` [INFO] [stdout] 15fba410ca30dd8092a4009c2eadfbf3317f41f3868d904b44046f6826479b11