[INFO] cloning repository https://github.com/KushamiNeko/auto_watermark [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KushamiNeko/auto_watermark" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKushamiNeko%2Fauto_watermark", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKushamiNeko%2Fauto_watermark'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b8e0fa2acb12502fce99b9de6c9463b1ea3df0fa [INFO] checking KushamiNeko/auto_watermark against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKushamiNeko%2Fauto_watermark" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KushamiNeko/auto_watermark on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/KushamiNeko/auto_watermark [INFO] finished tweaking git repo https://github.com/KushamiNeko/auto_watermark [INFO] tweaked toml for git repo https://github.com/KushamiNeko/auto_watermark written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/KushamiNeko/auto_watermark already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f869bbfbe47fa097598bb723a0e3d0dda1e7c27ae979b9adf0db655d6cebea45 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f869bbfbe47fa097598bb723a0e3d0dda1e7c27ae979b9adf0db655d6cebea45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f869bbfbe47fa097598bb723a0e3d0dda1e7c27ae979b9adf0db655d6cebea45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f869bbfbe47fa097598bb723a0e3d0dda1e7c27ae979b9adf0db655d6cebea45", kill_on_drop: false }` [INFO] [stdout] f869bbfbe47fa097598bb723a0e3d0dda1e7c27ae979b9adf0db655d6cebea45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ebc75548ceec7cf3d707636ca7d086b6161349f5aa7b55c5781eeb0cb21e1b10 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ebc75548ceec7cf3d707636ca7d086b6161349f5aa7b55c5781eeb0cb21e1b10", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking rustc-serialize v0.3.22 [INFO] [stderr] Checking byteorder v1.0.0 [INFO] [stderr] Checking adler32 v1.0.0 [INFO] [stderr] Checking inflate v0.1.1 [INFO] [stderr] Checking color_quant v1.0.0 [INFO] [stderr] Checking glob v0.2.11 [INFO] [stderr] Checking scoped_threadpool v0.1.7 [INFO] [stderr] Checking deque v0.3.1 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking rayon v0.6.0 [INFO] [stderr] Checking gif v0.9.1 [INFO] [stderr] Checking deflate v0.7.5 [INFO] [stderr] Checking jpeg-decoder v0.1.11 [INFO] [stderr] Checking png v0.6.2 [INFO] [stderr] Checking num-bigint v0.1.37 [INFO] [stderr] Checking num-complex v0.1.36 [INFO] [stderr] Checking num-rational v0.1.36 [INFO] [stderr] Checking num v0.1.37 [INFO] [stderr] Checking image v0.12.3 [INFO] [stderr] Checking rust_auto_watermark v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:97:22 [INFO] [stdout] | [INFO] [stdout] 97 | first: Item::new((water_mark_size.first.first / (water_mark_size.first.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:97:53 [INFO] [stdout] | [INFO] [stdout] 97 | first: Item::new((water_mark_size.first.first / (water_mark_size.first.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:97:84 [INFO] [stdout] | [INFO] [stdout] 97 | first: Item::new((water_mark_size.first.first / (water_mark_size.first.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | (water_mark_size.first.first / (water_mark_size.first.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:98:40 [INFO] [stdout] | [INFO] [stdout] 98 | (water_mark_size.first.first / (water_mark_size.first.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:98:71 [INFO] [stdout] | [INFO] [stdout] 98 | (water_mark_size.first.first / (water_mark_size.first.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | second: Item::new((water_mark_size.second.first / (water_mark_size.second.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:99:55 [INFO] [stdout] | [INFO] [stdout] 99 | second: Item::new((water_mark_size.second.first / (water_mark_size.second.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:99:87 [INFO] [stdout] | [INFO] [stdout] 99 | second: Item::new((water_mark_size.second.first / (water_mark_size.second.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | (water_mark_size.second.first / (water_mark_size.second.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:100:41 [INFO] [stdout] | [INFO] [stdout] 100 | (water_mark_size.second.first / (water_mark_size.second.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:100:73 [INFO] [stdout] | [INFO] [stdout] 100 | (water_mark_size.second.first / (water_mark_size.second.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | third: Item::new(((water_mark_size.third.first - TOLERANCE) / water_mark_size.third.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:101:53 [INFO] [stdout] | [INFO] [stdout] 101 | third: Item::new(((water_mark_size.third.first - TOLERANCE) / water_mark_size.third.second), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:101:66 [INFO] [stdout] | [INFO] [stdout] 101 | third: Item::new(((water_mark_size.third.first - TOLERANCE) / water_mark_size.third.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | (water_mark_size.third.first / (water_mark_size.third.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:102:40 [INFO] [stdout] | [INFO] [stdout] 102 | (water_mark_size.third.first / (water_mark_size.third.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:102:71 [INFO] [stdout] | [INFO] [stdout] 102 | (water_mark_size.third.first / (water_mark_size.third.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:103:23 [INFO] [stdout] | [INFO] [stdout] 103 | forth: Item::new(((water_mark_size.forth.first - TOLERANCE) / water_mark_size.forth.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:103:53 [INFO] [stdout] | [INFO] [stdout] 103 | forth: Item::new(((water_mark_size.forth.first - TOLERANCE) / water_mark_size.forth.second), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:103:66 [INFO] [stdout] | [INFO] [stdout] 103 | forth: Item::new(((water_mark_size.forth.first - TOLERANCE) / water_mark_size.forth.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | (water_mark_size.forth.first / (water_mark_size.forth.second + TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:104:40 [INFO] [stdout] | [INFO] [stdout] 104 | (water_mark_size.forth.first / (water_mark_size.forth.second + TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:104:71 [INFO] [stdout] | [INFO] [stdout] 104 | (water_mark_size.forth.first / (water_mark_size.forth.second + TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | fifth: Item::new(((water_mark_size.fifth.first - TOLERANCE) / water_mark_size.fifth.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:105:53 [INFO] [stdout] | [INFO] [stdout] 105 | fifth: Item::new(((water_mark_size.fifth.first - TOLERANCE) / water_mark_size.fifth.second), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:105:66 [INFO] [stdout] | [INFO] [stdout] 105 | fifth: Item::new(((water_mark_size.fifth.first - TOLERANCE) / water_mark_size.fifth.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | (water_mark_size.fifth.first / (water_mark_size.fifth.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:106:40 [INFO] [stdout] | [INFO] [stdout] 106 | (water_mark_size.fifth.first / (water_mark_size.fifth.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:106:71 [INFO] [stdout] | [INFO] [stdout] 106 | (water_mark_size.fifth.first / (water_mark_size.fifth.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ptr_i` in this scope [INFO] [stdout] --> src/data_analysis/mod.rs:60:37 [INFO] [stdout] | [INFO] [stdout] 60 | let image = match image::open((*ptr_i).path()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ptr_program_data_root` in this scope [INFO] [stdout] --> src/data_analysis/mod.rs:98:37 [INFO] [stdout] | [INFO] [stdout] 98 | let data_root_path = Path::new(*ptr_program_data_root); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `program_data_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/imagework/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | first: Item::new((water_mark_size.first.first / (water_mark_size.first.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | (water_mark_size.first.first / (water_mark_size.first.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | second: Item::new((water_mark_size.second.first / (water_mark_size.second.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | (water_mark_size.second.first / (water_mark_size.second.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | third: Item::new(((water_mark_size.third.first - TOLERANCE) / water_mark_size.third.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | (water_mark_size.third.first / (water_mark_size.third.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | forth: Item::new(((water_mark_size.forth.first - TOLERANCE) / water_mark_size.forth.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:97:22 [INFO] [stdout] | [INFO] [stdout] 97 | first: Item::new((water_mark_size.first.first / (water_mark_size.first.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | (water_mark_size.forth.first / (water_mark_size.forth.second + TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | fifth: Item::new(((water_mark_size.fifth.first - TOLERANCE) / water_mark_size.fifth.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | (water_mark_size.fifth.first / (water_mark_size.fifth.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:97:53 [INFO] [stdout] | [INFO] [stdout] 97 | first: Item::new((water_mark_size.first.first / (water_mark_size.first.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/imagework/mod.rs:151:37 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn pixel_operation(&mut self) {; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:97:84 [INFO] [stdout] | [INFO] [stdout] 97 | first: Item::new((water_mark_size.first.first / (water_mark_size.first.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/imagework/mod.rs:184:33 [INFO] [stdout] | [INFO] [stdout] 184 | let rr: u8 = self.pixel_clamp((nr * 255.0)); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | (water_mark_size.first.first / (water_mark_size.first.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/imagework/mod.rs:185:33 [INFO] [stdout] | [INFO] [stdout] 185 | let rg: u8 = self.pixel_clamp((ng * 255.0)); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/imagework/mod.rs:186:33 [INFO] [stdout] | [INFO] [stdout] 186 | let rb: u8 = self.pixel_clamp((nb * 255.0)); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:98:40 [INFO] [stdout] | [INFO] [stdout] 98 | (water_mark_size.first.first / (water_mark_size.first.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/imagework/mod.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | inside @ 0f64...255f64 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:98:71 [INFO] [stdout] | [INFO] [stdout] 98 | (water_mark_size.first.first / (water_mark_size.first.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/imagework/mod.rs:237:18 [INFO] [stdout] | [INFO] [stdout] 237 | for t in (0..max_iterations) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | second: Item::new((water_mark_size.second.first / (water_mark_size.second.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:99:55 [INFO] [stdout] | [INFO] [stdout] 99 | second: Item::new((water_mark_size.second.first / (water_mark_size.second.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:99:87 [INFO] [stdout] | [INFO] [stdout] 99 | second: Item::new((water_mark_size.second.first / (water_mark_size.second.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | (water_mark_size.second.first / (water_mark_size.second.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:100:41 [INFO] [stdout] | [INFO] [stdout] 100 | (water_mark_size.second.first / (water_mark_size.second.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:100:73 [INFO] [stdout] | [INFO] [stdout] 100 | (water_mark_size.second.first / (water_mark_size.second.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | third: Item::new(((water_mark_size.third.first - TOLERANCE) / water_mark_size.third.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:101:53 [INFO] [stdout] | [INFO] [stdout] 101 | third: Item::new(((water_mark_size.third.first - TOLERANCE) / water_mark_size.third.second), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:101:66 [INFO] [stdout] | [INFO] [stdout] 101 | third: Item::new(((water_mark_size.third.first - TOLERANCE) / water_mark_size.third.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | (water_mark_size.third.first / (water_mark_size.third.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:102:40 [INFO] [stdout] | [INFO] [stdout] 102 | (water_mark_size.third.first / (water_mark_size.third.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:102:71 [INFO] [stdout] | [INFO] [stdout] 102 | (water_mark_size.third.first / (water_mark_size.third.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:103:23 [INFO] [stdout] | [INFO] [stdout] 103 | forth: Item::new(((water_mark_size.forth.first - TOLERANCE) / water_mark_size.forth.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:103:53 [INFO] [stdout] | [INFO] [stdout] 103 | forth: Item::new(((water_mark_size.forth.first - TOLERANCE) / water_mark_size.forth.second), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:103:66 [INFO] [stdout] | [INFO] [stdout] 103 | forth: Item::new(((water_mark_size.forth.first - TOLERANCE) / water_mark_size.forth.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | (water_mark_size.forth.first / (water_mark_size.forth.second + TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:104:40 [INFO] [stdout] | [INFO] [stdout] 104 | (water_mark_size.forth.first / (water_mark_size.forth.second + TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:104:71 [INFO] [stdout] | [INFO] [stdout] 104 | (water_mark_size.forth.first / (water_mark_size.forth.second + TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | fifth: Item::new(((water_mark_size.fifth.first - TOLERANCE) / water_mark_size.fifth.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:105:53 [INFO] [stdout] | [INFO] [stdout] 105 | fifth: Item::new(((water_mark_size.fifth.first - TOLERANCE) / water_mark_size.fifth.second), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:105:66 [INFO] [stdout] | [INFO] [stdout] 105 | fifth: Item::new(((water_mark_size.fifth.first - TOLERANCE) / water_mark_size.fifth.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | (water_mark_size.fifth.first / (water_mark_size.fifth.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `water_mark_size` in this scope [INFO] [stdout] --> src/imagework/mod.rs:106:40 [INFO] [stdout] | [INFO] [stdout] 106 | (water_mark_size.fifth.first / (water_mark_size.fifth.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `water_mark_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOLERANCE` in this scope [INFO] [stdout] --> src/imagework/mod.rs:106:71 [INFO] [stdout] | [INFO] [stdout] 106 | (water_mark_size.fifth.first / (water_mark_size.fifth.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 4 | use TOLERANCE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ptr_i` in this scope [INFO] [stdout] --> src/data_analysis/mod.rs:60:37 [INFO] [stdout] | [INFO] [stdout] 60 | let image = match image::open((*ptr_i).path()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ptr_program_data_root` in this scope [INFO] [stdout] --> src/data_analysis/mod.rs:98:37 [INFO] [stdout] | [INFO] [stdout] 98 | let data_root_path = Path::new(*ptr_program_data_root); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `program_data_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:23:2 [INFO] [stdout] | [INFO] [stdout] 21 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 22 | [INFO] [stdout] 23 | println!("{}", "Please enter a directories!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/imagework/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | first: Item::new((water_mark_size.first.first / (water_mark_size.first.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | (water_mark_size.first.first / (water_mark_size.first.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | second: Item::new((water_mark_size.second.first / (water_mark_size.second.second + TOLERANCE)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | (water_mark_size.second.first / (water_mark_size.second.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | third: Item::new(((water_mark_size.third.first - TOLERANCE) / water_mark_size.third.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | (water_mark_size.third.first / (water_mark_size.third.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | forth: Item::new(((water_mark_size.forth.first - TOLERANCE) / water_mark_size.forth.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | (water_mark_size.forth.first / (water_mark_size.forth.second + TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | fifth: Item::new(((water_mark_size.fifth.first - TOLERANCE) / water_mark_size.fifth.second), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/imagework/mod.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | (water_mark_size.fifth.first / (water_mark_size.fifth.second - TOLERANCE))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/imagework/mod.rs:151:37 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn pixel_operation(&mut self) {; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/imagework/mod.rs:184:33 [INFO] [stdout] | [INFO] [stdout] 184 | let rr: u8 = self.pixel_clamp((nr * 255.0)); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/imagework/mod.rs:185:33 [INFO] [stdout] | [INFO] [stdout] 185 | let rg: u8 = self.pixel_clamp((ng * 255.0)); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/imagework/mod.rs:186:33 [INFO] [stdout] | [INFO] [stdout] 186 | let rb: u8 = self.pixel_clamp((nb * 255.0)); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/imagework/mod.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | inside @ 0f64...255f64 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/imagework/mod.rs:237:18 [INFO] [stdout] | [INFO] [stdout] 237 | for t in (0..max_iterations) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:23:2 [INFO] [stdout] | [INFO] [stdout] 21 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 22 | [INFO] [stdout] 23 | println!("{}", "Please enter a directories!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/data_analysis/mod.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | if num_file >= NUM_THREADS { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `i64`, found `u8` [INFO] [stdout] | help: you can convert an `u8` to `i64`: `NUM_THREADS.into()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 33 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/data_analysis/mod.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | if num_file >= NUM_THREADS { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `i64`, found `u8` [INFO] [stdout] | help: you can convert an `u8` to `i64`: `NUM_THREADS.into()` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_auto_watermark` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 33 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "ebc75548ceec7cf3d707636ca7d086b6161349f5aa7b55c5781eeb0cb21e1b10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebc75548ceec7cf3d707636ca7d086b6161349f5aa7b55c5781eeb0cb21e1b10", kill_on_drop: false }` [INFO] [stdout] ebc75548ceec7cf3d707636ca7d086b6161349f5aa7b55c5781eeb0cb21e1b10