[INFO] cloning repository https://github.com/evanburger/bridge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/evanburger/bridge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fevanburger%2Fbridge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fevanburger%2Fbridge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3efd3c541765b7239215e8c3489bacf29966865c [INFO] linting evanburger/bridge against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fevanburger%2Fbridge" "/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/evanburger/bridge [INFO] finished tweaking git repo https://github.com/evanburger/bridge [INFO] tweaked toml for git repo https://github.com/evanburger/bridge written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/evanburger/bridge 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/evanburger/bridge 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] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.92 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.97 [INFO] [stderr] Downloaded security-framework-sys v2.12.1 [INFO] [stderr] Downloaded wasm-bindgen v0.2.97 [INFO] [stderr] Downloaded serde_derive v1.0.215 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.97 [INFO] [stderr] Downloaded fastrand v2.2.0 [INFO] [stderr] Downloaded rustls-pki-types v1.10.0 [INFO] [stderr] Downloaded pin-project-lite v0.2.15 [INFO] [stderr] Downloaded ipnet v2.10.1 [INFO] [stderr] Downloaded js-sys v0.3.74 [INFO] [stderr] Downloaded tempfile v3.14.0 [INFO] [stderr] Downloaded indexmap v2.7.0 [INFO] [stderr] Downloaded reqwest v0.12.9 [INFO] [stderr] Downloaded rustix v0.38.41 [INFO] [stderr] Downloaded serde_json v1.0.133 [INFO] [stderr] Downloaded cc v1.2.2 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.97 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.97 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.47 [INFO] [stderr] Downloaded unicode-ident v1.0.14 [INFO] [stderr] Downloaded serde v1.0.215 [INFO] [stderr] Downloaded openssl v0.10.68 [INFO] [stderr] Downloaded syn v2.0.90 [INFO] [stderr] Downloaded rustls v0.23.19 [INFO] [stderr] Downloaded hyper v1.5.1 [INFO] [stderr] Downloaded tokio v1.42.0 [INFO] [stderr] Downloaded web-sys v0.3.74 [INFO] [stderr] Downloaded libc v0.2.167 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ce4ca595ba45b3e9b3ff623db679bb8693b98ba6c12697cca02fefaa85e63f62 [INFO] running `Command { std: "docker" "start" "-a" "ce4ca595ba45b3e9b3ff623db679bb8693b98ba6c12697cca02fefaa85e63f62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ce4ca595ba45b3e9b3ff623db679bb8693b98ba6c12697cca02fefaa85e63f62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce4ca595ba45b3e9b3ff623db679bb8693b98ba6c12697cca02fefaa85e63f62", kill_on_drop: false }` [INFO] [stdout] ce4ca595ba45b3e9b3ff623db679bb8693b98ba6c12697cca02fefaa85e63f62 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cea4a284494c92103afa3a3e20478226c37a08a4c241a51def945f21d2d2d2ac [INFO] running `Command { std: "docker" "start" "-a" "cea4a284494c92103afa3a3e20478226c37a08a4c241a51def945f21d2d2d2ac", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Compiling cc v1.2.2 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking litemap v0.7.4 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking indexmap v2.7.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking http v1.2.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking rustls-pki-types v1.10.0 [INFO] [stderr] Checking ipnet v2.10.1 [INFO] [stderr] Checking tokio v1.42.0 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Checking h2 v0.4.7 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking hyper v1.5.1 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking hyper-util v0.1.10 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking reqwest v0.12.9 [INFO] [stderr] Checking bridge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use serde; [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: this import is redundant [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use serde_json; [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] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/main.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | config_sync_field_name: config_sync_field_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `config_sync_field_name` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/main.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | reqwest_client: reqwest_client, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reqwest_client` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use serde; [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: this import is redundant [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use serde_json; [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] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/main.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | config_sync_field_name: config_sync_field_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `config_sync_field_name` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/main.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | reqwest_client: reqwest_client, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reqwest_client` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/main.rs:124:30 [INFO] [stdout] | [INFO] [stdout] 124 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 125 | | std::io::ErrorKind::Other, [INFO] [stdout] 126 | | "error: failed to post", [INFO] [stdout] 127 | | ))) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] = note: `#[warn(clippy::io_other_error)]` on by default [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 124 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 125 ~ "error: failed to post", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/main.rs:159:30 [INFO] [stdout] | [INFO] [stdout] 159 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 160 | | std::io::ErrorKind::Other, [INFO] [stdout] 161 | | "error: failed to put", [INFO] [stdout] 162 | | ))) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 159 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 160 ~ "error: failed to put", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/main.rs:171:30 [INFO] [stdout] | [INFO] [stdout] 171 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 172 | | std::io::ErrorKind::Other, [INFO] [stdout] 173 | | "error: failed to delete", [INFO] [stdout] 174 | | ))) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 171 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 172 ~ "error: failed to delete", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | if !top_level_command.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `top_level_command.is_some()` [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: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:216:20 [INFO] [stdout] | [INFO] [stdout] 216 | if !resource_name.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `resource_name.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:272:16 [INFO] [stdout] | [INFO] [stdout] 272 | if !data.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `data.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:284:16 [INFO] [stdout] | [INFO] [stdout] 284 | if !id.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `id.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:289:16 [INFO] [stdout] | [INFO] [stdout] 289 | if !data.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `data.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:297:16 [INFO] [stdout] | [INFO] [stdout] 297 | if !id.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `id.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `top_level_command` after checking its variant with `is_none` [INFO] [stdout] --> src/main.rs:203:15 [INFO] [stdout] | [INFO] [stdout] 202 | if !top_level_command.is_none() { [INFO] [stdout] | --------------------------- the check is happening here [INFO] [stdout] 203 | match top_level_command.unwrap() as &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [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: accessing first element with `args.get(0)` [INFO] [stdout] --> src/main.rs:193:29 [INFO] [stdout] | [INFO] [stdout] 193 | let top_level_command = args.get(0); [INFO] [stdout] | ^^^^^^^^^^^ help: try: `args.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/main.rs:124:30 [INFO] [stdout] | [INFO] [stdout] 124 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 125 | | std::io::ErrorKind::Other, [INFO] [stdout] 126 | | "error: failed to post", [INFO] [stdout] 127 | | ))) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] = note: `#[warn(clippy::io_other_error)]` on by default [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 124 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 125 ~ "error: failed to post", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/main.rs:159:30 [INFO] [stdout] | [INFO] [stdout] 159 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 160 | | std::io::ErrorKind::Other, [INFO] [stdout] 161 | | "error: failed to put", [INFO] [stdout] 162 | | ))) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 159 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 160 ~ "error: failed to put", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/main.rs:171:30 [INFO] [stdout] | [INFO] [stdout] 171 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 172 | | std::io::ErrorKind::Other, [INFO] [stdout] 173 | | "error: failed to delete", [INFO] [stdout] 174 | | ))) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 171 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 172 ~ "error: failed to delete", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | if !top_level_command.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `top_level_command.is_some()` [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: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:216:20 [INFO] [stdout] | [INFO] [stdout] 216 | if !resource_name.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `resource_name.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:272:16 [INFO] [stdout] | [INFO] [stdout] 272 | if !data.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `data.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:284:16 [INFO] [stdout] | [INFO] [stdout] 284 | if !id.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `id.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:289:16 [INFO] [stdout] | [INFO] [stdout] 289 | if !data.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `data.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:297:16 [INFO] [stdout] | [INFO] [stdout] 297 | if !id.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `id.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `top_level_command` after checking its variant with `is_none` [INFO] [stdout] --> src/main.rs:203:15 [INFO] [stdout] | [INFO] [stdout] 202 | if !top_level_command.is_none() { [INFO] [stdout] | --------------------------- the check is happening here [INFO] [stdout] 203 | match top_level_command.unwrap() as &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [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: accessing first element with `args.get(0)` [INFO] [stdout] --> src/main.rs:193:29 [INFO] [stdout] | [INFO] [stdout] 193 | let top_level_command = args.get(0); [INFO] [stdout] | ^^^^^^^^^^^ help: try: `args.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 49.19s [INFO] running `Command { std: "docker" "inspect" "cea4a284494c92103afa3a3e20478226c37a08a4c241a51def945f21d2d2d2ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cea4a284494c92103afa3a3e20478226c37a08a4c241a51def945f21d2d2d2ac", kill_on_drop: false }` [INFO] [stdout] cea4a284494c92103afa3a3e20478226c37a08a4c241a51def945f21d2d2d2ac