[INFO] cloning repository https://github.com/Peanuttown/rustOpengl [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Peanuttown/rustOpengl" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPeanuttown%2FrustOpengl", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPeanuttown%2FrustOpengl'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 37ffdc2ea4357724e0374d8da7068a8977174515 [INFO] checking Peanuttown/rustOpengl against try#3e22d1f9053c0fc87629b3c6d5d9567856368e5d for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPeanuttown%2FrustOpengl" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Peanuttown/rustOpengl on toolchain 3e22d1f9053c0fc87629b3c6d5d9567856368e5d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Peanuttown/rustOpengl [INFO] finished tweaking git repo https://github.com/Peanuttown/rustOpengl [INFO] tweaked toml for git repo https://github.com/Peanuttown/rustOpengl written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/Peanuttown/rustOpengl already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/bjz/glfw-rs.git` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a30e1623aaf12d749cb1681fa435de48fb2a0115189feada1b9c11edba88a1ba [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a30e1623aaf12d749cb1681fa435de48fb2a0115189feada1b9c11edba88a1ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a30e1623aaf12d749cb1681fa435de48fb2a0115189feada1b9c11edba88a1ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a30e1623aaf12d749cb1681fa435de48fb2a0115189feada1b9c11edba88a1ba", kill_on_drop: false }` [INFO] [stdout] a30e1623aaf12d749cb1681fa435de48fb2a0115189feada1b9c11edba88a1ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f29c330feb2b5746db2b18611331ed4854edd9b75b297e077e3c5e8084b5a49 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0f29c330feb2b5746db2b18611331ed4854edd9b75b297e077e3c5e8084b5a49", kill_on_drop: false }` [INFO] [stderr] Checking tobj v0.1.11 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking png v0.12.0 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking glfw v0.36.0 (https://github.com/bjz/glfw-rs.git#7c50c97e) [INFO] [stderr] Checking image v0.19.0 [INFO] [stderr] Checking cgmath v0.16.1 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Checking tzzgl v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::BufReader` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::BufReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/lib.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::{Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Camera_Movement` should have an upper camel case name [INFO] [stdout] --> src/camera.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Camera_Movement{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CameraMovement` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/tzzMacro.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / macro_rules! offset_of { [INFO] [stdout] 14 | | ($ty:ty, $field:ident) => { [INFO] [stdout] 15 | | &(*(std::ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] 16 | | } [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufReader` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::BufReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/lib.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::{Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Camera_Movement` should have an upper camel case name [INFO] [stdout] --> src/camera.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Camera_Movement{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CameraMovement` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/tzzMacro.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / macro_rules! offset_of { [INFO] [stdout] 14 | | ($ty:ty, $field:ident) => { [INFO] [stdout] 15 | | &(*(std::ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] 16 | | } [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/camera.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | _=>{}, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/camera.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | _=>{}, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PITCH` [INFO] [stdout] --> src/camera.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | const PITCH: f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SPEED` [INFO] [stdout] --> src/camera.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const SPEED: f32 = 2.5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SENSITIVTY` [INFO] [stdout] --> src/camera.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const SENSITIVTY: f32 = 0.1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ZOOM` [INFO] [stdout] --> src/camera.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const ZOOM: f32 = 45.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VERTEX_SHADER` [INFO] [stdout] --> src/lib.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | const VERTEX_SHADER :&str= "VERTEX"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `FRAG_SHADER` [INFO] [stdout] --> src/lib.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 100 | const FRAG_SHADER :&str= "FRAGMENT"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SHADER_PROGRAM` [INFO] [stdout] --> src/lib.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | const SHADER_PROGRAM :&str= "PROGRAM"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PITCH` [INFO] [stdout] --> src/camera.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | const PITCH: f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SPEED` [INFO] [stdout] --> src/camera.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const SPEED: f32 = 2.5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SENSITIVTY` [INFO] [stdout] --> src/camera.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const SENSITIVTY: f32 = 0.1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ZOOM` [INFO] [stdout] --> src/camera.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const ZOOM: f32 = 45.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VERTEX_SHADER` [INFO] [stdout] --> src/lib.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | const VERTEX_SHADER :&str= "VERTEX"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `FRAG_SHADER` [INFO] [stdout] --> src/lib.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 100 | const FRAG_SHADER :&str= "FRAGMENT"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SHADER_PROGRAM` [INFO] [stdout] --> src/lib.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | const SHADER_PROGRAM :&str= "PROGRAM"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `tzzMacro` should have a snake case name [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | mod tzzMacro; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `tzz_macro` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `base_path` should have an upper case name [INFO] [stdout] --> src/lib.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub const base_path:&str = "../learn-opengl-rs/"; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `BASE_PATH` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inittzzglMgr` should have a snake case name [INFO] [stdout] --> src/lib.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn inittzzglMgr(w :u32,h:u32)->impl TzzGl{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `inittzzgl_mgr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `glfwInstance` should have a snake case name [INFO] [stdout] --> src/lib.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | glfwInstance : glfw::Glfw, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `glfw_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `tzzMacro` should have a snake case name [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | mod tzzMacro; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `tzz_macro` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `base_path` should have an upper case name [INFO] [stdout] --> src/lib.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub const base_path:&str = "../learn-opengl-rs/"; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `BASE_PATH` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inittzzglMgr` should have a snake case name [INFO] [stdout] --> src/lib.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn inittzzglMgr(w :u32,h:u32)->impl TzzGl{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `inittzzgl_mgr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | pub ID :u32, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `glfwInstance` should have a snake case name [INFO] [stdout] --> src/lib.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | glfwInstance : glfw::Glfw, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `glfw_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | pub ID :u32, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vShaderFile` should have a snake case name [INFO] [stdout] --> src/lib.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | let mut vShaderFile = File::open(vs) [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `v_shader_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fShaderFile` should have a snake case name [INFO] [stdout] --> src/lib.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | let mut fShaderFile = File::open(fs) [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `f_shader_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertexCode` should have a snake case name [INFO] [stdout] --> src/lib.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | let mut vertexCode = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `vertex_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fragmentCode` should have a snake case name [INFO] [stdout] --> src/lib.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | let mut fragmentCode = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `fragment_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vShaderCode` should have a snake case name [INFO] [stdout] --> src/lib.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | let vShaderCode = CString::new(vertexCode.as_bytes()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `v_shader_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fShaderCode` should have a snake case name [INFO] [stdout] --> src/lib.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let fShaderCode = CString::new(fragmentCode.as_bytes()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `f_shader_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | let ID = gl::CreateProgram(); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `checkCompileErrors` should have a snake case name [INFO] [stdout] --> src/lib.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 149 | unsafe fn checkCompileErrors(&self, shader: u32, type_: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `check_compile_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `infoLog` should have a snake case name [INFO] [stdout] --> src/lib.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 151 | let mut infoLog = Vec::with_capacity(1024); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `info_log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `useProgram` should have a snake case name [INFO] [stdout] --> src/lib.rs:201:19 [INFO] [stdout] | [INFO] [stdout] 201 | pub unsafe fn useProgram(&self) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `use_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vShaderFile` should have a snake case name [INFO] [stdout] --> src/lib.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | let mut vShaderFile = File::open(vs) [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `v_shader_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setBool` should have a snake case name [INFO] [stdout] --> src/lib.rs:205:19 [INFO] [stdout] | [INFO] [stdout] 205 | pub unsafe fn setBool(&self, name: &CStr, value: bool) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `set_bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setInt` should have a snake case name [INFO] [stdout] --> src/lib.rs:209:19 [INFO] [stdout] | [INFO] [stdout] 209 | pub unsafe fn setInt(&self, name: &CStr, value: i32) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `set_int` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setFloat` should have a snake case name [INFO] [stdout] --> src/lib.rs:213:19 [INFO] [stdout] | [INFO] [stdout] 213 | pub unsafe fn setFloat(&self, name: &CStr, value: f32) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `set_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setVector3` should have a snake case name [INFO] [stdout] --> src/lib.rs:217:19 [INFO] [stdout] | [INFO] [stdout] 217 | pub unsafe fn setVector3(&self, name: &CStr, value: &Vector3) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `set_vector3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setVec3` should have a snake case name [INFO] [stdout] --> src/lib.rs:221:19 [INFO] [stdout] | [INFO] [stdout] 221 | pub unsafe fn setVec3(&self, name: &CStr, x: f32, y: f32, z: f32) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `set_vec3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setMat4` should have a snake case name [INFO] [stdout] --> src/lib.rs:225:19 [INFO] [stdout] | [INFO] [stdout] 225 | pub unsafe fn setMat4(&self, name: &CStr, mat: &Matrix4) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `set_mat4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `glfwE` should have a snake case name [INFO] [stdout] --> src/lib.rs:247:13 [INFO] [stdout] | [INFO] [stdout] 247 | let mut glfwE= glfw::init(glfw::FAIL_ON_ERRORS)?; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `glfw_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `concateStr` should have a snake case name [INFO] [stdout] --> src/lib.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | pub fn concateStr<'a>(s1:&'a str,s2:&'a str)->String{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `concate_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `genPath` should have a snake case name [INFO] [stdout] --> src/lib.rs:275:8 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn genPath(path :&str)->String{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `gen_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fShaderFile` should have a snake case name [INFO] [stdout] --> src/lib.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | let mut fShaderFile = File::open(fs) [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `f_shader_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `worldUp` should have a snake case name [INFO] [stdout] --> src/camera.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub worldUp:Vector3, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `world_up` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `mouseSensitivity` should have a snake case name [INFO] [stdout] --> src/camera.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub mouseSensitivity:f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `mouse_sensitivity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getViewMatrix` should have a snake case name [INFO] [stdout] --> src/camera.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn getViewMatrix(&self)->Matrix4{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_view_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `processKeyboard` should have a snake case name [INFO] [stdout] --> src/camera.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn processKeyboard(&mut self,direction:Camera_Movement,dt:f32){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `process_keyboard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `processMouseMovement` should have a snake case name [INFO] [stdout] --> src/camera.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn processMouseMovement(&mut self,mut offset_x:f32,mut offset_y:f32,constrainPitch :bool){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `process_mouse_movement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `constrainPitch` should have a snake case name [INFO] [stdout] --> src/camera.rs:69:77 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn processMouseMovement(&mut self,mut offset_x:f32,mut offset_y:f32,constrainPitch :bool){ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `constrain_pitch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `processMouseScroll` should have a snake case name [INFO] [stdout] --> src/camera.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn processMouseScroll(&mut self,offset_y:f32){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `process_mouse_scroll` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updateCameraVectors` should have a snake case name [INFO] [stdout] --> src/camera.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | fn updateCameraVectors(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_camera_vectors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertexCode` should have a snake case name [INFO] [stdout] --> src/lib.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | let mut vertexCode = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `vertex_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fragmentCode` should have a snake case name [INFO] [stdout] --> src/lib.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | let mut fragmentCode = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `fragment_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vShaderCode` should have a snake case name [INFO] [stdout] --> src/lib.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | let vShaderCode = CString::new(vertexCode.as_bytes()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `v_shader_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fShaderCode` should have a snake case name [INFO] [stdout] --> src/lib.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let fShaderCode = CString::new(fragmentCode.as_bytes()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `f_shader_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | let ID = gl::CreateProgram(); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `checkCompileErrors` should have a snake case name [INFO] [stdout] --> src/lib.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 149 | unsafe fn checkCompileErrors(&self, shader: u32, type_: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `check_compile_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `infoLog` should have a snake case name [INFO] [stdout] --> src/lib.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 151 | let mut infoLog = Vec::with_capacity(1024); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `info_log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `useProgram` should have a snake case name [INFO] [stdout] --> src/lib.rs:201:19 [INFO] [stdout] | [INFO] [stdout] 201 | pub unsafe fn useProgram(&self) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `use_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setBool` should have a snake case name [INFO] [stdout] --> src/lib.rs:205:19 [INFO] [stdout] | [INFO] [stdout] 205 | pub unsafe fn setBool(&self, name: &CStr, value: bool) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `set_bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setInt` should have a snake case name [INFO] [stdout] --> src/lib.rs:209:19 [INFO] [stdout] | [INFO] [stdout] 209 | pub unsafe fn setInt(&self, name: &CStr, value: i32) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `set_int` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setFloat` should have a snake case name [INFO] [stdout] --> src/lib.rs:213:19 [INFO] [stdout] | [INFO] [stdout] 213 | pub unsafe fn setFloat(&self, name: &CStr, value: f32) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `set_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setVector3` should have a snake case name [INFO] [stdout] --> src/lib.rs:217:19 [INFO] [stdout] | [INFO] [stdout] 217 | pub unsafe fn setVector3(&self, name: &CStr, value: &Vector3) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `set_vector3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setVec3` should have a snake case name [INFO] [stdout] --> src/lib.rs:221:19 [INFO] [stdout] | [INFO] [stdout] 221 | pub unsafe fn setVec3(&self, name: &CStr, x: f32, y: f32, z: f32) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `set_vec3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setMat4` should have a snake case name [INFO] [stdout] --> src/lib.rs:225:19 [INFO] [stdout] | [INFO] [stdout] 225 | pub unsafe fn setMat4(&self, name: &CStr, mat: &Matrix4) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `set_mat4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `glfwE` should have a snake case name [INFO] [stdout] --> src/lib.rs:247:13 [INFO] [stdout] | [INFO] [stdout] 247 | let mut glfwE= glfw::init(glfw::FAIL_ON_ERRORS)?; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `glfw_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `concateStr` should have a snake case name [INFO] [stdout] --> src/lib.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | pub fn concateStr<'a>(s1:&'a str,s2:&'a str)->String{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `concate_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `genPath` should have a snake case name [INFO] [stdout] --> src/lib.rs:275:8 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn genPath(path :&str)->String{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `gen_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `worldUp` should have a snake case name [INFO] [stdout] --> src/camera.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub worldUp:Vector3, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `world_up` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `mouseSensitivity` should have a snake case name [INFO] [stdout] --> src/camera.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub mouseSensitivity:f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `mouse_sensitivity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getViewMatrix` should have a snake case name [INFO] [stdout] --> src/camera.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn getViewMatrix(&self)->Matrix4{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_view_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `processKeyboard` should have a snake case name [INFO] [stdout] --> src/camera.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn processKeyboard(&mut self,direction:Camera_Movement,dt:f32){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `process_keyboard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `processMouseMovement` should have a snake case name [INFO] [stdout] --> src/camera.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn processMouseMovement(&mut self,mut offset_x:f32,mut offset_y:f32,constrainPitch :bool){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `process_mouse_movement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `constrainPitch` should have a snake case name [INFO] [stdout] --> src/camera.rs:69:77 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn processMouseMovement(&mut self,mut offset_x:f32,mut offset_y:f32,constrainPitch :bool){ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `constrain_pitch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `processMouseScroll` should have a snake case name [INFO] [stdout] --> src/camera.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn processMouseScroll(&mut self,offset_y:f32){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `process_mouse_scroll` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updateCameraVectors` should have a snake case name [INFO] [stdout] --> src/camera.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | fn updateCameraVectors(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_camera_vectors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `clearColor` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `clear_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_offset` [INFO] [stdout] --> examples/2-1-light.rs:177:39 [INFO] [stdout] | [INFO] [stdout] 177 | glfw::WindowEvent::Scroll(x_offset,y_offset)=>{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_offset` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/2-1-light.rs:170:21 [INFO] [stdout] | [INFO] [stdout] 170 | let mut xoffset = xpos - *lastX; [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] --> examples/2-1-light.rs:171:21 [INFO] [stdout] | [INFO] [stdout] 171 | let mut yoffset = *lastY - ypos; // reversed since y-coordinates go from bottom to top [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `glfwE` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | let (mut glfwE,mut window ,events)= tzzgl::initglfw().expect("init glfw failed"); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `glfw_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lampPos` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let lampPos = vec3(1.2,1.0,2.0); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `lamp_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cubeModelVetices` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let cubeModelVetices:[f32;108] =[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `cube_model_vetices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lightingShader` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let lightingShader = tzzgl::Shader::new(&tzzgl::genPath("../learn-opengl-rs/src/_2_lighting/shaders/1.colors.vs"),&tzzgl::genPath("..... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `lighting_shader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lampShader` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let lampShader= tzzgl::Shader::new(&tzzgl::genPath("../learn-opengl-rs/src/_2_lighting/shaders/1.lamp.vs"),&tzzgl::genPath("../learn-... [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `lamp_shader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prevTime` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut prevTime = glfwE.get_time(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cameraE` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut cameraE = tzzgl::camera::Camera{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `camera_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstMouse` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut firstMouse = true; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `first_mouse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastX` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let mut lastX = 0.0; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `last_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastY` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let mut lastY =0.0; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `last_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `curTime` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let curTime =glfwE.get_time(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `cur_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lightedModelTrans` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | let lightedModelTrans = Matrix4::::identity(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `lighted_model_trans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lampModelTrans` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:137:17 [INFO] [stdout] | [INFO] [stdout] 137 | let mut lampModelTrans = Matrix4::from_translation(lampPos); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `lamp_model_trans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cameraE` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | cameraE:&mut tzzgl::camera::Camera, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `camera_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstMouse` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | firstMouse:&mut bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `first_mouse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastX` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | lastX:&mut f32, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `last_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastY` should have a snake case name [INFO] [stdout] --> examples/2-1-light.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | lastY:&mut f32, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `last_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> examples/pg.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> examples/pg.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tzzgl::Shader` [INFO] [stdout] --> examples/pg.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tzzgl::Shader; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `tzz` should have an upper camel case name [INFO] [stdout] --> examples/pg.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct tzz{ [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Tzz` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `tang` should have an upper camel case name [INFO] [stdout] --> examples/pg.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct tang{ [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Tang` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `tangbe` should have an upper camel case name [INFO] [stdout] --> examples/pg.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct tangbe(i32); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Tangbe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> examples/pg.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tzzgl::TzzGl` [INFO] [stdout] --> examples/echo.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tzzgl::TzzGl; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `tempCamera` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `temp_camera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cubeModels` should have a snake case name [INFO] [stdout] --> examples/tempCamera.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let cubeModels:[f32;9] = [ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `cube_models` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> examples/pg.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | fn echo2(t:T)->i32 where T:Drop{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rr` [INFO] [stdout] --> examples/pg.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let rr = unsafe{ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_tester` [INFO] [stdout] --> examples/pg.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn make_tester<'a>(answer: &'a str) -> impl Fn(&str) -> bool + 'a { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `apply` [INFO] [stdout] --> examples/pg.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn apply(mut f: F) where [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `apply_to_3` [INFO] [stdout] --> examples/pg.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn apply_to_3(f: F) -> i32 where [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `echo2` [INFO] [stdout] --> examples/pg.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn echo2(t:T)->i32 where T:Drop{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `echoString` [INFO] [stdout] --> examples/pg.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn echoString(s :&mut String){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SCR_WIDTH` [INFO] [stdout] --> examples/echo.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const SCR_WIDTH: u32 = 800; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SCR_HEIGHT` [INFO] [stdout] --> examples/echo.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const SCR_HEIGHT: u32 = 600; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:251:24 [INFO] [stdout] | [INFO] [stdout] 251 | cameraPos.x += (cameraSpeed); [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Action`, `Key` [INFO] [stdout] --> examples/1-7-1-camera.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use self::glfw::{Context, Key, Action}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::Receiver` [INFO] [stdout] --> examples/1-7-1-camera.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::mpsc::Receiver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CStr` [INFO] [stdout] --> examples/1-7-1-camera.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | use std::ffi::{CStr,CString}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `cameraUp` in this scope [INFO] [stdout] --> examples/1-7-3-cameraMouse.rs:300:43 [INFO] [stdout] | [INFO] [stdout] 300 | *cameraPos += -(cameraFront.cross(cameraUp).normalize() * cameraSpeed); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `cameraUp` in this scope [INFO] [stdout] --> examples/1-7-3-cameraMouse.rs:303:41 [INFO] [stdout] | [INFO] [stdout] 303 | *cameraPos += cameraFront.cross(cameraUp).normalize() * cameraSpeed; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> examples/1-7-3-cameraMouse.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/1-7-1-camera.rs:28:27 [INFO] [stdout] | [INFO] [stdout] 28 | let (mut glfw,mut window,mut events) = tzzgl::initglfw().expect("init glfw failed"); [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 import: `cgmath::prelude` [INFO] [stdout] --> examples/camera.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use cgmath::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `dt` is never read [INFO] [stdout] --> examples/camera.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let mut dt =0.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `yaw` [INFO] [stdout] --> examples/camera.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let mut yaw =-90.0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_yaw` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pitch` [INFO] [stdout] --> examples/camera.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let mut pitch =0.0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pitch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_offset` [INFO] [stdout] --> examples/camera.rs:175:39 [INFO] [stdout] | [INFO] [stdout] 175 | glfw::WindowEvent::Scroll(x_offset,y_offset)=>{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fov` [INFO] [stdout] --> examples/camera.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | fov :&mut f32, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ourShader` should have a snake case name [INFO] [stdout] --> examples/1-7-1-camera.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let ourShader = tzzgl::Shader::new( [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `our_shader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cubePositions` should have a snake case name [INFO] [stdout] --> examples/1-7-1-camera.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let cubePositions: [Vector3; 10] = [vec3(0.0, 0.0, 0.0), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `cube_positions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1-7-1-camera.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | let (mut VBO, mut VAO) = (0, 0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1-7-1-camera.rs:98:27 [INFO] [stdout] | [INFO] [stdout] 98 | let (mut VBO, mut VAO) = (0, 0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ourShader` should have a snake case name [INFO] [stdout] --> examples/1-7-1-camera.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | let (ourShader, VBO, VAO, texture1, texture2, cubePositions) = unsafe { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `our_shader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1-7-1-camera.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | let (ourShader, VBO, VAO, texture1, texture2, cubePositions) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1-7-1-camera.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | let (ourShader, VBO, VAO, texture1, texture2, cubePositions) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cubePositions` should have a snake case name [INFO] [stdout] --> examples/1-7-1-camera.rs:30:51 [INFO] [stdout] | [INFO] [stdout] 30 | let (ourShader, VBO, VAO, texture1, texture2, cubePositions) = unsafe { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `cube_positions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `camX` should have a snake case name [INFO] [stdout] --> examples/1-7-1-camera.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | let camX = glfw.get_time().sin() as f32 * radius; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `cam_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/camera.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut img = image::open("../learn-opengl-rs/resources/textures/container.jpg").expect("load image failed"); [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] --> examples/camera.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let mut yaw =-90.0; [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] --> examples/camera.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let mut pitch =0.0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `camZ` should have a snake case name [INFO] [stdout] --> examples/1-7-1-camera.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | let camZ = glfw.get_time().cos() as f32 * radius; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `cam_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/camera.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 168 | let mut xoffset = xpos - *lastX; [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] --> examples/camera.rs:169:21 [INFO] [stdout] | [INFO] [stdout] 169 | let mut yoffset = *lastY - ypos; // reversed since y-coordinates go from bottom to top [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cubeModelVertices` should have a snake case name [INFO] [stdout] --> examples/camera.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let cubeModelVertices:[f32;30] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `cube_model_vertices` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cameraE` should have a snake case name [INFO] [stdout] --> examples/camera.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | let mut cameraE = tzzgl::camera::Camera{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `camera_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastTime` should have a snake case name [INFO] [stdout] --> examples/camera.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | let mut lastTime = glfw.get_time(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `last_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastX` should have a snake case name [INFO] [stdout] --> examples/camera.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | let mut lastX = 0.0; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `last_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastY` should have a snake case name [INFO] [stdout] --> examples/camera.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | let mut lastY = 0.0; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `last_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstMouse` should have a snake case name [INFO] [stdout] --> examples/camera.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | let mut firstMouse =true; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `first_mouse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cameraE` should have a snake case name [INFO] [stdout] --> examples/camera.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | cameraE:&mut tzzgl::camera::Camera, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `camera_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstMouse` should have a snake case name [INFO] [stdout] --> examples/camera.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | firstMouse:&mut bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `first_mouse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastX` should have a snake case name [INFO] [stdout] --> examples/camera.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | lastX:&mut f32, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `last_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastY` should have a snake case name [INFO] [stdout] --> examples/camera.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | lastY:&mut f32, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `last_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `radius` [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:198:21 [INFO] [stdout] | [INFO] [stdout] 198 | let radius: f32 = 10.0; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_radius` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:15:32 [INFO] [stdout] | [INFO] [stdout] 15 | let (mut glfw, mut window, mut events) = tzzgl::initglfw().expect("init glfw error"); [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] --> examples/1-7-2-cameraKeyboard.rs:201:21 [INFO] [stdout] | [INFO] [stdout] 201 | let mut cameraFront: Vector3 = Vector3 { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 18 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 184 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `1_7_2_cameraKeyboard` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `1_7_2_camera_keyboard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cubeVertices` should have a snake case name [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let cubeVertices: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `cube_vertices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cubePositions` should have a snake case name [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let cubePositions: [Vector3; 10] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `cube_positions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `imgContinaer` should have a snake case name [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | ... let imgContinaer = image::open(&Path::new(&tzzgl::concateStr(tzzgl::base_path,"resources/textures/container.jpg"))).expect("load co... [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `img_continaer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cameraPos` should have a snake case name [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:169:17 [INFO] [stdout] | [INFO] [stdout] 169 | let mut cameraPos = Point3::new(radius,0.0,radius); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `camera_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `deltaTime` should have a snake case name [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | let mut deltaTime: f32; // time between current frame and last frame [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastFrame` should have a snake case name [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:171:17 [INFO] [stdout] | [INFO] [stdout] 171 | let mut lastFrame: f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `last_frame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentFrame` should have a snake case name [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | let currentFrame = glfw.get_time() as f32; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_frame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cameraFront` should have a snake case name [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:201:25 [INFO] [stdout] | [INFO] [stdout] 201 | let mut cameraFront: Vector3 = Vector3 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `camera_front` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `processInput` should have a snake case name [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:231:4 [INFO] [stdout] | [INFO] [stdout] 231 | fn processInput(window: &mut glfw::Window, deltaTime: f32, cameraPos: &mut Point3) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `process_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `deltaTime` should have a snake case name [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:231:44 [INFO] [stdout] | [INFO] [stdout] 231 | fn processInput(window: &mut glfw::Window, deltaTime: f32, cameraPos: &mut Point3) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cameraPos` should have a snake case name [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:231:60 [INFO] [stdout] | [INFO] [stdout] 231 | fn processInput(window: &mut glfw::Window, deltaTime: f32, cameraPos: &mut Point3) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `camera_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cameraSpeed` should have a snake case name [INFO] [stdout] --> examples/1-7-2-cameraKeyboard.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | let cameraSpeed = 2.5 * deltaTime; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `camera_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tzzgl` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused imports: `Action`, `Key` [INFO] [stdout] --> examples/1-7-1-cameraCopy.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | use glfw::{Context, Key, Action}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/1-7-1-cameraCopy.rs:16:32 [INFO] [stdout] | [INFO] [stdout] 16 | let (mut glfw, mut window, mut events) = tzzgl::initglfw().expect("init glfw error"); [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: unnecessary `unsafe` block [INFO] [stdout] --> examples/1-7-1-cameraCopy.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 19 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 175 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `1_7_1_cameraCopy` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `1_7_1_camera_copy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cubeVertices` should have a snake case name [INFO] [stdout] --> examples/1-7-1-cameraCopy.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let cubeVertices: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `cube_vertices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cubePositions` should have a snake case name [INFO] [stdout] --> examples/1-7-1-cameraCopy.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let cubePositions: [Vector3; 10] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `cube_positions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `imgContinaer` should have a snake case name [INFO] [stdout] --> examples/1-7-1-cameraCopy.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | ... let imgContinaer = image::open(&Path::new(&tzzgl::concateStr(tzzgl::base_path,"resources/textures/container.jpg"))).expect("load co... [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `img_continaer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `camX` should have a snake case name [INFO] [stdout] --> examples/1-7-1-cameraCopy.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 190 | let camX = glfw.get_time().sin() as f32 * radius; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `cam_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `camZ` should have a snake case name [INFO] [stdout] --> examples/1-7-1-cameraCopy.rs:191:21 [INFO] [stdout] | [INFO] [stdout] 191 | let camZ = glfw.get_time().cos() as f32 * radius; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `cam_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on `T: Drop` are useless, consider instead using `std::mem::needs_drop` to detect if a type has a destructor [INFO] [stdout] --> examples/pg.rs:57:32 [INFO] [stdout] | [INFO] [stdout] 57 | fn echo2(t:T)->i32 where T:Drop{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(drop_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `echoString` should have a snake case name [INFO] [stdout] --> examples/pg.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn echoString(s :&mut String){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `echo_string` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "0f29c330feb2b5746db2b18611331ed4854edd9b75b297e077e3c5e8084b5a49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f29c330feb2b5746db2b18611331ed4854edd9b75b297e077e3c5e8084b5a49", kill_on_drop: false }` [INFO] [stdout] 0f29c330feb2b5746db2b18611331ed4854edd9b75b297e077e3c5e8084b5a49