[INFO] cloning repository https://github.com/albert-dm/rust-ant-simulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/albert-dm/rust-ant-simulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falbert-dm%2Frust-ant-simulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falbert-dm%2Frust-ant-simulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2f460928cf9d6e81ea6839d88400bd392cf236a8 [INFO] linting albert-dm/rust-ant-simulator against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falbert-dm%2Frust-ant-simulator" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/albert-dm/rust-ant-simulator [INFO] finished tweaking git repo https://github.com/albert-dm/rust-ant-simulator [INFO] tweaked toml for git repo https://github.com/albert-dm/rust-ant-simulator written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/albert-dm/rust-ant-simulator on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/albert-dm/rust-ant-simulator already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded xml-rs v0.8.3 [INFO] [stderr] Downloaded wayland-sys v0.28.5 [INFO] [stderr] Downloaded sid v0.5.2 [INFO] [stderr] Downloaded wayland-commons v0.21.13 [INFO] [stderr] Downloaded ordered-float v1.1.1 [INFO] [stderr] Downloaded num-derive v0.2.5 [INFO] [stderr] Downloaded cargo-platform v0.1.1 [INFO] [stderr] Downloaded gfx_window_glutin v0.30.0 [INFO] [stderr] Downloaded glyph_brush_layout v0.1.9 [INFO] [stderr] Downloaded minimp3 v0.3.5 [INFO] [stderr] Downloaded lzw v0.10.0 [INFO] [stderr] Downloaded line_drawing v0.7.0 [INFO] [stderr] Downloaded lyon_path v0.13.2 [INFO] [stderr] Downloaded lyon v0.13.5 [INFO] [stderr] Downloaded gfx v0.18.2 [INFO] [stderr] Downloaded gilrs-core v0.2.6 [INFO] [stderr] Downloaded euclid v0.19.9 [INFO] [stderr] Downloaded smithay-client-toolkit v0.4.6 [INFO] [stderr] Downloaded glutin v0.26.0 [INFO] [stderr] Downloaded xi-unicode v0.2.1 [INFO] [stderr] Downloaded lyon_tessellation v0.13.5 [INFO] [stderr] Downloaded image v0.22.5 [INFO] [stderr] Downloaded nix v0.15.0 [INFO] [stderr] Downloaded winit v0.19.5 [INFO] [stderr] Downloaded nix v0.14.1 [INFO] [stderr] Downloaded glam v0.14.0 [INFO] [stderr] Downloaded gilrs v0.7.4 [INFO] [stderr] Downloaded jpeg-decoder v0.1.22 [INFO] [stderr] Downloaded nalgebra v0.18.1 [INFO] [stderr] Downloaded wayland-protocols v0.28.5 [INFO] [stderr] Downloaded winit v0.24.0 [INFO] [stderr] Downloaded deflate v0.7.20 [INFO] [stderr] Downloaded wayland-protocols v0.21.13 [INFO] [stderr] Downloaded wayland-client v0.21.13 [INFO] [stderr] Downloaded lewton v0.9.4 [INFO] [stderr] Downloaded cocoa v0.18.5 [INFO] [stderr] Downloaded x11-dl v2.18.5 [INFO] [stderr] Downloaded glutin v0.20.1 [INFO] [stderr] Downloaded libc v0.2.93 [INFO] [stderr] Downloaded twox-hash v1.6.0 [INFO] [stderr] Downloaded glyph_brush v0.5.4 [INFO] [stderr] Downloaded gif v0.10.3 [INFO] [stderr] Downloaded lyon_geom v0.12.7 [INFO] [stderr] Downloaded ogg v0.7.1 [INFO] [stderr] Downloaded stb_truetype v0.3.1 [INFO] [stderr] Downloaded rusttype v0.8.3 [INFO] [stderr] Downloaded rusttype v0.7.9 [INFO] [stderr] Downloaded cocoa v0.23.0 [INFO] [stderr] Downloaded gif v0.11.2 [INFO] [stderr] Downloaded weezl v0.1.4 [INFO] [stderr] Downloaded ndk v0.2.1 [INFO] [stderr] Downloaded bzip2-sys v0.1.10+1.0.8 [INFO] [stderr] Downloaded redox_syscall v0.2.6 [INFO] [stderr] Downloaded gleam v0.6.19 [INFO] [stderr] Downloaded glyph_brush v0.6.3 [INFO] [stderr] Downloaded inflate v0.4.5 [INFO] [stderr] Downloaded png v0.15.3 [INFO] [stderr] Downloaded tiff v0.3.1 [INFO] [stderr] Downloaded lyon_algorithms v0.13.4 [INFO] [stderr] Downloaded clang-sys v1.2.0 [INFO] [stderr] Downloaded cargo_metadata v0.12.3 [INFO] [stderr] Downloaded ggez v0.5.1 [INFO] [stderr] Downloaded core-graphics v0.17.3 [INFO] [stderr] Downloaded parking_lot_core v0.6.2 [INFO] [stderr] Downloaded zip v0.5.11 [INFO] [stderr] Downloaded ndk-glue v0.2.1 [INFO] [stderr] Downloaded bytecount v0.6.2 [INFO] [stderr] Downloaded smart-default v0.5.2 [INFO] [stderr] Downloaded wayland-sys v0.21.13 [INFO] [stderr] Downloaded num_enum_derive v0.4.3 [INFO] [stderr] Downloaded num_enum v0.4.3 [INFO] [stderr] Downloaded skeptic v0.13.6 [INFO] [stderr] Downloaded bzip2 v0.3.3 [INFO] [stderr] Downloaded xcursor v0.3.3 [INFO] [stderr] Downloaded wayland-client v0.28.5 [INFO] [stderr] Downloaded andrew v0.2.1 [INFO] [stderr] Downloaded wayland-scanner v0.21.13 [INFO] [stderr] Downloaded mint v0.5.6 [INFO] [stderr] Downloaded wayland-egl v0.28.5 [INFO] [stderr] Downloaded memmap v0.7.0 [INFO] [stderr] Downloaded wayland-cursor v0.28.5 [INFO] [stderr] Downloaded wayland-commons v0.28.5 [INFO] [stderr] Downloaded wayland-scanner v0.28.5 [INFO] [stderr] Downloaded libloading v0.7.0 [INFO] [stderr] Downloaded tiff v0.6.1 [INFO] [stderr] Downloaded rodio v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f9bccfb9c72b87beabc6374fab7fa65140e6c7b3e0ec694f30bd4049b2949d7 [INFO] running `Command { std: "docker" "start" "-a" "3f9bccfb9c72b87beabc6374fab7fa65140e6c7b3e0ec694f30bd4049b2949d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f9bccfb9c72b87beabc6374fab7fa65140e6c7b3e0ec694f30bd4049b2949d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f9bccfb9c72b87beabc6374fab7fa65140e6c7b3e0ec694f30bd4049b2949d7", kill_on_drop: false }` [INFO] [stdout] 3f9bccfb9c72b87beabc6374fab7fa65140e6c7b3e0ec694f30bd4049b2949d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39f8a6064cb69bd6c5fc85ba6096cd4990648d10ec21effefaf8110000625237 [INFO] running `Command { std: "docker" "start" "-a" "39f8a6064cb69bd6c5fc85ba6096cd4990648d10ec21effefaf8110000625237", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.93 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling syn v1.0.69 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking libloading v0.6.7 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Compiling wayland-sys v0.28.5 [INFO] [stderr] Checking libloading v0.7.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Checking dlib v0.5.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking wayland-sys v0.21.13 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Checking ttf-parser v0.6.2 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling pulldown-cmark v0.8.0 [INFO] [stderr] Compiling wayland-scanner v0.28.5 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling bzip2-sys v0.1.10+1.0.8 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling alsa-sys v0.1.2 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking nix v0.20.0 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking parking_lot v0.9.0 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.1.1 [INFO] [stderr] Compiling wayland-client v0.28.5 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Compiling wayland-protocols v0.28.5 [INFO] [stderr] Checking owned_ttf_parser v0.6.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking xcursor v0.3.3 [INFO] [stderr] Checking sid v0.5.2 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking rusttype v0.9.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling bytecount v0.6.2 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking xi-unicode v0.2.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking mint v0.5.6 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking twox-hash v1.6.0 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking matrixmultiply v0.2.4 [INFO] [stderr] Checking glyph_brush_layout v0.1.9 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking generic-array v0.12.4 [INFO] [stderr] Checking alga v0.9.3 [INFO] [stderr] Checking andrew v0.3.1 [INFO] [stderr] Checking wayland-commons v0.21.13 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Checking slice-deque v0.3.0 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking ogg v0.7.1 [INFO] [stderr] Checking lock_api v0.4.3 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking lazycell v1.3.0 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking weezl v0.1.4 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking lewton v0.9.4 [INFO] [stderr] Checking png v0.15.3 [INFO] [stderr] Checking minimp3 v0.3.5 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking cpal v0.8.2 [INFO] [stderr] Checking wayland-commons v0.28.5 [INFO] [stderr] Checking glyph_brush v0.6.3 [INFO] [stderr] Checking bzip2 v0.3.3 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Checking nalgebra v0.18.1 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking hound v3.4.0 [INFO] [stderr] Checking claxon v0.4.3 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Checking directories v2.0.2 [INFO] [stderr] Checking glyph_brush v0.5.4 [INFO] [stderr] Checking gif v0.11.2 [INFO] [stderr] Checking gfx v0.18.2 [INFO] [stderr] Checking bytemuck v1.5.1 [INFO] [stderr] Checking calloop v0.6.5 [INFO] [stderr] Checking glam v0.14.0 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Compiling euclid_macros v0.1.0 [INFO] [stderr] Compiling smart-default v0.5.2 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Checking euclid v0.19.9 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Checking wayland-cursor v0.28.5 [INFO] [stderr] Checking wayland-egl v0.28.5 [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking lyon_geom v0.12.7 [INFO] [stderr] Checking gilrs-core v0.2.6 [INFO] [stderr] Checking image v0.22.5 [INFO] [stderr] Checking lyon_path v0.13.2 [INFO] [stderr] Checking gilrs v0.7.4 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Checking lyon_algorithms v0.13.4 [INFO] [stderr] Checking lyon_tessellation v0.13.5 [INFO] [stderr] Checking zip v0.5.11 [INFO] [stderr] Checking lyon v0.13.5 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking rodio v0.9.0 [INFO] [stderr] Compiling cargo-platform v0.1.1 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling cargo_metadata v0.12.3 [INFO] [stderr] Compiling skeptic v0.13.6 [INFO] [stderr] Compiling ggez v0.5.1 [INFO] [stderr] Checking smithay-client-toolkit v0.12.3 [INFO] [stderr] Checking winit v0.24.0 [INFO] [stderr] Checking glutin v0.26.0 [INFO] [stderr] Checking smithay-client-toolkit v0.4.6 [INFO] [stderr] Checking winit v0.19.5 [INFO] [stderr] Checking glutin v0.20.1 [INFO] [stderr] Checking gfx_window_glutin v0.30.0 [INFO] [stderr] Checking rust-ant-simulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/ant.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ant.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 38 | width: width, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `width` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ant.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | height: height, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `height` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/anthill.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | position: position, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `position` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/leaf.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | position: position, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `position` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/ant.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ant.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 38 | width: width, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `width` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/ant.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | height: height, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `height` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/anthill.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | position: position, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `position` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/leaf.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | position: position, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `position` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut home_indicators = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut food_indicators = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | let mut food_indicators = self.food_indicators.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | let mut home_indicators = self.home_indicators.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ant_texture` and `leaf_texture` are never read [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct MyGame { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | ant_texture: Image, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 34 | anthill_texture: Image, [INFO] [stdout] 35 | leaf_texture: Image, [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 `width` and `height` are never read [INFO] [stdout] --> src/ant.rs:28:3 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Ant { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | width: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | height: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_position` is never used [INFO] [stdout] --> src/ant.rs:47:10 [INFO] [stdout] | [INFO] [stdout] 33 | impl Ant { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn set_position(&mut self, position: Vec2) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tick` is never used [INFO] [stdout] --> src/local_indicator.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 11 | impl LocalIndicator { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn tick(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `visibility_info` after checking its variant with `is_some` [INFO] [stdout] --> src/ant.rs:85:24 [INFO] [stdout] | [INFO] [stdout] 84 | if visibility_info.is_some() { [INFO] [stdout] | ---------------------------- help: try: `if let Some() = visibility_info` [INFO] [stdout] 85 | let distance = visibility_info.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `idx` is only used to index `indicators` [INFO] [stdout] --> src/ant.rs:79:16 [INFO] [stdout] | [INFO] [stdout] 79 | for idx in 0..indicators.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 79 - for idx in 0..indicators.len() { [INFO] [stdout] 79 + for in &mut indicators { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut home_indicators = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut food_indicators = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | let mut food_indicators = self.food_indicators.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | let mut home_indicators = self.home_indicators.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `LocalIndicator` which implements the `Copy` trait [INFO] [stdout] --> src/ant.rs:87:34 [INFO] [stdout] | [INFO] [stdout] 87 | found_indicator = Some(indicators[idx].clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `indicators[idx]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `visibility_info` after checking its variant with `is_some` [INFO] [stdout] --> src/ant.rs:104:24 [INFO] [stdout] | [INFO] [stdout] 103 | if visibility_info.is_some() { [INFO] [stdout] | ---------------------------- help: try: `if let Some() = visibility_info` [INFO] [stdout] 104 | let distance = visibility_info.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/anthill.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | let position = self.position; [INFO] [stdout] | ----------------------------- unnecessary `let` binding [INFO] [stdout] 23 | position [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 22 ~ [INFO] [stdout] 23 ~ self.position [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/leaf.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | let position = self.position; [INFO] [stdout] | ----------------------------- unnecessary `let` binding [INFO] [stdout] 17 | position [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 16 ~ [INFO] [stdout] 17 ~ self.position [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Vec2` which implements the `Copy` trait [INFO] [stdout] --> src/leaf.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | Leaf::new(self.position.clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.position` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-canonical implementation of `clone` on a `Copy` type [INFO] [stdout] --> src/local_indicator.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | fn clone(&self) -> Self { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 43 | | let mut new_indicator = LocalIndicator::new(self.position.clone(), self.direction.clone(), self.creation_tic.clone()); [INFO] [stdout] 44 | | new_indicator.set_lifespan(self.lifespan.clone()); [INFO] [stdout] 45 | | new_indicator [INFO] [stdout] 46 | | } [INFO] [stdout] | |___^ help: change this to: `{ *self }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_clone_impl [INFO] [stdout] = note: `#[warn(clippy::non_canonical_clone_impl)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Vec2` which implements the `Copy` trait [INFO] [stdout] --> src/local_indicator.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 43 | let mut new_indicator = LocalIndicator::new(self.position.clone(), self.direction.clone(), self.creation_tic.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.position` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `f32` which implements the `Copy` trait [INFO] [stdout] --> src/local_indicator.rs:43:72 [INFO] [stdout] | [INFO] [stdout] 43 | let mut new_indicator = LocalIndicator::new(self.position.clone(), self.direction.clone(), self.creation_tic.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.direction` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `u16` which implements the `Copy` trait [INFO] [stdout] --> src/local_indicator.rs:43:96 [INFO] [stdout] | [INFO] [stdout] 43 | let mut new_indicator = LocalIndicator::new(self.position.clone(), self.direction.clone(), self.creation_tic.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.creation_tic` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `u16` which implements the `Copy` trait [INFO] [stdout] --> src/local_indicator.rs:44:32 [INFO] [stdout] | [INFO] [stdout] 44 | new_indicator.set_lifespan(self.lifespan.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.lifespan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/vector_utils.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 5 | / let rotation = if vector.y > 0.0 { [INFO] [stdout] 6 | | cos.acos() [INFO] [stdout] 7 | | } else { [INFO] [stdout] 8 | | -cos.acos() [INFO] [stdout] 9 | | }; [INFO] [stdout] | |____- unnecessary `let` binding [INFO] [stdout] 10 | rotation [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 5 ~ [INFO] [stdout] 6 ~ if vector.y > 0.0 { [INFO] [stdout] 7 + cos.acos() [INFO] [stdout] 8 + } else { [INFO] [stdout] 9 + -cos.acos() [INFO] [stdout] 10 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ant_texture` and `leaf_texture` are never read [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct MyGame { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | ant_texture: Image, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 34 | anthill_texture: Image, [INFO] [stdout] 35 | leaf_texture: Image, [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 `width` and `height` are never read [INFO] [stdout] --> src/ant.rs:28:3 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Ant { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | width: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | height: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_position` is never used [INFO] [stdout] --> src/ant.rs:47:10 [INFO] [stdout] | [INFO] [stdout] 33 | impl Ant { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn set_position(&mut self, position: Vec2) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tick` is never used [INFO] [stdout] --> src/local_indicator.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 11 | impl LocalIndicator { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn tick(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:149:20 [INFO] [stdout] | [INFO] [stdout] 149 | if !found_home_indicator.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `found_home_indicator.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:168:20 [INFO] [stdout] | [INFO] [stdout] 168 | if !found_food_indicator.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `found_food_indicator.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `found_food` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:137:39 [INFO] [stdout] | [INFO] [stdout] 136 | if found_food.is_some() { [INFO] [stdout] | ----------------------- help: try: `if let Some() = found_food` [INFO] [stdout] 137 | let found_index = found_food.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to want to iterate on a map's values [INFO] [stdout] --> src/main.rs:228:29 [INFO] [stdout] | [INFO] [stdout] 228 | for (_idx, leaf) in &mut self.food { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map [INFO] [stdout] = note: `#[warn(clippy::for_kv_map)]` on by default [INFO] [stdout] help: use the corresponding method [INFO] [stdout] | [INFO] [stdout] 228 - for (_idx, leaf) in &mut self.food { [INFO] [stdout] 228 + for leaf in self.food.values_mut() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `visibility_info` after checking its variant with `is_some` [INFO] [stdout] --> src/ant.rs:85:24 [INFO] [stdout] | [INFO] [stdout] 84 | if visibility_info.is_some() { [INFO] [stdout] | ---------------------------- help: try: `if let Some() = visibility_info` [INFO] [stdout] 85 | let distance = visibility_info.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `idx` is only used to index `indicators` [INFO] [stdout] --> src/ant.rs:79:16 [INFO] [stdout] | [INFO] [stdout] 79 | for idx in 0..indicators.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 79 - for idx in 0..indicators.len() { [INFO] [stdout] 79 + for in &mut indicators { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | graphics::set_drawable_size(ctx, 800.0, 600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 216 | let _ = graphics::set_drawable_size(ctx, 800.0, 600.0); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `LocalIndicator` which implements the `Copy` trait [INFO] [stdout] --> src/ant.rs:87:34 [INFO] [stdout] | [INFO] [stdout] 87 | found_indicator = Some(indicators[idx].clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `indicators[idx]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `visibility_info` after checking its variant with `is_some` [INFO] [stdout] --> src/ant.rs:104:24 [INFO] [stdout] | [INFO] [stdout] 103 | if visibility_info.is_some() { [INFO] [stdout] | ---------------------------- help: try: `if let Some() = visibility_info` [INFO] [stdout] 104 | let distance = visibility_info.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/anthill.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | let position = self.position; [INFO] [stdout] | ----------------------------- unnecessary `let` binding [INFO] [stdout] 23 | position [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 22 ~ [INFO] [stdout] 23 ~ self.position [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/leaf.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | let position = self.position; [INFO] [stdout] | ----------------------------- unnecessary `let` binding [INFO] [stdout] 17 | position [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 16 ~ [INFO] [stdout] 17 ~ self.position [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Vec2` which implements the `Copy` trait [INFO] [stdout] --> src/leaf.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | Leaf::new(self.position.clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.position` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-canonical implementation of `clone` on a `Copy` type [INFO] [stdout] --> src/local_indicator.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | fn clone(&self) -> Self { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 43 | | let mut new_indicator = LocalIndicator::new(self.position.clone(), self.direction.clone(), self.creation_tic.clone()); [INFO] [stdout] 44 | | new_indicator.set_lifespan(self.lifespan.clone()); [INFO] [stdout] 45 | | new_indicator [INFO] [stdout] 46 | | } [INFO] [stdout] | |___^ help: change this to: `{ *self }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_clone_impl [INFO] [stdout] = note: `#[warn(clippy::non_canonical_clone_impl)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Vec2` which implements the `Copy` trait [INFO] [stdout] --> src/local_indicator.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 43 | let mut new_indicator = LocalIndicator::new(self.position.clone(), self.direction.clone(), self.creation_tic.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.position` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `f32` which implements the `Copy` trait [INFO] [stdout] --> src/local_indicator.rs:43:72 [INFO] [stdout] | [INFO] [stdout] 43 | let mut new_indicator = LocalIndicator::new(self.position.clone(), self.direction.clone(), self.creation_tic.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.direction` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `u16` which implements the `Copy` trait [INFO] [stdout] --> src/local_indicator.rs:43:96 [INFO] [stdout] | [INFO] [stdout] 43 | let mut new_indicator = LocalIndicator::new(self.position.clone(), self.direction.clone(), self.creation_tic.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.creation_tic` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `u16` which implements the `Copy` trait [INFO] [stdout] --> src/local_indicator.rs:44:32 [INFO] [stdout] | [INFO] [stdout] 44 | new_indicator.set_lifespan(self.lifespan.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.lifespan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/vector_utils.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 5 | / let rotation = if vector.y > 0.0 { [INFO] [stdout] 6 | | cos.acos() [INFO] [stdout] 7 | | } else { [INFO] [stdout] 8 | | -cos.acos() [INFO] [stdout] 9 | | }; [INFO] [stdout] | |____- unnecessary `let` binding [INFO] [stdout] 10 | rotation [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 5 ~ [INFO] [stdout] 6 ~ if vector.y > 0.0 { [INFO] [stdout] 7 + cos.acos() [INFO] [stdout] 8 + } else { [INFO] [stdout] 9 + -cos.acos() [INFO] [stdout] 10 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:149:20 [INFO] [stdout] | [INFO] [stdout] 149 | if !found_home_indicator.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `found_home_indicator.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:168:20 [INFO] [stdout] | [INFO] [stdout] 168 | if !found_food_indicator.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `found_food_indicator.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `found_food` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:137:39 [INFO] [stdout] | [INFO] [stdout] 136 | if found_food.is_some() { [INFO] [stdout] | ----------------------- help: try: `if let Some() = found_food` [INFO] [stdout] 137 | let found_index = found_food.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to want to iterate on a map's values [INFO] [stdout] --> src/main.rs:228:29 [INFO] [stdout] | [INFO] [stdout] 228 | for (_idx, leaf) in &mut self.food { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map [INFO] [stdout] = note: `#[warn(clippy::for_kv_map)]` on by default [INFO] [stdout] help: use the corresponding method [INFO] [stdout] | [INFO] [stdout] 228 - for (_idx, leaf) in &mut self.food { [INFO] [stdout] 228 + for leaf in self.food.values_mut() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | graphics::set_drawable_size(ctx, 800.0, 600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 216 | let _ = graphics::set_drawable_size(ctx, 800.0, 600.0); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 37s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v6.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "39f8a6064cb69bd6c5fc85ba6096cd4990648d10ec21effefaf8110000625237", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39f8a6064cb69bd6c5fc85ba6096cd4990648d10ec21effefaf8110000625237", kill_on_drop: false }` [INFO] [stdout] 39f8a6064cb69bd6c5fc85ba6096cd4990648d10ec21effefaf8110000625237