[INFO] cloning repository https://github.com/dariofo2/rust_poke [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dariofo2/rust_poke" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdariofo2%2Frust_poke", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdariofo2%2Frust_poke'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5dab8aeafa25a99dfdd4d5de6fe69fc038882132 [INFO] checking dariofo2/rust_poke against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdariofo2%2Frust_poke" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dariofo2/rust_poke [INFO] finished tweaking git repo https://github.com/dariofo2/rust_poke [INFO] tweaked toml for git repo https://github.com/dariofo2/rust_poke written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dariofo2/rust_poke on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dariofo2/rust_poke 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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ecddc183e5b31cf60200ffddb0581b46bb4f522278086ad1b99301ad496defb [INFO] running `Command { std: "docker" "start" "-a" "8ecddc183e5b31cf60200ffddb0581b46bb4f522278086ad1b99301ad496defb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ecddc183e5b31cf60200ffddb0581b46bb4f522278086ad1b99301ad496defb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ecddc183e5b31cf60200ffddb0581b46bb4f522278086ad1b99301ad496defb", kill_on_drop: false }` [INFO] [stdout] 8ecddc183e5b31cf60200ffddb0581b46bb4f522278086ad1b99301ad496defb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b829292fad225291e0923bea91303831b9665055a3fc2c5b58e4a565e6d88ad7 [INFO] running `Command { std: "docker" "start" "-a" "b829292fad225291e0923bea91303831b9665055a3fc2c5b58e4a565e6d88ad7", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling version-compare v0.2.0 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling cfg-expr v0.15.8 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Compiling gio v0.18.4 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Compiling field-offset v0.3.6 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling gtk v0.18.2 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking iana-time-zone v0.1.64 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_edit v0.20.2 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling toml v0.8.2 [INFO] [stderr] Compiling proc-macro-crate v2.0.2 [INFO] [stderr] Compiling system-deps v6.2.2 [INFO] [stderr] Compiling gtk3-macros v0.18.2 [INFO] [stderr] Compiling glib-macros v0.18.5 [INFO] [stderr] Compiling glib-sys v0.18.1 [INFO] [stderr] Compiling gobject-sys v0.18.0 [INFO] [stderr] Compiling gio-sys v0.18.1 [INFO] [stderr] Compiling gdk-sys v0.18.2 [INFO] [stderr] Compiling pango-sys v0.18.0 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.18.0 [INFO] [stderr] Compiling cairo-sys-rs v0.18.2 [INFO] [stderr] Compiling atk-sys v0.18.2 [INFO] [stderr] Compiling gtk-sys v0.18.2 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking glib v0.18.5 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.23 [INFO] [stderr] Checking cairo-rs v0.18.5 [INFO] [stderr] Checking atk v0.18.2 [INFO] [stderr] Checking gdk-pixbuf v0.18.5 [INFO] [stderr] Checking pango v0.18.3 [INFO] [stderr] Checking gdk v0.18.2 [INFO] [stderr] Checking rusttest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/classes/classroom.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | if (found) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if (found) { [INFO] [stdout] 27 + if found { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/classes/classroom.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `types` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum types { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Types` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `text` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | text(Vec), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `u16` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | u16(Vec), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `U16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `u32` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | u32(Vec), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `U32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `u64` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | u64(Vec), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `U64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `u128` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | u128(Vec), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `U128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `i16` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | i16(Vec), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `I16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `i32` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | i32(Vec), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `I32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `i64` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | i64(Vec), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `I64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `i128` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | i128(Vec) [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `I128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bytes` and `collections::HashMap` [INFO] [stdout] --> src/http/http.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | fs, [INFO] [stdout] 4 | io::{self, Bytes, Error, Read}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/http/http.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `gtkGraphic` should have an upper camel case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct gtkGraphic {} [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `GtkGraphic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | fs::{self} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pokemonImg::PokemonImg` [INFO] [stdout] --> src/main.rs:11:69 [INFO] [stdout] | [INFO] [stdout] 11 | classes::{binaryConvers::{BinaryConvers}, classroom::Classroom, pokemonImg::PokemonImg}, http::http::HttpPokemon [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/classes/classroom.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | if (found) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if (found) { [INFO] [stdout] 27 + if found { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/classes/classroom.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `types` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum types { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Types` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `text` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | text(Vec), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `u16` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | u16(Vec), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `U16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `u32` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | u32(Vec), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `U32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `u64` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | u64(Vec), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `U64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `u128` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | u128(Vec), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `U128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `i16` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | i16(Vec), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `I16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `i32` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | i32(Vec), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `I32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `i64` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | i64(Vec), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `I64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `i128` should have an upper camel case name [INFO] [stdout] --> src/classes/binaryConvers.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | i128(Vec) [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `I128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bytes` and `collections::HashMap` [INFO] [stdout] --> src/http/http.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | fs, [INFO] [stdout] 4 | io::{self, Bytes, Error, Read}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/http/http.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `gtkGraphic` should have an upper camel case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct gtkGraphic {} [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `GtkGraphic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | fs::{self} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pokemonImg::PokemonImg` [INFO] [stdout] --> src/main.rs:11:69 [INFO] [stdout] | [INFO] [stdout] 11 | classes::{binaryConvers::{BinaryConvers}, classroom::Classroom, pokemonImg::PokemonImg}, http::http::HttpPokemon [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/classes/classroom.rs:131:25 [INFO] [stdout] | [INFO] [stdout] 131 | let mut personsFound = classroomGlobal.findPersons(newInput.trim().to_string()); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/classes/classroom.rs:131:25 [INFO] [stdout] | [INFO] [stdout] 131 | let mut personsFound = classroomGlobal.findPersons(newInput.trim().to_string()); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/http/http.rs:4:30 [INFO] [stdout] | [INFO] [stdout] 4 | io::{self, Bytes, Error, Read}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/http/http.rs:4:30 [INFO] [stdout] | [INFO] [stdout] 4 | io::{self, Bytes, Error, Read}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filePath` [INFO] [stdout] --> src/classes/pokemonImg.rs:38:74 [INFO] [stdout] | [INFO] [stdout] 38 | ... if let Ok(fileName) = fileName && let Ok(filePath) =filePath { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filePath` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filePath` [INFO] [stdout] --> src/classes/pokemonImg.rs:38:74 [INFO] [stdout] | [INFO] [stdout] 38 | ... if let Ok(fileName) = fileName && let Ok(filePath) =filePath { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filePath` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut vBox = gtk::Box::new(gtk::Orientation::Horizontal, 50); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:41:37 [INFO] [stdout] | [INFO] [stdout] 41 | button.connect_clicked(|x| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut vBox = gtk::Box::new(gtk::Orientation::Horizontal, 50); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:41:37 [INFO] [stdout] | [INFO] [stdout] 41 | button.connect_clicked(|x| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `saludar` is never used [INFO] [stdout] --> src/classes/person.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Person { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn saludar (&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/classes/binaryConvers.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum types { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 5 | text(Vec), [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | u16(Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | u32(Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | u64(Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | u128(Vec), [INFO] [stdout] 10 | i16(Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | i32(Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | i64(Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | i128(Vec) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `gtkGraphic` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod gtkGraphic; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `gtk_graphic` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `pokemonImg` should have a snake case name [INFO] [stdout] --> src/classes/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod pokemonImg; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `pokemon_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `binaryConvers` should have a snake case name [INFO] [stdout] --> src/classes/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod binaryConvers; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `binary_convers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deletePerson` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn deletePerson(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `delete_person` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `indexToDelete` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | let mut indexToDelete = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `index_to_delete` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/classes/classroom.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | &self.persons.remove(indexToDelete); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = &self.persons.remove(indexToDelete); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findPersons` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn findPersons(&mut self, name: String) -> Vec<&mut Person> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_persons` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findPerson` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn findPerson(&mut self, name: String) -> Option<&mut Person> { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `find_person` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addPerson` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn addPerson(&mut self, person: Person) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_person` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `printSelected` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn printSelected(vec: &Vec<&mut Person>) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `print_selected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `classroomMenu` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn classroomMenu() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `classroom_menu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufRead` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | let mut bufRead = BufReader::new(stdin()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `buf_read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newInput` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | let mut newInput = String::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `classroomGlobal` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let mut classroomGlobal = CLASSROOM.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `classroom_global` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `personFound` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | let personFound = classroomGlobal.findPerson(newInput.trim().to_string()); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `person_found` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `personsFound` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | let mut personsFound = classroomGlobal.findPersons(newInput.trim().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `persons_found` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `pokemonName` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub pokemonName:String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `pokemon_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `typePaths` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub typePaths:Vec, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `type_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `imgPaths` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub imgPaths:Vec [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `img_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pokName` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let pokName=String::new(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pok_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pokemonImgs` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut pokemonImgs: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `pokemon_imgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `saludar` is never used [INFO] [stdout] --> src/classes/person.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Person { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn saludar (&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/classes/binaryConvers.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum types { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 5 | text(Vec), [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | u16(Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | u32(Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | u64(Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | u128(Vec), [INFO] [stdout] 10 | i16(Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | i32(Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | i64(Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | i128(Vec) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `itemPath` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | let itemPath = file.file_name().into_string(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `item_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `gtkGraphic` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod gtkGraphic; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `gtk_graphic` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `itemPath` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | if let Ok(itemPath) = itemPath { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `item_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `pokemonImg` should have a snake case name [INFO] [stdout] --> src/classes/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod pokemonImg; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `pokemon_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `binaryConvers` should have a snake case name [INFO] [stdout] --> src/classes/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod binaryConvers; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `binary_convers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:36:37 [INFO] [stdout] | [INFO] [stdout] 36 | ... let fileName=file2.file_name().into_string(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:37:37 [INFO] [stdout] | [INFO] [stdout] 37 | ... let filePath=file2.path().into_os_string().into_string(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:38:43 [INFO] [stdout] | [INFO] [stdout] 38 | ... if let Ok(fileName) = fileName && let Ok(filePath) =filePath { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deletePerson` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn deletePerson(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `delete_person` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:38:74 [INFO] [stdout] | [INFO] [stdout] 38 | ... if let Ok(fileName) = fileName && let Ok(filePath) =filePath { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `indexToDelete` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | let mut indexToDelete = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `index_to_delete` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getPokemon` should have a snake case name [INFO] [stdout] --> src/http/http.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn getPokemon(name: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_pokemon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getImage` should have a snake case name [INFO] [stdout] --> src/http/http.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | pub async fn getImage(url: String) -> Result, reqwest::Error> { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/classes/classroom.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | &self.persons.remove(indexToDelete); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = &self.persons.remove(indexToDelete); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findPersons` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn findPersons(&mut self, name: String) -> Vec<&mut Person> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_persons` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findPerson` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn findPerson(&mut self, name: String) -> Option<&mut Person> { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `find_person` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/http/http.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | for spriteMap in &json_obj["sprites"].as_object() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 45 - for spriteMap in &json_obj["sprites"].as_object() { [INFO] [stdout] 45 + while let Some(spriteMap) = &json_obj["sprites"].as_object() { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 45 - for spriteMap in &json_obj["sprites"].as_object() { [INFO] [stdout] 45 + if let Some(spriteMap) = &json_obj["sprites"].as_object() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `spriteMap` should have a snake case name [INFO] [stdout] --> src/http/http.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | for spriteMap in &json_obj["sprites"].as_object() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `sprite_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inLine` should have a snake case name [INFO] [stdout] --> src/http/http.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let inLine = io::stdin(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `in_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addPerson` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn addPerson(&mut self, person: Person) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_person` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `printSelected` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn printSelected(vec: &Vec<&mut Person>) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `print_selected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `classroomMenu` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn classroomMenu() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `classroom_menu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufRead` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | let mut bufRead = BufReader::new(stdin()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `buf_read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newInput` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | let mut newInput = String::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `classroomGlobal` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let mut classroomGlobal = CLASSROOM.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `classroom_global` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `personFound` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | let personFound = classroomGlobal.findPerson(newInput.trim().to_string()); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `person_found` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `personsFound` should have a snake case name [INFO] [stdout] --> src/classes/classroom.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | let mut personsFound = classroomGlobal.findPersons(newInput.trim().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `persons_found` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `pokemonName` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub pokemonName:String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `pokemon_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `typePaths` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub typePaths:Vec, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `type_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `imgPaths` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub imgPaths:Vec [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `img_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pokName` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let pokName=String::new(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pok_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pokemonImgs` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut pokemonImgs: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `pokemon_imgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `itemPath` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | let itemPath = file.file_name().into_string(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `item_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `itemPath` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | if let Ok(itemPath) = itemPath { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `item_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:36:37 [INFO] [stdout] | [INFO] [stdout] 36 | ... let fileName=file2.file_name().into_string(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:37:37 [INFO] [stdout] | [INFO] [stdout] 37 | ... let filePath=file2.path().into_os_string().into_string(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:38:43 [INFO] [stdout] | [INFO] [stdout] 38 | ... if let Ok(fileName) = fileName && let Ok(filePath) =filePath { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/classes/pokemonImg.rs:38:74 [INFO] [stdout] | [INFO] [stdout] 38 | ... if let Ok(fileName) = fileName && let Ok(filePath) =filePath { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getPokemon` should have a snake case name [INFO] [stdout] --> src/http/http.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn getPokemon(name: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_pokemon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getImage` should have a snake case name [INFO] [stdout] --> src/http/http.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | pub async fn getImage(url: String) -> Result, reqwest::Error> { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/http/http.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | for spriteMap in &json_obj["sprites"].as_object() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 45 - for spriteMap in &json_obj["sprites"].as_object() { [INFO] [stdout] 45 + while let Some(spriteMap) = &json_obj["sprites"].as_object() { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 45 - for spriteMap in &json_obj["sprites"].as_object() { [INFO] [stdout] 45 + if let Some(spriteMap) = &json_obj["sprites"].as_object() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `spriteMap` should have a snake case name [INFO] [stdout] --> src/http/http.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | for spriteMap in &json_obj["sprites"].as_object() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `sprite_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inLine` should have a snake case name [INFO] [stdout] --> src/http/http.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let inLine = io::stdin(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `in_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http/http.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | inLine.read_line(&mut output); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 77 | let _ = inLine.read_line(&mut output); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http/http.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | HttpPokemon::get_pokemon_images(output.trim().to_string()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 79 | let _ = HttpPokemon::get_pokemon_images(output.trim().to_string()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `gtkGraphic` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod gtkGraphic; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `gtk_graphic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `runGraphicGTK` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn runGraphicGTK() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `run_graphic_gtk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pokemonImgs` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let pokemonImgs=PokemonImg::get(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `pokemon_imgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vBox` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let mut vBox = gtk::Box::new(gtk::Orientation::Horizontal, 50); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `v_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `imgsToGTK` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let mut imgsToGTK: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `imgs_to_gtk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pokImg` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | for pokImg in &pokemonImgs { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `pok_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vboxPok` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | let vboxPok = gtk::Box::new(gtk::Orientation::Vertical, 50); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `vbox_pok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `labelTitle` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | let labelTitle = gtk::Label::new(Some(pokImg.pokemonName.as_str())); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `label_title` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `labelType` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:29:25 [INFO] [stdout] | [INFO] [stdout] 29 | let labelType = gtk::Label::new(Some(pokImg.typePaths[img.0].as_str())); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `label_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `imgTo` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | let imgTo = gtk::Image::from_file(img.1); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `img_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `scrolledWindow` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let scrolledWindow = gtk::ScrolledWindow::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `scrolled_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http/http.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | inLine.read_line(&mut output); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 77 | let _ = inLine.read_line(&mut output); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http/http.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | HttpPokemon::get_pokemon_images(output.trim().to_string()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 79 | let _ = HttpPokemon::get_pokemon_images(output.trim().to_string()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `gtkGraphic` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod gtkGraphic; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `gtk_graphic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `runGraphicGTK` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn runGraphicGTK() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `run_graphic_gtk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pokemonImgs` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let pokemonImgs=PokemonImg::get(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `pokemon_imgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vBox` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let mut vBox = gtk::Box::new(gtk::Orientation::Horizontal, 50); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `v_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `imgsToGTK` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let mut imgsToGTK: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `imgs_to_gtk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pokImg` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | for pokImg in &pokemonImgs { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `pok_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vboxPok` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | let vboxPok = gtk::Box::new(gtk::Orientation::Vertical, 50); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `vbox_pok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `labelTitle` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | let labelTitle = gtk::Label::new(Some(pokImg.pokemonName.as_str())); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `label_title` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `labelType` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:29:25 [INFO] [stdout] | [INFO] [stdout] 29 | let labelType = gtk::Label::new(Some(pokImg.typePaths[img.0].as_str())); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `label_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `imgTo` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | let imgTo = gtk::Image::from_file(img.1); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `img_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `scrolledWindow` should have a snake case name [INFO] [stdout] --> src/gtkGraphic/gtkGraphic.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let scrolledWindow = gtk::ScrolledWindow::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `scrolled_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 45s [INFO] running `Command { std: "docker" "inspect" "b829292fad225291e0923bea91303831b9665055a3fc2c5b58e4a565e6d88ad7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b829292fad225291e0923bea91303831b9665055a3fc2c5b58e4a565e6d88ad7", kill_on_drop: false }` [INFO] [stdout] b829292fad225291e0923bea91303831b9665055a3fc2c5b58e4a565e6d88ad7