[INFO] cloning repository https://github.com/okieraised/rs-anpr [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/okieraised/rs-anpr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fokieraised%2Frs-anpr", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fokieraised%2Frs-anpr'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 02f260de777c49a9d34be552b13e02fc5739f153 [INFO] checking okieraised/rs-anpr against master#9f48dedc9763334a587c66558974635807a113ed for pr-137394 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fokieraised%2Frs-anpr" "/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/okieraised/rs-anpr on toolchain 9f48dedc9763334a587c66558974635807a113ed [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9f48dedc9763334a587c66558974635807a113ed" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/okieraised/rs-anpr [INFO] finished tweaking git repo https://github.com/okieraised/rs-anpr [INFO] tweaked toml for git repo https://github.com/okieraised/rs-anpr written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/okieraised/rs-anpr 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" "+9f48dedc9763334a587c66558974635807a113ed" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded readings-probe v0.1.6 [INFO] [stderr] Downloaded liquid-derive v0.26.8 [INFO] [stderr] Downloaded box_drawing v0.1.2 [INFO] [stderr] Downloaded tract-extra v0.21.9 [INFO] [stderr] Downloaded tract-pulse v0.21.9 [INFO] [stderr] Downloaded colorous v1.0.15 [INFO] [stderr] Downloaded string-interner v0.15.0 [INFO] [stderr] Downloaded tract v0.21.9 [INFO] [stderr] Downloaded opencv-binding-generator v0.93.0 [INFO] [stderr] Downloaded tract-tflite v0.21.9 [INFO] [stderr] Downloaded tract-core v0.21.9 [INFO] [stderr] Downloaded tract-metal v0.21.9 [INFO] [stderr] Downloaded tract-linalg v0.21.9 [INFO] [stderr] Downloaded tract-hir v0.21.9 [INFO] [stderr] Downloaded liquid-lib v0.26.9 [INFO] [stderr] Downloaded tract-onnx v0.21.9 [INFO] [stderr] Downloaded tract-data v0.21.9 [INFO] [stderr] Downloaded tract-nnef v0.21.9 [INFO] [stderr] Downloaded tract-onnx-opl v0.21.9 [INFO] [stderr] Downloaded ndarray-npy v0.9.1 [INFO] [stderr] Downloaded liquid v0.26.9 [INFO] [stderr] Downloaded liquid-core v0.26.9 [INFO] [stderr] Downloaded opencv v0.93.7 [INFO] [stderr] Downloaded tract-libcli v0.21.9 [INFO] [stderr] Downloaded tract-pulse-opl v0.21.9 [INFO] [stderr] Downloaded tract-tensorflow v0.21.9 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9f48dedc9763334a587c66558974635807a113ed" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ad4ee965eab8c6dbd55c093e981ec05cc04079179511089306f04d0d4e50c529 [INFO] running `Command { std: "docker" "start" "-a" "ad4ee965eab8c6dbd55c093e981ec05cc04079179511089306f04d0d4e50c529", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ad4ee965eab8c6dbd55c093e981ec05cc04079179511089306f04d0d4e50c529", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad4ee965eab8c6dbd55c093e981ec05cc04079179511089306f04d0d4e50c529", kill_on_drop: false }` [INFO] [stdout] ad4ee965eab8c6dbd55c093e981ec05cc04079179511089306f04d0d4e50c529 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9f48dedc9763334a587c66558974635807a113ed" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8fdedb71c8c1ad6606cdde20217eb2bd760dbd512e017f98e63a2dd9f127f602 [INFO] running `Command { std: "docker" "start" "-a" "8fdedb71c8c1ad6606cdde20217eb2bd760dbd512e017f98e63a2dd9f127f602", kill_on_drop: false }` [INFO] [stderr] warning: rs-anpr v0.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `tract` which is missing a lib target [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling time-macros v0.2.19 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Compiling cc v1.2.9 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling anymap2 v0.13.0 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling tinyvec v1.8.1 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling liquid-derive v0.26.8 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling pest v2.7.15 [INFO] [stderr] Compiling half v2.4.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking ndarray v0.16.1 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling pest_meta v2.7.15 [INFO] [stderr] Checking scan_fmt v0.2.6 [INFO] [stderr] Compiling rustfft v6.2.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling rustix v0.38.43 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Compiling pest_generator v2.7.15 [INFO] [stderr] Checking strength_reduce v0.2.4 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking dyn-hash v0.2.0 [INFO] [stderr] Checking dyn-clone v1.0.17 [INFO] [stderr] Checking transpose v0.2.3 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling derive-new v0.5.9 [INFO] [stderr] Checking primal-check v0.3.4 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking bitflags v2.7.0 [INFO] [stderr] Compiling pest_derive v2.7.15 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling semver v1.0.24 [INFO] [stderr] Checking anymap v0.12.1 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking miniz_oxide v0.8.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling clang v2.0.0 [INFO] [stderr] Checking string-interner v0.15.0 [INFO] [stderr] Checking filetime v0.2.25 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Checking tract-data v0.21.9 [INFO] [stderr] Checking flate2 v1.0.35 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling kstring v2.0.2 [INFO] [stderr] Compiling liquid-core v0.26.9 [INFO] [stderr] Checking xattr v1.4.0 [INFO] [stderr] Compiling opencv-binding-generator v0.93.0 [INFO] [stderr] Checking tar v0.4.43 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Checking bytemuck v1.21.0 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Checking memmap2 v0.9.5 [INFO] [stderr] Checking rgb v0.8.50 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Compiling liquid-lib v0.26.9 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling prost-derive v0.11.9 [INFO] [stderr] Checking prost v0.11.9 [INFO] [stderr] Compiling liquid v0.26.9 [INFO] [stderr] Compiling opencv v0.93.7 [INFO] [stderr] Compiling tract-linalg v0.21.9 [INFO] [stderr] Checking tract-core v0.21.9 [INFO] [stderr] Checking tract-nnef v0.21.9 [INFO] [stderr] Checking tract-hir v0.21.9 [INFO] [stderr] Checking tract-onnx-opl v0.21.9 [INFO] [stderr] Checking tract-onnx v0.21.9 [INFO] [stderr] Checking rs-anpr v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/ocr/det/predict.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Array1` and `Array3` [INFO] [stdout] --> src/ocr/det/predict.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use ndarray::{Array1, Array3, Axis}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BORDER_CONSTANT`, `MatTraitConst`, `Scalar`, `Size`, `Vec3b`, `Vector`, and `copy_make_border` [INFO] [stdout] --> src/ocr/det/predict.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use opencv::core::{copy_make_border, Mat, MatTraitConst, Scalar, Size, Vec3b, Vector, BORDER_CONSTANT}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^ ^^^^ ^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `opencv::imgcodecs::imwrite` [INFO] [stdout] --> src/ocr/det/predict.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use opencv::imgcodecs::imwrite; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `INTER_LINEAR`, `resize`, and `threshold` [INFO] [stdout] --> src/ocr/det/predict.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use opencv::imgproc::{resize, threshold, INTER_LINEAR}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DatumExt`, `Datum`, `InferenceFact`, and `tract_ndarray` [INFO] [stdout] --> src/ocr/det/predict.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use tract_onnx::prelude::{tract_ndarray, tvec, Datum, DatumExt, Framework, Graph, InferenceFact, InferenceModelExt, RunnableModel, Tensor... [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/ocr/det/predict.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Array1` and `Array3` [INFO] [stdout] --> src/ocr/det/predict.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use ndarray::{Array1, Array3, Axis}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BORDER_CONSTANT`, `MatTraitConst`, `Scalar`, `Size`, `Vec3b`, `Vector`, and `copy_make_border` [INFO] [stdout] --> src/ocr/det/predict.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use opencv::core::{copy_make_border, Mat, MatTraitConst, Scalar, Size, Vec3b, Vector, BORDER_CONSTANT}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^ ^^^^ ^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `opencv::imgcodecs::imwrite` [INFO] [stdout] --> src/ocr/det/predict.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use opencv::imgcodecs::imwrite; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `INTER_LINEAR`, `resize`, and `threshold` [INFO] [stdout] --> src/ocr/det/predict.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use opencv::imgproc::{resize, threshold, INTER_LINEAR}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DatumExt`, `Datum`, `InferenceFact`, and `tract_ndarray` [INFO] [stdout] --> src/ocr/det/predict.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use tract_onnx::prelude::{tract_ndarray, tvec, Datum, DatumExt, Framework, Graph, InferenceFact, InferenceModelExt, RunnableModel, Tensor... [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bbox_threshold` [INFO] [stdout] --> src/ocr/det/predict.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let bbox_threshold = bbox_threshold.unwrap_or(self.bbox_threshold); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bbox_threshold` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unclip_ratio` [INFO] [stdout] --> src/ocr/det/predict.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let unclip_ratio= unclip_ratio.unwrap_or(self.unclip_ratio); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unclip_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shape` [INFO] [stdout] --> src/ocr/det/predict.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | let (resized, shape) = self.preprocess.resize(img, 960)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `forward` [INFO] [stdout] --> src/ocr/det/predict.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let forward = self.model.run(tvec![i2])?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_forward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bbox_threshold` [INFO] [stdout] --> src/ocr/pipeline.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(bbox_threshold: Option, unclip_ratio: Option, text_det_model: Option, text_rec: Option, text_rec... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bbox_threshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unclip_ratio` [INFO] [stdout] --> src/ocr/pipeline.rs:13:45 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(bbox_threshold: Option, unclip_ratio: Option, text_det_model: Option, text_rec: Option, text_rec... [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unclip_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_det_model` [INFO] [stdout] --> src/ocr/pipeline.rs:13:72 [INFO] [stdout] | [INFO] [stdout] 13 | ..._ratio: Option, text_det_model: Option, text_rec: Option, text_rec_dict: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_det_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_rec` [INFO] [stdout] --> src/ocr/pipeline.rs:13:104 [INFO] [stdout] | [INFO] [stdout] 13 | ...det_model: Option, text_rec: Option, text_rec_dict: Option) -> Self { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_rec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_rec_dict` [INFO] [stdout] --> src/ocr/pipeline.rs:13:130 [INFO] [stdout] | [INFO] [stdout] 13 | ..._rec: Option, text_rec_dict: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_rec_dict` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/ocr/pipeline.rs:22:34 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn detect_and_ocr(&self, img: &Mat, drop_score: Option, unclip_ration: Option, bbox_threshold: Option) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `drop_score` [INFO] [stdout] --> src/ocr/pipeline.rs:22:45 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn detect_and_ocr(&self, img: &Mat, drop_score: Option, unclip_ration: Option, bbox_threshold: Option) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_drop_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unclip_ration` [INFO] [stdout] --> src/ocr/pipeline.rs:22:70 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn detect_and_ocr(&self, img: &Mat, drop_score: Option, unclip_ration: Option, bbox_threshold: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unclip_ration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bbox_threshold` [INFO] [stdout] --> src/ocr/pipeline.rs:22:98 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn detect_and_ocr(&self, img: &Mat, drop_score: Option, unclip_ration: Option, bbox_threshold: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bbox_threshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TextDetector` is never constructed [INFO] [stdout] --> src/ocr/det/predict.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TextDetector { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `call` are never used [INFO] [stdout] --> src/ocr/det/predict.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl TextDetector { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 22 | [INFO] [stdout] 23 | pub fn new(model_path: &str, bbox_threshold: Option, unclip_ratio: Option) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn call(&self, img: &Mat, bbox_threshold: Option, unclip_ratio: Option) -> Result<(), Error> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Postprocess` is never constructed [INFO] [stdout] --> src/ocr/det/postprocess.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Postprocess { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ocr/det/postprocess.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Postprocess { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 7 | pub fn new(threshold: f32, min_size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Preprocess` is never constructed [INFO] [stdout] --> src/ocr/det/preprocess.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Preprocess { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `resize`, `normalize`, and `hwc_to_chw` are never used [INFO] [stdout] --> src/ocr/det/preprocess.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Preprocess { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn resize(&self, img: &Mat, limit_side_len: i32) -> Result<(Mat, Array1), Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn normalize(&self, img: &Mat, mean: Vec, std: Vec, scale: f32) -> Result, Error>{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn hwc_to_chw(&self, img: Array3) -> Array3 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pipeline` is never constructed [INFO] [stdout] --> src/ocr/pipeline.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Pipeline { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `detect_and_ocr` are never used [INFO] [stdout] --> src/ocr/pipeline.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Pipeline { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(bbox_threshold: Option, unclip_ratio: Option, text_det_model: Option, text_rec: Option, text_rec... [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn detect_and_ocr(&self, img: &Mat, drop_score: Option, unclip_ration: Option, bbox_threshold: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bbox` and `img` are never read [INFO] [stdout] --> src/ocr/pipeline.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct BoxedResult { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 30 | pub bbox: BoundingBox, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | pub img: Mat, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ocr/pipeline.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl BoxedResult { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 37 | pub fn new(bbox: BoundingBox, img: Mat, text: &str, score: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Detector` is never constructed [INFO] [stdout] --> src/alpr/alpr.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Detector { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `load` are never used [INFO] [stdout] --> src/alpr/alpr.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Detector { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(weight_path: &str, task: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn load(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ALPROptions` is never constructed [INFO] [stdout] --> src/alpr/alpr.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct ALPROptions { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `VehicleType` is never used [INFO] [stdout] --> src/alpr/alpr.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum VehicleType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VehicleType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ALPR` is never constructed [INFO] [stdout] --> src/alpr/alpr.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct ALPR { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `initialize` are never used [INFO] [stdout] --> src/alpr/alpr.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl ALPR { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 49 | pub fn new(opts: ALPROptions) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn initialize(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_image_to_mat` is never used [INFO] [stdout] --> src/utils/image.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn convert_image_to_mat(im_bytes: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bbox_threshold` [INFO] [stdout] --> src/ocr/det/predict.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let bbox_threshold = bbox_threshold.unwrap_or(self.bbox_threshold); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bbox_threshold` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unclip_ratio` [INFO] [stdout] --> src/ocr/det/predict.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let unclip_ratio= unclip_ratio.unwrap_or(self.unclip_ratio); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unclip_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shape` [INFO] [stdout] --> src/ocr/det/predict.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | let (resized, shape) = self.preprocess.resize(img, 960)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `forward` [INFO] [stdout] --> src/ocr/det/predict.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let forward = self.model.run(tvec![i2])?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_forward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ocr/det/predict.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shape` [INFO] [stdout] --> src/ocr/det/predict.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 89 | let (img, shape) = detector.preprocess.resize(&image, 960).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shape` [INFO] [stdout] --> src/ocr/det/predict.rs:99:19 [INFO] [stdout] | [INFO] [stdout] 99 | let (img, shape) = detector.preprocess.resize(&image, 960).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bbox_threshold` [INFO] [stdout] --> src/ocr/pipeline.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(bbox_threshold: Option, unclip_ratio: Option, text_det_model: Option, text_rec: Option, text_rec... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bbox_threshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unclip_ratio` [INFO] [stdout] --> src/ocr/pipeline.rs:13:45 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(bbox_threshold: Option, unclip_ratio: Option, text_det_model: Option, text_rec: Option, text_rec... [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unclip_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_det_model` [INFO] [stdout] --> src/ocr/pipeline.rs:13:72 [INFO] [stdout] | [INFO] [stdout] 13 | ..._ratio: Option, text_det_model: Option, text_rec: Option, text_rec_dict: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_det_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_rec` [INFO] [stdout] --> src/ocr/pipeline.rs:13:104 [INFO] [stdout] | [INFO] [stdout] 13 | ...det_model: Option, text_rec: Option, text_rec_dict: Option) -> Self { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_rec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_rec_dict` [INFO] [stdout] --> src/ocr/pipeline.rs:13:130 [INFO] [stdout] | [INFO] [stdout] 13 | ..._rec: Option, text_rec_dict: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_rec_dict` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/ocr/pipeline.rs:22:34 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn detect_and_ocr(&self, img: &Mat, drop_score: Option, unclip_ration: Option, bbox_threshold: Option) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `drop_score` [INFO] [stdout] --> src/ocr/pipeline.rs:22:45 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn detect_and_ocr(&self, img: &Mat, drop_score: Option, unclip_ration: Option, bbox_threshold: Option) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_drop_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unclip_ration` [INFO] [stdout] --> src/ocr/pipeline.rs:22:70 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn detect_and_ocr(&self, img: &Mat, drop_score: Option, unclip_ration: Option, bbox_threshold: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unclip_ration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bbox_threshold` [INFO] [stdout] --> src/ocr/pipeline.rs:22:98 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn detect_and_ocr(&self, img: &Mat, drop_score: Option, unclip_ration: Option, bbox_threshold: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bbox_threshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `model_path` and `postprocess` are never read [INFO] [stdout] --> src/ocr/det/predict.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TextDetector { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 12 | model_path: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | postprocess: Postprocess, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `threshold` and `min_size` are never read [INFO] [stdout] --> src/ocr/det/postprocess.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Postprocess { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 2 | threshold: f32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 3 | min_size: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pipeline` is never constructed [INFO] [stdout] --> src/ocr/pipeline.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Pipeline { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `detect_and_ocr` are never used [INFO] [stdout] --> src/ocr/pipeline.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Pipeline { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(bbox_threshold: Option, unclip_ratio: Option, text_det_model: Option, text_rec: Option, text_rec... [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn detect_and_ocr(&self, img: &Mat, drop_score: Option, unclip_ration: Option, bbox_threshold: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bbox` and `img` are never read [INFO] [stdout] --> src/ocr/pipeline.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct BoxedResult { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 30 | pub bbox: BoundingBox, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | pub img: Mat, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ocr/pipeline.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl BoxedResult { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 37 | pub fn new(bbox: BoundingBox, img: Mat, text: &str, score: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Detector` is never constructed [INFO] [stdout] --> src/alpr/alpr.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Detector { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `load` are never used [INFO] [stdout] --> src/alpr/alpr.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Detector { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(weight_path: &str, task: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn load(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ALPROptions` is never constructed [INFO] [stdout] --> src/alpr/alpr.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct ALPROptions { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `VehicleType` is never used [INFO] [stdout] --> src/alpr/alpr.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum VehicleType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VehicleType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ALPR` is never constructed [INFO] [stdout] --> src/alpr/alpr.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct ALPR { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `initialize` are never used [INFO] [stdout] --> src/alpr/alpr.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl ALPR { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 49 | pub fn new(opts: ALPROptions) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn initialize(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/ocr/det/predict.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | detector.preprocess.normalize(&img, vec![0.485, 0.456, 0.406], vec![0.229, 0.224, 0.225], 1f32/255f32); [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] 90 | let _ = detector.preprocess.normalize(&img, vec![0.485, 0.456, 0.406], vec![0.229, 0.224, 0.225], 1f32/255f32); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 58s [INFO] running `Command { std: "docker" "inspect" "8fdedb71c8c1ad6606cdde20217eb2bd760dbd512e017f98e63a2dd9f127f602", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fdedb71c8c1ad6606cdde20217eb2bd760dbd512e017f98e63a2dd9f127f602", kill_on_drop: false }` [INFO] [stdout] 8fdedb71c8c1ad6606cdde20217eb2bd760dbd512e017f98e63a2dd9f127f602