[INFO] cloning repository https://github.com/volfco/cloudflared_init [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/volfco/cloudflared_init" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolfco%2Fcloudflared_init", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolfco%2Fcloudflared_init'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d97dd306b0d2d632f7c1c97b55a8b7b53fd261ff [INFO] linting volfco/cloudflared_init against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolfco%2Fcloudflared_init" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/volfco/cloudflared_init [INFO] finished tweaking git repo https://github.com/volfco/cloudflared_init [INFO] tweaked toml for git repo https://github.com/volfco/cloudflared_init written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/volfco/cloudflared_init 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/volfco/cloudflared_init 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 paw-attributes v1.0.2 [INFO] [stderr] Downloaded paw v1.0.0 [INFO] [stderr] Downloaded openssl-sys v0.9.70 [INFO] [stderr] Downloaded paw-raw v1.0.0 [INFO] [stderr] Downloaded serde_json v1.0.69 [INFO] [stderr] Downloaded nix v0.23.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] e38a5c0b6f015b7ae4ab8472872d7664ab84ef09498d4cb8e9a6f4bcbe4b556c [INFO] running `Command { std: "docker" "start" "-a" "e38a5c0b6f015b7ae4ab8472872d7664ab84ef09498d4cb8e9a6f4bcbe4b556c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e38a5c0b6f015b7ae4ab8472872d7664ab84ef09498d4cb8e9a6f4bcbe4b556c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e38a5c0b6f015b7ae4ab8472872d7664ab84ef09498d4cb8e9a6f4bcbe4b556c", kill_on_drop: false }` [INFO] [stdout] e38a5c0b6f015b7ae4ab8472872d7664ab84ef09498d4cb8e9a6f4bcbe4b556c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 5ca7475fb5fe293bfe4364f19c484f769783322d1ba5d5dbf18d650406f8f657 [INFO] running `Command { std: "docker" "start" "-a" "5ca7475fb5fe293bfe4364f19c484f769783322d1ba5d5dbf18d650406f8f657", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.107 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling cc v1.0.71 [INFO] [stderr] Compiling pkg-config v0.3.22 [INFO] [stderr] Compiling tokio v1.13.0 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Checking http v0.2.5 [INFO] [stderr] Checking tracing-core v0.1.21 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking futures-io v0.3.17 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Checking tinyvec v1.5.0 [INFO] [stderr] Compiling encoding_rs v0.8.29 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Compiling serde_json v1.0.69 [INFO] [stderr] Checking paw-raw v1.0.0 [INFO] [stderr] Compiling anyhow v1.0.45 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling signal-hook v0.3.10 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking tracing v0.1.29 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling openssl-sys v0.9.70 [INFO] [stderr] Checking http-body v0.4.4 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking socket2 v0.4.2 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking nix v0.23.0 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling paw-attributes v1.0.2 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking h2 v0.3.7 [INFO] [stderr] Checking paw v1.0.0 [INFO] [stderr] Checking structopt v0.3.25 [INFO] [stderr] Checking hyper v0.14.14 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking reqwest v0.11.6 [INFO] [stderr] Checking cloudflared-init v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::exit; [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:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `healthy` is assigned to, but never used [INFO] [stdout] --> src/main.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut healthy = false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_healthy` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | result = cloudflared::cloudflared_create_tunnel(&tunnel_config); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `healthy` is never read [INFO] [stdout] --> src/main.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | healthy = true; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CloudflaredConfig` is never constructed [INFO] [stdout] --> src/structs.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct CloudflaredConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `healthy` is assigned to, but never used [INFO] [stdout] --> src/main.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut healthy = false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_healthy` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | result = cloudflared::cloudflared_create_tunnel(&tunnel_config); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `healthy` is never read [INFO] [stdout] --> src/main.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | healthy = true; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/cloudflared.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | let output = Command::new(&CLOUDFLARED_PATH) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `CLOUDFLARED_PATH` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CloudflaredConfig` is never constructed [INFO] [stdout] --> src/structs.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct CloudflaredConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/cloudflared.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | let mut proc = Command::new(&CLOUDFLARED_PATH) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `CLOUDFLARED_PATH` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `filter_map()` will run forever if the iterator repeatedly produces an `Err` [INFO] [stdout] --> src/cloudflared.rs:124:18 [INFO] [stdout] | [INFO] [stdout] 124 | .filter_map(|line| line.ok()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `map_while(Result::ok)` [INFO] [stdout] | [INFO] [stdout] note: this expression returning a `std::io::Lines` may produce an infinite number of `Err` in case of a read error [INFO] [stdout] --> src/cloudflared.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | / reader [INFO] [stdout] 123 | | .lines() [INFO] [stdout] | |________________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok [INFO] [stdout] = note: `#[warn(clippy::lines_filter_map_ok)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `filter_map()` will run forever if the iterator repeatedly produces an `Err` [INFO] [stdout] --> src/cloudflared.rs:132:18 [INFO] [stdout] | [INFO] [stdout] 132 | .filter_map(|line| line.ok()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `map_while(Result::ok)` [INFO] [stdout] | [INFO] [stdout] note: this expression returning a `std::io::Lines` may produce an infinite number of `Err` in case of a read error [INFO] [stdout] --> src/cloudflared.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | / reader [INFO] [stdout] 131 | | .lines() [INFO] [stdout] | |________________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 74 | if !request.is_err() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `request.is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `set_readonly` with argument `false` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | tdir.set_readonly(false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: on Unix platforms this results in the file being world writable [INFO] [stdout] = help: you can set the desired permissions using `PermissionsExt`. For more information, see [INFO] [stdout] https://doc.rust-lang.org/std/os/unix/fs/trait.PermissionsExt.html [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#permissions_set_readonly_false [INFO] [stdout] = note: `#[warn(clippy::permissions_set_readonly_false)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | let metadata: structs::EcsTask; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] = note: `#[warn(clippy::needless_late_init)]` on by default [INFO] [stdout] help: move the declaration `metadata` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 35 ~ [INFO] [stdout] 36 ~ let metadata: structs::EcsTask = if cfg!(debug_assertions) { [INFO] [stdout] 37 | log::warn!("debug build- using local data.json"); [INFO] [stdout] 38 | let file = std::fs::read_to_string("./data.json").unwrap(); [INFO] [stdout] 39 ~ serde_json::from_str(&file).unwrap() [INFO] [stdout] 40 | } else { [INFO] [stdout] 41 | log::debug!("loading ECS Container Metadata (v4) Task Metadata"); [INFO] [stdout] 42 | let request = reqwest::blocking::get(format!("{}/task", env::var("ECS_CONTAINER_METADATA_URI_V4").unwrap()))?; [INFO] [stdout] 43 ~ request.json()? [INFO] [stdout] 44 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/cloudflared.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | let output = Command::new(&CLOUDFLARED_PATH) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `CLOUDFLARED_PATH` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/cloudflared.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | let mut proc = Command::new(&CLOUDFLARED_PATH) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `CLOUDFLARED_PATH` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `filter_map()` will run forever if the iterator repeatedly produces an `Err` [INFO] [stdout] --> src/cloudflared.rs:124:18 [INFO] [stdout] | [INFO] [stdout] 124 | .filter_map(|line| line.ok()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `map_while(Result::ok)` [INFO] [stdout] | [INFO] [stdout] note: this expression returning a `std::io::Lines` may produce an infinite number of `Err` in case of a read error [INFO] [stdout] --> src/cloudflared.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | / reader [INFO] [stdout] 123 | | .lines() [INFO] [stdout] | |________________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok [INFO] [stdout] = note: `#[warn(clippy::lines_filter_map_ok)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `filter_map()` will run forever if the iterator repeatedly produces an `Err` [INFO] [stdout] --> src/cloudflared.rs:132:18 [INFO] [stdout] | [INFO] [stdout] 132 | .filter_map(|line| line.ok()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `map_while(Result::ok)` [INFO] [stdout] | [INFO] [stdout] note: this expression returning a `std::io::Lines` may produce an infinite number of `Err` in case of a read error [INFO] [stdout] --> src/cloudflared.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | / reader [INFO] [stdout] 131 | | .lines() [INFO] [stdout] | |________________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 74 | if !request.is_err() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `request.is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `set_readonly` with argument `false` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | tdir.set_readonly(false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: on Unix platforms this results in the file being world writable [INFO] [stdout] = help: you can set the desired permissions using `PermissionsExt`. For more information, see [INFO] [stdout] https://doc.rust-lang.org/std/os/unix/fs/trait.PermissionsExt.html [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#permissions_set_readonly_false [INFO] [stdout] = note: `#[warn(clippy::permissions_set_readonly_false)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | let metadata: structs::EcsTask; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] = note: `#[warn(clippy::needless_late_init)]` on by default [INFO] [stdout] help: move the declaration `metadata` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 35 ~ [INFO] [stdout] 36 ~ let metadata: structs::EcsTask = if cfg!(debug_assertions) { [INFO] [stdout] 37 | log::warn!("debug build- using local data.json"); [INFO] [stdout] 38 | let file = std::fs::read_to_string("./data.json").unwrap(); [INFO] [stdout] 39 ~ serde_json::from_str(&file).unwrap() [INFO] [stdout] 40 | } else { [INFO] [stdout] 41 | log::debug!("loading ECS Container Metadata (v4) Task Metadata"); [INFO] [stdout] 42 | let request = reqwest::blocking::get(format!("{}/task", env::var("ECS_CONTAINER_METADATA_URI_V4").unwrap()))?; [INFO] [stdout] 43 ~ request.json()? [INFO] [stdout] 44 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.68s [INFO] running `Command { std: "docker" "inspect" "5ca7475fb5fe293bfe4364f19c484f769783322d1ba5d5dbf18d650406f8f657", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ca7475fb5fe293bfe4364f19c484f769783322d1ba5d5dbf18d650406f8f657", kill_on_drop: false }` [INFO] [stdout] 5ca7475fb5fe293bfe4364f19c484f769783322d1ba5d5dbf18d650406f8f657