[INFO] cloning repository https://github.com/kyasu1/rust-ptouch-usb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kyasu1/rust-ptouch-usb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyasu1%2Frust-ptouch-usb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyasu1%2Frust-ptouch-usb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a24557dc82efbc231c2fa4be43e16eebca668187 [INFO] checking kyasu1/rust-ptouch-usb against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyasu1%2Frust-ptouch-usb" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kyasu1/rust-ptouch-usb 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/kyasu1/rust-ptouch-usb [INFO] finished tweaking git repo https://github.com/kyasu1/rust-ptouch-usb [INFO] tweaked toml for git repo https://github.com/kyasu1/rust-ptouch-usb written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kyasu1/rust-ptouch-usb 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crossbeam-utils v0.8.0 [INFO] [stderr] Downloaded weezl v0.1.2 [INFO] [stderr] Downloaded thiserror-impl v1.0.21 [INFO] [stderr] Downloaded checked_int_cast v1.0.0 [INFO] [stderr] Downloaded const_fn v0.4.2 [INFO] [stderr] Downloaded thiserror v1.0.21 [INFO] [stderr] Downloaded humantime v2.0.1 [INFO] [stderr] Downloaded qrcode v0.12.0 [INFO] [stderr] Downloaded env_logger v0.8.1 [INFO] [stderr] Downloaded libusb1-sys v0.4.2 [INFO] [stderr] Downloaded crossbeam-epoch v0.9.0 [INFO] [stderr] Downloaded rusb v0.6.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] def4c42df3b88d4c175a5390a02925aebbbfb5cf42c9b77b0d5328cec0f909df [INFO] running `Command { std: "docker" "start" "-a" "def4c42df3b88d4c175a5390a02925aebbbfb5cf42c9b77b0d5328cec0f909df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "def4c42df3b88d4c175a5390a02925aebbbfb5cf42c9b77b0d5328cec0f909df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "def4c42df3b88d4c175a5390a02925aebbbfb5cf42c9b77b0d5328cec0f909df", kill_on_drop: false }` [INFO] [stdout] def4c42df3b88d4c175a5390a02925aebbbfb5cf42c9b77b0d5328cec0f909df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 398c2c10c1127019b0e889d858af7f4a2b6dd43945d6280b88ceb16cfc84cb0b [INFO] running `Command { std: "docker" "start" "-a" "398c2c10c1127019b0e889d858af7f4a2b6dd43945d6280b88ceb16cfc84cb0b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling const_fn v0.4.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.0 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling rle-decode-fast v1.0.1 [INFO] [stderr] Compiling libflate_lz77 v1.0.0 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling libflate v1.0.3 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Compiling filetime v0.2.12 [INFO] [stderr] Compiling xattr v0.2.2 [INFO] [stderr] Checking crossbeam-epoch v0.9.0 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Compiling tar v0.4.30 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Compiling cc v1.0.61 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling num-rational v0.3.0 [INFO] [stderr] Checking weezl v0.1.2 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Compiling libusb1-sys v0.4.2 [INFO] [stderr] Checking aho-corasick v0.7.14 [INFO] [stderr] Checking gif v0.11.1 [INFO] [stderr] Checking png v0.16.7 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking regex-syntax v0.6.20 [INFO] [stderr] Checking bytemuck v1.4.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking checked_int_cast v1.0.0 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking humantime v2.0.1 [INFO] [stderr] Checking rusb v0.6.5 [INFO] [stderr] Checking regex v1.4.1 [INFO] [stderr] Compiling thiserror-impl v1.0.21 [INFO] [stderr] Checking jpeg-decoder v0.1.20 [INFO] [stderr] Checking tiff v0.6.0 [INFO] [stderr] Checking env_logger v0.8.1 [INFO] [stderr] Checking image v0.23.11 [INFO] [stderr] Checking thiserror v1.0.21 [INFO] [stderr] Checking ptouch v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `rusb` is imported redundantly [INFO] [stdout] --> src/error.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rusb; [INFO] [stdout] | ^^^^ the item `rusb` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::media::Media` [INFO] [stdout] --> src/model.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::media::Media; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | 0x47 => (Self::QL600), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - 0x47 => (Self::QL600), [INFO] [stdout] 28 + 0x47 => Self::QL600, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | 0x37 => (Self::QL720NW), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - 0x37 => (Self::QL720NW), [INFO] [stdout] 29 + 0x37 => Self::QL720NW, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | 0x38 => (Self::QL800), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - 0x38 => (Self::QL800), [INFO] [stdout] 30 + 0x38 => Self::QL800, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | 0x39 => (Self::QL810W), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - 0x39 => (Self::QL810W), [INFO] [stdout] 31 + 0x39 => Self::QL810W, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | 0x41 => (Self::QL820NWB), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - 0x41 => (Self::QL820NWB), [INFO] [stdout] 32 + 0x41 => Self::QL820NWB, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | 0x43 => (Self::QL1100), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - 0x43 => (Self::QL1100), [INFO] [stdout] 33 + 0x43 => Self::QL1100, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | 0x44 => (Self::QL1110NWB), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 34 - 0x44 => (Self::QL1110NWB), [INFO] [stdout] 34 + 0x44 => Self::QL1110NWB, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | 0x45 => (Self::QL1115NWB), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 35 - 0x45 => (Self::QL1115NWB), [INFO] [stdout] 35 + 0x45 => Self::QL1115NWB, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/printer.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, info, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mm` and `dots` are never read [INFO] [stdout] --> src/media.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | struct MediaSize { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 38 | mm: f32, [INFO] [stdout] | ^^ [INFO] [stdout] 39 | dots: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left`, `effective`, and `right` are never read [INFO] [stdout] --> src/media.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct Width { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 43 | mm: u8, [INFO] [stdout] 44 | left: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 45 | effective: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 46 | right: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dots` is never read [INFO] [stdout] --> src/media.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | struct Length { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 50 | mm: u8, [INFO] [stdout] 51 | dots: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `margin`, and `offset` are never read [INFO] [stdout] --> src/media.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct MediaSpec { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 55 | id: u16, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 58 | margin: MediaSize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 59 | offset: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config`, `iface`, and `setting` are never read [INFO] [stdout] --> src/printer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Endpoint { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 14 | config: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | iface: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | setting: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Endpoint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `model`, `error`, `mode`, `status_type`, `notification`, and `id` are never read [INFO] [stdout] --> src/printer.rs:372:5 [INFO] [stdout] | [INFO] [stdout] 371 | pub struct Status { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 372 | model: Model, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 373 | error: PrinterError, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 374 | media: Option, [INFO] [stdout] 375 | mode: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 376 | status_type: StatusType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 377 | phase: Phase, [INFO] [stdout] 378 | notification: Notification, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 379 | id: u8, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking qrcode v0.12.0 [INFO] [stdout] warning: the item `rusb` is imported redundantly [INFO] [stdout] --> src/error.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rusb; [INFO] [stdout] | ^^^^ the item `rusb` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::media::Media` [INFO] [stdout] --> src/model.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::media::Media; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | 0x47 => (Self::QL600), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - 0x47 => (Self::QL600), [INFO] [stdout] 28 + 0x47 => Self::QL600, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | 0x37 => (Self::QL720NW), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - 0x37 => (Self::QL720NW), [INFO] [stdout] 29 + 0x37 => Self::QL720NW, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | 0x38 => (Self::QL800), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - 0x38 => (Self::QL800), [INFO] [stdout] 30 + 0x38 => Self::QL800, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | 0x39 => (Self::QL810W), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - 0x39 => (Self::QL810W), [INFO] [stdout] 31 + 0x39 => Self::QL810W, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | 0x41 => (Self::QL820NWB), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - 0x41 => (Self::QL820NWB), [INFO] [stdout] 32 + 0x41 => Self::QL820NWB, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | 0x43 => (Self::QL1100), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - 0x43 => (Self::QL1100), [INFO] [stdout] 33 + 0x43 => Self::QL1100, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | 0x44 => (Self::QL1110NWB), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 34 - 0x44 => (Self::QL1110NWB), [INFO] [stdout] 34 + 0x44 => Self::QL1110NWB, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/model.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | 0x45 => (Self::QL1115NWB), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 35 - 0x45 => (Self::QL1115NWB), [INFO] [stdout] 35 + 0x45 => Self::QL1115NWB, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/printer.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, info, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ImageBuffer`, `Luma` [INFO] [stdout] --> examples/print_rust.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{GenericImage, GenericImageView, ImageBuffer, Luma}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DieCutType` [INFO] [stdout] --> examples/print_rust.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | step_filter_normal, Config, ContinuousType, DieCutType, Matrix, Media, Model, Printer, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> examples/print_rust.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `TestLabelNormalRes`, `TestLabelHighRes`, and `TestLabelHighResMultiple` are never constructed [INFO] [stdout] --> examples/print_rust.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | enum PrintOption { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 12 | TestLabelNormalRes, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | TestLabelHighRes, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | TestLabelHighResMultiple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mm` and `dots` are never read [INFO] [stdout] --> src/media.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | struct MediaSize { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 38 | mm: f32, [INFO] [stdout] | ^^ [INFO] [stdout] 39 | dots: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left`, `effective`, and `right` are never read [INFO] [stdout] --> src/media.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct Width { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 43 | mm: u8, [INFO] [stdout] 44 | left: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 45 | effective: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 46 | right: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dots` is never read [INFO] [stdout] --> src/media.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | struct Length { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 50 | mm: u8, [INFO] [stdout] 51 | dots: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `margin`, and `offset` are never read [INFO] [stdout] --> src/media.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct MediaSpec { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 55 | id: u16, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 58 | margin: MediaSize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 59 | offset: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config`, `iface`, and `setting` are never read [INFO] [stdout] --> src/printer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Endpoint { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 14 | config: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | iface: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | setting: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Endpoint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `model`, `error`, `mode`, `status_type`, `notification`, and `id` are never read [INFO] [stdout] --> src/printer.rs:372:5 [INFO] [stdout] | [INFO] [stdout] 371 | pub struct Status { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 372 | model: Model, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 373 | error: PrinterError, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 374 | media: Option, [INFO] [stdout] 375 | mode: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 376 | status_type: StatusType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 377 | phase: Phase, [INFO] [stdout] 378 | notification: Notification, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 379 | id: u8, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.39s [INFO] running `Command { std: "docker" "inspect" "398c2c10c1127019b0e889d858af7f4a2b6dd43945d6280b88ceb16cfc84cb0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "398c2c10c1127019b0e889d858af7f4a2b6dd43945d6280b88ceb16cfc84cb0b", kill_on_drop: false }` [INFO] [stdout] 398c2c10c1127019b0e889d858af7f4a2b6dd43945d6280b88ceb16cfc84cb0b