[INFO] cloning repository https://github.com/nastymagnus/obsidian-export [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nastymagnus/obsidian-export" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnastymagnus%2Fobsidian-export", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnastymagnus%2Fobsidian-export'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ed4a568041a94118547ac148f16c459ed8db4b1d [INFO] building nastymagnus/obsidian-export against master#ce36a966c79e109dabeef7a47fe68e5294c6d71e for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnastymagnus%2Fobsidian-export" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nastymagnus/obsidian-export on toolchain ce36a966c79e109dabeef7a47fe68e5294c6d71e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nastymagnus/obsidian-export [INFO] finished tweaking git repo https://github.com/nastymagnus/obsidian-export [INFO] tweaked toml for git repo https://github.com/nastymagnus/obsidian-export written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/nastymagnus/obsidian-export 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" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded instant v0.1.12 [INFO] [stderr] Downloaded tempfile v3.3.0 [INFO] [stderr] Downloaded bitflags v1.3.2 [INFO] [stderr] Downloaded indenter v0.3.3 [INFO] [stderr] Downloaded gumdrop_derive v0.8.0 [INFO] [stderr] Downloaded eyre v0.6.5 [INFO] [stderr] Downloaded crossbeam-epoch v0.9.5 [INFO] [stderr] Downloaded rayon-core v1.9.1 [INFO] [stderr] Downloaded indexmap v1.7.0 [INFO] [stderr] Downloaded pretty_assertions v1.0.0 [INFO] [stderr] Downloaded crossbeam-channel v0.5.1 [INFO] [stderr] Downloaded deunicode v0.4.3 [INFO] [stderr] Downloaded rayon v1.5.1 [INFO] [stderr] Downloaded hashbrown v0.11.2 [INFO] [stderr] Downloaded regex v1.5.4 [INFO] [stderr] Downloaded syn v1.0.84 [INFO] [stderr] Downloaded serde v1.0.132 [INFO] [stderr] Downloaded libc v0.2.112 [INFO] [stderr] Downloaded ryu v1.0.9 [INFO] [stderr] Downloaded output_vt100 v0.1.2 [INFO] [stderr] Downloaded serde_yaml v0.8.23 [INFO] [stderr] Downloaded proc-macro2 v1.0.36 [INFO] [stderr] Downloaded yaml-rust v0.4.5 [INFO] [stderr] Downloaded quote v1.0.14 [INFO] [stderr] Downloaded log v0.4.14 [INFO] [stderr] Downloaded once_cell v1.9.0 [INFO] [stderr] Downloaded ctor v0.1.21 [INFO] [stderr] Downloaded unicase v2.6.0 [INFO] [stderr] Downloaded either v1.6.1 [INFO] [stderr] Downloaded scopeguard v1.1.0 [INFO] [stderr] Downloaded crossbeam-deque v0.8.1 [INFO] [stderr] Downloaded crossbeam-utils v0.8.5 [INFO] [stderr] Downloaded num_cpus v1.13.1 [INFO] [stderr] Downloaded autocfg v1.0.1 [INFO] [stderr] Downloaded pulldown-cmark v0.9.0 [INFO] [stderr] Downloaded linked-hash-map v0.5.4 [INFO] [stderr] Downloaded slug v0.1.4 [INFO] [stderr] Downloaded snafu v0.6.10 [INFO] [stderr] Downloaded redox_syscall v0.2.10 [INFO] [stderr] Downloaded remove_dir_all v0.5.3 [INFO] [stderr] Downloaded gumdrop v0.8.0 [INFO] [stderr] Downloaded thread_local v1.1.3 [INFO] [stderr] Downloaded matter v0.1.0-alpha4 [INFO] [stderr] Downloaded pathdiff v0.2.1 [INFO] [stderr] Downloaded diff v0.1.12 [INFO] [stderr] Downloaded getopts v0.2.21 [INFO] [stderr] Downloaded pulldown-cmark-to-cmark v9.0.0 [INFO] [stderr] Downloaded memoffset v0.6.5 [INFO] [stderr] Downloaded doc-comment v0.3.3 [INFO] [stderr] Downloaded snafu-derive v0.6.10 [INFO] [stderr] Downloaded fastrand v1.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f97f5975363dc6e6f2972b7c9447a03364be6f84fb2ae455b2c27e96472ffd4 [INFO] running `Command { std: "docker" "start" "-a" "3f97f5975363dc6e6f2972b7c9447a03364be6f84fb2ae455b2c27e96472ffd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f97f5975363dc6e6f2972b7c9447a03364be6f84fb2ae455b2c27e96472ffd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f97f5975363dc6e6f2972b7c9447a03364be6f84fb2ae455b2c27e96472ffd4", kill_on_drop: false }` [INFO] [stdout] 3f97f5975363dc6e6f2972b7c9447a03364be6f84fb2ae455b2c27e96472ffd4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d728960f4e388d36084a2393698d79a5409a16a18b9282f0d680c6cd304ae423 [INFO] running `Command { std: "docker" "start" "-a" "d728960f4e388d36084a2393698d79a5409a16a18b9282f0d680c6cd304ae423", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.84 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling serde v1.0.132 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling pulldown-cmark v0.9.0 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling eyre v0.6.5 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling indenter v0.3.3 [INFO] [stderr] Compiling deunicode v0.4.3 [INFO] [stderr] Compiling pathdiff v0.2.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling slug v0.1.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling bstr v0.2.17 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling pulldown-cmark-to-cmark v9.0.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling globset v0.4.8 [INFO] [stderr] Compiling matter v0.1.0-alpha4 [INFO] [stderr] Compiling ignore v0.4.18 [INFO] [stderr] Compiling gumdrop_derive v0.8.0 [INFO] [stderr] Compiling snafu-derive v0.6.10 [INFO] [stderr] Compiling serde_yaml v0.8.23 [INFO] [stderr] Compiling snafu v0.6.10 [INFO] [stderr] Compiling gumdrop v0.8.0 [INFO] [stderr] Compiling obsidian-export v22.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.38s [INFO] running `Command { std: "docker" "inspect" "d728960f4e388d36084a2393698d79a5409a16a18b9282f0d680c6cd304ae423", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d728960f4e388d36084a2393698d79a5409a16a18b9282f0d680c6cd304ae423", kill_on_drop: false }` [INFO] [stdout] d728960f4e388d36084a2393698d79a5409a16a18b9282f0d680c6cd304ae423 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd3d03b28064c420cc05855ff4c4b48b94a6fd15b3248e8530ae1faf62cae02f [INFO] running `Command { std: "docker" "start" "-a" "fd3d03b28064c420cc05855ff4c4b48b94a6fd15b3248e8530ae1faf62cae02f", kill_on_drop: false }` [INFO] [stderr] Compiling diff v0.1.12 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling fastrand v1.6.0 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling pretty_assertions v1.0.0 [INFO] [stderr] Compiling obsidian-export v22.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:38:51 [INFO] [stdout] | [INFO] [stdout] 38 | let actual = read_to_string(tmp_dir.path().clone().join(PathBuf::from(&filename))).expect( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 38 - let actual = read_to_string(tmp_dir.path().clone().join(PathBuf::from(&filename))).expect( [INFO] [stdout] 38 + let actual = read_to_string(tmp_dir.path().join(PathBuf::from(&filename))).expect( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:63:20 [INFO] [stdout] | [INFO] [stdout] 63 | .path() [INFO] [stdout] | ____________________^ [INFO] [stdout] 64 | | .clone() [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 63 - .path() [INFO] [stdout] 64 - .clone() [INFO] [stdout] 63 + .path() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | .path() [INFO] [stdout] | ____________________^ [INFO] [stdout] 87 | | .clone() [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 86 - .path() [INFO] [stdout] 87 - .clone() [INFO] [stdout] 86 + .path() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:97:20 [INFO] [stdout] | [INFO] [stdout] 97 | .path() [INFO] [stdout] | ____________________^ [INFO] [stdout] 98 | | .clone() [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 97 - .path() [INFO] [stdout] 98 - .clone() [INFO] [stdout] 97 + .path() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:117:16 [INFO] [stdout] | [INFO] [stdout] 117 | .path() [INFO] [stdout] | ________________^ [INFO] [stdout] 118 | | .clone() [INFO] [stdout] | |________________^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 117 - .path() [INFO] [stdout] 118 - .clone() [INFO] [stdout] 117 + .path() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:138:38 [INFO] [stdout] | [INFO] [stdout] 138 | read_to_string(tmp_dir.path().clone().join(PathBuf::from("note.md"))).unwrap(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 138 - read_to_string(tmp_dir.path().clone().join(PathBuf::from("note.md"))).unwrap(), [INFO] [stdout] 138 + read_to_string(tmp_dir.path().join(PathBuf::from("note.md"))).unwrap(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:145:30 [INFO] [stdout] | [INFO] [stdout] 145 | let dest = tmp_dir.path().clone().join(PathBuf::from("export.md")); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 145 - let dest = tmp_dir.path().clone().join(PathBuf::from("export.md")); [INFO] [stdout] 145 + let dest = tmp_dir.path().join(PathBuf::from("export.md")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:180:38 [INFO] [stdout] | [INFO] [stdout] 180 | read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note B.md"))).unwrap(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 180 - read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note B.md"))).unwrap(), [INFO] [stdout] 180 + read_to_string(tmp_dir.path().join(PathBuf::from("Note B.md"))).unwrap(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:206:38 [INFO] [stdout] | [INFO] [stdout] 206 | read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note B.md"))).unwrap(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 206 - read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note B.md"))).unwrap(), [INFO] [stdout] 206 + read_to_string(tmp_dir.path().join(PathBuf::from("Note B.md"))).unwrap(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:213:30 [INFO] [stdout] | [INFO] [stdout] 213 | let dest = tmp_dir.path().clone().join(PathBuf::from("note.md")); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 213 - let dest = tmp_dir.path().clone().join(PathBuf::from("note.md")); [INFO] [stdout] 213 + let dest = tmp_dir.path().join(PathBuf::from("note.md")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:362:38 [INFO] [stdout] | [INFO] [stdout] 362 | read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note A.md"))).unwrap(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 362 - read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note A.md"))).unwrap(), [INFO] [stdout] 362 + read_to_string(tmp_dir.path().join(PathBuf::from("Note A.md"))).unwrap(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:381:38 [INFO] [stdout] | [INFO] [stdout] 381 | read_to_string(tmp_dir.path().clone().join(PathBuf::from("Main note.md"))).unwrap(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 381 - read_to_string(tmp_dir.path().clone().join(PathBuf::from("Main note.md"))).unwrap(), [INFO] [stdout] 381 + read_to_string(tmp_dir.path().join(PathBuf::from("Main note.md"))).unwrap(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:411:51 [INFO] [stdout] | [INFO] [stdout] 411 | let actual = read_to_string(tmp_dir.path().clone().join(PathBuf::from(&filename))).expect( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 411 - let actual = read_to_string(tmp_dir.path().clone().join(PathBuf::from(&filename))).expect( [INFO] [stdout] 411 + let actual = read_to_string(tmp_dir.path().join(PathBuf::from(&filename))).expect( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/export_test.rs:442:47 [INFO] [stdout] | [INFO] [stdout] 442 | let actual = read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note.md"))).unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 442 - let actual = read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note.md"))).unwrap(); [INFO] [stdout] 442 + let actual = read_to_string(tmp_dir.path().join(PathBuf::from("Note.md"))).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/postprocessors_test.rs:45:47 [INFO] [stdout] | [INFO] [stdout] 45 | let actual = read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note.md"))).unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 45 - let actual = read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note.md"))).unwrap(); [INFO] [stdout] 45 + let actual = read_to_string(tmp_dir.path().join(PathBuf::from("Note.md"))).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/postprocessors_test.rs:67:35 [INFO] [stdout] | [INFO] [stdout] 67 | let note_path = tmp_dir.path().clone().join(PathBuf::from("Note.md")); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 67 - let note_path = tmp_dir.path().clone().join(PathBuf::from("Note.md")); [INFO] [stdout] 67 + let note_path = tmp_dir.path().join(PathBuf::from("Note.md")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/postprocessors_test.rs:87:44 [INFO] [stdout] | [INFO] [stdout] 87 | let original_note_path = tmp_dir.path().clone().join(PathBuf::from("Note.md")); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 87 - let original_note_path = tmp_dir.path().clone().join(PathBuf::from("Note.md")); [INFO] [stdout] 87 + let original_note_path = tmp_dir.path().join(PathBuf::from("Note.md")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/postprocessors_test.rs:103:39 [INFO] [stdout] | [INFO] [stdout] 103 | let new_note_path = tmp_dir.path().clone().join(PathBuf::from("MovedNote.md")); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 103 - let new_note_path = tmp_dir.path().clone().join(PathBuf::from("MovedNote.md")); [INFO] [stdout] 103 + let new_note_path = tmp_dir.path().join(PathBuf::from("MovedNote.md")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/postprocessors_test.rs:127:47 [INFO] [stdout] | [INFO] [stdout] 127 | let actual = read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note.md"))).unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 127 - let actual = read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note.md"))).unwrap(); [INFO] [stdout] 127 + let actual = read_to_string(tmp_dir.path().join(PathBuf::from("Note.md"))).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/postprocessors_test.rs:147:47 [INFO] [stdout] | [INFO] [stdout] 147 | let actual = read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note.md"))).unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 147 - let actual = read_to_string(tmp_dir.path().clone().join(PathBuf::from("Note.md"))).unwrap(); [INFO] [stdout] 147 + let actual = read_to_string(tmp_dir.path().join(PathBuf::from("Note.md"))).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/postprocessors_test.rs:215:20 [INFO] [stdout] | [INFO] [stdout] 215 | .path() [INFO] [stdout] | ____________________^ [INFO] [stdout] 216 | | .clone() [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 215 - .path() [INFO] [stdout] 216 - .clone() [INFO] [stdout] 215 + .path() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.61s [INFO] running `Command { std: "docker" "inspect" "fd3d03b28064c420cc05855ff4c4b48b94a6fd15b3248e8530ae1faf62cae02f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd3d03b28064c420cc05855ff4c4b48b94a6fd15b3248e8530ae1faf62cae02f", kill_on_drop: false }` [INFO] [stdout] fd3d03b28064c420cc05855ff4c4b48b94a6fd15b3248e8530ae1faf62cae02f