[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] checking nastymagnus/obsidian-export against master#642c19bfc3a5c1de985bf5d0cc8207ac9d22708a for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnastymagnus%2Fobsidian-export" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/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-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nastymagnus/obsidian-export on toolchain 642c19bfc3a5c1de985bf5d0cc8207ac9d22708a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded output_vt100 v0.1.2 [INFO] [stderr] Downloaded slug v0.1.4 [INFO] [stderr] Downloaded fastrand v1.6.0 [INFO] [stderr] Downloaded matter v0.1.0-alpha4 [INFO] [stderr] Downloaded gumdrop v0.8.0 [INFO] [stderr] Downloaded pretty_assertions v1.0.0 [INFO] [stderr] Downloaded diff v0.1.12 [INFO] [stderr] Downloaded gumdrop_derive v0.8.0 [INFO] [stderr] Downloaded serde_yaml v0.8.23 [INFO] [stderr] Downloaded globset v0.4.8 [INFO] [stderr] Downloaded eyre v0.6.5 [INFO] [stderr] Downloaded ignore v0.4.18 [INFO] [stderr] Downloaded pulldown-cmark v0.9.0 [INFO] [stderr] Downloaded deunicode v0.4.3 [INFO] [stderr] Downloaded syn v1.0.84 [INFO] [stderr] Downloaded pulldown-cmark-to-cmark v9.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 66ea4b9266a980d8627bf2447a7560b5b18319bb4d5c0013fb731e01414db1fd [INFO] running `Command { std: "docker" "start" "-a" "66ea4b9266a980d8627bf2447a7560b5b18319bb4d5c0013fb731e01414db1fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "66ea4b9266a980d8627bf2447a7560b5b18319bb4d5c0013fb731e01414db1fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66ea4b9266a980d8627bf2447a7560b5b18319bb4d5c0013fb731e01414db1fd", kill_on_drop: false }` [INFO] [stdout] 66ea4b9266a980d8627bf2447a7560b5b18319bb4d5c0013fb731e01414db1fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c8a44a3b1de8e480d1513a84c05481b8956ecf74ce8356cb442276d8ffeb0179 [INFO] running `Command { std: "docker" "start" "-a" "c8a44a3b1de8e480d1513a84c05481b8956ecf74ce8356cb442276d8ffeb0179", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.4.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling syn v1.0.84 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling serde v1.0.132 [INFO] [stderr] Compiling pulldown-cmark v0.9.0 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling eyre v0.6.5 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking rayon-core v1.9.1 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Checking deunicode v0.4.3 [INFO] [stderr] Checking slug v0.1.4 [INFO] [stderr] Checking pathdiff v0.2.1 [INFO] [stderr] Checking diff v0.1.12 [INFO] [stderr] Checking fastrand v1.6.0 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking pretty_assertions v1.0.0 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking pulldown-cmark-to-cmark v9.0.0 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking globset v0.4.8 [INFO] [stderr] Checking matter v0.1.0-alpha4 [INFO] [stderr] Checking ignore v0.4.18 [INFO] [stderr] Compiling snafu-derive v0.6.10 [INFO] [stderr] Compiling gumdrop_derive v0.8.0 [INFO] [stderr] Checking gumdrop v0.8.0 [INFO] [stderr] Checking serde_yaml v0.8.23 [INFO] [stderr] Checking snafu v0.6.10 [INFO] [stderr] Checking obsidian-export v22.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:763:37 [INFO] [stdout] | [INFO] [stdout] 763 | fn infer_note_title_from_path(path: &Path) -> CowStr { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 763 | fn infer_note_title_from_path(path: &Path) -> CowStr<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:763:37 [INFO] [stdout] | [INFO] [stdout] 763 | fn infer_note_title_from_path(path: &Path) -> CowStr { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 763 | fn infer_note_title_from_path(path: &Path) -> CowStr<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/references.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn from_str(text: &str) -> ObsidianNoteReference { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 72 | pub fn from_str(text: &str) -> ObsidianNoteReference<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/references.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn from_str(text: &str) -> ObsidianNoteReference { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 72 | pub fn from_str(text: &str) -> ObsidianNoteReference<'_> { [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] [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.83s [INFO] running `Command { std: "docker" "inspect" "c8a44a3b1de8e480d1513a84c05481b8956ecf74ce8356cb442276d8ffeb0179", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8a44a3b1de8e480d1513a84c05481b8956ecf74ce8356cb442276d8ffeb0179", kill_on_drop: false }` [INFO] [stdout] c8a44a3b1de8e480d1513a84c05481b8956ecf74ce8356cb442276d8ffeb0179