[INFO] cloning repository https://github.com/srenevey/minesweeper [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/srenevey/minesweeper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsrenevey%2Fminesweeper", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsrenevey%2Fminesweeper'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a4e788fb519374a815d4257a06d5c8072424d93a [INFO] linting srenevey/minesweeper against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsrenevey%2Fminesweeper" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/srenevey/minesweeper [INFO] finished tweaking git repo https://github.com/srenevey/minesweeper [INFO] tweaked toml for git repo https://github.com/srenevey/minesweeper written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/srenevey/minesweeper 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 30 packages to latest compatible versions [INFO] [stderr] Adding rand v0.7.3 (available: v0.10.0) [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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 855315c59a9379c792e3ec1a385582367dd7c0783ea81fb9380195d7206c41cf [INFO] running `Command { std: "docker" "start" "-a" "855315c59a9379c792e3ec1a385582367dd7c0783ea81fb9380195d7206c41cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "855315c59a9379c792e3ec1a385582367dd7c0783ea81fb9380195d7206c41cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "855315c59a9379c792e3ec1a385582367dd7c0783ea81fb9380195d7206c41cf", kill_on_drop: false }` [INFO] [stdout] 855315c59a9379c792e3ec1a385582367dd7c0783ea81fb9380195d7206c41cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 3f65d564729aebb9a502bbc3c792649d899798251030cba71b483adf79f4726b [INFO] running `Command { std: "docker" "start" "-a" "3f65d564729aebb9a502bbc3c792649d899798251030cba71b483adf79f4726b", kill_on_drop: false }` [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.114 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling libc v0.2.183 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling zerocopy v0.8.42 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking memchr v2.8.0 [INFO] [stderr] Checking once_cell v1.21.4 [INFO] [stderr] Compiling wasm-bindgen v0.2.114 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.114 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.114 [INFO] [stderr] Checking minesweeper v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `wasm_bindgen::JsValue::from_serde`: causes dependency cycles, use `serde-wasm-bindgen` or `gloo_utils::format::JsValueSerdeExt` instead [INFO] [stdout] --> src/lib.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | JsValue::from_serde(&self.tiles).unwrap() [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `wasm_bindgen::JsValue::from_serde`: causes dependency cycles, use `serde-wasm-bindgen` or `gloo_utils::format::JsValueSerdeExt` instead [INFO] [stdout] --> src/lib.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | JsValue::from_serde(&self.tiles).unwrap() [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/lib.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | / match tile { [INFO] [stdout] 119 | | Some(t) => { [INFO] [stdout] 120 | | t.set_visible(); [INFO] [stdout] 121 | | if t.num_bombs == 0 { [INFO] [stdout] ... | [INFO] [stdout] 127 | | None => (), [INFO] [stdout] 128 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 118 ~ if let Some(t) = tile { [INFO] [stdout] 119 + t.set_visible(); [INFO] [stdout] 120 + if t.num_bombs == 0 { [INFO] [stdout] 121 + let mut processed: HashSet = HashSet::new(); [INFO] [stdout] 122 + let idx: usize = self.get_index(row, col).unwrap(); [INFO] [stdout] 123 + self.recursive_reveal(idx, &mut processed); [INFO] [stdout] 124 + } [INFO] [stdout] 125 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/lib.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | / match tile { [INFO] [stdout] 135 | | Some(t) => t.toggle_flagged(), [INFO] [stdout] 136 | | None => (), [INFO] [stdout] 137 | | } [INFO] [stdout] | |_________^ help: try: `if let Some(t) = tile { t.toggle_flagged() }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | ... if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [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] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if !(!tile.visible && tile.bomb && tile.flagged || tile.visible && !tile.bomb && !tile.flagged) { [INFO] [stdout] | [INFO] [stdout] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if !tile.visible && !tile.bomb || tile.visible && tile.flagged || tile.bomb && !tile.flagged { [INFO] [stdout] | [INFO] [stdout] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if (tile.flagged || tile.bomb || !tile.visible) && (!tile.flagged || !tile.bomb || tile.visible) { [INFO] [stdout] | [INFO] [stdout] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if tile.visible && tile.bomb || !tile.visible && !tile.flagged || !tile.bomb && tile.flagged { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | ... if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [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] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if !(!tile.visible && tile.bomb || tile.visible && !tile.bomb && !tile.flagged) || !tile.flagged && tile.bomb { [INFO] [stdout] | [INFO] [stdout] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if (tile.flagged || tile.bomb || !tile.visible) && (!tile.bomb || tile.visible) || !tile.flagged && tile.bomb { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | ... if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [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] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if !(tile.bomb || tile.visible && !tile.flagged) || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] | [INFO] [stdout] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if (tile.flagged || !tile.visible) && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/lib.rs:238:25 [INFO] [stdout] | [INFO] [stdout] 238 | / match self.get_index(neighbor_row as u32, neighbor_col as u32) { [INFO] [stdout] 239 | | Ok(idx) => neighbors_idxs.push(idx), [INFO] [stdout] 240 | | Err(_) => (), [INFO] [stdout] 241 | | } [INFO] [stdout] | |_________________________^ help: try: `if let Ok(idx) = self.get_index(neighbor_row as u32, neighbor_col as u32) { neighbors_idxs.push(idx) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/lib.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | / match tile { [INFO] [stdout] 119 | | Some(t) => { [INFO] [stdout] 120 | | t.set_visible(); [INFO] [stdout] 121 | | if t.num_bombs == 0 { [INFO] [stdout] ... | [INFO] [stdout] 127 | | None => (), [INFO] [stdout] 128 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 118 ~ if let Some(t) = tile { [INFO] [stdout] 119 + t.set_visible(); [INFO] [stdout] 120 + if t.num_bombs == 0 { [INFO] [stdout] 121 + let mut processed: HashSet = HashSet::new(); [INFO] [stdout] 122 + let idx: usize = self.get_index(row, col).unwrap(); [INFO] [stdout] 123 + self.recursive_reveal(idx, &mut processed); [INFO] [stdout] 124 + } [INFO] [stdout] 125 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/lib.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | / match tile { [INFO] [stdout] 135 | | Some(t) => t.toggle_flagged(), [INFO] [stdout] 136 | | None => (), [INFO] [stdout] 137 | | } [INFO] [stdout] | |_________^ help: try: `if let Some(t) = tile { t.toggle_flagged() }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | ... if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [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] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if !(!tile.visible && tile.bomb && tile.flagged || tile.visible && !tile.bomb && !tile.flagged) { [INFO] [stdout] | [INFO] [stdout] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if !tile.visible && !tile.bomb || tile.visible && tile.flagged || tile.bomb && !tile.flagged { [INFO] [stdout] | [INFO] [stdout] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if (tile.flagged || tile.bomb || !tile.visible) && (!tile.flagged || !tile.bomb || tile.visible) { [INFO] [stdout] | [INFO] [stdout] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if tile.visible && tile.bomb || !tile.visible && !tile.flagged || !tile.bomb && tile.flagged { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | ... if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [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] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if !(!tile.visible && tile.bomb || tile.visible && !tile.bomb && !tile.flagged) || !tile.flagged && tile.bomb { [INFO] [stdout] | [INFO] [stdout] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if (tile.flagged || tile.bomb || !tile.visible) && (!tile.bomb || tile.visible) || !tile.flagged && tile.bomb { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | ... if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [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] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if !(tile.bomb || tile.visible && !tile.flagged) || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] | [INFO] [stdout] 154 - if !tile.visible && !tile.bomb || tile.flagged && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] 154 + if (tile.flagged || !tile.visible) && !tile.bomb || tile.visible && tile.bomb || !tile.flagged && tile.bomb { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/lib.rs:238:25 [INFO] [stdout] | [INFO] [stdout] 238 | / match self.get_index(neighbor_row as u32, neighbor_col as u32) { [INFO] [stdout] 239 | | Ok(idx) => neighbors_idxs.push(idx), [INFO] [stdout] 240 | | Err(_) => (), [INFO] [stdout] 241 | | } [INFO] [stdout] | |_________________________^ help: try: `if let Ok(idx) = self.get_index(neighbor_row as u32, neighbor_col as u32) { neighbors_idxs.push(idx) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.82s [INFO] running `Command { std: "docker" "inspect" "3f65d564729aebb9a502bbc3c792649d899798251030cba71b483adf79f4726b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f65d564729aebb9a502bbc3c792649d899798251030cba71b483adf79f4726b", kill_on_drop: false }` [INFO] [stdout] 3f65d564729aebb9a502bbc3c792649d899798251030cba71b483adf79f4726b