[INFO] cloning repository https://github.com/saintech/asteroids [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/saintech/asteroids" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaintech%2Fasteroids", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaintech%2Fasteroids'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] afe87cb8824bcb4eb91125feff0ac9a4c8e9ead7 [INFO] testing saintech/asteroids against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_in_2025-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaintech%2Fasteroids" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/saintech/asteroids [INFO] finished tweaking git repo https://github.com/saintech/asteroids [INFO] tweaked toml for git repo https://github.com/saintech/asteroids written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/saintech/asteroids on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/saintech/asteroids 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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 macroquad-particles v0.1.1 [INFO] [stderr] Downloaded macroquad-canvas v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b2f417e14e0ca4a09353a808d9ad8d84532006351d2b4a586b273a683794c0a6 [INFO] running `Command { std: "docker" "start" "-a" "b2f417e14e0ca4a09353a808d9ad8d84532006351d2b4a586b273a683794c0a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b2f417e14e0ca4a09353a808d9ad8d84532006351d2b4a586b273a683794c0a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2f417e14e0ca4a09353a808d9ad8d84532006351d2b4a586b273a683794c0a6", kill_on_drop: false }` [INFO] [stdout] b2f417e14e0ca4a09353a808d9ad8d84532006351d2b4a586b273a683794c0a6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 581b0c2ee48ae3d65e3969655ea222f741f2d110b564d0e83b487eb0c663885d [INFO] running `Command { std: "docker" "start" "-a" "581b0c2ee48ae3d65e3969655ea222f741f2d110b564d0e83b487eb0c663885d", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling quad-alsa-sys v0.3.2 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling dasp_sample v0.11.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling sapp-linux v0.1.14 [INFO] [stderr] Compiling quad-snd v0.2.3 [INFO] [stderr] Compiling hound v3.4.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling bytemuck v1.8.0 [INFO] [stderr] Compiling ttf-parser v0.12.3 [INFO] [stderr] Compiling glam v0.14.0 [INFO] [stderr] Compiling quad-rand v0.2.1 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling ogg v0.7.1 [INFO] [stderr] Compiling dasp_frame v0.11.0 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling macroquad_macro v0.1.7 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling lewton v0.9.4 [INFO] [stderr] Compiling fontdue v0.5.2 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling audrey v0.3.0 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling miniquad v0.3.0-alpha.45 [INFO] [stderr] Compiling macroquad v0.3.15 [INFO] [stderr] Compiling macroquad-particles v0.1.1 [INFO] [stderr] Compiling macroquad-canvas v0.3.0 [INFO] [stderr] Compiling asteroids v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: for loop over a `&mut Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/systems/collision.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | for ship in &mut game.ship { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 8 - for ship in &mut game.ship { [INFO] [stdout] 8 + while let Some(ship) = &mut game.ship { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 8 - for ship in &mut game.ship { [INFO] [stdout] 8 + if let Some(ship) = &mut game.ship { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&mut Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/systems/collision.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | for ship in &mut game.ship { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 13 - for ship in &mut game.ship { [INFO] [stdout] 13 + while let Some(ship) = &mut game.ship { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 13 - for ship in &mut game.ship { [INFO] [stdout] 13 + if let Some(ship) = &mut game.ship { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&mut Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/systems/collision.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 57 | for ship in &mut game.ship { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 57 - for ship in &mut game.ship { [INFO] [stdout] 57 + while let Some(ship) = &mut game.ship { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 57 - for ship in &mut game.ship { [INFO] [stdout] 57 + if let Some(ship) = &mut game.ship { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/systems/draw.rs:21:71 [INFO] [stdout] | [INFO] [stdout] 21 | for entity::Ship { position, sprite, has_exhaust, .. } in &game.ship { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 21 - for entity::Ship { position, sprite, has_exhaust, .. } in &game.ship { [INFO] [stdout] 21 + while let Some(entity::Ship { position, sprite, has_exhaust, .. }) = &game.ship { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 21 - for entity::Ship { position, sprite, has_exhaust, .. } in &game.ship { [INFO] [stdout] 21 + if let Some(entity::Ship { position, sprite, has_exhaust, .. }) = &game.ship { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.81s [INFO] running `Command { std: "docker" "inspect" "581b0c2ee48ae3d65e3969655ea222f741f2d110b564d0e83b487eb0c663885d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "581b0c2ee48ae3d65e3969655ea222f741f2d110b564d0e83b487eb0c663885d", kill_on_drop: false }` [INFO] [stdout] 581b0c2ee48ae3d65e3969655ea222f741f2d110b564d0e83b487eb0c663885d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] f6e900e41eccc04e80f07dabd737730692d8db259aa1e791866dfd1169262819 [INFO] running `Command { std: "docker" "start" "-a" "f6e900e41eccc04e80f07dabd737730692d8db259aa1e791866dfd1169262819", kill_on_drop: false }` [INFO] [stderr] Compiling asteroids v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: for loop over a `&mut Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/systems/collision.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | for ship in &mut game.ship { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 8 - for ship in &mut game.ship { [INFO] [stdout] 8 + while let Some(ship) = &mut game.ship { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 8 - for ship in &mut game.ship { [INFO] [stdout] 8 + if let Some(ship) = &mut game.ship { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&mut Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/systems/collision.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | for ship in &mut game.ship { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 13 - for ship in &mut game.ship { [INFO] [stdout] 13 + while let Some(ship) = &mut game.ship { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 13 - for ship in &mut game.ship { [INFO] [stdout] 13 + if let Some(ship) = &mut game.ship { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&mut Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/systems/collision.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 57 | for ship in &mut game.ship { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 57 - for ship in &mut game.ship { [INFO] [stdout] 57 + while let Some(ship) = &mut game.ship { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 57 - for ship in &mut game.ship { [INFO] [stdout] 57 + if let Some(ship) = &mut game.ship { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/systems/draw.rs:21:71 [INFO] [stdout] | [INFO] [stdout] 21 | for entity::Ship { position, sprite, has_exhaust, .. } in &game.ship { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 21 - for entity::Ship { position, sprite, has_exhaust, .. } in &game.ship { [INFO] [stdout] 21 + while let Some(entity::Ship { position, sprite, has_exhaust, .. }) = &game.ship { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 21 - for entity::Ship { position, sprite, has_exhaust, .. } in &game.ship { [INFO] [stdout] 21 + if let Some(entity::Ship { position, sprite, has_exhaust, .. }) = &game.ship { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.08s [INFO] running `Command { std: "docker" "inspect" "f6e900e41eccc04e80f07dabd737730692d8db259aa1e791866dfd1169262819", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6e900e41eccc04e80f07dabd737730692d8db259aa1e791866dfd1169262819", kill_on_drop: false }` [INFO] [stdout] f6e900e41eccc04e80f07dabd737730692d8db259aa1e791866dfd1169262819 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 769b2c717e35bcca6bc1b17ca3e8731a52ed7bc6cbca2e688edcf1d2ab4d5fa2 [INFO] running `Command { std: "docker" "start" "-a" "769b2c717e35bcca6bc1b17ca3e8731a52ed7bc6cbca2e688edcf1d2ab4d5fa2", kill_on_drop: false }` [INFO] [stderr] warning: for loop over a `&mut Option`. This is more readably written as an `if let` statement [INFO] [stdout] [INFO] [stderr] --> src/systems/collision.rs:8:21 [INFO] [stdout] running 0 tests [INFO] [stderr] | [INFO] [stderr] 8 | for ship in &mut game.ship { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 8 - for ship in &mut game.ship { [INFO] [stderr] 8 + while let Some(ship) = &mut game.ship { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 8 - for ship in &mut game.ship { [INFO] [stderr] 8 + if let Some(ship) = &mut game.ship { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&mut Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/systems/collision.rs:13:21 [INFO] [stderr] | [INFO] [stderr] 13 | for ship in &mut game.ship { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 13 - for ship in &mut game.ship { [INFO] [stderr] 13 + while let Some(ship) = &mut game.ship { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 13 - for ship in &mut game.ship { [INFO] [stderr] 13 + if let Some(ship) = &mut game.ship { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&mut Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/systems/collision.rs:57:21 [INFO] [stderr] | [INFO] [stderr] 57 | for ship in &mut game.ship { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 57 - for ship in &mut game.ship { [INFO] [stderr] 57 + while let Some(ship) = &mut game.ship { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 57 - for ship in &mut game.ship { [INFO] [stderr] 57 + if let Some(ship) = &mut game.ship { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/systems/draw.rs:21:71 [INFO] [stderr] | [INFO] [stderr] 21 | for entity::Ship { position, sprite, has_exhaust, .. } in &game.ship { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 21 - for entity::Ship { position, sprite, has_exhaust, .. } in &game.ship { [INFO] [stderr] 21 + while let Some(entity::Ship { position, sprite, has_exhaust, .. }) = &game.ship { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 21 - for entity::Ship { position, sprite, has_exhaust, .. } in &game.ship { [INFO] [stderr] 21 + if let Some(entity::Ship { position, sprite, has_exhaust, .. }) = &game.ship { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `asteroids` (bin "asteroids" test) generated 4 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/asteroids-389e1d86536ff2b0) [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "769b2c717e35bcca6bc1b17ca3e8731a52ed7bc6cbca2e688edcf1d2ab4d5fa2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "769b2c717e35bcca6bc1b17ca3e8731a52ed7bc6cbca2e688edcf1d2ab4d5fa2", kill_on_drop: false }` [INFO] [stdout] 769b2c717e35bcca6bc1b17ca3e8731a52ed7bc6cbca2e688edcf1d2ab4d5fa2