[INFO] cloning repository https://github.com/nattatorn-dev/pod-env [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nattatorn-dev/pod-env" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnattatorn-dev%2Fpod-env", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnattatorn-dev%2Fpod-env'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 67d3badff71fea4a4d1794bfd25f1e35820d1736 [INFO] checking nattatorn-dev/pod-env against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnattatorn-dev%2Fpod-env" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nattatorn-dev/pod-env [INFO] finished tweaking git repo https://github.com/nattatorn-dev/pod-env [INFO] tweaked toml for git repo https://github.com/nattatorn-dev/pod-env written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nattatorn-dev/pod-env on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nattatorn-dev/pod-env 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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded futures-sink v0.3.14 [INFO] [stderr] Downloaded futures-core v0.3.14 [INFO] [stderr] Downloaded tokio-macros v1.1.0 [INFO] [stderr] Downloaded http-body v0.4.1 [INFO] [stderr] Downloaded httpdate v1.0.0 [INFO] [stderr] Downloaded tokio-util v0.6.6 [INFO] [stderr] Downloaded security-framework-sys v2.2.0 [INFO] [stderr] Downloaded httparse v1.4.0 [INFO] [stderr] Downloaded futures-executor v0.3.14 [INFO] [stderr] Downloaded eyre v0.6.5 [INFO] [stderr] Downloaded backtrace v0.3.58 [INFO] [stderr] Downloaded futures v0.3.14 [INFO] [stderr] Downloaded tracing-subscriber v0.2.18 [INFO] [stderr] Downloaded tower v0.4.7 [INFO] [stderr] Downloaded security-framework v2.2.0 [INFO] [stderr] Downloaded hyper v0.14.7 [INFO] [stderr] Downloaded syn v1.0.71 [INFO] [stderr] Downloaded futures-util v0.3.14 [INFO] [stderr] Downloaded kube v0.52.0 [INFO] [stderr] Downloaded regex v1.5.3 [INFO] [stderr] Downloaded array_tool v1.0.3 [INFO] [stderr] Downloaded futures-channel v0.3.14 [INFO] [stderr] Downloaded jsonpath_lib v0.2.6 [INFO] [stderr] Downloaded futures-macro v0.3.14 [INFO] [stderr] Downloaded snafu-derive v0.6.10 [INFO] [stderr] Downloaded snafu v0.6.10 [INFO] [stderr] Downloaded kube-runtime v0.52.0 [INFO] [stderr] Downloaded redox_syscall v0.2.7 [INFO] [stderr] Downloaded tokio-io-timeout v1.1.1 [INFO] [stderr] Downloaded futures-io v0.3.14 [INFO] [stderr] Downloaded tokio v1.5.0 [INFO] [stderr] Downloaded futures-task v0.3.14 [INFO] [stderr] Downloaded k8s-openapi v0.11.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 94f46a153c69661a53809b6014cad9205a3714d80dd57fcc5e55de5bc37b46a8 [INFO] running `Command { std: "docker" "start" "-a" "94f46a153c69661a53809b6014cad9205a3714d80dd57fcc5e55de5bc37b46a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "94f46a153c69661a53809b6014cad9205a3714d80dd57fcc5e55de5bc37b46a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94f46a153c69661a53809b6014cad9205a3714d80dd57fcc5e55de5bc37b46a8", kill_on_drop: false }` [INFO] [stdout] 94f46a153c69661a53809b6014cad9205a3714d80dd57fcc5e55de5bc37b46a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e5a147df4361580178d0cbbde74aebf48932dc0bd622c11c41e9a98062059ba [INFO] running `Command { std: "docker" "start" "-a" "8e5a147df4361580178d0cbbde74aebf48932dc0bd622c11c41e9a98062059ba", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling syn v1.0.71 [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking futures-core v0.3.14 [INFO] [stderr] Checking tracing-core v0.1.18 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling tokio v1.5.0 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Checking futures-sink v0.3.14 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Checking futures-channel v0.3.14 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking futures-task v0.3.14 [INFO] [stderr] Checking futures-io v0.3.14 [INFO] [stderr] Compiling httparse v1.4.0 [INFO] [stderr] Checking regex v1.5.3 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking http-body v0.4.1 [INFO] [stderr] Checking httpdate v1.0.0 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking sharded-slab v0.1.1 [INFO] [stderr] Compiling k8s-openapi v0.11.0 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Checking signal-hook-registry v1.3.0 [INFO] [stderr] Checking socket2 v0.4.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking ordered-float v2.1.1 [INFO] [stderr] Checking num-integer v0.1.44 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Compiling backtrace v0.3.58 [INFO] [stderr] Checking tracing-subscriber v0.2.18 [INFO] [stderr] Compiling eyre v0.6.5 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking array_tool v1.0.3 [INFO] [stderr] Checking dirs-next v2.0.0 [INFO] [stderr] Checking url v2.2.1 [INFO] [stderr] Checking pem v0.8.3 [INFO] [stderr] Checking owo-colors v1.3.0 [INFO] [stderr] Checking dashmap v4.0.2 [INFO] [stderr] Checking env_logger v0.8.3 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking ct-logs v0.8.0 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking rustls-native-certs v0.5.0 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling tracing-attributes v0.1.15 [INFO] [stderr] Compiling futures-macro v0.3.14 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling pin-project-internal v0.4.28 [INFO] [stderr] Compiling snafu-derive v0.6.10 [INFO] [stderr] Checking futures-util v0.3.14 [INFO] [stderr] Checking tracing v0.1.26 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Checking pin-project v1.0.7 [INFO] [stderr] Checking tracing-error v0.1.2 [INFO] [stderr] Checking color-spantrace v0.1.6 [INFO] [stderr] Checking pin-project v0.4.28 [INFO] [stderr] Checking snafu v0.6.10 [INFO] [stderr] Checking color-eyre v0.5.11 [INFO] [stderr] Checking futures-executor v0.3.14 [INFO] [stderr] Checking futures v0.3.14 [INFO] [stderr] Checking hyper v0.14.7 [INFO] [stderr] Checking tokio-util v0.6.6 [INFO] [stderr] Checking tokio-io-timeout v1.1.1 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking tower v0.4.7 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking serde-value v0.7.0 [INFO] [stderr] Checking serde_yaml v0.8.17 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking hyper-rustls v0.22.1 [INFO] [stderr] Checking jsonpath_lib v0.2.6 [INFO] [stderr] Checking kube v0.52.0 [INFO] [stderr] Checking kube-runtime v0.52.0 [INFO] [stderr] Checking pod-env v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | Utf8(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Decoded` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 - Utf8(String), [INFO] [stdout] 12 + Utf8(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | Bytes(Vec), [INFO] [stdout] | ----- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Decoded` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 - Bytes(Vec), [INFO] [stdout] 13 + Bytes(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | for spec in pod.spec { [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] 61 - for spec in pod.spec { [INFO] [stdout] 61 + while let Some(spec) = pod.spec { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 61 - for spec in pod.spec { [INFO] [stdout] 61 + if let Some(spec) = pod.spec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:63:36 [INFO] [stdout] | [INFO] [stdout] 63 | for env in container.env { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 63 - for env in container.env { [INFO] [stdout] 63 + while let Some(env) = container.env { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 63 - for env in container.env { [INFO] [stdout] 63 + if let Some(env) = container.env { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:69:36 [INFO] [stdout] | [INFO] [stdout] 69 | for volumes in spec.volumes { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 69 - for volumes in spec.volumes { [INFO] [stdout] 69 + while let Some(volumes) = spec.volumes { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 69 - for volumes in spec.volumes { [INFO] [stdout] 69 + if let Some(volumes) = spec.volumes { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:71:43 [INFO] [stdout] | [INFO] [stdout] 71 | ... for secret in volume.secret { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 71 - for secret in volume.secret { [INFO] [stdout] 71 + while let Some(secret) = volume.secret { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 71 - for secret in volume.secret { [INFO] [stdout] 71 + if let Some(secret) = volume.secret { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `Result`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:76:47 [INFO] [stdout] | [INFO] [stdout] 76 | ... for secret in secrets { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 76 - for secret in secrets { [INFO] [stdout] 76 + while let Ok(secret) = secrets { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 76 - for secret in secrets { [INFO] [stdout] 76 + if let Ok(secret) = secrets { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | Utf8(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Decoded` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 - Utf8(String), [INFO] [stdout] 12 + Utf8(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | Bytes(Vec), [INFO] [stdout] | ----- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Decoded` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 - Bytes(Vec), [INFO] [stdout] 13 + Bytes(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | for spec in pod.spec { [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] 61 - for spec in pod.spec { [INFO] [stdout] 61 + while let Some(spec) = pod.spec { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 61 - for spec in pod.spec { [INFO] [stdout] 61 + if let Some(spec) = pod.spec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:63:36 [INFO] [stdout] | [INFO] [stdout] 63 | for env in container.env { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 63 - for env in container.env { [INFO] [stdout] 63 + while let Some(env) = container.env { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 63 - for env in container.env { [INFO] [stdout] 63 + if let Some(env) = container.env { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:69:36 [INFO] [stdout] | [INFO] [stdout] 69 | for volumes in spec.volumes { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 69 - for volumes in spec.volumes { [INFO] [stdout] 69 + while let Some(volumes) = spec.volumes { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 69 - for volumes in spec.volumes { [INFO] [stdout] 69 + if let Some(volumes) = spec.volumes { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:71:43 [INFO] [stdout] | [INFO] [stdout] 71 | ... for secret in volume.secret { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 71 - for secret in volume.secret { [INFO] [stdout] 71 + while let Some(secret) = volume.secret { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 71 - for secret in volume.secret { [INFO] [stdout] 71 + if let Some(secret) = volume.secret { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `Result`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:76:47 [INFO] [stdout] | [INFO] [stdout] 76 | ... for secret in secrets { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 76 - for secret in secrets { [INFO] [stdout] 76 + while let Ok(secret) = secrets { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 76 - for secret in secrets { [INFO] [stdout] 76 + if let Ok(secret) = secrets { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 03s [INFO] running `Command { std: "docker" "inspect" "8e5a147df4361580178d0cbbde74aebf48932dc0bd622c11c41e9a98062059ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e5a147df4361580178d0cbbde74aebf48932dc0bd622c11c41e9a98062059ba", kill_on_drop: false }` [INFO] [stdout] 8e5a147df4361580178d0cbbde74aebf48932dc0bd622c11c41e9a98062059ba