[INFO] cloning repository https://github.com/liushui132/rtzip [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/liushui132/rtzip" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fliushui132%2Frtzip", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fliushui132%2Frtzip'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dc03677e1cac3a071b1a7c9d01ddfddf2780030d [INFO] building liushui132/rtzip against try#9a3ef2cd3ecaae3c6ef59768612837d797602a6d for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fliushui132%2Frtzip" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/liushui132/rtzip on toolchain 9a3ef2cd3ecaae3c6ef59768612837d797602a6d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/liushui132/rtzip [INFO] finished tweaking git repo https://github.com/liushui132/rtzip [INFO] tweaked toml for git repo https://github.com/liushui132/rtzip written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/liushui132/rtzip 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" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a9e4b9ea5e33eeb0b2ab776b3dd44897e6ca540b63dd47083ea29e5f700294ff [INFO] running `Command { std: "docker" "start" "-a" "a9e4b9ea5e33eeb0b2ab776b3dd44897e6ca540b63dd47083ea29e5f700294ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a9e4b9ea5e33eeb0b2ab776b3dd44897e6ca540b63dd47083ea29e5f700294ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9e4b9ea5e33eeb0b2ab776b3dd44897e6ca540b63dd47083ea29e5f700294ff", kill_on_drop: false }` [INFO] [stdout] a9e4b9ea5e33eeb0b2ab776b3dd44897e6ca540b63dd47083ea29e5f700294ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4cd0e83cd6e16d79cbcabeeef1c5d8fba423b5424f9e44a02477700b31a02b4b [INFO] running `Command { std: "docker" "start" "-a" "4cd0e83cd6e16d79cbcabeeef1c5d8fba423b5424f9e44a02477700b31a02b4b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling zstd-safe v4.1.6+zstd.1.5.2 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling base64ct v1.0.1 [INFO] [stderr] Compiling miniz_oxide v0.5.1 [INFO] [stderr] Compiling os_str_bytes v6.0.1 [INFO] [stderr] Compiling password-hash v0.3.2 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Compiling anyhow v1.0.57 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling clap_lex v0.2.0 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling terminal_size v0.1.17 [INFO] [stderr] Compiling textwrap v0.15.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling flate2 v1.0.23 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling clap v3.1.18 [INFO] [stderr] Compiling zstd-sys v1.6.3+zstd.1.5.2 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling time v0.3.9 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.2 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling sha1 v0.10.1 [INFO] [stderr] Compiling pbkdf2 v0.10.1 [INFO] [stderr] Compiling bzip2 v0.4.3 [INFO] [stderr] Compiling zstd v0.10.2+zstd.1.5.2 [INFO] [stderr] Compiling zip v0.6.2 [INFO] [stderr] Compiling rzip v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ValueHint` [INFO] [stdout] --> src/cmd/parse.rs:2:90 [INFO] [stdout] | [INFO] [stdout] 2 | crate_authors, crate_description, crate_name, crate_version, Arg, ArgGroup, Command, ValueHint,ArgMatches, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/rzip/rzip.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Chain` [INFO] [stdout] --> src/rzip/rzip.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::iter::Chain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/rzip/rzip.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `copy` [INFO] [stdout] --> src/rzip/rzip.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{copy, Read, Seek, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/rzip/rzip.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | if (entry.file_name().to_str().map(|s| !s.ends_with(value)).unwrap() == false) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if (entry.file_name().to_str().map(|s| !s.ends_with(value)).unwrap() == false) { [INFO] [stdout] 44 + if entry.file_name().to_str().map(|s| !s.ends_with(value)).unwrap() == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sparse` [INFO] [stdout] --> src/main.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use cmd::parse::{cmd,parsecmd,Sparse}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `metadata` and `read_dir` [INFO] [stdout] --> src/main.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::fs::{read_dir,metadata}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `zip::write::>::start_file_from_path`: by stripping `..`s from the path, the meaning of paths can change. Use `start_file` instead. [INFO] [stdout] --> src/rzip/rzip.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | zip.start_file_from_path(name, options)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `zip::write::>::add_directory_from_path`: by stripping `..`s from the path, the meaning of paths can change. Use `add_directory` instead. [INFO] [stdout] --> src/rzip/rzip.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | zip.add_directory_from_path(name, options)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rzip/rzip.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut pathVec = Path::new(parsedata.path); [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: variable does not need to be mutable [INFO] [stdout] --> src/rzip/rzip.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut fileVec = Path::new(parsedata.file); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | parsezip(&data); [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] 17 | let _ = parsezip(&data); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getVec` should have a snake case name [INFO] [stdout] --> src/cmd/parse.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn getVec<'a>(data:&'a str) -> Vec<&'a str> { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_vec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `include_path_Vec` should have a snake case name [INFO] [stdout] --> src/cmd/parse.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | let include_path_Vec: Vec<&str> = getVec(&include); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `include_path_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `except_path_Vec` should have a snake case name [INFO] [stdout] --> src/cmd/parse.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | let except_path_Vec: Vec<&str> = getVec(&except); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `except_path_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `include_file_Vec` should have a snake case name [INFO] [stdout] --> src/cmd/parse.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | let include_file_Vec: Vec<&str> = getVec(&include_file); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `include_file_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `except_file_Vec` should have a snake case name [INFO] [stdout] --> src/cmd/parse.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let except_file_Vec: Vec<&str> = getVec(&except_file); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `except_file_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pathVec` should have a snake case name [INFO] [stdout] --> src/rzip/rzip.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut pathVec = Path::new(parsedata.path); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `path_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileVec` should have a snake case name [INFO] [stdout] --> src/rzip/rzip.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut fileVec = Path::new(parsedata.file); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `file_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/rzip/rzip.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | zip_dir(&mut dir.into_iter().filter_entry(|entry|get_filter_type(entry,filter_type) ).filter_map(|e| e.ok()), src_dir.to_str().unwrap(), zipfil... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 62 | let _ = zip_dir(&mut dir.into_iter().filter_entry(|entry|get_filter_type(entry,filter_type) ).filter_map(|e| e.ok()), src_dir.to_str().unwrap(), zipfile); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/rzip/rzip.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | zip_dir(&mut dir.into_iter().filter_map(|e| e.ok()), src_dir.to_str().unwrap(), zipfile); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 75 | let _ = zip_dir(&mut dir.into_iter().filter_map(|e| e.ok()), src_dir.to_str().unwrap(), zipfile); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 10s [INFO] running `Command { std: "docker" "inspect" "4cd0e83cd6e16d79cbcabeeef1c5d8fba423b5424f9e44a02477700b31a02b4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4cd0e83cd6e16d79cbcabeeef1c5d8fba423b5424f9e44a02477700b31a02b4b", kill_on_drop: false }` [INFO] [stdout] 4cd0e83cd6e16d79cbcabeeef1c5d8fba423b5424f9e44a02477700b31a02b4b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a66da323efa925ef0a211143126b65e33e77ce9dc73101e7d8b10ffd00637511 [INFO] running `Command { std: "docker" "start" "-a" "a66da323efa925ef0a211143126b65e33e77ce9dc73101e7d8b10ffd00637511", kill_on_drop: false }` [INFO] [stderr] Compiling rzip v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ValueHint` [INFO] [stdout] --> src/cmd/parse.rs:2:90 [INFO] [stdout] | [INFO] [stdout] 2 | crate_authors, crate_description, crate_name, crate_version, Arg, ArgGroup, Command, ValueHint,ArgMatches, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/rzip/rzip.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Chain` [INFO] [stdout] --> src/rzip/rzip.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::iter::Chain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/rzip/rzip.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `copy` [INFO] [stdout] --> src/rzip/rzip.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{copy, Read, Seek, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/rzip/rzip.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | if (entry.file_name().to_str().map(|s| !s.ends_with(value)).unwrap() == false) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if (entry.file_name().to_str().map(|s| !s.ends_with(value)).unwrap() == false) { [INFO] [stdout] 44 + if entry.file_name().to_str().map(|s| !s.ends_with(value)).unwrap() == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sparse` [INFO] [stdout] --> src/main.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use cmd::parse::{cmd,parsecmd,Sparse}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `metadata` and `read_dir` [INFO] [stdout] --> src/main.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::fs::{read_dir,metadata}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `zip::write::>::start_file_from_path`: by stripping `..`s from the path, the meaning of paths can change. Use `start_file` instead. [INFO] [stdout] --> src/rzip/rzip.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | zip.start_file_from_path(name, options)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `zip::write::>::add_directory_from_path`: by stripping `..`s from the path, the meaning of paths can change. Use `add_directory` instead. [INFO] [stdout] --> src/rzip/rzip.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | zip.add_directory_from_path(name, options)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rzip/rzip.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut pathVec = Path::new(parsedata.path); [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: variable does not need to be mutable [INFO] [stdout] --> src/rzip/rzip.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut fileVec = Path::new(parsedata.file); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | parsezip(&data); [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] 17 | let _ = parsezip(&data); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getVec` should have a snake case name [INFO] [stdout] --> src/cmd/parse.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn getVec<'a>(data:&'a str) -> Vec<&'a str> { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_vec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `include_path_Vec` should have a snake case name [INFO] [stdout] --> src/cmd/parse.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | let include_path_Vec: Vec<&str> = getVec(&include); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `include_path_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `except_path_Vec` should have a snake case name [INFO] [stdout] --> src/cmd/parse.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | let except_path_Vec: Vec<&str> = getVec(&except); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `except_path_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `include_file_Vec` should have a snake case name [INFO] [stdout] --> src/cmd/parse.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | let include_file_Vec: Vec<&str> = getVec(&include_file); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `include_file_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `except_file_Vec` should have a snake case name [INFO] [stdout] --> src/cmd/parse.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let except_file_Vec: Vec<&str> = getVec(&except_file); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `except_file_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pathVec` should have a snake case name [INFO] [stdout] --> src/rzip/rzip.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut pathVec = Path::new(parsedata.path); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `path_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileVec` should have a snake case name [INFO] [stdout] --> src/rzip/rzip.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut fileVec = Path::new(parsedata.file); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `file_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/rzip/rzip.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | zip_dir(&mut dir.into_iter().filter_entry(|entry|get_filter_type(entry,filter_type) ).filter_map(|e| e.ok()), src_dir.to_str().unwrap(), zipfil... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 62 | let _ = zip_dir(&mut dir.into_iter().filter_entry(|entry|get_filter_type(entry,filter_type) ).filter_map(|e| e.ok()), src_dir.to_str().unwrap(), zipfile); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/rzip/rzip.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | zip_dir(&mut dir.into_iter().filter_map(|e| e.ok()), src_dir.to_str().unwrap(), zipfile); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 75 | let _ = zip_dir(&mut dir.into_iter().filter_map(|e| e.ok()), src_dir.to_str().unwrap(), zipfile); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.44s [INFO] running `Command { std: "docker" "inspect" "a66da323efa925ef0a211143126b65e33e77ce9dc73101e7d8b10ffd00637511", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a66da323efa925ef0a211143126b65e33e77ce9dc73101e7d8b10ffd00637511", kill_on_drop: false }` [INFO] [stdout] a66da323efa925ef0a211143126b65e33e77ce9dc73101e7d8b10ffd00637511