[INFO] cloning repository https://github.com/grimhilt/nextsync [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/grimhilt/nextsync" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrimhilt%2Fnextsync", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrimhilt%2Fnextsync'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7719e27fe8ba00cf33177ff11120b2eef5460da6 [INFO] checking grimhilt/nextsync against master#00bfd6b2734d9c28a147bf237490995731781fdd for pr-117984 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrimhilt%2Fnextsync" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/grimhilt/nextsync on toolchain 00bfd6b2734d9c28a147bf237490995731781fdd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+00bfd6b2734d9c28a147bf237490995731781fdd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/grimhilt/nextsync [INFO] finished tweaking git repo https://github.com/grimhilt/nextsync [INFO] tweaked toml for git repo https://github.com/grimhilt/nextsync written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/grimhilt/nextsync 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" "+00bfd6b2734d9c28a147bf237490995731781fdd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+00bfd6b2734d9c28a147bf237490995731781fdd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 886fbefc993ec5ed1ec44092258ef70e3cf63c8b7a676b6d0af07d2a3afbfa68 [INFO] running `Command { std: "docker" "start" "-a" "886fbefc993ec5ed1ec44092258ef70e3cf63c8b7a676b6d0af07d2a3afbfa68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "886fbefc993ec5ed1ec44092258ef70e3cf63c8b7a676b6d0af07d2a3afbfa68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "886fbefc993ec5ed1ec44092258ef70e3cf63c8b7a676b6d0af07d2a3afbfa68", kill_on_drop: false }` [INFO] [stdout] 886fbefc993ec5ed1ec44092258ef70e3cf63c8b7a676b6d0af07d2a3afbfa68 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+00bfd6b2734d9c28a147bf237490995731781fdd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d69c4896ec81a93ff02252c983cfd34c352d7b142f185cc52e6f8fa95000f29f [INFO] running `Command { std: "docker" "start" "-a" "d69c4896ec81a93ff02252c983cfd34c352d7b142f185cc52e6f8fa95000f29f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.144 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Checking once_cell v1.17.2 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling log v0.4.18 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling openssl v0.10.53 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling serde v1.0.163 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling tokio v1.28.2 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking percent-encoding v2.2.0 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Checking form_urlencoded v1.1.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking mio v0.8.7 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Compiling syn v2.0.28 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Compiling serde_json v1.0.96 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling portable-atomic v1.3.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking rtoolbox v0.0.1 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking encoding_rs v0.8.32 [INFO] [stderr] Compiling openssl-sys v0.9.88 [INFO] [stderr] Checking regex-syntax v0.7.2 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking base64 v0.21.2 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ipnet v2.7.2 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking smawk v0.3.1 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking aho-corasick v1.0.2 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking rpassword v7.2.0 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking textwrap v0.13.4 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking url v2.3.1 [INFO] [stderr] Checking xml-rs v0.8.14 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Checking indicatif v0.17.5 [INFO] [stderr] Checking regex v1.8.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.19 [INFO] [stderr] Checking hyper v0.14.26 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.18 [INFO] [stderr] Checking nextsync v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Arg` [INFO] [stdout] --> src/subcommands/reset.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/subcommands/clone.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arg` [INFO] [stdout] --> src/subcommands/push.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::OpenOptions` [INFO] [stdout] --> src/commands/add.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::OpenOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::store::index` [INFO] [stdout] --> src/commands/add.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::store::index; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::status::get_all_objs` [INFO] [stdout] --> src/commands/add.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use super::status::get_all_objs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arg` [INFO] [stdout] --> src/subcommands/reset.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/subcommands/clone.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arg` [INFO] [stdout] --> src/subcommands/push.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::OpenOptions` [INFO] [stdout] --> src/commands/add.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::OpenOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::store::index` [INFO] [stdout] --> src/commands/add.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::store::index; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::status::get_all_objs` [INFO] [stdout] --> src/commands/add.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use super::status::get_all_objs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/commands/pull.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 49 | let relative_s = &obj.clone().relative_s.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/commands/pull.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 49 | let relative_s = &obj.clone().relative_s.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remote_desc` [INFO] [stdout] --> src/subcommands/clone.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let remote_desc = sized_str(&format!("The repository to clone from. See the NEXTSYNC URLS section below for more information on speci... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remote_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth_desc` [INFO] [stdout] --> src/subcommands/clone.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let depth_desc = sized_str(&format!("Depth of the recursive fetch of object properties. This value should be lower when there are a l... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_depth_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remote_desc` [INFO] [stdout] --> src/subcommands/clone.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let remote_desc = sized_str(&format!("The repository to clone from. See the NEXTSYNC URLS section below for more information on speci... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remote_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth_desc` [INFO] [stdout] --> src/subcommands/clone.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let depth_desc = sized_str(&format!("Depth of the recursive fetch of object properties. This value should be lower when there are a l... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_depth_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/commands/pull.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 46 | fn update_blob(obj: ObjProps) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/commands/clone.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | let d = String::from("http://nextcloud.com"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/commands/pull.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 46 | fn update_blob(obj: ObjProps) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/subcommands/clone.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn test() -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_objs` is never used [INFO] [stdout] --> src/commands/status.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn get_all_objs() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_multipart` is never used [INFO] [stdout] --> src/services/api.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ApiBuilder { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn set_multipart(&mut self, form: Form) -> &mut ApiBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `path` and `hash` are never read [INFO] [stdout] --> src/store/object.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Object { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | hash: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> src/subcommands/clone.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | fill(content, Options::new(70).width).as_str(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 10 | let _ = fill(content, Options::new(70).width).as_str(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/commands/config.rs:31:37 [INFO] [stdout] | [INFO] [stdout] 31 | if l.starts_with(var.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/store/object.rs:134:36 [INFO] [stdout] | [INFO] [stdout] 134 | let (dir, rest) = hash_obj(path.clone().to_str().unwrap()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [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] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/store/object.rs:146:36 [INFO] [stdout] | [INFO] [stdout] 146 | let (dir, rest) = hash_obj(path.clone().to_str().unwrap()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [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] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/store/object.rs:171:40 [INFO] [stdout] | [INFO] [stdout] 171 | update_date(obj_p.clone(), date.clone())?; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/store/object/blob.rs:169:76 [INFO] [stdout] | [INFO] [stdout] 169 | if let Err(err) = self.create_blob_ref(file_name.clone(), ts_remote.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/subcommands/clone.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn test() -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_objs` is never used [INFO] [stdout] --> src/commands/status.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn get_all_objs() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_multipart` is never used [INFO] [stdout] --> src/services/api.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ApiBuilder { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn set_multipart(&mut self, form: Form) -> &mut ApiBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `path` and `hash` are never read [INFO] [stdout] --> src/store/object.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Object { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | hash: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> src/subcommands/clone.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | fill(content, Options::new(70).width).as_str(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 10 | let _ = fill(content, Options::new(70).width).as_str(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/commands/config.rs:31:37 [INFO] [stdout] | [INFO] [stdout] 31 | if l.starts_with(var.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/store/object.rs:134:36 [INFO] [stdout] | [INFO] [stdout] 134 | let (dir, rest) = hash_obj(path.clone().to_str().unwrap()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [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] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/store/object.rs:146:36 [INFO] [stdout] | [INFO] [stdout] 146 | let (dir, rest) = hash_obj(path.clone().to_str().unwrap()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [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] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/store/object.rs:171:40 [INFO] [stdout] | [INFO] [stdout] 171 | update_date(obj_p.clone(), date.clone())?; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/store/object/blob.rs:169:76 [INFO] [stdout] | [INFO] [stdout] 169 | if let Err(err) = self.create_blob_ref(file_name.clone(), ts_remote.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 11.45s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "d69c4896ec81a93ff02252c983cfd34c352d7b142f185cc52e6f8fa95000f29f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d69c4896ec81a93ff02252c983cfd34c352d7b142f185cc52e6f8fa95000f29f", kill_on_drop: false }` [INFO] [stdout] d69c4896ec81a93ff02252c983cfd34c352d7b142f185cc52e6f8fa95000f29f