[INFO] cloning repository https://github.com/DexterWx/card_recognize [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DexterWx/card_recognize" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDexterWx%2Fcard_recognize", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDexterWx%2Fcard_recognize'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 01c61a631e1bad287e5e12dc4fc49881d32b70be [INFO] checking DexterWx/card_recognize against master#b2728d5426bab1d8c39709768c7e22b7f66dde5d for pr-135852 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDexterWx%2Fcard_recognize" "/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/DexterWx/card_recognize on toolchain b2728d5426bab1d8c39709768c7e22b7f66dde5d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b2728d5426bab1d8c39709768c7e22b7f66dde5d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/DexterWx/card_recognize [INFO] finished tweaking git repo https://github.com/DexterWx/card_recognize [INFO] tweaked toml for git repo https://github.com/DexterWx/card_recognize written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/DexterWx/card_recognize 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" "+b2728d5426bab1d8c39709768c7e22b7f66dde5d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded conv v0.3.3 [INFO] [stderr] Downloaded image-webp v0.1.1 [INFO] [stderr] Downloaded built v0.7.1 [INFO] [stderr] Downloaded rxing-one-d-proc-derive v0.5.3 [INFO] [stderr] Downloaded imageproc v0.24.0 [INFO] [stderr] Downloaded bit_reverse v0.1.8 [INFO] [stderr] Downloaded ucd-util v0.1.10 [INFO] [stderr] Downloaded codepage-437 v0.1.0 [INFO] [stderr] Downloaded fancy-regex v0.13.0 [INFO] [stderr] Downloaded image-base64-wasm v0.6.0 [INFO] [stderr] Downloaded nalgebra v0.32.4 [INFO] [stderr] Downloaded chrono-tz v0.8.6 [INFO] [stderr] Downloaded rxing v0.5.9 [INFO] [stderr] Downloaded image v0.25.0 [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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+b2728d5426bab1d8c39709768c7e22b7f66dde5d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ad833bdf430aafe07943d344210f51c0be1776faf5bc197ad416e48ce8378157 [INFO] running `Command { std: "docker" "start" "-a" "ad833bdf430aafe07943d344210f51c0be1776faf5bc197ad416e48ce8378157", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ad833bdf430aafe07943d344210f51c0be1776faf5bc197ad416e48ce8378157", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad833bdf430aafe07943d344210f51c0be1776faf5bc197ad416e48ce8378157", kill_on_drop: false }` [INFO] [stdout] ad833bdf430aafe07943d344210f51c0be1776faf5bc197ad416e48ce8378157 [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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+b2728d5426bab1d8c39709768c7e22b7f66dde5d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5438c7cbe5f28dc392f26d521bb9d1a1dc89a0dbd2017cdb54cdcad6ee7856ed [INFO] running `Command { std: "docker" "start" "-a" "5438c7cbe5f28dc392f26d521bb9d1a1dc89a0dbd2017cdb54cdcad6ee7856ed", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking bytemuck v1.15.0 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling anyhow v1.0.81 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking encoding_index_tests v0.1.4 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking aligned-vec v0.5.0 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling built v0.7.1 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.92 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking imgref v1.10.1 [INFO] [stderr] Checking new_debug_unreachable v1.0.6 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling csv-core v0.1.11 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Checking rayon v1.9.0 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking bitstream-io v2.2.0 [INFO] [stderr] Checking flume v0.11.0 [INFO] [stderr] Checking loop9 v0.1.5 [INFO] [stderr] Checking wide v0.7.15 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking avif-serialize v0.8.1 [INFO] [stderr] Checking rgb v0.8.37 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking half v2.4.0 [INFO] [stderr] Compiling bumpalo v3.15.4 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking ttf-parser v0.20.0 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking v_frame v0.3.8 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking zune-core v0.4.12 [INFO] [stderr] Checking num-iter v0.1.44 [INFO] [stderr] Checking exr v1.72.0 [INFO] [stderr] Checking zune-jpeg v0.4.11 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking tiff v0.9.1 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking av1-grain v0.2.3 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking gif v0.13.1 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Checking ucd-util v0.1.10 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking custom_derive v0.1.7 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Checking conv v0.3.3 [INFO] [stderr] Checking chrono v0.4.37 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Compiling chrono-tz-build v0.2.1 [INFO] [stderr] Checking owned_ttf_parser v0.20.0 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking gif v0.11.4 [INFO] [stderr] Checking ab_glyph v0.2.23 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking encoding-index-japanese v1.20141219.5 [INFO] [stderr] Checking encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Checking encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Checking encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling wasm-bindgen v0.2.92 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Compiling csv v1.3.0 [INFO] [stderr] Compiling chrono-tz v0.8.6 [INFO] [stderr] Checking utf8-ranges v1.0.5 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking encoding v0.2.33 [INFO] [stderr] Checking uriparse v0.6.4 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking data-encoding v2.5.0 [INFO] [stderr] Checking bit_reverse v0.1.8 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling codepage-437 v0.1.0 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.92 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling profiling-procmacros v1.0.15 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling rxing-one-d-proc-derive v0.5.3 [INFO] [stderr] Checking profiling v1.0.15 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.92 [INFO] [stderr] Checking image-webp v0.1.1 [INFO] [stderr] Checking fancy-regex v0.13.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.92 [INFO] [stderr] Checking image-base64-wasm v0.6.0 [INFO] [stderr] Checking nalgebra v0.32.4 [INFO] [stderr] Checking multimap v0.10.0 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking ravif v0.11.5 [INFO] [stderr] Checking image v0.25.0 [INFO] [stderr] Checking imageproc v0.24.0 [INFO] [stderr] Checking rxing v0.5.9 [INFO] [stderr] Checking card_recognize v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::my_utils::node::print2node` [INFO] [stdout] --> src/recognition/baizheng.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::my_utils::node::print2node; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/recognition/baizheng.rs:79:18 [INFO] [stdout] | [INFO] [stdout] 79 | for i in (0..imgs_len){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 79 - for i in (0..imgs_len){ [INFO] [stdout] 79 + for i in 0..imgs_len { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `imageproc::integral_image::sum_image_pixels` [INFO] [stdout] --> src/recognition/black_fill.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use imageproc::integral_image::sum_image_pixels; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::read_link` [INFO] [stdout] --> src/recognition/engine.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::read_link; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DynamicImage` [INFO] [stdout] --> src/recognition/engine.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use image::{DynamicImage, Rgb}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image_base64_wasm::to_base64` [INFO] [stdout] --> src/recognition/engine.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use image_base64_wasm::to_base64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProcessedImagesAndModelPoints` [INFO] [stdout] --> src/recognition/barcode.rs:10:52 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{models::{engine_rec::{ProcessedImages, ProcessedImagesAndModelPoints}, rec_result::Value}, recognition::engine::Engine}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rgb` [INFO] [stdout] --> src/models/mod.rs:20:47 [INFO] [stdout] | [INFO] [stdout] 20 | use image::{GrayImage, ImageBuffer, Luma, Rgb, RgbImage}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ok` and `Result` [INFO] [stdout] --> src/my_utils/image.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | use anyhow::{Result,Ok}; [INFO] [stdout] | ^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::my_utils::node::print2node` [INFO] [stdout] --> src/recognition/baizheng.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::my_utils::node::print2node; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/recognition/baizheng.rs:79:18 [INFO] [stdout] | [INFO] [stdout] 79 | for i in (0..imgs_len){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 79 - for i in (0..imgs_len){ [INFO] [stdout] 79 + for i in 0..imgs_len { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `imageproc::integral_image::sum_image_pixels` [INFO] [stdout] --> src/recognition/black_fill.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use imageproc::integral_image::sum_image_pixels; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::read_link` [INFO] [stdout] --> src/recognition/engine.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::read_link; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DynamicImage` [INFO] [stdout] --> src/recognition/engine.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use image::{DynamicImage, Rgb}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image_base64_wasm::to_base64` [INFO] [stdout] --> src/recognition/engine.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use image_base64_wasm::to_base64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProcessedImagesAndModelPoints` [INFO] [stdout] --> src/recognition/barcode.rs:10:52 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{models::{engine_rec::{ProcessedImages, ProcessedImagesAndModelPoints}, rec_result::Value}, recognition::engine::Engine}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rgb` [INFO] [stdout] --> src/models/mod.rs:20:47 [INFO] [stdout] | [INFO] [stdout] 20 | use image::{GrayImage, ImageBuffer, Luma, Rgb, RgbImage}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ok` and `Result` [INFO] [stdout] --> src/my_utils/image.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | use anyhow::{Result,Ok}; [INFO] [stdout] | ^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/recognition/baizheng.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | for mut img in imgs.iter_mut(){ [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: variable does not need to be mutable [INFO] [stdout] --> src/recognition/baizheng.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | let mut image_status = ImageStatus { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/recognition/black_fill.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | fn rec_black_fill(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coordinate` [INFO] [stdout] --> src/recognition/black_fill.rs:11:53 [INFO] [stdout] | [INFO] [stdout] 11 | fn rec_black_fill(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option{ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/recognition/numbers.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | fn rec_number(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coordinate` [INFO] [stdout] --> src/recognition/numbers.rs:10:49 [INFO] [stdout] | [INFO] [stdout] 10 | fn rec_number(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/recognition/vx.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | fn rec_vx(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coordinate` [INFO] [stdout] --> src/recognition/vx.rs:9:45 [INFO] [stdout] | [INFO] [stdout] 9 | fn rec_vx(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/recognition/barcode.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | fn rec_barcode(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coordinate` [INFO] [stdout] --> src/recognition/barcode.rs:42:50 [INFO] [stdout] | [INFO] [stdout] 42 | fn rec_barcode(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/recognition/baizheng.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | for mut img in imgs.iter_mut(){ [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: variable does not need to be mutable [INFO] [stdout] --> src/recognition/baizheng.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | let mut image_status = ImageStatus { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/recognition/black_fill.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | fn rec_black_fill(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coordinate` [INFO] [stdout] --> src/recognition/black_fill.rs:11:53 [INFO] [stdout] | [INFO] [stdout] 11 | fn rec_black_fill(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option{ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/recognition/numbers.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | fn rec_number(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coordinate` [INFO] [stdout] --> src/recognition/numbers.rs:10:49 [INFO] [stdout] | [INFO] [stdout] 10 | fn rec_number(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/recognition/vx.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | fn rec_vx(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coordinate` [INFO] [stdout] --> src/recognition/vx.rs:9:45 [INFO] [stdout] | [INFO] [stdout] 9 | fn rec_vx(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/recognition/barcode.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | fn rec_barcode(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coordinate` [INFO] [stdout] --> src/recognition/barcode.rs:42:50 [INFO] [stdout] | [INFO] [stdout] 42 | fn rec_barcode(&self, img: &ProcessedImages, coordinate: &Coordinate) -> Option { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | let mut rendering = trans_base64_to_image(&page.image_rendering.expect("image_rendering is None")); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_barcode` is never used [INFO] [stdout] --> src/recognition/barcode.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn decode_barcode(img: &DynamicImage, coor: Coordinate) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib.rs:132:22 [INFO] [stdout] | [INFO] [stdout] 132 | let engine = ENGINE.as_ref().expect("Engine not initialized"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_barcode` is never used [INFO] [stdout] --> src/recognition/barcode.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn decode_barcode(img: &DynamicImage, coor: Coordinate) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib.rs:132:22 [INFO] [stdout] | [INFO] [stdout] 132 | let engine = ENGINE.as_ref().expect("Engine not initialized"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | rendering.to_rgb8().save(out_img_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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = rendering.to_rgb8().save(out_img_path); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | img.to_rgb8().save(out_img_path); [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] 56 | let _ = img.to_rgb8().save(out_img_path); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized] target(s) in 59.43s [INFO] running `Command { std: "docker" "inspect" "5438c7cbe5f28dc392f26d521bb9d1a1dc89a0dbd2017cdb54cdcad6ee7856ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5438c7cbe5f28dc392f26d521bb9d1a1dc89a0dbd2017cdb54cdcad6ee7856ed", kill_on_drop: false }` [INFO] [stdout] 5438c7cbe5f28dc392f26d521bb9d1a1dc89a0dbd2017cdb54cdcad6ee7856ed