[INFO] cloning repository https://github.com/uek-1/pngpeg [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/uek-1/pngpeg" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuek-1%2Fpngpeg", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuek-1%2Fpngpeg'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a7efed94148a71fb192cba9786048a2b02451edc [INFO] checking uek-1/pngpeg against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuek-1%2Fpngpeg" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/uek-1/pngpeg on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/uek-1/pngpeg [INFO] finished tweaking git repo https://github.com/uek-1/pngpeg [INFO] tweaked toml for git repo https://github.com/uek-1/pngpeg written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/uek-1/pngpeg already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 848dd60b7990dc5c2b99aae61982482da28ec188794f05723cfe10a8bfd8149c [INFO] running `Command { std: "docker" "start" "-a" "848dd60b7990dc5c2b99aae61982482da28ec188794f05723cfe10a8bfd8149c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "848dd60b7990dc5c2b99aae61982482da28ec188794f05723cfe10a8bfd8149c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "848dd60b7990dc5c2b99aae61982482da28ec188794f05723cfe10a8bfd8149c", kill_on_drop: false }` [INFO] [stdout] 848dd60b7990dc5c2b99aae61982482da28ec188794f05723cfe10a8bfd8149c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 34c25a282290cef4f5a04f5c2ddc7e4e176f0d9b2c420ac703d67b97a69bd714 [INFO] running `Command { std: "docker" "start" "-a" "34c25a282290cef4f5a04f5c2ddc7e4e176f0d9b2c420ac703d67b97a69bd714", kill_on_drop: false }` [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking pngpeg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ColorType`, `Pixel` [INFO] [stdout] --> src/jpeg.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{pixel::{Pixel, Pixels, ColorType}, png::DecPng}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/jpeg.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> src/jpeg.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecJpeg`, `EncJpeg` [INFO] [stdout] --> src/main.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use jpeg::{EncJpeg, DecJpeg}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ColorType`, `Pixel` [INFO] [stdout] --> src/jpeg.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{pixel::{Pixel, Pixels, ColorType}, png::DecPng}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/jpeg.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> src/jpeg.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecJpeg`, `EncJpeg` [INFO] [stdout] --> src/main.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use jpeg::{EncJpeg, DecJpeg}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixels` [INFO] [stdout] --> src/jpeg.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | fn from(pixels : Pixels) -> JpegBlocks { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pixels` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blocks` [INFO] [stdout] --> src/jpeg.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let blocks = JpegBlocks::from(subsampled); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zig_zag` [INFO] [stdout] --> src/utils.rs:992:27 [INFO] [stdout] | [INFO] [stdout] 992 | pub fn create_jpeg_stream(zig_zag: Vec, prev_dc : i32) -> Vec { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_zig_zag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_dc` [INFO] [stdout] --> src/utils.rs:992:46 [INFO] [stdout] | [INFO] [stdout] 992 | pub fn create_jpeg_stream(zig_zag: Vec, prev_dc : i32) -> Vec { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_dc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subtracted` [INFO] [stdout] --> src/utils.rs:1093:13 [INFO] [stdout] | [INFO] [stdout] 1093 | let subtracted = matrix.subtract_amount(5); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subtracted` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils.rs:1085:13 [INFO] [stdout] | [INFO] [stdout] 1085 | let mut count : u8 = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixels` [INFO] [stdout] --> src/jpeg.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | fn from(pixels : Pixels) -> JpegBlocks { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pixels` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Png` is never used [INFO] [stdout] --> src/png.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Png { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_scanlines` are never used [INFO] [stdout] --> src/png.rs:271:12 [INFO] [stdout] | [INFO] [stdout] 270 | impl DecPng { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 271 | pub fn new() -> DecPng { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub fn set_scanlines(&mut self, scanlines: Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `luma`, `diff_blue`, and `diff_red` are never read [INFO] [stdout] --> src/jpeg.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct JpegBlock { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | luma : Vec>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | diff_blue : Vec>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | diff_red : Vec>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/jpeg.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl JpegBlock { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(luma : Vec>, diff_blue : Vec>, diff_red : Vec>) -> JpegBlock { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/jpeg.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct JpegBlocks(Vec); [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 22 | pub struct JpegBlocks(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_to_path` is never used [INFO] [stdout] --> src/jpeg.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl EncJpeg { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 38 | pub fn write_to_path(&self, path : String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_jpeg_test` is never used [INFO] [stdout] --> src/jpeg.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 173 | fn write_jpeg_test() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_current_byte` is never used [INFO] [stdout] --> src/utils.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Bits { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn print_current_byte(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dct` is never used [INFO] [stdout] --> src/utils.rs:881:8 [INFO] [stdout] | [INFO] [stdout] 881 | pub fn dct(block: Vec>) -> Vec> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blocks` [INFO] [stdout] --> src/jpeg.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let blocks = JpegBlocks::from(subsampled); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quantize_luma` is never used [INFO] [stdout] --> src/utils.rs:915:8 [INFO] [stdout] | [INFO] [stdout] 915 | pub fn quantize_luma(block: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quantize_chrom` is never used [INFO] [stdout] --> src/utils.rs:941:8 [INFO] [stdout] | [INFO] [stdout] 941 | pub fn quantize_chrom(block: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_jpeg_stream` is never used [INFO] [stdout] --> src/utils.rs:992:8 [INFO] [stdout] | [INFO] [stdout] 992 | pub fn create_jpeg_stream(zig_zag: Vec, prev_dc : i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SubtractAmount` is never used [INFO] [stdout] --> src/utils.rs:1039:7 [INFO] [stdout] | [INFO] [stdout] 1039 | trait SubtractAmount { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `MatrixMultiply` is never used [INFO] [stdout] --> src/utils.rs:1043:7 [INFO] [stdout] | [INFO] [stdout] 1043 | trait MatrixMultiply + Add + From + Copy> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_dct` is never used [INFO] [stdout] --> src/utils.rs:1083:8 [INFO] [stdout] | [INFO] [stdout] 1083 | fn check_dct() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `channels` is never read [INFO] [stdout] --> src/pixel.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Pixel { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 39 | color_type : ColorType, [INFO] [stdout] 40 | channels : usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pixel` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/jpeg.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | std::fs::write(path, write_bytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 129 | let _ = std::fs::write(path, write_bytes); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zig_zag` [INFO] [stdout] --> src/utils.rs:992:27 [INFO] [stdout] | [INFO] [stdout] 992 | pub fn create_jpeg_stream(zig_zag: Vec, prev_dc : i32) -> Vec { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_zig_zag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_dc` [INFO] [stdout] --> src/utils.rs:992:46 [INFO] [stdout] | [INFO] [stdout] 992 | pub fn create_jpeg_stream(zig_zag: Vec, prev_dc : i32) -> Vec { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_dc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Png` is never used [INFO] [stdout] --> src/png.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Png { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_scanlines` are never used [INFO] [stdout] --> src/png.rs:271:12 [INFO] [stdout] | [INFO] [stdout] 270 | impl DecPng { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 271 | pub fn new() -> DecPng { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub fn set_scanlines(&mut self, scanlines: Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `luma`, `diff_blue`, and `diff_red` are never read [INFO] [stdout] --> src/jpeg.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct JpegBlock { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | luma : Vec>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | diff_blue : Vec>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | diff_red : Vec>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/jpeg.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl JpegBlock { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(luma : Vec>, diff_blue : Vec>, diff_red : Vec>) -> JpegBlock { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/jpeg.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct JpegBlocks(Vec); [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 22 | pub struct JpegBlocks(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_to_path` is never used [INFO] [stdout] --> src/jpeg.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl EncJpeg { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 38 | pub fn write_to_path(&self, path : String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_bits` and `print_current_byte` are never used [INFO] [stdout] --> src/utils.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Bits { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn write_bits(&mut self, input: u32, num : usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn print_current_byte(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_dct_matrix` is never used [INFO] [stdout] --> src/utils.rs:868:4 [INFO] [stdout] | [INFO] [stdout] 868 | fn generate_dct_matrix() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dct` is never used [INFO] [stdout] --> src/utils.rs:881:8 [INFO] [stdout] | [INFO] [stdout] 881 | pub fn dct(block: Vec>) -> Vec> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quantize_luma` is never used [INFO] [stdout] --> src/utils.rs:915:8 [INFO] [stdout] | [INFO] [stdout] 915 | pub fn quantize_luma(block: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quantize_chrom` is never used [INFO] [stdout] --> src/utils.rs:941:8 [INFO] [stdout] | [INFO] [stdout] 941 | pub fn quantize_chrom(block: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `zig_zag` is never used [INFO] [stdout] --> src/utils.rs:968:8 [INFO] [stdout] | [INFO] [stdout] 968 | pub fn zig_zag(matrix : Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_jpeg_stream` is never used [INFO] [stdout] --> src/utils.rs:992:8 [INFO] [stdout] | [INFO] [stdout] 992 | pub fn create_jpeg_stream(zig_zag: Vec, prev_dc : i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SubtractAmount` is never used [INFO] [stdout] --> src/utils.rs:1039:7 [INFO] [stdout] | [INFO] [stdout] 1039 | trait SubtractAmount { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `MatrixMultiply` is never used [INFO] [stdout] --> src/utils.rs:1043:7 [INFO] [stdout] | [INFO] [stdout] 1043 | trait MatrixMultiply + Add + From + Copy> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Transpose` is never used [INFO] [stdout] --> src/utils.rs:1052:7 [INFO] [stdout] | [INFO] [stdout] 1052 | trait Transpose { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `channels` is never read [INFO] [stdout] --> src/pixel.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Pixel { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 39 | color_type : ColorType, [INFO] [stdout] 40 | channels : usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pixel` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/jpeg.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | std::fs::write(path, write_bytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 129 | let _ = std::fs::write(path, write_bytes); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.79s [INFO] running `Command { std: "docker" "inspect" "34c25a282290cef4f5a04f5c2ddc7e4e176f0d9b2c420ac703d67b97a69bd714", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34c25a282290cef4f5a04f5c2ddc7e4e176f0d9b2c420ac703d67b97a69bd714", kill_on_drop: false }` [INFO] [stdout] 34c25a282290cef4f5a04f5c2ddc7e4e176f0d9b2c420ac703d67b97a69bd714