[INFO] cloning repository https://github.com/Nat-Rubin/Solitaire [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nat-Rubin/Solitaire" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNat-Rubin%2FSolitaire", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNat-Rubin%2FSolitaire'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4518902bcf9159f8a1dbb0c4a8887c4c92edbd35 [INFO] linting Nat-Rubin/Solitaire against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNat-Rubin%2FSolitaire" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Nat-Rubin/Solitaire [INFO] finished tweaking git repo https://github.com/Nat-Rubin/Solitaire [INFO] tweaked toml for git repo https://github.com/Nat-Rubin/Solitaire written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Nat-Rubin/Solitaire 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/Nat-Rubin/Solitaire 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] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.0.88 [INFO] [stderr] Downloaded lyon v1.0.1 [INFO] [stderr] Downloaded cargo-platform v0.1.7 [INFO] [stderr] Downloaded coreaudio-sys v0.2.15 [INFO] [stderr] Downloaded crevice-derive v0.10.0 [INFO] [stderr] Downloaded lyon_algorithms v1.0.4 [INFO] [stderr] Downloaded crevice v0.13.0 [INFO] [stderr] Downloaded lyon_path v1.0.4 [INFO] [stderr] Downloaded bytemuck v1.14.3 [INFO] [stderr] Downloaded uuid v1.7.0 [INFO] [stderr] Downloaded io-kit-sys v0.4.0 [INFO] [stderr] Downloaded gilrs-core v0.5.10 [INFO] [stderr] Downloaded clang-sys v1.7.0 [INFO] [stderr] Downloaded lyon_geom v1.0.5 [INFO] [stderr] Downloaded wgpu-types v0.16.1 [INFO] [stderr] Downloaded bumpalo v3.15.3 [INFO] [stderr] Downloaded crossbeam-channel v0.5.11 [INFO] [stderr] Downloaded pulldown-cmark v0.9.6 [INFO] [stderr] Downloaded gilrs v0.10.4 [INFO] [stderr] Downloaded rayon v1.8.1 [INFO] [stderr] Downloaded wgpu v0.16.3 [INFO] [stderr] Downloaded lyon_tessellation v1.0.13 [INFO] [stderr] Downloaded exr v1.72.0 [INFO] [stderr] Downloaded bindgen v0.69.4 [INFO] [stderr] Downloaded wgpu-core v0.16.1 [INFO] [stderr] Downloaded wgpu-hal v0.16.2 [INFO] [stderr] Downloaded ggez v0.9.3 [INFO] [stderr] Downloaded naga v0.12.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 59e99aaf4f1143b690b02ac849ee4d31568ffc69ed8a31109bc40b1bcdcf3006 [INFO] running `Command { std: "docker" "start" "-a" "59e99aaf4f1143b690b02ac849ee4d31568ffc69ed8a31109bc40b1bcdcf3006", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "59e99aaf4f1143b690b02ac849ee4d31568ffc69ed8a31109bc40b1bcdcf3006", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59e99aaf4f1143b690b02ac849ee4d31568ffc69ed8a31109bc40b1bcdcf3006", kill_on_drop: false }` [INFO] [stdout] 59e99aaf4f1143b690b02ac849ee4d31568ffc69ed8a31109bc40b1bcdcf3006 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c85fa21b522284d84e184aa5f586c1d7902b3c4d6baab712b0cf49a8d270ebb [INFO] running `Command { std: "docker" "start" "-a" "1c85fa21b522284d84e184aa5f586c1d7902b3c4d6baab712b0cf49a8d270ebb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Compiling xml-rs v0.8.19 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking libloading v0.8.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling thiserror v1.0.57 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling ahash v0.8.9 [INFO] [stderr] Checking owned_ttf_parser v0.20.0 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling rustix v0.38.31 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling camino v1.1.6 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Checking ab_glyph v0.2.23 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling pulldown-cmark v0.9.6 [INFO] [stderr] Compiling cc v1.0.88 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Checking gpu-descriptor-types v0.1.2 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking gpu-alloc-types v0.2.0 [INFO] [stderr] Checking euclid v0.22.9 [INFO] [stderr] Checking spirv v0.2.0+1.5.4 [INFO] [stderr] Checking raw-window-handle v0.5.2 [INFO] [stderr] Checking arrayref v0.3.7 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking unicode-xid v0.2.4 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Checking rayon-core v1.12.1 [INFO] [stderr] Checking xcursor v0.3.5 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Compiling syn v2.0.50 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking nix v0.25.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking memmap2 v0.5.10 [INFO] [stderr] Checking rayon v1.8.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Compiling walkdir v2.4.0 [INFO] [stderr] Checking lyon_geom v1.0.5 [INFO] [stderr] Checking gpu-alloc v0.5.4 [INFO] [stderr] Checking gpu-descriptor v0.2.4 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking wgpu-types v0.16.1 [INFO] [stderr] Checking lyon_path v1.0.4 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Checking renderdoc-sys v1.0.0 [INFO] [stderr] Compiling bytecount v0.6.7 [INFO] [stderr] Compiling cpal v0.15.2 [INFO] [stderr] Checking glow v0.12.3 [INFO] [stderr] Checking profiling v1.0.15 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking flume v0.11.0 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Checking alsa v0.7.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking inotify v0.10.2 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Compiling tempfile v3.10.0 [INFO] [stderr] Checking crossbeam-channel v0.5.11 [INFO] [stderr] Checking ogg v0.8.0 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Checking half v2.3.1 [INFO] [stderr] Checking uuid v1.7.0 [INFO] [stderr] Checking xi-unicode v0.3.0 [INFO] [stderr] Checking float_next_after v1.0.0 [INFO] [stderr] Checking mint v0.5.9 [INFO] [stderr] Compiling gilrs v0.10.4 [INFO] [stderr] Checking glyph_brush_layout v0.2.3 [INFO] [stderr] Checking gilrs-core v0.5.10 [INFO] [stderr] Checking exr v1.72.0 [INFO] [stderr] Checking lyon_tessellation v1.0.13 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking lewton v0.10.2 [INFO] [stderr] Checking twox-hash v1.6.3 [INFO] [stderr] Checking bzip2 v0.4.4 [INFO] [stderr] Checking lyon_algorithms v1.0.4 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking ordered-float v4.2.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking claxon v0.4.3 [INFO] [stderr] Checking directories v5.0.1 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Checking glyph_brush_draw_cache v0.1.5 [INFO] [stderr] Checking lyon v1.0.1 [INFO] [stderr] Checking glam v0.24.2 [INFO] [stderr] Checking ordered-float v3.9.2 [INFO] [stderr] Checking pollster v0.3.0 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Compiling bytemuck_derive v1.5.0 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling thiserror-impl v1.0.57 [INFO] [stderr] Compiling smart-default v0.7.1 [INFO] [stderr] Checking glyph_brush v0.7.8 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking tiff v0.9.1 [INFO] [stderr] Compiling crevice-derive v0.10.0 [INFO] [stderr] Checking bytemuck v1.14.3 [INFO] [stderr] Checking symphonia-core v0.5.3 [INFO] [stderr] Checking tiny-skia-path v0.8.4 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking crevice v0.13.0 [INFO] [stderr] Checking tiny-skia v0.8.4 [INFO] [stderr] Checking naga v0.12.3 [INFO] [stderr] Checking symphonia-metadata v0.5.3 [INFO] [stderr] Checking calloop v0.10.6 [INFO] [stderr] Checking symphonia-bundle-mp3 v0.5.3 [INFO] [stderr] Checking symphonia v0.5.3 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking rodio v0.17.3 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Checking zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Checking zip v0.6.6 [INFO] [stderr] Compiling cargo-platform v0.1.7 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Compiling cargo_metadata v0.14.2 [INFO] [stderr] Checking wgpu-hal v0.16.2 [INFO] [stderr] Compiling skeptic v0.13.7 [INFO] [stderr] Compiling ggez v0.9.3 [INFO] [stderr] Checking wgpu-core v0.16.1 [INFO] [stderr] Checking wgpu v0.16.3 [INFO] [stderr] Checking sctk-adwaita v0.5.4 [INFO] [stderr] Checking Solitaire v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | use ggez; [INFO] [stdout] | ^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameError` [INFO] [stdout] --> src/main.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use ggez::{event, graphics, Context, GameError, GameResult}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oorandom::Rand32` [INFO] [stdout] --> src/structs.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use oorandom::Rand32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | use ggez; [INFO] [stdout] | ^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameError` [INFO] [stdout] --> src/main.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use ggez::{event, graphics, Context, GameError, GameResult}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oorandom::Rand32` [INFO] [stdout] --> src/structs.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use oorandom::Rand32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:66:63 [INFO] [stdout] | [INFO] [stdout] 66 | draw_cards(ctx, &mut self.seventh, &mut canvas, true);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `else` branch is empty [INFO] [stdout] --> src/main.rs:305:13 [INFO] [stdout] | [INFO] [stdout] 305 | / else { [INFO] [stdout] 306 | | [INFO] [stdout] 307 | | } [INFO] [stdout] | |_____________^ help: you can remove it [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_else [INFO] [stdout] = note: `#[warn(clippy::needless_else)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `else` branch is empty [INFO] [stdout] --> src/main.rs:339:23 [INFO] [stdout] | [INFO] [stdout] 339 | } else { [INFO] [stdout] | _______________________^ [INFO] [stdout] 340 | | [INFO] [stdout] 341 | | } [INFO] [stdout] | |_____________________^ help: you can remove it [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:66:63 [INFO] [stdout] | [INFO] [stdout] 66 | draw_cards(ctx, &mut self.seventh, &mut canvas, true);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/main.rs:465:17 [INFO] [stdout] | [INFO] [stdout] 465 | (_) => println!("{:?} is not yet implemented!", self.current_pile) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 465 - (_) => println!("{:?} is not yet implemented!", self.current_pile) [INFO] [stdout] 465 + _ => println!("{:?} is not yet implemented!", self.current_pile) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `else` branch is empty [INFO] [stdout] --> src/main.rs:305:13 [INFO] [stdout] | [INFO] [stdout] 305 | / else { [INFO] [stdout] 306 | | [INFO] [stdout] 307 | | } [INFO] [stdout] | |_____________^ help: you can remove it [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_else [INFO] [stdout] = note: `#[warn(clippy::needless_else)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `else` branch is empty [INFO] [stdout] --> src/main.rs:339:23 [INFO] [stdout] | [INFO] [stdout] 339 | } else { [INFO] [stdout] | _______________________^ [INFO] [stdout] 340 | | [INFO] [stdout] 341 | | } [INFO] [stdout] | |_____________________^ help: you can remove it [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/main.rs:465:17 [INFO] [stdout] | [INFO] [stdout] 465 | (_) => println!("{:?} is not yet implemented!", self.current_pile) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 465 - (_) => println!("{:?} is not yet implemented!", self.current_pile) [INFO] [stdout] 465 + _ => println!("{:?} is not yet implemented!", self.current_pile) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_pile` [INFO] [stdout] --> src/structs.rs:183:37 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn is_aces_valid(&mut self, current_pile: &mut Pile) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_pile` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_pile` [INFO] [stdout] --> src/structs.rs:183:37 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn is_aces_valid(&mut self, current_pile: &mut Pile) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_pile` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:191:39 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn is_number_valid(&mut self, mut current_pile: &mut Pile) -> bool{ [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/structs.rs:191:39 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn is_number_valid(&mut self, mut current_pile: &mut Pile) -> bool{ [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/main.rs:47:26 [INFO] [stdout] | [INFO] [stdout] 47 | fn update(&mut self, ctx: &mut Context) -> GameResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/main.rs:47:26 [INFO] [stdout] | [INFO] [stdout] 47 | fn update(&mut self, ctx: &mut Context) -> GameResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:331:37 [INFO] [stdout] | [INFO] [stdout] 331 | ... let mut card: &mut Card = self.deck.cards.first_mut().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:331:37 [INFO] [stdout] | [INFO] [stdout] 331 | ... let mut card: &mut Card = self.deck.cards.first_mut().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:346:29 [INFO] [stdout] | [INFO] [stdout] 346 | let mut card: &mut Card = self.current_cards.as_mut().unwrap().cards.first_mut().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:481:13 [INFO] [stdout] | [INFO] [stdout] 481 | let mut current_cards: &mut Option<&mut Pile> = &mut self.current_cards.as_mut(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dx` [INFO] [stdout] --> src/main.rs:478:9 [INFO] [stdout] | [INFO] [stdout] 478 | dx: f32, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dy` [INFO] [stdout] --> src/main.rs:479:9 [INFO] [stdout] | [INFO] [stdout] 479 | dy: f32, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:346:29 [INFO] [stdout] | [INFO] [stdout] 346 | let mut card: &mut Card = self.current_cards.as_mut().unwrap().cards.first_mut().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:481:13 [INFO] [stdout] | [INFO] [stdout] 481 | let mut current_cards: &mut Option<&mut Pile> = &mut self.current_cards.as_mut(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dx` [INFO] [stdout] --> src/main.rs:478:9 [INFO] [stdout] | [INFO] [stdout] 478 | dx: f32, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dy` [INFO] [stdout] --> src/main.rs:479:9 [INFO] [stdout] | [INFO] [stdout] 479 | dy: f32, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `structs::Color` is more private than the item `structs::Card::color` [INFO] [stdout] --> src/structs.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | pub color: Color, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ field `structs::Card::color` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `structs::Color` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/structs.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | enum Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `structs::Color` is more private than the item `structs::Card::color` [INFO] [stdout] --> src/structs.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | pub color: Color, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ field `structs::Card::color` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `structs::Color` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/structs.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | enum Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Down` is never constructed [INFO] [stdout] --> src/structs.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Direction { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 10 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GridPosition` is never constructed [INFO] [stdout] --> src/structs.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct GridPosition { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `suit` and `rect` are never read [INFO] [stdout] --> src/structs.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Card { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 51 | pub num: u8, [INFO] [stdout] 52 | pub suit: Suit, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub rect: graphics::Mesh, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Card` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `direction` is never read [INFO] [stdout] --> src/structs.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct Pile { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 134 | pub direction: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pile` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `on_click` and `shuffle` are never used [INFO] [stdout] --> src/structs.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 138 | impl Pile { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 148 | fn on_click(&self, ) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn shuffle(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `screen` and `gameover` are never read [INFO] [stdout] --> src/structs.rs:333:9 [INFO] [stdout] | [INFO] [stdout] 332 | pub struct GameState<> { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 333 | pub screen: graphics::ScreenImage, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | pub gameover: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_mouse_position` and `set_current_pile` are never used [INFO] [stdout] --> src/structs.rs:396:12 [INFO] [stdout] | [INFO] [stdout] 353 | impl<> GameState<> { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 396 | pub fn set_mouse_position(&mut self, position: (f32, f32)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 400 | pub fn set_current_pile(&mut self, pile: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Down` is never constructed [INFO] [stdout] --> src/structs.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Direction { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 10 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GridPosition` is never constructed [INFO] [stdout] --> src/structs.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct GridPosition { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `suit` and `rect` are never read [INFO] [stdout] --> src/structs.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Card { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 51 | pub num: u8, [INFO] [stdout] 52 | pub suit: Suit, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub rect: graphics::Mesh, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Card` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `direction` is never read [INFO] [stdout] --> src/structs.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct Pile { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 134 | pub direction: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pile` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `on_click` and `shuffle` are never used [INFO] [stdout] --> src/structs.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 138 | impl Pile { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 148 | fn on_click(&self, ) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn shuffle(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `screen` and `gameover` are never read [INFO] [stdout] --> src/structs.rs:333:9 [INFO] [stdout] | [INFO] [stdout] 332 | pub struct GameState<> { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 333 | pub screen: graphics::ScreenImage, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | pub gameover: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_mouse_position` and `set_current_pile` are never used [INFO] [stdout] --> src/structs.rs:396:12 [INFO] [stdout] | [INFO] [stdout] 353 | impl<> GameState<> { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 396 | pub fn set_mouse_position(&mut self, position: (f32, f32)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 400 | pub fn set_current_pile(&mut self, pile: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/structs.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | return true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 188 - return true; [INFO] [stdout] 188 + true [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/structs.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | return true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 188 - return true; [INFO] [stdout] 188 + true [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/structs.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | return true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 203 - return true; [INFO] [stdout] 203 + true [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/structs.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | return true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 203 - return true; [INFO] [stdout] 203 + true [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/structs.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | / let mut deck: Vec = Vec::new(); [INFO] [stdout] 266 | | [INFO] [stdout] 267 | | deck.push(heart_ace); [INFO] [stdout] 268 | | deck.push(heart_two); [INFO] [stdout] ... | [INFO] [stdout] 320 | | deck.push(spade_queen); [INFO] [stdout] 321 | | deck.push(spade_king); [INFO] [stdout] | |______________________________^ help: consider using the `vec![]` macro: `let deck: Vec = vec![..];` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push [INFO] [stdout] = note: `#[warn(clippy::vec_init_then_push)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/structs.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | return game_state [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 393 - return game_state [INFO] [stdout] 393 + game_state [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/structs.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | / let mut deck: Vec = Vec::new(); [INFO] [stdout] 266 | | [INFO] [stdout] 267 | | deck.push(heart_ace); [INFO] [stdout] 268 | | deck.push(heart_two); [INFO] [stdout] ... | [INFO] [stdout] 320 | | deck.push(spade_queen); [INFO] [stdout] 321 | | deck.push(spade_king); [INFO] [stdout] | |______________________________^ help: consider using the `vec![]` macro: `let deck: Vec = vec![..];` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push [INFO] [stdout] = note: `#[warn(clippy::vec_init_then_push)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/structs.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | return game_state [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 393 - return game_state [INFO] [stdout] 393 + game_state [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / return x >= card.position.0 [INFO] [stdout] 25 | | && x <= card.position.0 + CARD_WIDTH [INFO] [stdout] 26 | | && y >= card.position.1 [INFO] [stdout] 27 | | && y <= card.position.1 + CARD_HEIGHT [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 24 ~ x >= card.position.0 [INFO] [stdout] 25 + && x <= card.position.0 + CARD_WIDTH [INFO] [stdout] 26 + && y >= card.position.1 [INFO] [stdout] 27 + && y <= card.position.1 + CARD_HEIGHT [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / return x >= card.position.0 [INFO] [stdout] 25 | | && x <= card.position.0 + CARD_WIDTH [INFO] [stdout] 26 | | && y >= card.position.1 [INFO] [stdout] 27 | | && y <= card.position.1 + CARD_HEIGHT [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 24 ~ x >= card.position.0 [INFO] [stdout] 25 + && x <= card.position.0 + CARD_WIDTH [INFO] [stdout] 26 + && y >= card.position.1 [INFO] [stdout] 27 + && y <= card.position.1 + CARD_HEIGHT [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] | ________^ [INFO] [stdout] 32 | | pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | |______________________________________________________________________________________________^ [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] help: try [INFO] [stdout] | [INFO] [stdout] 31 - if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] 32 - pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] 31 + if !(pile.pile == Piles::Deck && pile.pile == Piles::Discard && pile.pile == Piles::Hearts && pile.pile == Piles::Clubs && pile.pile == Piles::Spades) { [INFO] [stdout] | [INFO] [stdout] 31 - if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] 32 - pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] 31 + if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] | ________^ [INFO] [stdout] 32 | | pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 31 - if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] 32 - pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] 31 + if !(pile.pile == Piles::Deck && pile.pile == Piles::Discard && pile.pile == Piles::Hearts && pile.pile == Piles::Clubs) || pile.pile != Piles::Spades { [INFO] [stdout] | [INFO] [stdout] 31 - if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] 32 - pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] 31 + if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] | ________^ [INFO] [stdout] 32 | | pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 31 - if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] 32 - pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] 31 + if !(pile.pile == Piles::Deck && pile.pile == Piles::Discard && pile.pile == Piles::Hearts) || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | [INFO] [stdout] 31 - if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] 32 - pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] 31 + if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / return x >= pile.position.0 [INFO] [stdout] 41 | | && x <= pile.position.0 + CARD_WIDTH [INFO] [stdout] 42 | | && y >= pile.position.1 [INFO] [stdout] 43 | | && y <= pile.position.1 + CARD_HEIGHT [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 40 ~ x >= pile.position.0 [INFO] [stdout] 41 + && x <= pile.position.0 + CARD_WIDTH [INFO] [stdout] 42 + && y >= pile.position.1 [INFO] [stdout] 43 + && y <= pile.position.1 + CARD_HEIGHT [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] | ________^ [INFO] [stdout] 32 | | pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | |______________________________________________________________________________________________^ [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] help: try [INFO] [stdout] | [INFO] [stdout] 31 - if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] 32 - pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] 31 + if !(pile.pile == Piles::Deck && pile.pile == Piles::Discard && pile.pile == Piles::Hearts && pile.pile == Piles::Clubs && pile.pile == Piles::Spades) { [INFO] [stdout] | [INFO] [stdout] 31 - if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] 32 - pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] 31 + if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] | ________^ [INFO] [stdout] 32 | | pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 31 - if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] 32 - pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] 31 + if !(pile.pile == Piles::Deck && pile.pile == Piles::Discard && pile.pile == Piles::Hearts && pile.pile == Piles::Clubs) || pile.pile != Piles::Spades { [INFO] [stdout] | [INFO] [stdout] 31 - if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] 32 - pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] 31 + if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] | ________^ [INFO] [stdout] 32 | | pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 31 - if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] 32 - pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] 31 + if !(pile.pile == Piles::Deck && pile.pile == Piles::Discard && pile.pile == Piles::Hearts) || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | [INFO] [stdout] 31 - if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || [INFO] [stdout] 32 - pile.pile != Piles::Discard || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] 31 + if pile.pile != Piles::Deck || pile.pile != Piles::Discard || pile.pile != Piles::Hearts || pile.pile != Piles::Clubs || pile.pile != Piles::Spades { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / return x >= pile.position.0 [INFO] [stdout] 41 | | && x <= pile.position.0 + CARD_WIDTH [INFO] [stdout] 42 | | && y >= pile.position.1 [INFO] [stdout] 43 | | && y <= pile.position.1 + CARD_HEIGHT [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 40 ~ x >= pile.position.0 [INFO] [stdout] 41 + && x <= pile.position.0 + CARD_WIDTH [INFO] [stdout] 42 + && y >= pile.position.1 [INFO] [stdout] 43 + && y <= pile.position.1 + CARD_HEIGHT [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:68:29 [INFO] [stdout] | [INFO] [stdout] 67 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] 68 | draw_cards(ctx, self.current_cards.as_mut().unwrap(), &mut canvas, false); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:68:29 [INFO] [stdout] | [INFO] [stdout] 67 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] 68 | draw_cards(ctx, self.current_cards.as_mut().unwrap(), &mut canvas, false); [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: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_comparison)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_comparison)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:182:28 [INFO] [stdout] | [INFO] [stdout] 182 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:182:28 [INFO] [stdout] | [INFO] [stdout] 182 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:224:28 [INFO] [stdout] | [INFO] [stdout] 224 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:224:28 [INFO] [stdout] | [INFO] [stdout] 224 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:245:28 [INFO] [stdout] | [INFO] [stdout] 245 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:266:28 [INFO] [stdout] | [INFO] [stdout] 266 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:245:28 [INFO] [stdout] | [INFO] [stdout] 245 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:266:28 [INFO] [stdout] | [INFO] [stdout] 266 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:287:28 [INFO] [stdout] | [INFO] [stdout] 287 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:346:51 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] 346 | let mut card: &mut Card = self.current_cards.as_mut().unwrap().cards.first_mut().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: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:287:28 [INFO] [stdout] | [INFO] [stdout] 287 | if card.flipped == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `!card.flipped` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:346:51 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] 346 | let mut card: &mut Card = self.current_cards.as_mut().unwrap().cards.first_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:352:60 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 352 | self.hearts_pile.is_aces_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:352:60 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 352 | self.hearts_pile.is_aces_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:354:62 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 354 | self.diamonds_pile.is_aces_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:354:62 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 354 | self.diamonds_pile.is_aces_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:356:59 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 356 | self.clubs_pile.is_aces_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:356:59 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 356 | self.clubs_pile.is_aces_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:358:60 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 358 | self.spades_pile.is_aces_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:358:60 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 358 | self.spades_pile.is_aces_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:360:67 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 360 | is_valid = self.first.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:360:67 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 360 | is_valid = self.first.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:362:68 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 362 | is_valid = self.second.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:362:68 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 362 | is_valid = self.second.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:364:67 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 364 | is_valid = self.third.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:364:67 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 364 | is_valid = self.third.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:366:68 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 366 | is_valid = self.fourth.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:366:68 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 366 | is_valid = self.fourth.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:368:67 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 368 | is_valid = self.fifth.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:368:67 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 368 | is_valid = self.fifth.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:370:67 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 370 | is_valid = self.sixth.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:370:67 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 370 | is_valid = self.sixth.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:372:69 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 372 | is_valid = self.seventh.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:372:69 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 372 | is_valid = self.seventh.is_number_valid(self.current_cards.as_mut().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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:380:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 380 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:380:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 380 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:381:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 381 | self.current_cards.as_mut().unwrap().move_card(&mut self.discard, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:381:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 381 | self.current_cards.as_mut().unwrap().move_card(&mut self.discard, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:384:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 384 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:384:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 384 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:385:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 385 | self.current_cards.as_mut().unwrap().move_card(&mut self.hearts_pile, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:385:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 385 | self.current_cards.as_mut().unwrap().move_card(&mut self.hearts_pile, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:388:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 388 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:388:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 388 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:389:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 389 | self.current_cards.as_mut().unwrap().move_card(&mut self.diamonds_pile, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:389:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 389 | self.current_cards.as_mut().unwrap().move_card(&mut self.diamonds_pile, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:392:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 392 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:392:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 392 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:393:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 393 | self.current_cards.as_mut().unwrap().move_card(&mut self.clubs_pile, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:393:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 393 | self.current_cards.as_mut().unwrap().move_card(&mut self.clubs_pile, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:396:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 396 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:397:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 397 | self.current_cards.as_mut().unwrap().move_card(&mut self.spades_pile, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:400:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 400 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:401:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 401 | self.current_cards.as_mut().unwrap().move_card(&mut self.first, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:404:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 404 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:405:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 405 | self.current_cards.as_mut().unwrap().move_card(&mut self.second, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:408:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 408 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:409:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 409 | self.current_cards.as_mut().unwrap().move_card(&mut self.third, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:412:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 412 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:413:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 413 | self.current_cards.as_mut().unwrap().move_card(&mut self.fourth, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:416:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 416 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:417:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 417 | self.current_cards.as_mut().unwrap().move_card(&mut self.fifth, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:420:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 420 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:421:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 421 | self.current_cards.as_mut().unwrap().move_card(&mut self.sixth, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:424:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 424 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:425:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 425 | self.current_cards.as_mut().unwrap().move_card(&mut self.seventh, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:396:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 396 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:397:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 397 | self.current_cards.as_mut().unwrap().move_card(&mut self.spades_pile, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:400:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 400 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:401:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 401 | self.current_cards.as_mut().unwrap().move_card(&mut self.first, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:404:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 404 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:405:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 405 | self.current_cards.as_mut().unwrap().move_card(&mut self.second, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:408:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 408 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:409:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 409 | self.current_cards.as_mut().unwrap().move_card(&mut self.third, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:412:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 412 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:413:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 413 | self.current_cards.as_mut().unwrap().move_card(&mut self.fourth, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:416:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 416 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:417:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 417 | self.current_cards.as_mut().unwrap().move_card(&mut self.fifth, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:420:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 420 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:421:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 421 | self.current_cards.as_mut().unwrap().move_card(&mut self.sixth, index, false, true); [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:424:55 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 424 | let index: i32 = (self.current_cards.as_mut().unwrap().cards.len() - 1) as i32; [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: called `unwrap` on `self.current_cards` after checking its variant with `is_some` [INFO] [stdout] --> src/main.rs:425:37 [INFO] [stdout] | [INFO] [stdout] 345 | if self.current_cards.is_some() { [INFO] [stdout] | ------------------------------- help: try: `if let Some() = &mut self.current_cards` [INFO] [stdout] ... [INFO] [stdout] 425 | self.current_cards.as_mut().unwrap().move_card(&mut self.seventh, index, false, true); [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: unnecessary use of `first().is_none()` to check if slice is empty [INFO] [stdout] --> src/main.rs:498:19 [INFO] [stdout] | [INFO] [stdout] 498 | if pile.cards.first().is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace this with: `is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_first_then_check [INFO] [stdout] = note: `#[warn(clippy::unnecessary_first_then_check)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `first().is_none()` to check if slice is empty [INFO] [stdout] --> src/main.rs:498:19 [INFO] [stdout] | [INFO] [stdout] 498 | if pile.cards.first().is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace this with: `is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_first_then_check [INFO] [stdout] = note: `#[warn(clippy::unnecessary_first_then_check)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 12s [INFO] running `Command { std: "docker" "inspect" "1c85fa21b522284d84e184aa5f586c1d7902b3c4d6baab712b0cf49a8d270ebb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c85fa21b522284d84e184aa5f586c1d7902b3c4d6baab712b0cf49a8d270ebb", kill_on_drop: false }` [INFO] [stdout] 1c85fa21b522284d84e184aa5f586c1d7902b3c4d6baab712b0cf49a8d270ebb