[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 try#9a3ef2cd3ecaae3c6ef59768612837d797602a6d for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fusetheplatform%2Fpatch-that-shit" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/usetheplatform/patch-that-shit on toolchain 9a3ef2cd3ecaae3c6ef59768612837d797602a6d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-6-tc2/source/Cargo.toml [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" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7516d0a8bfd8eddc8a4c82b74d4f9c62686f97e5e7f86cba5415d66179b44cce [INFO] running `Command { std: "docker" "start" "-a" "7516d0a8bfd8eddc8a4c82b74d4f9c62686f97e5e7f86cba5415d66179b44cce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7516d0a8bfd8eddc8a4c82b74d4f9c62686f97e5e7f86cba5415d66179b44cce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7516d0a8bfd8eddc8a4c82b74d4f9c62686f97e5e7f86cba5415d66179b44cce", kill_on_drop: false }` [INFO] [stdout] 7516d0a8bfd8eddc8a4c82b74d4f9c62686f97e5e7f86cba5415d66179b44cce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c580ef93c63b75ec0ca00cc1d0ac4bf45d20eba1b338229878a28504ac1b9c0e [INFO] running `Command { std: "docker" "start" "-a" "c580ef93c63b75ec0ca00cc1d0ac4bf45d20eba1b338229878a28504ac1b9c0e", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [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 cc v1.0.73 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling memchr v2.4.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 indexmap v1.8.0 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling mio v0.8.1 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling tracing-core v0.1.23 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling tracing v0.1.32 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling backtrace v0.3.64 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling gimli v0.26.1 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling h2 v0.3.12 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling addr2line v0.17.0 [INFO] [stderr] Compiling object v0.27.1 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling hyperx v1.4.0 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling snafu-derive v0.7.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling ipnet v2.4.0 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling serde-diff-derive v0.4.0 [INFO] [stderr] Compiling arc-swap v1.5.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_path_to_error v0.1.7 [INFO] [stderr] Compiling serde_yaml v0.8.23 [INFO] [stderr] Compiling serde-diff v0.4.1 [INFO] [stderr] Compiling treediff v4.0.2 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling reqwest v0.11.10 [INFO] [stderr] Compiling treediff v3.0.2 [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)]` 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)]` 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)]` 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)]` 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 1m 37s [INFO] running `Command { std: "docker" "inspect" "c580ef93c63b75ec0ca00cc1d0ac4bf45d20eba1b338229878a28504ac1b9c0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c580ef93c63b75ec0ca00cc1d0ac4bf45d20eba1b338229878a28504ac1b9c0e", kill_on_drop: false }` [INFO] [stdout] c580ef93c63b75ec0ca00cc1d0ac4bf45d20eba1b338229878a28504ac1b9c0e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a5556b0558c758c03599e0a8b74b67354dbe80bc23baf3e2c90d5abec38dcd0 [INFO] running `Command { std: "docker" "start" "-a" "3a5556b0558c758c03599e0a8b74b67354dbe80bc23baf3e2c90d5abec38dcd0", 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)]` 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)]` 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)]` 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)]` 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.55s [INFO] running `Command { std: "docker" "inspect" "3a5556b0558c758c03599e0a8b74b67354dbe80bc23baf3e2c90d5abec38dcd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a5556b0558c758c03599e0a8b74b67354dbe80bc23baf3e2c90d5abec38dcd0", kill_on_drop: false }` [INFO] [stdout] 3a5556b0558c758c03599e0a8b74b67354dbe80bc23baf3e2c90d5abec38dcd0