[INFO] cloning repository https://github.com/usetheplatform/patch-that-shit [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/usetheplatform/patch-that-shit" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fusetheplatform%2Fpatch-that-shit", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fusetheplatform%2Fpatch-that-shit'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5cacc26bc220724508499c80f77c64f3083914c2 [INFO] building usetheplatform/patch-that-shit against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fusetheplatform%2Fpatch-that-shit" "/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/usetheplatform/patch-that-shit [INFO] finished tweaking git repo https://github.com/usetheplatform/patch-that-shit [INFO] tweaked toml for git repo https://github.com/usetheplatform/patch-that-shit written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/usetheplatform/patch-that-shit on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/usetheplatform/patch-that-shit 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde-diff-derive v0.4.0 [INFO] [stderr] Downloaded serde-diff v0.4.1 [INFO] [stderr] Downloaded snafu v0.7.0 [INFO] [stderr] Downloaded snafu-derive v0.7.0 [INFO] [stderr] Downloaded treediff v4.0.2 [INFO] [stderr] Downloaded pem v0.8.3 [INFO] [stderr] Downloaded simple_asn1 v0.4.1 [INFO] [stderr] Downloaded treediff v3.0.2 [INFO] [stderr] Downloaded ipnet v2.4.0 [INFO] [stderr] Downloaded tracing-core v0.1.23 [INFO] [stderr] Downloaded tracing v0.1.32 [INFO] [stderr] Downloaded hyperx v1.4.0 [INFO] [stderr] Downloaded mio v0.8.1 [INFO] [stderr] Downloaded unicode-segmentation v1.9.0 [INFO] [stderr] Downloaded octocrab v0.15.4 [INFO] [stderr] Downloaded h2 v0.3.12 [INFO] [stderr] Downloaded hyper v0.14.17 [INFO] [stderr] Downloaded syn v1.0.88 [INFO] [stderr] Downloaded serde_yaml v0.8.23 [INFO] [stderr] Downloaded json-patch v0.2.6 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.29 [INFO] [stderr] Downloaded jsonwebtoken v7.2.0 [INFO] [stderr] Downloaded serde_path_to_error v0.1.7 [INFO] [stderr] Downloaded libc v0.2.120 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 442fbc83c27b1403d8ce3fd865ebbbb990b32163245e6432c91d7ac285f7708f [INFO] running `Command { std: "docker" "start" "-a" "442fbc83c27b1403d8ce3fd865ebbbb990b32163245e6432c91d7ac285f7708f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "442fbc83c27b1403d8ce3fd865ebbbb990b32163245e6432c91d7ac285f7708f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "442fbc83c27b1403d8ce3fd865ebbbb990b32163245e6432c91d7ac285f7708f", kill_on_drop: false }` [INFO] [stdout] 442fbc83c27b1403d8ce3fd865ebbbb990b32163245e6432c91d7ac285f7708f [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25457981d705cadcb8ba85330a2a91732f235b5fa06d1ac1ab65fa53c79a125a [INFO] running `Command { std: "docker" "start" "-a" "25457981d705cadcb8ba85330a2a91732f235b5fa06d1ac1ab65fa53c79a125a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.88 [INFO] [stderr] Compiling libc v0.2.120 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling tracing-core v0.1.23 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling tracing v0.1.32 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling mio v0.8.1 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling backtrace v0.3.64 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling gimli v0.26.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling object v0.27.1 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling hyperx v1.4.0 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling ipnet v2.4.0 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling arc-swap v1.5.0 [INFO] [stderr] Compiling addr2line v0.17.0 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.12 [INFO] [stderr] Compiling snafu-derive v0.7.0 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling serde-diff-derive v0.4.0 [INFO] [stderr] Compiling snafu v0.7.0 [INFO] [stderr] Compiling hyper v0.14.17 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling serde_yaml v0.8.23 [INFO] [stderr] Compiling serde_path_to_error v0.1.7 [INFO] [stderr] Compiling serde-diff v0.4.1 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling treediff v4.0.2 [INFO] [stderr] Compiling treediff v3.0.2 [INFO] [stderr] Compiling reqwest v0.11.10 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling json-patch v0.2.6 [INFO] [stderr] Compiling octocrab v0.15.4 [INFO] [stderr] Compiling patch-that-shit v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [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 variable: `repositories` [INFO] [stdout] --> src/main.rs:37:34 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_repositories` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `github_token` [INFO] [stdout] --> src/main.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_github_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_to_patch` [INFO] [stdout] --> src/main.rs:37:62 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_to_patch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_to_origin` [INFO] [stdout] --> src/main.rs:37:77 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_to_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:166:53 [INFO] [stdout] | [INFO] [stdout] 166 | json_patch::patch(&mut origin, &patch).map_err(|err| { ApplicationError(format!("Failed to apply patch from {} to {}", path_to_patch,... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:189:67 [INFO] [stdout] | [INFO] [stdout] 189 | write_yaml(&String::from("fixtures/result.yaml"), b).map_err(|err| { ApplicationError(format!("Failed to write file")) } ); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_json` is never used [INFO] [stdout] --> src/main.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn write_json(filename: &String, json: &serde_json::Value) -> Result<(), serde_json::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `diff` is never used [INFO] [stdout] --> src/main.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn diff(a: &serde_yaml::Value, b: &serde_yaml::Value) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | json_patch::patch(&mut origin, &patch).map_err(|err| { ApplicationError(format!("Failed to apply patch from {} to {}", path_to_patch, path_to_origin)) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 166 | let _ = json_patch::patch(&mut origin, &patch).map_err(|err| { ApplicationError(format!("Failed to apply patch from {} to {}", path_to_patch, path_to_origin)) }); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | write_yaml(&String::from("fixtures/result.yaml"), b).map_err(|err| { ApplicationError(format!("Failed to write file")) } ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 189 | let _ = write_yaml(&String::from("fixtures/result.yaml"), b).map_err(|err| { ApplicationError(format!("Failed to write file")) } ); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 53.76s [INFO] running `Command { std: "docker" "inspect" "25457981d705cadcb8ba85330a2a91732f235b5fa06d1ac1ab65fa53c79a125a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25457981d705cadcb8ba85330a2a91732f235b5fa06d1ac1ab65fa53c79a125a", kill_on_drop: false }` [INFO] [stdout] 25457981d705cadcb8ba85330a2a91732f235b5fa06d1ac1ab65fa53c79a125a [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 09cd875ba634da872c035490c86714d052efd2c23334123b7d45d4f7c01dec3a [INFO] running `Command { std: "docker" "start" "-a" "09cd875ba634da872c035490c86714d052efd2c23334123b7d45d4f7c01dec3a", kill_on_drop: false }` [INFO] [stderr] Compiling patch-that-shit v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [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 variable: `repositories` [INFO] [stdout] --> src/main.rs:37:34 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_repositories` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `github_token` [INFO] [stdout] --> src/main.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_github_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_to_patch` [INFO] [stdout] --> src/main.rs:37:62 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_to_patch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_to_origin` [INFO] [stdout] --> src/main.rs:37:77 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_to_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:166:53 [INFO] [stdout] | [INFO] [stdout] 166 | json_patch::patch(&mut origin, &patch).map_err(|err| { ApplicationError(format!("Failed to apply patch from {} to {}", path_to_patch,... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:189:67 [INFO] [stdout] | [INFO] [stdout] 189 | write_yaml(&String::from("fixtures/result.yaml"), b).map_err(|err| { ApplicationError(format!("Failed to write file")) } ); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_json` is never used [INFO] [stdout] --> src/main.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn write_json(filename: &String, json: &serde_json::Value) -> Result<(), serde_json::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `diff` is never used [INFO] [stdout] --> src/main.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn diff(a: &serde_yaml::Value, b: &serde_yaml::Value) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | json_patch::patch(&mut origin, &patch).map_err(|err| { ApplicationError(format!("Failed to apply patch from {} to {}", path_to_patch, path_to_origin)) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 166 | let _ = json_patch::patch(&mut origin, &patch).map_err(|err| { ApplicationError(format!("Failed to apply patch from {} to {}", path_to_patch, path_to_origin)) }); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | write_yaml(&String::from("fixtures/result.yaml"), b).map_err(|err| { ApplicationError(format!("Failed to write file")) } ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 189 | let _ = write_yaml(&String::from("fixtures/result.yaml"), b).map_err(|err| { ApplicationError(format!("Failed to write file")) } ); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `Command { std: "docker" "inspect" "09cd875ba634da872c035490c86714d052efd2c23334123b7d45d4f7c01dec3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09cd875ba634da872c035490c86714d052efd2c23334123b7d45d4f7c01dec3a", kill_on_drop: false }` [INFO] [stdout] 09cd875ba634da872c035490c86714d052efd2c23334123b7d45d4f7c01dec3a