[INFO] cloning repository https://github.com/lilyquu/gltf_decimation [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lilyquu/gltf_decimation" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flilyquu%2Fgltf_decimation", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flilyquu%2Fgltf_decimation'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b74c352786e8aaba5657dfbd0923d2b536e6177f [INFO] checking lilyquu/gltf_decimation against try#0cb362313295507a2f4321c0e30cea0168f2fe71 for pr-138961-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flilyquu%2Fgltf_decimation" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lilyquu/gltf_decimation [INFO] finished tweaking git repo https://github.com/lilyquu/gltf_decimation [INFO] tweaked toml for git repo https://github.com/lilyquu/gltf_decimation written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lilyquu/gltf_decimation on toolchain 0cb362313295507a2f4321c0e30cea0168f2fe71 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lilyquu/gltf_decimation 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" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clap_derive v4.5.3 [INFO] [stderr] Downloaded clap v4.5.3 [INFO] [stderr] Downloaded nalgebra v0.32.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b7145c7a5ffe603dce068d75d49c6c65c140f733c18d4eee72c2e27e52325e4c [INFO] running `Command { std: "docker" "start" "-a" "b7145c7a5ffe603dce068d75d49c6c65c140f733c18d4eee72c2e27e52325e4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b7145c7a5ffe603dce068d75d49c6c65c140f733c18d4eee72c2e27e52325e4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7145c7a5ffe603dce068d75d49c6c65c140f733c18d4eee72c2e27e52325e4c", kill_on_drop: false }` [INFO] [stdout] b7145c7a5ffe603dce068d75d49c6c65c140f733c18d4eee72c2e27e52325e4c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e7e6be65c668d0e9f0fe0969f02e0a17fea31a9c77f4c47b54f620fe6ab65ad8 [INFO] running `Command { std: "docker" "start" "-a" "e7e6be65c668d0e9f0fe0969f02e0a17fea31a9c77f4c47b54f620fe6ab65ad8", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking bytemuck v1.15.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Checking wide v0.7.15 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling nalgebra-macros v0.2.1 [INFO] [stderr] Compiling clap_derive v4.5.3 [INFO] [stderr] Checking clap v4.5.3 [INFO] [stderr] Checking nalgebra v0.32.5 [INFO] [stderr] Checking decimation_gltf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `prelude::*` [INFO] [stdout] --> src/main.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, Write, Read, prelude::*}; [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: `Number` [INFO] [stdout] --> src/main.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{json, Value, Number, to_vec, Map}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hash` and `Hasher` [INFO] [stdout] --> src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Matrix1x4` and `Unit` [INFO] [stdout] --> src/main.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use nalgebra::{Matrix1x4, Matrix4, Matrix4x1, Unit, Vector2, Vector3, Vector4}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json::JsonValue` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use json::JsonValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::*` [INFO] [stdout] --> src/main.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, Write, Read, prelude::*}; [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: `Number` [INFO] [stdout] --> src/main.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{json, Value, Number, to_vec, Map}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hash` and `Hasher` [INFO] [stdout] --> src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Matrix1x4` and `Unit` [INFO] [stdout] --> src/main.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use nalgebra::{Matrix1x4, Matrix4, Matrix4x1, Unit, Vector2, Vector3, Vector4}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json::JsonValue` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use json::JsonValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:120:63 [INFO] [stdout] | [INFO] [stdout] 120 | let (mut index_list, mut normal_list, mut position_list, mut tangent_list, mut texcoord_0_list, mut json, mut primitives) = un... [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:120:102 [INFO] [stdout] | [INFO] [stdout] 120 | ...tion_list, mut tangent_list, mut texcoord_0_list, mut json, mut primitives) = unpack_gltf(path); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:120:112 [INFO] [stdout] | [INFO] [stdout] 120 | ... mut tangent_list, mut texcoord_0_list, mut json, mut primitives) = unpack_gltf(path); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let mut valid_edge = get_valid_edge(&index_list, &position_list, &vertex_list); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | let mut new_p = Vector3::new((p1[0]+p2[0])/2.0, (p1[1]+p2[1])/2.0, (p1[2]+p2[2])/2.0); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | for i in 0..position_list.len() { [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: `file` [INFO] [stdout] --> src/main.rs:399:9 [INFO] [stdout] | [INFO] [stdout] 399 | let file = repack_gltf(json, index_ref, index_list, &normal_list, &position_list, &texcoord_0_list, &primitives); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:410:29 [INFO] [stdout] | [INFO] [stdout] 410 | let index = if let Some(mut index) = json["meshes"][0]["primitives"][0]["indices"].as_i64(){ [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tangent` [INFO] [stdout] --> src/main.rs:431:9 [INFO] [stdout] | [INFO] [stdout] 431 | let tangent = if let Some(tangent) = json["meshes"][0]["primitives"][0]["attributes"]["TANGENT"].as_i64(){ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tangent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cost` is never read [INFO] [stdout] --> src/main.rs:702:20 [INFO] [stdout] | [INFO] [stdout] 702 | let mut cost = f32::MAX; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cost` is never read [INFO] [stdout] --> src/main.rs:712:13 [INFO] [stdout] | [INFO] [stdout] 712 | / cost = q[0]*v[0]*v[0] + [INFO] [stdout] 713 | | 2.0*q[1]*v[0]*v[1] + [INFO] [stdout] 714 | | 2.0*q[2]*v[0]*v[2] + [INFO] [stdout] 715 | | 2.0*q[3]*v[0] + [INFO] [stdout] ... | [INFO] [stdout] 719 | | q[7]*v[2]*v[2] + [INFO] [stdout] 720 | | 2.0*q[8]*v[2] + q[9]; [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cost` is never read [INFO] [stdout] --> src/main.rs:723:13 [INFO] [stdout] | [INFO] [stdout] 723 | / cost = q[0]*new_pos[0]*new_pos[0] + [INFO] [stdout] 724 | | 2.0*q[1]*new_pos[0]*new_pos[1] + [INFO] [stdout] 725 | | 2.0*q[2]*new_pos[0]*new_pos[2] + [INFO] [stdout] 726 | | 2.0*q[3]*new_pos[0] + [INFO] [stdout] ... | [INFO] [stdout] 730 | | q[7]*new_pos[2]*new_pos[2] + [INFO] [stdout] 731 | | 2.0*q[8]*new_pos[2] + q[9]; [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal_list` [INFO] [stdout] --> src/main.rs:746:38 [INFO] [stdout] | [INFO] [stdout] 746 | fn initialize(index_list:&Vec, normal_list:&HashMap>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tangent_list` [INFO] [stdout] --> src/main.rs:748:14 [INFO] [stdout] | [INFO] [stdout] 748 | tangent_list:&HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tangent_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texcoord_0_list` [INFO] [stdout] --> src/main.rs:749:14 [INFO] [stdout] | [INFO] [stdout] 749 | texcoord_0_list:&HashMap>) -> (HashMap, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texcoord_0_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:871:9 [INFO] [stdout] | [INFO] [stdout] 871 | let mut json:Value = serde_json::from_slice(json_chunk).expect("Failed to parse JSON"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:894:31 [INFO] [stdout] | [INFO] [stdout] 894 | let indices = if let Some(mut indices) = json["meshes"][0]["primitives"][0]["indices"].as_i64(){ [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:964:13 [INFO] [stdout] | [INFO] [stdout] 964 | let mut t = primitives.get("indices").unwrap().componentType; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:965:13 [INFO] [stdout] | [INFO] [stdout] 965 | let mut num = primitives.get("indices").unwrap().count; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `byteOffset`, `normalized`, and `prim_type` are never read [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 37 | struct Prim { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 38 | bufferView: u32, [INFO] [stdout] 39 | byteOffset: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 40 | componentType: u32, [INFO] [stdout] 41 | normalized: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 42 | count: u32, [INFO] [stdout] 43 | prim_type: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Prim` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `buffer` and `byteLength` are never read [INFO] [stdout] --> src/main.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 61 | struct View { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 62 | buffer: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 63 | byteLength: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `View` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tri_normal` is never used [INFO] [stdout] --> src/main.rs:646:4 [INFO] [stdout] | [INFO] [stdout] 646 | fn tri_normal(v0: Vector3, v1: Vector3, v2: Vector3) -> Vector3 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `bufferView` should have a snake case name [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | bufferView: u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `buffer_view` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `byteOffset` should have a snake case name [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | byteOffset: u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `componentType` should have a snake case name [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | componentType: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `component_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferView` should have a snake case name [INFO] [stdout] --> src/main.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | fn new(bufferView:u32, byteOffset:u32, componentType:u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `buffer_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `byteOffset` should have a snake case name [INFO] [stdout] --> src/main.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | fn new(bufferView:u32, byteOffset:u32, componentType:u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `componentType` should have a snake case name [INFO] [stdout] --> src/main.rs:47:44 [INFO] [stdout] | [INFO] [stdout] 47 | fn new(bufferView:u32, byteOffset:u32, componentType:u32, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `component_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `byteLength` should have a snake case name [INFO] [stdout] --> src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | byteLength: u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `byteOffset` should have a snake case name [INFO] [stdout] --> src/main.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | byteOffset: u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `byteLength` should have a snake case name [INFO] [stdout] --> src/main.rs:68:24 [INFO] [stdout] | [INFO] [stdout] 68 | fn new(buffer:u32, byteLength:u32, byteOffset:u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `byteOffset` should have a snake case name [INFO] [stdout] --> src/main.rs:68:40 [INFO] [stdout] | [INFO] [stdout] 68 | fn new(buffer:u32, byteLength:u32, byteOffset:u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NORMAL` should have a snake case name [INFO] [stdout] --> src/main.rs:447:9 [INFO] [stdout] | [INFO] [stdout] 447 | let NORMAL = primitives.get("NORMAL").unwrap(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `POSITION` should have a snake case name [INFO] [stdout] --> src/main.rs:448:9 [INFO] [stdout] | [INFO] [stdout] 448 | let POSITION = primitives.get("POSITION").unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TEXCOORD_0` should have a snake case name [INFO] [stdout] --> src/main.rs:449:9 [INFO] [stdout] | [INFO] [stdout] 449 | let TEXCOORD_0 = primitives.get("TEXCOORD_0").unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `texcoord_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferView` should have a snake case name [INFO] [stdout] --> src/main.rs:934:17 [INFO] [stdout] | [INFO] [stdout] 934 | let bufferView = accessor["bufferView"].as_u64().unwrap_or(0) as u32; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `buffer_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `byteOffset` should have a snake case name [INFO] [stdout] --> src/main.rs:935:17 [INFO] [stdout] | [INFO] [stdout] 935 | let byteOffset = accessor["byteOffset"].as_u64().unwrap_or(0) as u32; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `componentType` should have a snake case name [INFO] [stdout] --> src/main.rs:936:17 [INFO] [stdout] | [INFO] [stdout] 936 | let componentType = accessor["componentType"].as_u64().unwrap() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `component_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:120:63 [INFO] [stdout] | [INFO] [stdout] 120 | let (mut index_list, mut normal_list, mut position_list, mut tangent_list, mut texcoord_0_list, mut json, mut primitives) = un... [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:120:102 [INFO] [stdout] | [INFO] [stdout] 120 | ...tion_list, mut tangent_list, mut texcoord_0_list, mut json, mut primitives) = unpack_gltf(path); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:120:112 [INFO] [stdout] | [INFO] [stdout] 120 | ... mut tangent_list, mut texcoord_0_list, mut json, mut primitives) = unpack_gltf(path); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let mut valid_edge = get_valid_edge(&index_list, &position_list, &vertex_list); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | let mut new_p = Vector3::new((p1[0]+p2[0])/2.0, (p1[1]+p2[1])/2.0, (p1[2]+p2[2])/2.0); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | for i in 0..position_list.len() { [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: `file` [INFO] [stdout] --> src/main.rs:399:9 [INFO] [stdout] | [INFO] [stdout] 399 | let file = repack_gltf(json, index_ref, index_list, &normal_list, &position_list, &texcoord_0_list, &primitives); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:410:29 [INFO] [stdout] | [INFO] [stdout] 410 | let index = if let Some(mut index) = json["meshes"][0]["primitives"][0]["indices"].as_i64(){ [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tangent` [INFO] [stdout] --> src/main.rs:431:9 [INFO] [stdout] | [INFO] [stdout] 431 | let tangent = if let Some(tangent) = json["meshes"][0]["primitives"][0]["attributes"]["TANGENT"].as_i64(){ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tangent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cost` is never read [INFO] [stdout] --> src/main.rs:702:20 [INFO] [stdout] | [INFO] [stdout] 702 | let mut cost = f32::MAX; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cost` is never read [INFO] [stdout] --> src/main.rs:712:13 [INFO] [stdout] | [INFO] [stdout] 712 | / cost = q[0]*v[0]*v[0] + [INFO] [stdout] 713 | | 2.0*q[1]*v[0]*v[1] + [INFO] [stdout] 714 | | 2.0*q[2]*v[0]*v[2] + [INFO] [stdout] 715 | | 2.0*q[3]*v[0] + [INFO] [stdout] ... | [INFO] [stdout] 719 | | q[7]*v[2]*v[2] + [INFO] [stdout] 720 | | 2.0*q[8]*v[2] + q[9]; [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cost` is never read [INFO] [stdout] --> src/main.rs:723:13 [INFO] [stdout] | [INFO] [stdout] 723 | / cost = q[0]*new_pos[0]*new_pos[0] + [INFO] [stdout] 724 | | 2.0*q[1]*new_pos[0]*new_pos[1] + [INFO] [stdout] 725 | | 2.0*q[2]*new_pos[0]*new_pos[2] + [INFO] [stdout] 726 | | 2.0*q[3]*new_pos[0] + [INFO] [stdout] ... | [INFO] [stdout] 730 | | q[7]*new_pos[2]*new_pos[2] + [INFO] [stdout] 731 | | 2.0*q[8]*new_pos[2] + q[9]; [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal_list` [INFO] [stdout] --> src/main.rs:746:38 [INFO] [stdout] | [INFO] [stdout] 746 | fn initialize(index_list:&Vec, normal_list:&HashMap>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tangent_list` [INFO] [stdout] --> src/main.rs:748:14 [INFO] [stdout] | [INFO] [stdout] 748 | tangent_list:&HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tangent_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texcoord_0_list` [INFO] [stdout] --> src/main.rs:749:14 [INFO] [stdout] | [INFO] [stdout] 749 | texcoord_0_list:&HashMap>) -> (HashMap, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texcoord_0_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:871:9 [INFO] [stdout] | [INFO] [stdout] 871 | let mut json:Value = serde_json::from_slice(json_chunk).expect("Failed to parse JSON"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:894:31 [INFO] [stdout] | [INFO] [stdout] 894 | let indices = if let Some(mut indices) = json["meshes"][0]["primitives"][0]["indices"].as_i64(){ [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:964:13 [INFO] [stdout] | [INFO] [stdout] 964 | let mut t = primitives.get("indices").unwrap().componentType; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:965:13 [INFO] [stdout] | [INFO] [stdout] 965 | let mut num = primitives.get("indices").unwrap().count; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `byteOffset`, `normalized`, and `prim_type` are never read [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 37 | struct Prim { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 38 | bufferView: u32, [INFO] [stdout] 39 | byteOffset: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 40 | componentType: u32, [INFO] [stdout] 41 | normalized: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 42 | count: u32, [INFO] [stdout] 43 | prim_type: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Prim` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `buffer` and `byteLength` are never read [INFO] [stdout] --> src/main.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 61 | struct View { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 62 | buffer: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 63 | byteLength: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `View` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tri_normal` is never used [INFO] [stdout] --> src/main.rs:646:4 [INFO] [stdout] | [INFO] [stdout] 646 | fn tri_normal(v0: Vector3, v1: Vector3, v2: Vector3) -> Vector3 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `bufferView` should have a snake case name [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | bufferView: u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `buffer_view` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `byteOffset` should have a snake case name [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | byteOffset: u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `componentType` should have a snake case name [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | componentType: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `component_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferView` should have a snake case name [INFO] [stdout] --> src/main.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | fn new(bufferView:u32, byteOffset:u32, componentType:u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `buffer_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `byteOffset` should have a snake case name [INFO] [stdout] --> src/main.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | fn new(bufferView:u32, byteOffset:u32, componentType:u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `componentType` should have a snake case name [INFO] [stdout] --> src/main.rs:47:44 [INFO] [stdout] | [INFO] [stdout] 47 | fn new(bufferView:u32, byteOffset:u32, componentType:u32, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `component_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `byteLength` should have a snake case name [INFO] [stdout] --> src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | byteLength: u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `byteOffset` should have a snake case name [INFO] [stdout] --> src/main.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | byteOffset: u32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `byteLength` should have a snake case name [INFO] [stdout] --> src/main.rs:68:24 [INFO] [stdout] | [INFO] [stdout] 68 | fn new(buffer:u32, byteLength:u32, byteOffset:u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `byteOffset` should have a snake case name [INFO] [stdout] --> src/main.rs:68:40 [INFO] [stdout] | [INFO] [stdout] 68 | fn new(buffer:u32, byteLength:u32, byteOffset:u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NORMAL` should have a snake case name [INFO] [stdout] --> src/main.rs:447:9 [INFO] [stdout] | [INFO] [stdout] 447 | let NORMAL = primitives.get("NORMAL").unwrap(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `POSITION` should have a snake case name [INFO] [stdout] --> src/main.rs:448:9 [INFO] [stdout] | [INFO] [stdout] 448 | let POSITION = primitives.get("POSITION").unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TEXCOORD_0` should have a snake case name [INFO] [stdout] --> src/main.rs:449:9 [INFO] [stdout] | [INFO] [stdout] 449 | let TEXCOORD_0 = primitives.get("TEXCOORD_0").unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `texcoord_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferView` should have a snake case name [INFO] [stdout] --> src/main.rs:934:17 [INFO] [stdout] | [INFO] [stdout] 934 | let bufferView = accessor["bufferView"].as_u64().unwrap_or(0) as u32; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `buffer_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `byteOffset` should have a snake case name [INFO] [stdout] --> src/main.rs:935:17 [INFO] [stdout] | [INFO] [stdout] 935 | let byteOffset = accessor["byteOffset"].as_u64().unwrap_or(0) as u32; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `byte_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `componentType` should have a snake case name [INFO] [stdout] --> src/main.rs:936:17 [INFO] [stdout] | [INFO] [stdout] 936 | let componentType = accessor["componentType"].as_u64().unwrap() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `component_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 32.09s [INFO] running `Command { std: "docker" "inspect" "e7e6be65c668d0e9f0fe0969f02e0a17fea31a9c77f4c47b54f620fe6ab65ad8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7e6be65c668d0e9f0fe0969f02e0a17fea31a9c77f4c47b54f620fe6ab65ad8", kill_on_drop: false }` [INFO] [stdout] e7e6be65c668d0e9f0fe0969f02e0a17fea31a9c77f4c47b54f620fe6ab65ad8