[INFO] cloning repository https://github.com/wismer/rs_torrent [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wismer/rs_torrent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwismer%2Frs_torrent", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwismer%2Frs_torrent'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b5209285c8f76a2d44e128239d0b79fb81d93081 [INFO] testing wismer/rs_torrent against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwismer%2Frs_torrent" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/wismer/rs_torrent [INFO] finished tweaking git repo https://github.com/wismer/rs_torrent [INFO] tweaked toml for git repo https://github.com/wismer/rs_torrent written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/wismer/rs_torrent on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/wismer/rs_torrent 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bip_bencode v0.4.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 924b3a0e9f20e23221071512c93952afc20bb340846bffcf8f8965093c0163ee [INFO] running `Command { std: "docker" "start" "-a" "924b3a0e9f20e23221071512c93952afc20bb340846bffcf8f8965093c0163ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "924b3a0e9f20e23221071512c93952afc20bb340846bffcf8f8965093c0163ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "924b3a0e9f20e23221071512c93952afc20bb340846bffcf8f8965093c0163ee", kill_on_drop: false }` [INFO] [stdout] 924b3a0e9f20e23221071512c93952afc20bb340846bffcf8f8965093c0163ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 17eebccb88dccad199440f05701bd5b876e0b24bbceec505012374401b72c3d6 [INFO] running `Command { std: "docker" "start" "-a" "17eebccb88dccad199440f05701bd5b876e0b24bbceec505012374401b72c3d6", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.42 [INFO] [stderr] Compiling cfg-if v0.1.4 [INFO] [stderr] Compiling futures v0.1.23 [INFO] [stderr] Compiling byteorder v1.2.4 [INFO] [stderr] Compiling version_check v0.1.4 [INFO] [stderr] Compiling slab v0.4.1 [INFO] [stderr] Compiling nodrop v0.1.12 [INFO] [stderr] Compiling lazycell v0.6.0 [INFO] [stderr] Compiling cc v1.0.17 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling itoa v0.4.2 [INFO] [stderr] Compiling httparse v1.3.2 [INFO] [stderr] Compiling rustc-demangle v0.1.8 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling try-lock v0.2.2 [INFO] [stderr] Compiling log v0.4.4 [INFO] [stderr] Compiling arrayvec v0.4.7 [INFO] [stderr] Compiling crossbeam-utils v0.3.2 [INFO] [stderr] Compiling string v0.1.1 [INFO] [stderr] Compiling indexmap v1.0.1 [INFO] [stderr] Compiling uuid v0.6.5 [INFO] [stderr] Compiling sha1 v0.6.0 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling rand v0.4.3 [INFO] [stderr] Compiling time v0.1.40 [INFO] [stderr] Compiling crossbeam-epoch v0.4.3 [INFO] [stderr] Compiling bytes v0.4.9 [INFO] [stderr] Compiling backtrace-sys v0.1.23 [INFO] [stderr] Compiling mio v0.6.15 [INFO] [stderr] Compiling crossbeam-deque v0.3.1 [INFO] [stderr] Compiling http v0.1.10 [INFO] [stderr] Compiling tokio-io v0.1.7 [INFO] [stderr] Compiling tokio-executor v0.1.3 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling want v0.0.6 [INFO] [stderr] Compiling tokio-threadpool v0.1.5 [INFO] [stderr] Compiling tokio-timer v0.2.5 [INFO] [stderr] Compiling backtrace v0.3.9 [INFO] [stderr] Compiling error-chain v0.11.0 [INFO] [stderr] Compiling bip_bencode v0.4.4 [INFO] [stderr] Compiling tokio-reactor v0.1.3 [INFO] [stderr] Compiling tokio-codec v0.1.0 [INFO] [stderr] Compiling tokio-fs v0.1.3 [INFO] [stderr] Compiling tokio-udp v0.1.1 [INFO] [stderr] Compiling tokio-tcp v0.1.1 [INFO] [stderr] Compiling tokio v0.1.7 [INFO] [stderr] Compiling h2 v0.1.12 [INFO] [stderr] Compiling hyper v0.12.8 [INFO] [stderr] Compiling rs_bittorrent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `announce_list` [INFO] [stdout] --> src/torrent/torrent.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let announce_list = dict.lookup(b"announce-list").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_announce_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `torrent` [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let torrent = Torrent::new(&torrent_content); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_torrent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tracker_query_params` is never used [INFO] [stdout] --> src/torrent/torrent.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Torrent { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | fn tracker_query_params(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | torrent_file.read_to_end(&mut contents); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 33 | let _ = torrent_file.read_to_end(&mut contents); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/torrent/torrent.rs:37:29 [INFO] [stdout] | [INFO] [stdout] 37 | .list().unwrap() [INFO] [stdout] | _____________________________^ [INFO] [stdout] 38 | | .clone() [INFO] [stdout] | |____________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `dyn BListAccess>` does not implement `Clone`, so calling `clone` on `&dyn BListAccess>` 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/torrent/torrent.rs:71:89 [INFO] [stdout] | [INFO] [stdout] 71 | let file_path = bencode_ref.dict().unwrap().lookup(b"path").unwrap().list().unwrap() [INFO] [stdout] | _________________________________________________________________________________________^ [INFO] [stdout] 72 | | .clone() [INFO] [stdout] | |________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `dyn BListAccess>` does not implement `Clone`, so calling `clone` on `&dyn BListAccess>` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.64s [INFO] running `Command { std: "docker" "inspect" "17eebccb88dccad199440f05701bd5b876e0b24bbceec505012374401b72c3d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17eebccb88dccad199440f05701bd5b876e0b24bbceec505012374401b72c3d6", kill_on_drop: false }` [INFO] [stdout] 17eebccb88dccad199440f05701bd5b876e0b24bbceec505012374401b72c3d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64a2d42399710dda1e31daa335f34689742d3af95198e192c4403a421804f139 [INFO] running `Command { std: "docker" "start" "-a" "64a2d42399710dda1e31daa335f34689742d3af95198e192c4403a421804f139", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling rs_bittorrent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `announce_list` [INFO] [stdout] --> src/torrent/torrent.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let announce_list = dict.lookup(b"announce-list").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_announce_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `torrent` [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let torrent = Torrent::new(&torrent_content); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_torrent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tracker_query_params` is never used [INFO] [stdout] --> src/torrent/torrent.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Torrent { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | fn tracker_query_params(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | torrent_file.read_to_end(&mut contents); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 33 | let _ = torrent_file.read_to_end(&mut contents); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/torrent/torrent.rs:37:29 [INFO] [stdout] | [INFO] [stdout] 37 | .list().unwrap() [INFO] [stdout] | _____________________________^ [INFO] [stdout] 38 | | .clone() [INFO] [stdout] | |____________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `dyn BListAccess>` does not implement `Clone`, so calling `clone` on `&dyn BListAccess>` 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/torrent/torrent.rs:71:89 [INFO] [stdout] | [INFO] [stdout] 71 | let file_path = bencode_ref.dict().unwrap().lookup(b"path").unwrap().list().unwrap() [INFO] [stdout] | _________________________________________________________________________________________^ [INFO] [stdout] 72 | | .clone() [INFO] [stdout] | |________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `dyn BListAccess>` does not implement `Clone`, so calling `clone` on `&dyn BListAccess>` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.64s [INFO] running `Command { std: "docker" "inspect" "64a2d42399710dda1e31daa335f34689742d3af95198e192c4403a421804f139", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64a2d42399710dda1e31daa335f34689742d3af95198e192c4403a421804f139", kill_on_drop: false }` [INFO] [stdout] 64a2d42399710dda1e31daa335f34689742d3af95198e192c4403a421804f139 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7b9c09ba1fe8288511c52a9f457d532d487607a9c8b86e6c948a79487e34fa88 [INFO] running `Command { std: "docker" "start" "-a" "7b9c09ba1fe8288511c52a9f457d532d487607a9c8b86e6c948a79487e34fa88", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: unused variable: `announce_list` [INFO] [stderr] --> src/torrent/torrent.rs:34:13 [INFO] [stderr] | [INFO] [stderr] 34 | let announce_list = dict.lookup(b"announce-list").unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_announce_list` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `torrent` [INFO] [stderr] --> src/main.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | let torrent = Torrent::new(&torrent_content); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_torrent` [INFO] [stderr] [INFO] [stderr] warning: method `tracker_query_params` is never used [INFO] [stderr] --> src/torrent/torrent.rs:61:8 [INFO] [stderr] | [INFO] [stderr] 31 | impl Torrent { [INFO] [stderr] | ------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 61 | fn tracker_query_params(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 33 | torrent_file.read_to_end(&mut contents); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 33 | let _ = torrent_file.read_to_end(&mut contents); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/torrent/torrent.rs:37:29 [INFO] [stderr] | [INFO] [stderr] 37 | .list().unwrap() [INFO] [stderr] | _____________________________^ [INFO] [stderr] 38 | | .clone() [INFO] [stderr] | |____________________^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `dyn BListAccess>` does not implement `Clone`, so calling `clone` on `&dyn BListAccess>` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/torrent/torrent.rs:71:89 [INFO] [stderr] | [INFO] [stderr] 71 | let file_path = bencode_ref.dict().unwrap().lookup(b"path").unwrap().list().unwrap() [INFO] [stderr] | _________________________________________________________________________________________^ [INFO] [stderr] 72 | | .clone() [INFO] [stderr] | |________________^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `dyn BListAccess>` does not implement `Clone`, so calling `clone` on `&dyn BListAccess>` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: `rs_bittorrent` (bin "rs_bittorrent" test) generated 6 warnings (run `cargo fix --bin "rs_bittorrent" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rs_bittorrent-1645938ad5f6e54b) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7b9c09ba1fe8288511c52a9f457d532d487607a9c8b86e6c948a79487e34fa88", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b9c09ba1fe8288511c52a9f457d532d487607a9c8b86e6c948a79487e34fa88", kill_on_drop: false }` [INFO] [stdout] 7b9c09ba1fe8288511c52a9f457d532d487607a9c8b86e6c948a79487e34fa88