[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 master#2e6fc425411280c658d852813de01c5157255088 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flilyquu%2Fgltf_decimation" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lilyquu/gltf_decimation on toolchain 2e6fc425411280c658d852813de01c5157255088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-7-tc1/source/Cargo.toml [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" "+2e6fc425411280c658d852813de01c5157255088" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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] 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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e2961755032e7efdb417b7311b7857b1538e1e3131839af5714dd46a25332e74 [INFO] running `Command { std: "docker" "start" "-a" "e2961755032e7efdb417b7311b7857b1538e1e3131839af5714dd46a25332e74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e2961755032e7efdb417b7311b7857b1538e1e3131839af5714dd46a25332e74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2961755032e7efdb417b7311b7857b1538e1e3131839af5714dd46a25332e74", kill_on_drop: false }` [INFO] [stdout] e2961755032e7efdb417b7311b7857b1538e1e3131839af5714dd46a25332e74 [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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cf245e675957191e69a757d249d0aa00b98ec721cd0432484b58480ea882d4ab [INFO] running `Command { std: "docker" "start" "-a" "cf245e675957191e69a757d249d0aa00b98ec721cd0432484b58480ea882d4ab", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking bytemuck v1.15.0 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Checking strsim v0.11.0 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Checking wide v0.7.15 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-integer v0.1.46 [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)]` 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)]` 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 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)]` 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: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) = unpack_g... [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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)]` 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:120:102 [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) = unpack_g... [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 | ...st, 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: `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: 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: value assigned to `cost` is never read [INFO] [stdout] --> src/main.rs:702:13 [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)]` 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] | ^^^^ [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] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [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) = unpack_g... [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:120:102 [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) = unpack_g... [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 | ...st, 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: `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: 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: 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: 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: 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)]` 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: value assigned to `cost` is never read [INFO] [stdout] --> src/main.rs:702:13 [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)]` on by default [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)]` 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] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [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: 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] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [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: 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: 43 warnings emitted [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)]` 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)]` 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: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.05s [INFO] running `Command { std: "docker" "inspect" "cf245e675957191e69a757d249d0aa00b98ec721cd0432484b58480ea882d4ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf245e675957191e69a757d249d0aa00b98ec721cd0432484b58480ea882d4ab", kill_on_drop: false }` [INFO] [stdout] cf245e675957191e69a757d249d0aa00b98ec721cd0432484b58480ea882d4ab