[INFO] cloning repository https://github.com/always545/RustGreyImageGenerator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/always545/RustGreyImageGenerator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falways545%2FRustGreyImageGenerator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falways545%2FRustGreyImageGenerator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 063a887169ec9c89a161ab180449e35d66c8c4b4 [INFO] building always545/RustGreyImageGenerator against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falways545%2FRustGreyImageGenerator" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/always545/RustGreyImageGenerator [INFO] finished tweaking git repo https://github.com/always545/RustGreyImageGenerator [INFO] tweaked toml for git repo https://github.com/always545/RustGreyImageGenerator written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/always545/RustGreyImageGenerator on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/always545/RustGreyImageGenerator 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rgb v0.8.52 [INFO] [stderr] Downloaded toml v0.8.23 [INFO] [stderr] Downloaded equator-macro v0.4.2 [INFO] [stderr] Downloaded equator v0.4.2 [INFO] [stderr] Downloaded profiling-procmacros v1.0.17 [INFO] [stderr] Downloaded serde_spanned v0.6.9 [INFO] [stderr] Downloaded aligned-vec v0.6.4 [INFO] [stderr] Downloaded ravif v0.11.20 [INFO] [stderr] Downloaded avif-serialize v0.8.5 [INFO] [stderr] Downloaded image-webp v0.2.3 [INFO] [stderr] Downloaded gif v0.13.3 [INFO] [stderr] Downloaded av1-grain v0.2.4 [INFO] [stderr] Downloaded zune-jpeg v0.4.20 [INFO] [stderr] Downloaded libfuzzer-sys v0.4.10 [INFO] [stderr] Downloaded cc v1.2.31 [INFO] [stderr] Downloaded v_frame v0.3.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 77b0b2a2ceb988f7e27cf3a907cd2a8dbe7655938e48d04f99bd86d561a8c250 [INFO] running `Command { std: "docker" "start" "-a" "77b0b2a2ceb988f7e27cf3a907cd2a8dbe7655938e48d04f99bd86d561a8c250", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "77b0b2a2ceb988f7e27cf3a907cd2a8dbe7655938e48d04f99bd86d561a8c250", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77b0b2a2ceb988f7e27cf3a907cd2a8dbe7655938e48d04f99bd86d561a8c250", kill_on_drop: false }` [INFO] [stdout] 77b0b2a2ceb988f7e27cf3a907cd2a8dbe7655938e48d04f99bd86d561a8c250 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 21e85b6eb4096a2def760c633996cdcdfae62b1c371e1fc44f5423ec10c19772 [INFO] running `Command { std: "docker" "start" "-a" "21e85b6eb4096a2def760c633996cdcdfae62b1c371e1fc44f5423ec10c19772", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling built v0.7.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling weezl v0.1.10 [INFO] [stderr] Compiling avif-serialize v0.8.5 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling rgb v0.8.52 [INFO] [stderr] Compiling jpeg-decoder v0.3.2 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling bytemuck v1.23.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling image-webp v0.2.3 [INFO] [stderr] Compiling zune-jpeg v0.4.20 [INFO] [stderr] Compiling gif v0.13.3 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling exr v1.73.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling profiling v1.0.17 [INFO] [stderr] Compiling equator v0.4.2 [INFO] [stderr] Compiling aligned-vec v0.6.4 [INFO] [stderr] Compiling v_frame v0.3.9 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling av1-grain v0.2.4 [INFO] [stderr] Compiling ravif v0.11.20 [INFO] [stderr] Compiling image v0.25.6 [INFO] [stderr] Compiling RCIT v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/ArgsParser.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | Ok(mode) => Ok(pc), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/FileParser.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | fn dir_handler_rewrite(mode: &str, target: &Path, destination: &Path) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dir_handler` is never used [INFO] [stdout] --> src/FileParser.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn dir_handler(mode:&String,target:&PathBuf,destination:&PathBuf) -> (){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `RCIT` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `rcit` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `ArgsParser` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod ArgsParser; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `args_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `YamlParser` should have a snake case name [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod YamlParser; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `yaml_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `FileParser` should have a snake case name [INFO] [stdout] --> src/lib.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod FileParser; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `file_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transToGrey` should have a snake case name [INFO] [stdout] --> src/lib.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn transToGrey(img:DynamicImage)->GrayImage{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `trans_to_grey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `modeSelection` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub modeSelection:String, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `mode_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `FormatSelection` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub FormatSelection:String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `format_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `modeSelection` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(modeSelection:String,FormatSelection:String,target:String,destination:String)->ParserChoices{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `mode_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `FormatSelection` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(modeSelection:String,FormatSelection:String,target:String,destination:String)->ParserChoices{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `format_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Format` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let Format = match FormatSelection.as_str(){ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_And_ParseArgs` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn collect_And_ParseArgs()->Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `collect_and_parse_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `configFile` should have a snake case name [INFO] [stdout] --> src/YamlParser.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let configFile = RefCell::new( File::open(yaml_path).unwrap()); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `config_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/YamlParser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | configFile.borrow_mut().read_to_string(&mut content); [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] 9 | let _ = configFile.borrow_mut().read_to_string(&mut content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Set` should have a snake case name [INFO] [stdout] --> src/YamlParser.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let Set = deserialized.get("CharacterSet").and_then(|v| v.as_str()); [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `destPathbuf` should have a snake case name [INFO] [stdout] --> src/FileParser.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let destPathbuf = std::path::PathBuf::from(&parser_choice.destination); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `dest_pathbuf` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 51.72s [INFO] running `Command { std: "docker" "inspect" "21e85b6eb4096a2def760c633996cdcdfae62b1c371e1fc44f5423ec10c19772", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21e85b6eb4096a2def760c633996cdcdfae62b1c371e1fc44f5423ec10c19772", kill_on_drop: false }` [INFO] [stdout] 21e85b6eb4096a2def760c633996cdcdfae62b1c371e1fc44f5423ec10c19772 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c05e0929801a093932f52de24fd5dcc9703550eb65414c70f49dd101f3d0fda [INFO] running `Command { std: "docker" "start" "-a" "3c05e0929801a093932f52de24fd5dcc9703550eb65414c70f49dd101f3d0fda", kill_on_drop: false }` [INFO] [stderr] Compiling RCIT v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/ArgsParser.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | Ok(mode) => Ok(pc), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/FileParser.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | fn dir_handler_rewrite(mode: &str, target: &Path, destination: &Path) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dir_handler` is never used [INFO] [stdout] --> src/FileParser.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn dir_handler(mode:&String,target:&PathBuf,destination:&PathBuf) -> (){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `RCIT` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `rcit` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `ArgsParser` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod ArgsParser; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `args_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `YamlParser` should have a snake case name [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod YamlParser; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `yaml_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `FileParser` should have a snake case name [INFO] [stdout] --> src/lib.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod FileParser; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `file_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transToGrey` should have a snake case name [INFO] [stdout] --> src/lib.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn transToGrey(img:DynamicImage)->GrayImage{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `trans_to_grey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `modeSelection` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub modeSelection:String, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `mode_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `FormatSelection` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub FormatSelection:String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `format_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `modeSelection` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(modeSelection:String,FormatSelection:String,target:String,destination:String)->ParserChoices{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `mode_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `FormatSelection` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(modeSelection:String,FormatSelection:String,target:String,destination:String)->ParserChoices{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `format_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Format` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let Format = match FormatSelection.as_str(){ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_And_ParseArgs` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn collect_And_ParseArgs()->Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `collect_and_parse_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `configFile` should have a snake case name [INFO] [stdout] --> src/YamlParser.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let configFile = RefCell::new( File::open(yaml_path).unwrap()); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `config_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/YamlParser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | configFile.borrow_mut().read_to_string(&mut content); [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] 9 | let _ = configFile.borrow_mut().read_to_string(&mut content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Set` should have a snake case name [INFO] [stdout] --> src/YamlParser.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let Set = deserialized.get("CharacterSet").and_then(|v| v.as_str()); [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `destPathbuf` should have a snake case name [INFO] [stdout] --> src/FileParser.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let destPathbuf = std::path::PathBuf::from(&parser_choice.destination); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `dest_pathbuf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/ArgsParser.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | Ok(mode) => Ok(pc), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/FileParser.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | fn dir_handler_rewrite(mode: &str, target: &Path, destination: &Path) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `yamlpath` [INFO] [stdout] --> src/lib.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let yamlpath = "src/config.yaml"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_yamlpath` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `yamlpath` [INFO] [stdout] --> src/lib.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let yamlpath = "src/config.yaml"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_yamlpath` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dir_handler` is never used [INFO] [stdout] --> src/FileParser.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn dir_handler(mode:&String,target:&PathBuf,destination:&PathBuf) -> (){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `ArgsParser` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod ArgsParser; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `args_parser` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `YamlParser` should have a snake case name [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod YamlParser; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `yaml_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `FileParser` should have a snake case name [INFO] [stdout] --> src/lib.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod FileParser; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `file_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transToGrey` should have a snake case name [INFO] [stdout] --> src/lib.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn transToGrey(img:DynamicImage)->GrayImage{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `trans_to_grey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `modeSelection` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub modeSelection:String, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `mode_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `FormatSelection` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub FormatSelection:String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `format_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `modeSelection` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(modeSelection:String,FormatSelection:String,target:String,destination:String)->ParserChoices{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `mode_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `FormatSelection` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(modeSelection:String,FormatSelection:String,target:String,destination:String)->ParserChoices{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `format_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Format` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let Format = match FormatSelection.as_str(){ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_And_ParseArgs` should have a snake case name [INFO] [stdout] --> src/ArgsParser.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn collect_And_ParseArgs()->Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `collect_and_parse_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `configFile` should have a snake case name [INFO] [stdout] --> src/YamlParser.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let configFile = RefCell::new( File::open(yaml_path).unwrap()); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `config_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/YamlParser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | configFile.borrow_mut().read_to_string(&mut content); [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] 9 | let _ = configFile.borrow_mut().read_to_string(&mut content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Set` should have a snake case name [INFO] [stdout] --> src/YamlParser.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let Set = deserialized.get("CharacterSet").and_then(|v| v.as_str()); [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `destPathbuf` should have a snake case name [INFO] [stdout] --> src/FileParser.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let destPathbuf = std::path::PathBuf::from(&parser_choice.destination); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `dest_pathbuf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ArgsParser_file` should have a snake case name [INFO] [stdout] --> src/lib.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn test_ArgsParser_file() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_args_parser_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ArgsParser_dir` should have a snake case name [INFO] [stdout] --> src/lib.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn test_ArgsParser_dir() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_args_parser_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.51s [INFO] running `Command { std: "docker" "inspect" "3c05e0929801a093932f52de24fd5dcc9703550eb65414c70f49dd101f3d0fda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c05e0929801a093932f52de24fd5dcc9703550eb65414c70f49dd101f3d0fda", kill_on_drop: false }` [INFO] [stdout] 3c05e0929801a093932f52de24fd5dcc9703550eb65414c70f49dd101f3d0fda