[INFO] fetching crate yas_scanner 0.1.13... [INFO] testing yas_scanner-0.1.13 against beta-2025-09-21 for beta-1.91-3 [INFO] extracting crate yas_scanner 0.1.13 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate yas_scanner 0.1.13 [INFO] finished tweaking crates.io crate yas_scanner 0.1.13 [INFO] tweaked toml for crates.io crate yas_scanner 0.1.13 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate yas_scanner 0.1.13 on toolchain beta-2025-09-21 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-09-21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate yas_scanner 0.1.13 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" "+beta-2025-09-21" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00dbead966541f6f46355e812e48296f044200ae2411bf5c1e560e77b6dc8135 [INFO] running `Command { std: "docker" "start" "-a" "00dbead966541f6f46355e812e48296f044200ae2411bf5c1e560e77b6dc8135", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00dbead966541f6f46355e812e48296f044200ae2411bf5c1e560e77b6dc8135", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00dbead966541f6f46355e812e48296f044200ae2411bf5c1e560e77b6dc8135", kill_on_drop: false }` [INFO] [stdout] 00dbead966541f6f46355e812e48296f044200ae2411bf5c1e560e77b6dc8135 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4b78ce3e7c9732f6ae1f2edd9709465463115bb3bf2f9ee554d7a64700603566 [INFO] running `Command { std: "docker" "start" "-a" "4b78ce3e7c9732f6ae1f2edd9709465463115bb3bf2f9ee554d7a64700603566", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling proc-macro2 v1.0.49 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling cc v1.0.78 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling anyhow v1.0.70 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling bytes v1.3.0 [INFO] [stderr] Compiling ucd-trie v0.1.5 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling unicode-segmentation v1.10.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling iana-time-zone v0.1.53 [INFO] [stderr] Compiling chrono v0.4.23 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling proc-quote-impl v0.3.2 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling anymap2 v0.13.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling futures-core v0.3.25 [INFO] [stderr] Compiling regex v1.7.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling matrixmultiply v0.3.2 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling num-complex v0.4.2 [INFO] [stderr] Compiling crossbeam-epoch v0.9.13 [INFO] [stderr] Compiling tokio v1.24.1 [INFO] [stderr] Compiling itoa v1.0.5 [INFO] [stderr] Compiling paste v1.0.11 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling ndarray v0.15.6 [INFO] [stderr] Compiling half v1.8.2 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling futures-task v0.3.25 [INFO] [stderr] Compiling proc-quote v0.4.0 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling which v4.3.0 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling openssl v0.10.45 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling dyn-clone v1.0.10 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling rayon-core v1.10.1 [INFO] [stderr] Compiling futures-util v0.3.25 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling flate2 v1.0.25 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling prost-build v0.9.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling quick-xml v0.22.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling futures-sink v0.3.25 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling liquid-derive v0.23.1 [INFO] [stderr] Compiling enum-ordinalize v3.1.12 [INFO] [stderr] Compiling prost-derive v0.9.0 [INFO] [stderr] Compiling educe v0.4.20 [INFO] [stderr] Compiling derive-new v0.5.9 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.25 [INFO] [stderr] Compiling pest v2.5.2 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling fastrand v1.8.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling futures-channel v0.3.25 [INFO] [stderr] Compiling petgraph v0.6.2 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling prost v0.9.0 [INFO] [stderr] Compiling prost-types v0.9.0 [INFO] [stderr] Compiling tract-data v0.15.8 [INFO] [stderr] Compiling pest_meta v2.5.2 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling pest_generator v2.5.2 [INFO] [stderr] Compiling xcb v1.2.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling xattr v0.2.3 [INFO] [stderr] Compiling filetime v0.2.19 [INFO] [stderr] Compiling libdbus-sys v0.2.3 [INFO] [stderr] Compiling pest_derive v2.5.2 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling simd-adler32 v0.3.5 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling nom v7.1.2 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling rayon v1.6.1 [INFO] [stderr] Compiling tar v0.4.38 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling kstring v1.0.6 [INFO] [stderr] Compiling liquid-core v0.23.2 [INFO] [stderr] Compiling toml v0.5.10 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling weezl v0.1.7 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling rustversion v1.0.11 [INFO] [stderr] Compiling winres v0.1.12 [INFO] [stderr] Compiling liquid-lib v0.23.1 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling hyper v0.14.23 [INFO] [stderr] Compiling tract-onnx v0.15.8 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling liquid v0.23.1 [INFO] [stderr] Compiling fdeflate v0.3.0 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling enigo v0.0.14 [INFO] [stderr] Compiling semver v1.0.16 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling screenshots v0.5.3 [INFO] [stderr] Compiling gif v0.11.4 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling tract-linalg v0.15.8 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling png v0.17.8 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling dbus v0.9.7 [INFO] [stderr] Compiling display-info v0.4.1 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling yas_scanner v0.1.13 (/opt/rustwide/workdir) [INFO] [stderr] Compiling tract-core v0.15.8 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling mapr v0.8.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling bytemuck v1.12.3 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling ipnet v2.7.1 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling reqwest v0.11.13 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling os_info v3.5.1 [INFO] [stderr] Compiling edit-distance v2.1.0 [INFO] [stderr] Compiling strum v0.24.1 [INFO] [stderr] Compiling tract-nnef v0.15.8 [INFO] [stderr] Compiling tract-hir v0.15.8 [INFO] [stderr] Compiling tract-onnx-opl v0.15.8 [INFO] [stdout] warning: unused imports: `ImageBuffer` and `Rgb` [INFO] [stdout] --> src/capture/mod.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use image::{Rgb, RgbImage, ImageBuffer, RgbaImage, buffer::ConvertBuffer, imageops::resize, imageops::FilterType::Triangle}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Encoder` [INFO] [stdout] --> src/capture/mod.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use png::{Decoder, Encoder}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image::imageops::colorops::grayscale` [INFO] [stdout] --> src/inference/pre_process.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use image::imageops::colorops::grayscale; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/inference/pre_process.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/inference/inference.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/inference/inference.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tract_onnx::Onnx` [INFO] [stdout] --> src/inference/inference.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tract_onnx::Onnx; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> src/inference/inference.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::{Result, Value}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common::utils` [INFO] [stdout] --> src/inference/inference.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::utils; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/info/window_info.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Div` and `Mul` [INFO] [stdout] --> src/info/window_info.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::{Div, Mul}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::stdin` [INFO] [stdout] --> src/scanner/yas_scanner.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::stdin; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImage` [INFO] [stdout] --> src/scanner/yas_scanner.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use image::{GenericImage, GenericImageView, RgbImage}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/scanner/yas_scanner.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/scanner/yas_scanner.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `capture_absolute` [INFO] [stdout] --> src/scanner/yas_scanner.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::capture::{self, capture_absolute}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RawCaptureImage` and `RawImage` [INFO] [stdout] --> src/scanner/yas_scanner.rs:23:55 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::common::{utils, PixelRect, PixelRectBound, RawCaptureImage, RawImage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/scanner/yas_scanner.rs:791:13 [INFO] [stdout] | [INFO] [stdout] 791 | 'row: for row in start_row..self.row { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/scanner/yas_scanner.rs:797:17 [INFO] [stdout] | [INFO] [stdout] 797 | 'col: for col in 0..c { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImage` [INFO] [stdout] --> src/inference/pre_process.rs:2:53 [INFO] [stdout] | [INFO] [stdout] 2 | use image::{RgbImage, GrayImage, ImageBuffer, Luma, GenericImage, GenericImageView}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buffer` [INFO] [stdout] --> src/capture/mod.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut buffer = png_data_buf[..info.buffer_size()].to_vec(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/capture/mod.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut buffer = png_data_buf[..info.buffer_size()].to_vec(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/inference/pre_process.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let x = i; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/inference/pre_process.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | let y = j; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/inference/pre_process.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut grayp = new_gray.get_pixel_mut(i, j); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ans` [INFO] [stdout] --> src/inference/pre_process.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | let mut ans: Vec = vec![0.0; (new_width * new_height) as usize]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/inference/pre_process.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut ans: Vec = vec![0.0; (new_width * new_height) as usize]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/inference/pre_process.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | let mut data: Vec = vec![0.0; 32 * 384]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/inference/inference.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(name: String, dict_name: String) -> CRNNModel { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dict_name` [INFO] [stdout] --> src/inference/inference.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(name: String, dict_name: String) -> CRNNModel { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dict_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/inference/inference.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut bytes = include_bytes!("../../models/model_acc100-epoch49.onnx"); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/info/info.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | let mut info: ScanInfo; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> src/scanner/yas_scanner.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 308 | let now = SystemTime::now(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scanner/yas_scanner.rs:370:13 [INFO] [stdout] | [INFO] [stdout] 370 | let mut min_dis: u32 = color_1.dis_2(&color); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> src/scanner/yas_scanner.rs:650:21 [INFO] [stdout] | [INFO] [stdout] 650 | let now = SystemTime::now(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scanner/yas_scanner.rs:622:17 [INFO] [stdout] | [INFO] [stdout] 622 | let mut model = CRNNModel::new( [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scanner/yas_scanner.rs:591:13 [INFO] [stdout] | [INFO] [stdout] 591 | let mut count = match self.get_art_count() { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `random_id` [INFO] [stdout] --> src/expo/mona_uranai.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let random_id = thread_rng().gen::(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_random_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_zeroed` is never used [INFO] [stdout] --> src/common/buffer.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl Buffer { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 6 | fn new_zeroed(width: usize, height: usize) -> Buffer { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `capture_only` is never read [INFO] [stdout] --> src/scanner/yas_scanner.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct YasScannerConfig { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 39 | max_row: u32, [INFO] [stdout] 40 | capture_only: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/common/mod.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | img.save(path); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 144 | let _ = img.save(path); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/common/utils.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | stdin().read_line(&mut s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = stdin().read_line(&mut s); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/inference/pre_process.rs:20:23 [INFO] [stdout] | [INFO] [stdout] 20 | } else if pixel < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/inference/pre_process.rs:170:19 [INFO] [stdout] | [INFO] [stdout] 170 | } else if pixel < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/inference/pre_process.rs:191:19 [INFO] [stdout] | [INFO] [stdout] 191 | } else if pixel < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/scanner/yas_scanner.rs:634:17 [INFO] [stdout] | [INFO] [stdout] 634 | fs::create_dir("dumps"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 634 | let _ = fs::create_dir("dumps"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | root.serialize_entry("name", &self.name.to_mona()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 105 | let _ = root.serialize_entry("name", &self.name.to_mona()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | root.serialize_entry("value", &self.value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 106 | let _ = root.serialize_entry("value", &self.value); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | root.serialize_entry("setName", &self.set_name.to_mona()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 115 | let _ = root.serialize_entry("setName", &self.set_name.to_mona()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | root.serialize_entry("position", &self.slot.to_mona()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 116 | let _ = root.serialize_entry("position", &self.slot.to_mona()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | root.serialize_entry("mainTag", &self.main_stat); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 117 | let _ = root.serialize_entry("mainTag", &self.main_stat); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | root.serialize_entry("normalTags", &sub_stats); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 140 | let _ = root.serialize_entry("normalTags", &sub_stats); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | root.serialize_entry("omit", &false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 141 | let _ = root.serialize_entry("omit", &false); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | root.serialize_entry("level", &self.level); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 142 | let _ = root.serialize_entry("level", &self.level); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | root.serialize_entry("star", &self.star); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 143 | let _ = root.serialize_entry("star", &self.star); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | root.serialize_entry("equip", &equip); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 157 | let _ = root.serialize_entry("equip", &equip); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | root.serialize_entry("version", &self.version); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 177 | let _ = root.serialize_entry("version", &self.version); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | root.serialize_entry("flower", &self.flower); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 178 | let _ = root.serialize_entry("flower", &self.flower); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | root.serialize_entry("feather", &self.feather); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 179 | let _ = root.serialize_entry("feather", &self.feather); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | root.serialize_entry("sand", &self.sand); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 180 | let _ = root.serialize_entry("sand", &self.sand); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | root.serialize_entry("cup", &self.cup); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 181 | let _ = root.serialize_entry("cup", &self.cup); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/expo/mona_uranai.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | root.serialize_entry("head", &self.head); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 182 | let _ = root.serialize_entry("head", &self.head); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/expo/mona_uranai.rs:188:25 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn new(results: &Vec) -> MonaFormat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 188 | pub fn new(results: &Vec) -> MonaFormat<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/expo/mingyu_lab.rs:149:55 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn new(results: &'a Vec) -> MingyuLabFormat { [INFO] [stdout] | -- ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 149 | pub fn new(results: &'a Vec) -> MingyuLabFormat<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/expo/good.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | fn new(stat: &ArtifactStat) -> GOODStat { [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 58 | fn new(stat: &ArtifactStat) -> GOODStat<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/expo/good.rs:171:55 [INFO] [stdout] | [INFO] [stdout] 171 | pub fn new(results: &'a Vec) -> GOODFormat { [INFO] [stdout] | -- ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 171 | pub fn new(results: &'a Vec) -> GOODFormat<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `Instant` [INFO] [stdout] --> src/main.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::{Duration, Instant, SystemTime}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `capture_absolute_image` and `capture_absolute` [INFO] [stdout] --> src/main.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use yas_scanner::capture::{capture_absolute, capture_absolute_image}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yas_scanner::inference::inference::CRNNModel` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use yas_scanner::inference::inference::CRNNModel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `crop`, `normalize`, `pre_process`, `raw_to_img`, and `to_gray` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | crop, image_to_raw, normalize, pre_process, raw_to_img, to_gray, [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Env` and `Target` [INFO] [stdout] --> src/main.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | use env_logger::{Builder, Env, Target}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ImageBuffer` and `Pixel` [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use image::{ImageBuffer, Pixel}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `os_info` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use os_info; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_local` is never used [INFO] [stdout] --> src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn open_local(path: String) -> RawImage { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:358:5 [INFO] [stdout] | [INFO] [stdout] 358 | stdin().read_line(&mut s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 358 | let _ = stdin().read_line(&mut s); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustczATAeo/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{libos_info-35ede07b6253f301,libenv_logger-a24f87e6c38a69e9,libtermcolor-214b0416d5f44404,libhumantime-9f900d7885b5087e,libyas_scanner-b2cc4c35c3245d9c,libscreenshots-2a99f60d44f8ed85,libdbus-2679c4509454b0dc,liblibdbus_sys-c5bb49e3e2437287,libdisplay_info-7ade9dece0daef9c,libxcb-71d86c954ffc264c,libsemver-3b282910b0269c2c,libedit_distance-f1f0d91652fb1fa1,libregex-f9c3458a58263301,libaho_corasick-04356261da0241aa,libregex_syntax-0b42395ebb20dab7,librand-d9dce06aa3e94cd6,librand_chacha-e8d0ca5e1e91f729,libppv_lite86-74d192d5fb0d20a2,librand_core-38bf7420c703f00c,libgetrandom-2a6416300303e0be,libenigo-a513ead4fbaf3d98,libclap-ef43117057432ae9,libvec_map-75126d96f8392bf4,libtextwrap-1905f7baa4a1563f,libunicode_width-e6feeb9daa4fd470,libstrsim-eb3bc2e4997041af,libatty-3703dc37bf127bb4,libansi_term-74ae5010905c21da,libtract_onnx-808939bd357f0640,libmapr-9370cf5f9753dcc4,libtract_onnx_opl-2cc167527d528100,libtract_nnef-0a02093ef993e115,libwalkdir-94804d3052c9fc5f,libsame_file-ff49545450c0b63c,libtar-b3684c69bc0875aa,libxattr-dfa3bbf8c3062e89,libfiletime-727a5582e91834cc,libnom-4ac354568c0d1de6,libprost-b898b55a41df9d35,libtract_hir-c7e008957c746b39,libtract_core-9b537b1c345fa71e,libtract_linalg-b608af21634916f4,libdyn_clone-c03927aeb811d2b9,libtract_data-b46c091dbb0d9839,libhalf-ab7070883a656f8b,libmaplit-f141af93a08d6c7e,libsmallvec-4517414d4f20efb1,libitertools-07a9e8fbc3853792,libndarray-7c060e8b9a123642,libmatrixmultiply-e124222397c985db,libnum_complex-92533e682f401104,librawpointer-10d892ea69c462d6,libdowncast_rs-d33906d24142a297,libbit_set-d8d586362ca7b5d5,libbit_vec-b06753219a6ccf92,libanyhow-21c62c2f2de971c4,libpng-957e8fa876de5225,libminiz_oxide-c3fadcead0c8205d,libflate2-2e644b603bbc50c5,libminiz_oxide-3c4081393d387e05,libfdeflate-0a58d9a7f1bf25cb,libsimd_adler32-c4fc68bb88335920,libreqwest-a309b3fe0263faa7,libhyper_tls-bd8cb1a79192363f,libipnet-a573d325a84dc713,libtokio_native_tls-a747d050417cd1f8,libserde_urlencoded-66c9f4a4682911b7,libmime-df56754a5ea019bb,libencoding_rs-b09047cb7e6599fe,libserde_json-1045521f009906ca,libryu-d41f87005784b1b4,libserde-9558783968528421,libbase64-42295ac2e0e134a3,libnative_tls-a06b9e4857e3a8f9,libopenssl_probe-5821ed5bfde807ff,libopenssl-6142b674b5ea2e24,libforeign_types-ce5d663d7c32e748,libforeign_types_shared-47b443a4583fd949,libopenssl_sys-0cfc8cccdd0340e4,libhyper-60554838bcc00d88,libwant-63864d3e1b74d793,libtry_lock-d829e1fc867adb15,libhttparse-e52ab67d597b9500,libh2-c00f4361ca60b941,libindexmap-14c9bd10cfad4b33,libhashbrown-cae2cd0d9cc0a6cf,libtokio_util-bcda88adaa941137,libfutures_sink-6e96cabfd22eb3eb,libtower_service-442e0d38cf369aa3,libtracing-c6881bae3ff6ecf2,libtracing_core-6aa46100a0a7a7b7,libonce_cell-9a29211daf4ab5bf,libfutures_channel-995b0d18265c38dd,libtokio-b5693925b238c081,libsocket2-3d77255678151b47,libmio-da4da0fe96003dc2,libhttp_body-aba2042699e0bba6,libfutures_util-21ebffcdb3c4713d,libmemchr-fe2e5a4f134682e2,libfutures_io-c54e440992b6bdfe,libslab-c31f36e3ee47a570,libpin_project_lite-6df6c214457c8ca7,libfutures_task-d5be3883e01c26c9,libpin_utils-3860774ad9b215b5,libfutures_core-2a6c346b91848ae1,liburl-949f48b48ac24e45,libidna-31cd3b8477c84c66,libunicode_normalization-bace0994bf1c65e9,libtinyvec-dabb1bd64e414e54,libtinyvec_macros-36ab4f0266eef07c,libunicode_bidi-8386781c09c7dbfc,libform_urlencoded-fd125f4e3f92ae03,libpercent_encoding-bf512ecf668f0e68,libhttp-7fde39a2b39c639d,libitoa-b1c8d26b4c65e25a,libbytes-bfed4fc704947305,libfnv-79e2cbfbe03dcd16,liblazy_static-af860367908b8176,liblog-ec46de5c30914dd3,libimage-e49f27cd2a49f944,libbytemuck-99a511ccaf84c8bd,libpng-32d76ea06f2b84a2,libminiz_oxide-0e349b524b90f291,libcrc32fast-b6f658faf0f4ad73,libdeflate-1f79a8b019cb6060,libadler32-b015fcfcf4d4fee0,libbitflags-dde12b0d7d495b50,libnum_iter-11d3a4c51dfd50e9,libscoped_threadpool-e27898fb7395e1ec,libnum_rational-06dc670617afb8d1,libnum_integer-9ccaaff7aff4bb24,libgif-0131b8d4e74f15ba,libcolor_quant-72accfe2cafd1a2d,libbyteorder-fb36fe721788ce00,libnum_traits-b7b1bc6004e8e4dd,libtiff-18d138312f596469,libweezl-2b90a14ccfb21c53,libminiz_oxide-335ec95ccad99c7e,libadler-8a8ce72c9fb247b6,libjpeg_decoder-c0f66fe316f15c38,librayon-a1e4d7a24dc95114,librayon_core-43bc176878e78ce6,libnum_cpus-c8ef13a1878bbb04,liblibc-c417bf01119bdb61,libcrossbeam_deque-024d0dae07817f7b,libcrossbeam_epoch-d71a8d3d0e9edbc0,libmemoffset-f7a6fe308a66f653,libscopeguard-e318caba69bf687f,libcrossbeam_channel-de0caa7ba29e5bfc,libcrossbeam_utils-0d474245a45a7d4f,libcfg_if-3e7fc4e38d4a72b5,libeither-dade75f7b0d85455}.rlib" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-ldbus-1" "-lxcb" "-lxdo" "-ldl" "-lssl" "-lcrypto" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustczATAeo/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/target/debug/build/tract-linalg-2bdcaa081e34f794/out" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/yas_scanner-0f7d435e7933ff63" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: unable to find library -lxdo [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `yas_scanner` (bin "yas_scanner") due to 1 previous error; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4b78ce3e7c9732f6ae1f2edd9709465463115bb3bf2f9ee554d7a64700603566", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b78ce3e7c9732f6ae1f2edd9709465463115bb3bf2f9ee554d7a64700603566", kill_on_drop: false }` [INFO] [stdout] 4b78ce3e7c9732f6ae1f2edd9709465463115bb3bf2f9ee554d7a64700603566