[INFO] cloning repository https://github.com/MoMus2000/computer-vision [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MoMus2000/computer-vision" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMoMus2000%2Fcomputer-vision", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMoMus2000%2Fcomputer-vision'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f441602645fee0530777cd522a69ca7c024b2568 [INFO] building MoMus2000/computer-vision against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMoMus2000%2Fcomputer-vision" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/MoMus2000/computer-vision [INFO] finished tweaking git repo https://github.com/MoMus2000/computer-vision [INFO] tweaked toml for git repo https://github.com/MoMus2000/computer-vision written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/MoMus2000/computer-vision on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/MoMus2000/computer-vision 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded actix-server v2.4.0 [INFO] [stderr] Downloaded parse-size v1.0.0 [INFO] [stderr] Downloaded actix-multipart-derive v0.7.0 [INFO] [stderr] Downloaded serde_plain v1.0.2 [INFO] [stderr] Downloaded actix-multipart v0.7.2 [INFO] [stderr] Downloaded indicatif v0.17.8 [INFO] [stderr] Downloaded actix-files v0.6.6 [INFO] [stderr] Downloaded zstd-safe v7.2.0 [INFO] [stderr] Downloaded bytes v1.7.0 [INFO] [stderr] Downloaded serde_json v1.0.121 [INFO] [stderr] Downloaded portable-atomic v1.7.0 [INFO] [stderr] Downloaded zstd-sys v2.0.12+zstd.1.5.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 964db2c16cf54e8b00195c0e326eb21732a7f11469daeebff05ad85e70ae272e [INFO] running `Command { std: "docker" "start" "-a" "964db2c16cf54e8b00195c0e326eb21732a7f11469daeebff05ad85e70ae272e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "964db2c16cf54e8b00195c0e326eb21732a7f11469daeebff05ad85e70ae272e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "964db2c16cf54e8b00195c0e326eb21732a7f11469daeebff05ad85e70ae272e", kill_on_drop: false }` [INFO] [stdout] 964db2c16cf54e8b00195c0e326eb21732a7f11469daeebff05ad85e70ae272e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71d878264341a7a08fb1bf569a28ab807815ae3ab6be67c41999c277cb3f0fae [INFO] running `Command { std: "docker" "start" "-a" "71d878264341a7a08fb1bf569a28ab807815ae3ab6be67c41999c277cb3f0fae", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling bytes v1.7.0 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling zstd-safe v7.2.0 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling built v0.7.4 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling serde_json v1.0.121 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.1 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling v_frame v0.3.8 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling cc v1.1.7 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling bytemuck v1.16.3 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling imgref v1.10.1 [INFO] [stderr] Compiling v_htmlescape v0.15.8 [INFO] [stderr] Compiling portable-atomic v1.7.0 [INFO] [stderr] Compiling bitstream-io v2.5.0 [INFO] [stderr] Compiling loop9 v0.1.5 [INFO] [stderr] Compiling rgb v0.8.45 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling avif-serialize v0.8.1 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling parse-size v1.0.0 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling exr v1.72.0 [INFO] [stderr] Compiling image-webp v0.1.3 [INFO] [stderr] Compiling console v0.15.8 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling zstd-sys v2.0.12+zstd.1.5.6 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling http-range v0.1.5 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling indicatif v0.17.8 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling av1-grain v0.2.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_plain v1.0.2 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling zerocopy-derive v0.6.6 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling profiling-procmacros v1.0.15 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling profiling v1.0.15 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling tokio v1.39.2 [INFO] [stderr] Compiling zerocopy v0.6.6 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling ppv-lite86 v0.2.18 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling actix-multipart-derive v0.7.0 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling actix-server v2.4.0 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling ravif v0.11.9 [INFO] [stderr] Compiling image v0.25.2 [INFO] [stderr] Compiling actix-http v3.8.0 [INFO] [stderr] Compiling actix-web v4.8.0 [INFO] [stderr] Compiling actix-files v0.6.6 [INFO] [stderr] Compiling actix-multipart v0.7.2 [INFO] [stderr] Compiling comp_vision v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rayon::vec` [INFO] [stdout] --> src/cv/vision.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rayon::vec; [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: `thread_rng` [INFO] [stdout] --> src/cv/vision.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cv/vision.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | let mut test_img = image::ImageBuffer::new(width, height); [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: `i` [INFO] [stdout] --> src/cv/vision.rs:300:13 [INFO] [stdout] | [INFO] [stdout] 300 | for i in 0 .. 10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clusters` [INFO] [stdout] --> src/cv/vision.rs:301:17 [INFO] [stdout] | [INFO] [stdout] 301 | let clusters = CompVision::assign_clusters(¢roids, &vectors); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clusters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/cv/vision.rs:323:25 [INFO] [stdout] | [INFO] [stdout] 323 | fn update_centroids(data:Vec, clusters: Vec, k: usize) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clusters` [INFO] [stdout] --> src/cv/vision.rs:323:42 [INFO] [stdout] | [INFO] [stdout] 323 | fn update_centroids(data:Vec, clusters: Vec, k: usize) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clusters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/cv/vision.rs:323:64 [INFO] [stdout] | [INFO] [stdout] 323 | fn update_centroids(data:Vec, clusters: Vec, k: usize) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/cv/vision.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl CompVision{ [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | fn split_rbg(pixel: Rgb) -> (f32, f32, f32){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn convert_to_grayscale(&self) -> Result, Vec>, Error>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn create_gaussian_kernel_2d(radius: usize, sigma: f32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | fn gaussian_blur(img: DynamicImage, radius: usize, sigma: f32) -> Result, Vec>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | fn box_blur(img: DynamicImage, radius: u32) -> Result, Vec>, Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | fn edge_detection_gaussian(img: DynamicImage) -> Result, Vec>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn kmeans(img: DynamicImage, palette: usize)-> Result, Vec>, Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 296 | fn create_cluster(map: HashMap, usize>, palette: usize){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn assign_clusters(centroids: &Vec, pixels: &Vec) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | fn update_centroids(data:Vec, clusters: Vec, k: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | fn map_to_vec(map: HashMap, usize>) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 335 | fn initialize_centroids(data: &Vec, palette: usize) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_image` is never used [INFO] [stdout] --> src/cv/vision.rs:347:4 [INFO] [stdout] | [INFO] [stdout] 347 | fn process_image(image_path: &str) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vec3d` is never constructed [INFO] [stdout] --> src/cv/vision.rs:378:12 [INFO] [stdout] | [INFO] [stdout] 378 | pub struct Vec3d { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `calcluate_distance` are never used [INFO] [stdout] --> src/cv/vision.rs:385:12 [INFO] [stdout] | [INFO] [stdout] 384 | impl Vec3d{ [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 385 | pub fn new(x: f32, y: f32, z: f32) -> Vec3d{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 389 | pub fn calcluate_distance(&self, vec: Vec3d) -> f32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `kmeans_filter` is never used [INFO] [stdout] --> src/cv/kmeans.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn kmeans_filter(video_path: &str) -> Result<(), Error>{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 27s [INFO] running `Command { std: "docker" "inspect" "71d878264341a7a08fb1bf569a28ab807815ae3ab6be67c41999c277cb3f0fae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71d878264341a7a08fb1bf569a28ab807815ae3ab6be67c41999c277cb3f0fae", kill_on_drop: false }` [INFO] [stdout] 71d878264341a7a08fb1bf569a28ab807815ae3ab6be67c41999c277cb3f0fae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1758817b4a95a19b6a13dd72b9c778271d6161ee0ddd8ff9eb063bef847ea87 [INFO] running `Command { std: "docker" "start" "-a" "c1758817b4a95a19b6a13dd72b9c778271d6161ee0ddd8ff9eb063bef847ea87", kill_on_drop: false }` [INFO] [stderr] Compiling comp_vision v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rayon::vec` [INFO] [stdout] --> src/cv/vision.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rayon::vec; [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: `thread_rng` [INFO] [stdout] --> src/cv/vision.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cv/vision.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | let mut test_img = image::ImageBuffer::new(width, height); [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: `i` [INFO] [stdout] --> src/cv/vision.rs:300:13 [INFO] [stdout] | [INFO] [stdout] 300 | for i in 0 .. 10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clusters` [INFO] [stdout] --> src/cv/vision.rs:301:17 [INFO] [stdout] | [INFO] [stdout] 301 | let clusters = CompVision::assign_clusters(¢roids, &vectors); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clusters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/cv/vision.rs:323:25 [INFO] [stdout] | [INFO] [stdout] 323 | fn update_centroids(data:Vec, clusters: Vec, k: usize) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clusters` [INFO] [stdout] --> src/cv/vision.rs:323:42 [INFO] [stdout] | [INFO] [stdout] 323 | fn update_centroids(data:Vec, clusters: Vec, k: usize) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clusters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/cv/vision.rs:323:64 [INFO] [stdout] | [INFO] [stdout] 323 | fn update_centroids(data:Vec, clusters: Vec, k: usize) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/cv/vision.rs:369:13 [INFO] [stdout] | [INFO] [stdout] 369 | let res = CompVision::kmeans(img.image, 10)?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/cv/vision.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl CompVision{ [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | fn split_rbg(pixel: Rgb) -> (f32, f32, f32){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn convert_to_grayscale(&self) -> Result, Vec>, Error>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn create_gaussian_kernel_2d(radius: usize, sigma: f32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | fn gaussian_blur(img: DynamicImage, radius: usize, sigma: f32) -> Result, Vec>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | fn box_blur(img: DynamicImage, radius: u32) -> Result, Vec>, Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | fn edge_detection_gaussian(img: DynamicImage) -> Result, Vec>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | fn update_centroids(data:Vec, clusters: Vec, k: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_image` is never used [INFO] [stdout] --> src/cv/vision.rs:347:4 [INFO] [stdout] | [INFO] [stdout] 347 | fn process_image(image_path: &str) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `kmeans_filter` is never used [INFO] [stdout] --> src/cv/kmeans.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn kmeans_filter(video_path: &str) -> Result<(), Error>{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.19s [INFO] running `Command { std: "docker" "inspect" "c1758817b4a95a19b6a13dd72b9c778271d6161ee0ddd8ff9eb063bef847ea87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1758817b4a95a19b6a13dd72b9c778271d6161ee0ddd8ff9eb063bef847ea87", kill_on_drop: false }` [INFO] [stdout] c1758817b4a95a19b6a13dd72b9c778271d6161ee0ddd8ff9eb063bef847ea87