[INFO] cloning repository https://github.com/OneMoreByte/ftp-downloader [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/OneMoreByte/ftp-downloader" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOneMoreByte%2Fftp-downloader", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOneMoreByte%2Fftp-downloader'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1e2df1590183656dd2f046acff2a55ba5da87776 [INFO] building OneMoreByte/ftp-downloader against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOneMoreByte%2Fftp-downloader" "/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/OneMoreByte/ftp-downloader on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/OneMoreByte/ftp-downloader [INFO] finished tweaking git repo https://github.com/OneMoreByte/ftp-downloader [INFO] tweaked toml for git repo https://github.com/OneMoreByte/ftp-downloader written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/OneMoreByte/ftp-downloader 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ftp v2.0.0 [INFO] [stderr] Downloaded libc v0.2.14 [INFO] [stderr] Downloaded num-traits v0.1.34 [INFO] [stderr] Downloaded num v0.1.34 [INFO] [stderr] Downloaded regex-syntax v0.3.4 [INFO] [stderr] Downloaded regex v0.1.73 [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9687f4085d09d3d0029e483737da75251ab57c6dc885c73e6596ce586fb8b4ca [INFO] running `Command { std: "docker" "start" "-a" "9687f4085d09d3d0029e483737da75251ab57c6dc885c73e6596ce586fb8b4ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9687f4085d09d3d0029e483737da75251ab57c6dc885c73e6596ce586fb8b4ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9687f4085d09d3d0029e483737da75251ab57c6dc885c73e6596ce586fb8b4ca", kill_on_drop: false }` [INFO] [stdout] 9687f4085d09d3d0029e483737da75251ab57c6dc885c73e6596ce586fb8b4ca [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d54ad1a280a2f435d1a2c177cf1da39e34fc74d9ac17f7fb5a3ee3889e873f30 [INFO] running `Command { std: "docker" "start" "-a" "d54ad1a280a2f435d1a2c177cf1da39e34fc74d9ac17f7fb5a3ee3889e873f30", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling libc v0.2.14 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling num-traits v0.1.34 [INFO] [stderr] Compiling regex-syntax v0.3.4 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling lazy_static v0.1.16 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling time v0.1.35 [INFO] [stderr] Compiling thread_local v0.2.6 [INFO] [stderr] Compiling num-integer v0.1.32 [INFO] [stderr] Compiling aho-corasick v0.5.2 [INFO] [stderr] Compiling num-iter v0.1.32 [INFO] [stderr] Compiling num v0.1.34 [INFO] [stderr] Compiling regex v0.1.73 [INFO] [stderr] Compiling chrono v0.2.25 [INFO] [stderr] Compiling ftp v2.0.0 [INFO] [stderr] Compiling ftpdown v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ftp::FtpStream` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use ftp::FtpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/config.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | (s) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - (s) [INFO] [stdout] 135 + s [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:260:17 [INFO] [stdout] | [INFO] [stdout] 260 | (loc.ends_with('/')) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 260 - (loc.ends_with('/')) [INFO] [stdout] 260 + loc.ends_with('/') [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | (full_loc.clone()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 265 - (full_loc.clone()) [INFO] [stdout] 265 + full_loc.clone() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:276:17 [INFO] [stdout] | [INFO] [stdout] 276 | (loc) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 276 - (loc) [INFO] [stdout] 276 + loc [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:296:21 [INFO] [stdout] | [INFO] [stdout] 296 | (name) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 296 - (name) [INFO] [stdout] 296 + name [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:332:37 [INFO] [stdout] | [INFO] [stdout] 332 | ... ((lsize.checked_mul(100).unwrap()) [INFO] [stdout] | ^ [INFO] [stdout] 333 | ... .checked_div(rsize.unwrap()) [INFO] [stdout] 334 | ... .unwrap()), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 332 ~ (lsize.checked_mul(100).unwrap()) [INFO] [stdout] 333 | .checked_div(rsize.unwrap()) [INFO] [stdout] 334 ~ .unwrap(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:344:21 [INFO] [stdout] | [INFO] [stdout] 344 | (ftpstream) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 344 - (ftpstream) [INFO] [stdout] 344 + ftpstream [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:349:17 [INFO] [stdout] | [INFO] [stdout] 349 | (ftpstream) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 349 - (ftpstream) [INFO] [stdout] 349 + ftpstream [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:354:17 [INFO] [stdout] | [INFO] [stdout] 354 | (ftpstream) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 354 - (ftpstream) [INFO] [stdout] 354 + ftpstream [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior may be unexpected on Windows. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/main.rs:387:27 [INFO] [stdout] | [INFO] [stdout] 387 | let mut conf_d = env::home_dir().unwrap().to_str().unwrap().to_string(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior may be unexpected on Windows. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/util.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | let mut config_dir = env::home_dir().unwrap().to_str().unwrap().to_string(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/util.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut con: Option = config::Config::new(&mut buff); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dr` [INFO] [stdout] --> src/main.rs:217:51 [INFO] [stdout] | [INFO] [stdout] 217 | fn download_from_site(mut config: config::Config, dr: bool) -> std::io::Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | let mut ftpstream = config.get_ftpstream(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/main.rs:347:29 [INFO] [stdout] | [INFO] [stdout] 347 | fn download_dir(dir: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:347:57 [INFO] [stdout] | [INFO] [stdout] 347 | fn download_dir(dir: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/main.rs:352:29 [INFO] [stdout] | [INFO] [stdout] 352 | fn fix_name(mut file: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:352:25 [INFO] [stdout] | [INFO] [stdout] 352 | fn fix_name(mut file: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:352:58 [INFO] [stdout] | [INFO] [stdout] 352 | fn fix_name(mut file: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `download_dir` is never used [INFO] [stdout] --> src/main.rs:347:16 [INFO] [stdout] | [INFO] [stdout] 347 | fn download_dir(dir: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fix_name` is never used [INFO] [stdout] --> src/main.rs:352:16 [INFO] [stdout] | [INFO] [stdout] 352 | fn fix_name(mut file: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | config_raw.read_to_string(&mut buff); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = config_raw.read_to_string(&mut buff); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.42s [INFO] running `Command { std: "docker" "inspect" "d54ad1a280a2f435d1a2c177cf1da39e34fc74d9ac17f7fb5a3ee3889e873f30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d54ad1a280a2f435d1a2c177cf1da39e34fc74d9ac17f7fb5a3ee3889e873f30", kill_on_drop: false }` [INFO] [stdout] d54ad1a280a2f435d1a2c177cf1da39e34fc74d9ac17f7fb5a3ee3889e873f30 [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a578e7472dc8e037ff526c1bbc1c347e0a50aec0d0f56ef172c9b26e880bbdb [INFO] running `Command { std: "docker" "start" "-a" "1a578e7472dc8e037ff526c1bbc1c347e0a50aec0d0f56ef172c9b26e880bbdb", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling ftpdown v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ftp::FtpStream` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use ftp::FtpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/config.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | (s) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - (s) [INFO] [stdout] 135 + s [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:260:17 [INFO] [stdout] | [INFO] [stdout] 260 | (loc.ends_with('/')) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 260 - (loc.ends_with('/')) [INFO] [stdout] 260 + loc.ends_with('/') [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | (full_loc.clone()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 265 - (full_loc.clone()) [INFO] [stdout] 265 + full_loc.clone() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:276:17 [INFO] [stdout] | [INFO] [stdout] 276 | (loc) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 276 - (loc) [INFO] [stdout] 276 + loc [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:296:21 [INFO] [stdout] | [INFO] [stdout] 296 | (name) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 296 - (name) [INFO] [stdout] 296 + name [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:332:37 [INFO] [stdout] | [INFO] [stdout] 332 | ... ((lsize.checked_mul(100).unwrap()) [INFO] [stdout] | ^ [INFO] [stdout] 333 | ... .checked_div(rsize.unwrap()) [INFO] [stdout] 334 | ... .unwrap()), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 332 ~ (lsize.checked_mul(100).unwrap()) [INFO] [stdout] 333 | .checked_div(rsize.unwrap()) [INFO] [stdout] 334 ~ .unwrap(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:344:21 [INFO] [stdout] | [INFO] [stdout] 344 | (ftpstream) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 344 - (ftpstream) [INFO] [stdout] 344 + ftpstream [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:349:17 [INFO] [stdout] | [INFO] [stdout] 349 | (ftpstream) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 349 - (ftpstream) [INFO] [stdout] 349 + ftpstream [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:354:17 [INFO] [stdout] | [INFO] [stdout] 354 | (ftpstream) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 354 - (ftpstream) [INFO] [stdout] 354 + ftpstream [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior may be unexpected on Windows. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/main.rs:387:27 [INFO] [stdout] | [INFO] [stdout] 387 | let mut conf_d = env::home_dir().unwrap().to_str().unwrap().to_string(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior may be unexpected on Windows. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/util.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | let mut config_dir = env::home_dir().unwrap().to_str().unwrap().to_string(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/util.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut con: Option = config::Config::new(&mut buff); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dr` [INFO] [stdout] --> src/main.rs:217:51 [INFO] [stdout] | [INFO] [stdout] 217 | fn download_from_site(mut config: config::Config, dr: bool) -> std::io::Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | let mut ftpstream = config.get_ftpstream(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/main.rs:347:29 [INFO] [stdout] | [INFO] [stdout] 347 | fn download_dir(dir: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:347:57 [INFO] [stdout] | [INFO] [stdout] 347 | fn download_dir(dir: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/main.rs:352:29 [INFO] [stdout] | [INFO] [stdout] 352 | fn fix_name(mut file: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:352:25 [INFO] [stdout] | [INFO] [stdout] 352 | fn fix_name(mut file: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:352:58 [INFO] [stdout] | [INFO] [stdout] 352 | fn fix_name(mut file: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `download_dir` is never used [INFO] [stdout] --> src/main.rs:347:16 [INFO] [stdout] | [INFO] [stdout] 347 | fn download_dir(dir: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fix_name` is never used [INFO] [stdout] --> src/main.rs:352:16 [INFO] [stdout] | [INFO] [stdout] 352 | fn fix_name(mut file: &config::Downloadable, mut ftpstream: ftp::FtpStream) -> ftp::FtpStream { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | config_raw.read_to_string(&mut buff); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = config_raw.read_to_string(&mut buff); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.48s [INFO] running `Command { std: "docker" "inspect" "1a578e7472dc8e037ff526c1bbc1c347e0a50aec0d0f56ef172c9b26e880bbdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a578e7472dc8e037ff526c1bbc1c347e0a50aec0d0f56ef172c9b26e880bbdb", kill_on_drop: false }` [INFO] [stdout] 1a578e7472dc8e037ff526c1bbc1c347e0a50aec0d0f56ef172c9b26e880bbdb