[INFO] cloning repository https://github.com/benjamintoofer/jpeg_encoder.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/benjamintoofer/jpeg_encoder.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamintoofer%2Fjpeg_encoder.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamintoofer%2Fjpeg_encoder.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a5b1d1d9af49cd53a36f7213b15cc66b529636ef [INFO] checking benjamintoofer/jpeg_encoder.rs against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamintoofer%2Fjpeg_encoder.rs" "/workspace/builds/worker-52/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-52/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/benjamintoofer/jpeg_encoder.rs on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/benjamintoofer/jpeg_encoder.rs [INFO] finished tweaking git repo https://github.com/benjamintoofer/jpeg_encoder.rs [INFO] tweaked toml for git repo https://github.com/benjamintoofer/jpeg_encoder.rs written to /workspace/builds/worker-52/source/Cargo.toml [INFO] crate git repo https://github.com/benjamintoofer/jpeg_encoder.rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded strength_reduce v0.2.3 [INFO] [stderr] Downloaded transpose v0.2.1 [INFO] [stderr] Downloaded primal-check v0.3.1 [INFO] [stderr] Downloaded rustdct v0.6.0 [INFO] [stderr] Downloaded rustfft v5.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bbdf8a040ee86af225628c55013abfda078160575d6734281bd3b005f54ae56d [INFO] running `Command { std: "docker" "start" "-a" "bbdf8a040ee86af225628c55013abfda078160575d6734281bd3b005f54ae56d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bbdf8a040ee86af225628c55013abfda078160575d6734281bd3b005f54ae56d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbdf8a040ee86af225628c55013abfda078160575d6734281bd3b005f54ae56d", kill_on_drop: false }` [INFO] [stdout] bbdf8a040ee86af225628c55013abfda078160575d6734281bd3b005f54ae56d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 303eceb4c3dc956c863d1e09d645d6f9ea16f9f51d442364504ed0dee27b6035 [INFO] running `Command { std: "docker" "start" "-a" "303eceb4c3dc956c863d1e09d645d6f9ea16f9f51d442364504ed0dee27b6035", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.93 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking weezl v0.1.5 [INFO] [stderr] Checking strength_reduce v0.2.3 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking bytemuck v1.5.1 [INFO] [stderr] Checking matrixmultiply v0.3.1 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling memoffset v0.6.3 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking gif v0.11.2 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking crossbeam-epoch v0.9.3 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking transpose v0.2.1 [INFO] [stderr] Checking primal-check v0.3.1 [INFO] [stderr] Checking ndarray v0.15.1 [INFO] [stderr] Checking rustfft v5.1.0 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Checking rustdct v0.6.0 [INFO] [stderr] Checking jpeg_encoder v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/jpeg.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (12 fixes) [INFO] [stderr] Fixed src/decoder.rs (1 fix) [INFO] [stdout] warning: value assigned to `length` is never read [INFO] [stdout] --> src/decoder.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut length: u16 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stdout] warning: function is never used: `read_scan_header` [INFO] [stdout] --> src/decoder.rs:178:4 [INFO] [stdout] | [INFO] [stdout] 178 | fn read_scan_header(_scan_data: &[u8])-> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BLOCK_SIZE` [INFO] [stdout] --> src/main.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const BLOCK_SIZE: usize = 8usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `Q_50_luma` [INFO] [stdout] --> src/main.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / const Q_50_luma: [[ i32; 8]; 8] = [ [INFO] [stdout] 18 | | [16, 11, 10, 16, 24, 40, 51, 61], [INFO] [stdout] 19 | | [12, 12, 14, 19, 26, 58, 60, 55], [INFO] [stdout] 20 | | [14, 13, 16, 24, 40, 57, 69, 56], [INFO] [stdout] ... | [INFO] [stdout] 25 | | [72, 92, 95, 98, 112, 100, 103, 99] [INFO] [stdout] 26 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `Q_50_chroma` [INFO] [stdout] --> src/main.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / const Q_50_chroma: [[ i32; 8]; 8] = [ [INFO] [stdout] 29 | | [17, 18, 24, 47, 99, 99, 99, 99], [INFO] [stdout] 30 | | [18, 21, 26, 66, 99, 99, 99, 99], [INFO] [stdout] 31 | | [24, 26, 56, 99, 99, 99, 99, 99], [INFO] [stdout] ... | [INFO] [stdout] 36 | | [99, 99, 99, 99, 99, 99, 99, 99] [INFO] [stdout] 37 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `S` [INFO] [stdout] --> src/main.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / const S: [f32; 8] = [ [INFO] [stdout] 40 | | 0.353553390593273762200422, [INFO] [stdout] 41 | | 0.254897789552079584470970, [INFO] [stdout] 42 | | 0.270598050073098492199862, [INFO] [stdout] ... | [INFO] [stdout] 47 | | 1.281457723870753089398043, [INFO] [stdout] 48 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `A` [INFO] [stdout] --> src/main.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | / const A: [f32; 6] = [ [INFO] [stdout] 51 | | std::f32::NAN, [INFO] [stdout] 52 | | 0.707106781186547524400844, [INFO] [stdout] 53 | | 0.541196100146196984399723, [INFO] [stdout] ... | [INFO] [stdout] 56 | | 0.382683432365089771728460, [INFO] [stdout] 57 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `SubsampleType` [INFO] [stdout] --> src/main.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 58 | enum SubsampleType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_row_divisor` [INFO] [stdout] --> src/main.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_row_divisor(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_col_divisor` [INFO] [stdout] --> src/main.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_col_divisor(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compress_jpeg_brute` [INFO] [stdout] --> src/main.rs:166:4 [INFO] [stdout] | [INFO] [stdout] 166 | fn compress_jpeg_brute() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `transpose` [INFO] [stdout] --> src/main.rs:171:4 [INFO] [stdout] | [INFO] [stdout] 171 | fn transpose(matrix: &[[ f32; BLOCK_SIZE]; BLOCK_SIZE], new_matrix: &mut [[ f32; 8]; 8]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rgb_2_ycrcb` [INFO] [stdout] --> src/main.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn rgb_2_ycrcb(r:u8, b: u8, g:u8) -> [f32; 3] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ycrcb_2_rgb` [INFO] [stdout] --> src/main.rs:197:4 [INFO] [stdout] | [INFO] [stdout] 197 | fn ycrcb_2_rgb(y:f32, cr:f32, cb: f32)-> [f32; 3] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `down_sample` [INFO] [stdout] --> src/main.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn down_sample() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `multiply` [INFO] [stdout] --> src/main.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn multiply(matrix: &'static [[f32; 3]; 3], vector:[f32; 3]) -> [f32; 3] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add` [INFO] [stdout] --> src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn add(vector_a: [f32; 3], vector_b: [f32; 3]) -> [f32; 3] { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `subtract` [INFO] [stdout] --> src/main.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn subtract(vector_a: [f32; 3], vector_b: [f32; 3]) -> [f32; 3] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `apply_discrete_cosine_transform` [INFO] [stdout] --> src/main.rs:238:4 [INFO] [stdout] | [INFO] [stdout] 238 | fn apply_discrete_cosine_transform() -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compress_jpeg_optimal` [INFO] [stdout] --> src/main.rs:248:4 [INFO] [stdout] | [INFO] [stdout] 248 | fn compress_jpeg_optimal() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `JPEGData` [INFO] [stdout] --> src/main.rs:251:8 [INFO] [stdout] | [INFO] [stdout] 251 | struct JPEGData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_byte_pair` [INFO] [stdout] --> src/main.rs:258:12 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn to_byte_pair() -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `entropy_encoding` [INFO] [stdout] --> src/main.rs:262:4 [INFO] [stdout] | [INFO] [stdout] 262 | fn entropy_encoding(_previous_dc: i32, block: [[ i32; 8]; 8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_zigzag` [INFO] [stdout] --> src/main.rs:267:4 [INFO] [stdout] | [INFO] [stdout] 267 | fn get_zigzag(block: &[[ i32; 8]; 8], buffer: &mut [i32; 64]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_quantize_table_quality` [INFO] [stdout] --> src/main.rs:297:4 [INFO] [stdout] | [INFO] [stdout] 297 | fn generate_quantize_table_quality(table: [[ i32; 8]; 8], quality: i32, new_table: &mut [[ i32; 8]; 8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `divide_matrix` [INFO] [stdout] --> src/main.rs:313:4 [INFO] [stdout] | [INFO] [stdout] 313 | fn divide_matrix(matrix_a: &[[ f32; BLOCK_SIZE]; BLOCK_SIZE], matrix_b: &[[ i32; BLOCK_SIZE]; BLOCK_SIZE], matrix_buffer: &mut [[ i32; BL... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `transform` [INFO] [stdout] --> src/main.rs:321:4 [INFO] [stdout] | [INFO] [stdout] 321 | fn transform(vector: &[f32; BLOCK_SIZE]) -> [f32; BLOCK_SIZE] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Q_50_luma` should have an upper case name [INFO] [stdout] --> src/main.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const Q_50_luma: [[ i32; 8]; 8] = [ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `Q_50_LUMA` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Q_50_chroma` should have an upper case name [INFO] [stdout] --> src/main.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const Q_50_chroma: [[ i32; 8]; 8] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `Q_50_CHROMA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `offsetTotal` should have a snake case name [INFO] [stdout] --> src/jpeg.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut offsetTotal = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `offset_total` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `length` is never read [INFO] [stdout] --> src/decoder.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut length: u16 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_scan_header` [INFO] [stdout] --> src/decoder.rs:178:4 [INFO] [stdout] | [INFO] [stdout] 178 | fn read_scan_header(_scan_data: &[u8])-> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BLOCK_SIZE` [INFO] [stdout] --> src/main.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const BLOCK_SIZE: usize = 8usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `Q_50_luma` [INFO] [stdout] --> src/main.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / const Q_50_luma: [[ i32; 8]; 8] = [ [INFO] [stdout] 18 | | [16, 11, 10, 16, 24, 40, 51, 61], [INFO] [stdout] 19 | | [12, 12, 14, 19, 26, 58, 60, 55], [INFO] [stdout] 20 | | [14, 13, 16, 24, 40, 57, 69, 56], [INFO] [stdout] ... | [INFO] [stdout] 25 | | [72, 92, 95, 98, 112, 100, 103, 99] [INFO] [stdout] 26 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `Q_50_chroma` [INFO] [stdout] --> src/main.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / const Q_50_chroma: [[ i32; 8]; 8] = [ [INFO] [stdout] 29 | | [17, 18, 24, 47, 99, 99, 99, 99], [INFO] [stdout] 30 | | [18, 21, 26, 66, 99, 99, 99, 99], [INFO] [stdout] 31 | | [24, 26, 56, 99, 99, 99, 99, 99], [INFO] [stdout] ... | [INFO] [stdout] 36 | | [99, 99, 99, 99, 99, 99, 99, 99] [INFO] [stdout] 37 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `S` [INFO] [stdout] --> src/main.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / const S: [f32; 8] = [ [INFO] [stdout] 40 | | 0.353553390593273762200422, [INFO] [stdout] 41 | | 0.254897789552079584470970, [INFO] [stdout] 42 | | 0.270598050073098492199862, [INFO] [stdout] ... | [INFO] [stdout] 47 | | 1.281457723870753089398043, [INFO] [stdout] 48 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `A` [INFO] [stdout] --> src/main.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | / const A: [f32; 6] = [ [INFO] [stdout] 51 | | std::f32::NAN, [INFO] [stdout] 52 | | 0.707106781186547524400844, [INFO] [stdout] 53 | | 0.541196100146196984399723, [INFO] [stdout] ... | [INFO] [stdout] 56 | | 0.382683432365089771728460, [INFO] [stdout] 57 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `SubsampleType` [INFO] [stdout] --> src/main.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 58 | enum SubsampleType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_row_divisor` [INFO] [stdout] --> src/main.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_row_divisor(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_col_divisor` [INFO] [stdout] --> src/main.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_col_divisor(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compress_jpeg_brute` [INFO] [stdout] --> src/main.rs:166:4 [INFO] [stdout] | [INFO] [stdout] 166 | fn compress_jpeg_brute() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `transpose` [INFO] [stdout] --> src/main.rs:171:4 [INFO] [stdout] | [INFO] [stdout] 171 | fn transpose(matrix: &[[ f32; BLOCK_SIZE]; BLOCK_SIZE], new_matrix: &mut [[ f32; 8]; 8]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rgb_2_ycrcb` [INFO] [stdout] --> src/main.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn rgb_2_ycrcb(r:u8, b: u8, g:u8) -> [f32; 3] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ycrcb_2_rgb` [INFO] [stdout] --> src/main.rs:197:4 [INFO] [stdout] | [INFO] [stdout] 197 | fn ycrcb_2_rgb(y:f32, cr:f32, cb: f32)-> [f32; 3] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `down_sample` [INFO] [stdout] --> src/main.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn down_sample() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `multiply` [INFO] [stdout] --> src/main.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn multiply(matrix: &'static [[f32; 3]; 3], vector:[f32; 3]) -> [f32; 3] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add` [INFO] [stdout] --> src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn add(vector_a: [f32; 3], vector_b: [f32; 3]) -> [f32; 3] { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `subtract` [INFO] [stdout] --> src/main.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn subtract(vector_a: [f32; 3], vector_b: [f32; 3]) -> [f32; 3] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `apply_discrete_cosine_transform` [INFO] [stdout] --> src/main.rs:238:4 [INFO] [stdout] | [INFO] [stdout] 238 | fn apply_discrete_cosine_transform() -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compress_jpeg_optimal` [INFO] [stdout] --> src/main.rs:248:4 [INFO] [stdout] | [INFO] [stdout] 248 | fn compress_jpeg_optimal() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `JPEGData` [INFO] [stdout] --> src/main.rs:251:8 [INFO] [stdout] | [INFO] [stdout] 251 | struct JPEGData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_byte_pair` [INFO] [stdout] --> src/main.rs:258:12 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn to_byte_pair() -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `entropy_encoding` [INFO] [stdout] --> src/main.rs:262:4 [INFO] [stdout] | [INFO] [stdout] 262 | fn entropy_encoding(_previous_dc: i32, block: [[ i32; 8]; 8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_zigzag` [INFO] [stdout] --> src/main.rs:267:4 [INFO] [stdout] | [INFO] [stdout] 267 | fn get_zigzag(block: &[[ i32; 8]; 8], buffer: &mut [i32; 64]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_quantize_table_quality` [INFO] [stdout] --> src/main.rs:297:4 [INFO] [stdout] | [INFO] [stdout] 297 | fn generate_quantize_table_quality(table: [[ i32; 8]; 8], quality: i32, new_table: &mut [[ i32; 8]; 8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `divide_matrix` [INFO] [stdout] --> src/main.rs:313:4 [INFO] [stdout] | [INFO] [stdout] 313 | fn divide_matrix(matrix_a: &[[ f32; BLOCK_SIZE]; BLOCK_SIZE], matrix_b: &[[ i32; BLOCK_SIZE]; BLOCK_SIZE], matrix_buffer: &mut [[ i32; BL... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `transform` [INFO] [stdout] --> src/main.rs:321:4 [INFO] [stdout] | [INFO] [stdout] 321 | fn transform(vector: &[f32; BLOCK_SIZE]) -> [f32; BLOCK_SIZE] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Q_50_luma` should have an upper case name [INFO] [stdout] --> src/main.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const Q_50_luma: [[ i32; 8]; 8] = [ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `Q_50_LUMA` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Q_50_chroma` should have an upper case name [INFO] [stdout] --> src/main.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const Q_50_chroma: [[ i32; 8]; 8] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `Q_50_CHROMA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `offsetTotal` should have a snake case name [INFO] [stdout] --> src/jpeg.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut offsetTotal = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `offset_total` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 15.67s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking jpeg_encoder v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: value assigned to `length` is never read [INFO] [stdout] --> src/decoder.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut length: u16 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `length` is never read [INFO] [stdout] --> src/decoder.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut length: u16 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_scan_header` [INFO] [stdout] --> src/decoder.rs:178:4 [INFO] [stdout] | [INFO] [stdout] 178 | fn read_scan_header(_scan_data: &[u8])-> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BLOCK_SIZE` [INFO] [stdout] --> src/main.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const BLOCK_SIZE: usize = 8usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `Q_50_luma` [INFO] [stdout] --> src/main.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / const Q_50_luma: [[ i32; 8]; 8] = [ [INFO] [stdout] 18 | | [16, 11, 10, 16, 24, 40, 51, 61], [INFO] [stdout] 19 | | [12, 12, 14, 19, 26, 58, 60, 55], [INFO] [stdout] 20 | | [14, 13, 16, 24, 40, 57, 69, 56], [INFO] [stdout] ... | [INFO] [stdout] 25 | | [72, 92, 95, 98, 112, 100, 103, 99] [INFO] [stdout] 26 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `Q_50_chroma` [INFO] [stdout] --> src/main.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / const Q_50_chroma: [[ i32; 8]; 8] = [ [INFO] [stdout] 29 | | [17, 18, 24, 47, 99, 99, 99, 99], [INFO] [stdout] 30 | | [18, 21, 26, 66, 99, 99, 99, 99], [INFO] [stdout] 31 | | [24, 26, 56, 99, 99, 99, 99, 99], [INFO] [stdout] ... | [INFO] [stdout] 36 | | [99, 99, 99, 99, 99, 99, 99, 99] [INFO] [stdout] 37 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `S` [INFO] [stdout] --> src/main.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / const S: [f32; 8] = [ [INFO] [stdout] 40 | | 0.353553390593273762200422, [INFO] [stdout] 41 | | 0.254897789552079584470970, [INFO] [stdout] 42 | | 0.270598050073098492199862, [INFO] [stdout] ... | [INFO] [stdout] 47 | | 1.281457723870753089398043, [INFO] [stdout] 48 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `A` [INFO] [stdout] --> src/main.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | / const A: [f32; 6] = [ [INFO] [stdout] 51 | | std::f32::NAN, [INFO] [stdout] 52 | | 0.707106781186547524400844, [INFO] [stdout] 53 | | 0.541196100146196984399723, [INFO] [stdout] ... | [INFO] [stdout] 56 | | 0.382683432365089771728460, [INFO] [stdout] 57 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `SubsampleType` [INFO] [stdout] --> src/main.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 58 | enum SubsampleType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_row_divisor` [INFO] [stdout] --> src/main.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_row_divisor(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_col_divisor` [INFO] [stdout] --> src/main.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_col_divisor(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compress_jpeg_brute` [INFO] [stdout] --> src/main.rs:166:4 [INFO] [stdout] | [INFO] [stdout] 166 | fn compress_jpeg_brute() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `transpose` [INFO] [stdout] --> src/main.rs:171:4 [INFO] [stdout] | [INFO] [stdout] 171 | fn transpose(matrix: &[[ f32; BLOCK_SIZE]; BLOCK_SIZE], new_matrix: &mut [[ f32; 8]; 8]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rgb_2_ycrcb` [INFO] [stdout] --> src/main.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn rgb_2_ycrcb(r:u8, b: u8, g:u8) -> [f32; 3] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ycrcb_2_rgb` [INFO] [stdout] --> src/main.rs:197:4 [INFO] [stdout] | [INFO] [stdout] 197 | fn ycrcb_2_rgb(y:f32, cr:f32, cb: f32)-> [f32; 3] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `down_sample` [INFO] [stdout] --> src/main.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn down_sample() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `multiply` [INFO] [stdout] --> src/main.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn multiply(matrix: &'static [[f32; 3]; 3], vector:[f32; 3]) -> [f32; 3] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add` [INFO] [stdout] --> src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn add(vector_a: [f32; 3], vector_b: [f32; 3]) -> [f32; 3] { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `subtract` [INFO] [stdout] --> src/main.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn subtract(vector_a: [f32; 3], vector_b: [f32; 3]) -> [f32; 3] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `apply_discrete_cosine_transform` [INFO] [stdout] --> src/main.rs:238:4 [INFO] [stdout] | [INFO] [stdout] 238 | fn apply_discrete_cosine_transform() -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compress_jpeg_optimal` [INFO] [stdout] --> src/main.rs:248:4 [INFO] [stdout] | [INFO] [stdout] 248 | fn compress_jpeg_optimal() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `JPEGData` [INFO] [stdout] --> src/main.rs:251:8 [INFO] [stdout] | [INFO] [stdout] 251 | struct JPEGData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_byte_pair` [INFO] [stdout] --> src/main.rs:258:12 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn to_byte_pair() -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `entropy_encoding` [INFO] [stdout] --> src/main.rs:262:4 [INFO] [stdout] | [INFO] [stdout] 262 | fn entropy_encoding(_previous_dc: i32, block: [[ i32; 8]; 8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_zigzag` [INFO] [stdout] --> src/main.rs:267:4 [INFO] [stdout] | [INFO] [stdout] 267 | fn get_zigzag(block: &[[ i32; 8]; 8], buffer: &mut [i32; 64]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_quantize_table_quality` [INFO] [stdout] --> src/main.rs:297:4 [INFO] [stdout] | [INFO] [stdout] 297 | fn generate_quantize_table_quality(table: [[ i32; 8]; 8], quality: i32, new_table: &mut [[ i32; 8]; 8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `divide_matrix` [INFO] [stdout] --> src/main.rs:313:4 [INFO] [stdout] | [INFO] [stdout] 313 | fn divide_matrix(matrix_a: &[[ f32; BLOCK_SIZE]; BLOCK_SIZE], matrix_b: &[[ i32; BLOCK_SIZE]; BLOCK_SIZE], matrix_buffer: &mut [[ i32; BL... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `transform` [INFO] [stdout] --> src/main.rs:321:4 [INFO] [stdout] | [INFO] [stdout] 321 | fn transform(vector: &[f32; BLOCK_SIZE]) -> [f32; BLOCK_SIZE] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Q_50_luma` should have an upper case name [INFO] [stdout] --> src/main.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const Q_50_luma: [[ i32; 8]; 8] = [ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `Q_50_LUMA` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Q_50_chroma` should have an upper case name [INFO] [stdout] --> src/main.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const Q_50_chroma: [[ i32; 8]; 8] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `Q_50_CHROMA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `offsetTotal` should have a snake case name [INFO] [stdout] --> src/jpeg.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut offsetTotal = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `offset_total` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_scan_header` [INFO] [stdout] --> src/decoder.rs:178:4 [INFO] [stdout] | [INFO] [stdout] 178 | fn read_scan_header(_scan_data: &[u8])-> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BLOCK_SIZE` [INFO] [stdout] --> src/main.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const BLOCK_SIZE: usize = 8usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `Q_50_luma` [INFO] [stdout] --> src/main.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / const Q_50_luma: [[ i32; 8]; 8] = [ [INFO] [stdout] 18 | | [16, 11, 10, 16, 24, 40, 51, 61], [INFO] [stdout] 19 | | [12, 12, 14, 19, 26, 58, 60, 55], [INFO] [stdout] 20 | | [14, 13, 16, 24, 40, 57, 69, 56], [INFO] [stdout] ... | [INFO] [stdout] 25 | | [72, 92, 95, 98, 112, 100, 103, 99] [INFO] [stdout] 26 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `Q_50_chroma` [INFO] [stdout] --> src/main.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / const Q_50_chroma: [[ i32; 8]; 8] = [ [INFO] [stdout] 29 | | [17, 18, 24, 47, 99, 99, 99, 99], [INFO] [stdout] 30 | | [18, 21, 26, 66, 99, 99, 99, 99], [INFO] [stdout] 31 | | [24, 26, 56, 99, 99, 99, 99, 99], [INFO] [stdout] ... | [INFO] [stdout] 36 | | [99, 99, 99, 99, 99, 99, 99, 99] [INFO] [stdout] 37 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `S` [INFO] [stdout] --> src/main.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / const S: [f32; 8] = [ [INFO] [stdout] 40 | | 0.353553390593273762200422, [INFO] [stdout] 41 | | 0.254897789552079584470970, [INFO] [stdout] 42 | | 0.270598050073098492199862, [INFO] [stdout] ... | [INFO] [stdout] 47 | | 1.281457723870753089398043, [INFO] [stdout] 48 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `A` [INFO] [stdout] --> src/main.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | / const A: [f32; 6] = [ [INFO] [stdout] 51 | | std::f32::NAN, [INFO] [stdout] 52 | | 0.707106781186547524400844, [INFO] [stdout] 53 | | 0.541196100146196984399723, [INFO] [stdout] ... | [INFO] [stdout] 56 | | 0.382683432365089771728460, [INFO] [stdout] 57 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `SubsampleType` [INFO] [stdout] --> src/main.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 58 | enum SubsampleType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_row_divisor` [INFO] [stdout] --> src/main.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_row_divisor(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_col_divisor` [INFO] [stdout] --> src/main.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_col_divisor(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compress_jpeg_brute` [INFO] [stdout] --> src/main.rs:166:4 [INFO] [stdout] | [INFO] [stdout] 166 | fn compress_jpeg_brute() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `transpose` [INFO] [stdout] --> src/main.rs:171:4 [INFO] [stdout] | [INFO] [stdout] 171 | fn transpose(matrix: &[[ f32; BLOCK_SIZE]; BLOCK_SIZE], new_matrix: &mut [[ f32; 8]; 8]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rgb_2_ycrcb` [INFO] [stdout] --> src/main.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn rgb_2_ycrcb(r:u8, b: u8, g:u8) -> [f32; 3] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ycrcb_2_rgb` [INFO] [stdout] --> src/main.rs:197:4 [INFO] [stdout] | [INFO] [stdout] 197 | fn ycrcb_2_rgb(y:f32, cr:f32, cb: f32)-> [f32; 3] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `down_sample` [INFO] [stdout] --> src/main.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn down_sample() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `multiply` [INFO] [stdout] --> src/main.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn multiply(matrix: &'static [[f32; 3]; 3], vector:[f32; 3]) -> [f32; 3] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add` [INFO] [stdout] --> src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn add(vector_a: [f32; 3], vector_b: [f32; 3]) -> [f32; 3] { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `subtract` [INFO] [stdout] --> src/main.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn subtract(vector_a: [f32; 3], vector_b: [f32; 3]) -> [f32; 3] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `apply_discrete_cosine_transform` [INFO] [stdout] --> src/main.rs:238:4 [INFO] [stdout] | [INFO] [stdout] 238 | fn apply_discrete_cosine_transform() -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compress_jpeg_optimal` [INFO] [stdout] --> src/main.rs:248:4 [INFO] [stdout] | [INFO] [stdout] 248 | fn compress_jpeg_optimal() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `JPEGData` [INFO] [stdout] --> src/main.rs:251:8 [INFO] [stdout] | [INFO] [stdout] 251 | struct JPEGData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_byte_pair` [INFO] [stdout] --> src/main.rs:258:12 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn to_byte_pair() -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `entropy_encoding` [INFO] [stdout] --> src/main.rs:262:4 [INFO] [stdout] | [INFO] [stdout] 262 | fn entropy_encoding(_previous_dc: i32, block: [[ i32; 8]; 8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_zigzag` [INFO] [stdout] --> src/main.rs:267:4 [INFO] [stdout] | [INFO] [stdout] 267 | fn get_zigzag(block: &[[ i32; 8]; 8], buffer: &mut [i32; 64]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_quantize_table_quality` [INFO] [stdout] --> src/main.rs:297:4 [INFO] [stdout] | [INFO] [stdout] 297 | fn generate_quantize_table_quality(table: [[ i32; 8]; 8], quality: i32, new_table: &mut [[ i32; 8]; 8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `divide_matrix` [INFO] [stdout] --> src/main.rs:313:4 [INFO] [stdout] | [INFO] [stdout] 313 | fn divide_matrix(matrix_a: &[[ f32; BLOCK_SIZE]; BLOCK_SIZE], matrix_b: &[[ i32; BLOCK_SIZE]; BLOCK_SIZE], matrix_buffer: &mut [[ i32; BL... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `transform` [INFO] [stdout] --> src/main.rs:321:4 [INFO] [stdout] | [INFO] [stdout] 321 | fn transform(vector: &[f32; BLOCK_SIZE]) -> [f32; BLOCK_SIZE] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Q_50_luma` should have an upper case name [INFO] [stdout] --> src/main.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const Q_50_luma: [[ i32; 8]; 8] = [ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `Q_50_LUMA` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Q_50_chroma` should have an upper case name [INFO] [stdout] --> src/main.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const Q_50_chroma: [[ i32; 8]; 8] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `Q_50_CHROMA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `offsetTotal` should have a snake case name [INFO] [stdout] --> src/jpeg.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut offsetTotal = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `offset_total` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.83s [INFO] running `Command { std: "docker" "inspect" "303eceb4c3dc956c863d1e09d645d6f9ea16f9f51d442364504ed0dee27b6035", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "303eceb4c3dc956c863d1e09d645d6f9ea16f9f51d442364504ed0dee27b6035", kill_on_drop: false }` [INFO] [stdout] 303eceb4c3dc956c863d1e09d645d6f9ea16f9f51d442364504ed0dee27b6035