[INFO] cloning repository https://github.com/mateochauchet/learning_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mateochauchet/learning_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmateochauchet%2Flearning_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmateochauchet%2Flearning_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ceda2aea2ecd5ce400b700841bf97e31ee7c74c9 [INFO] checking mateochauchet/learning_rust against try#e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837 for pr-143619 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmateochauchet%2Flearning_rust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mateochauchet/learning_rust [INFO] finished tweaking git repo https://github.com/mateochauchet/learning_rust [INFO] tweaked toml for git repo https://github.com/mateochauchet/learning_rust written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mateochauchet/learning_rust on toolchain e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mateochauchet/learning_rust 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" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking mateochauchet/learning_rust against try#e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837 for pr-143619 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmateochauchet%2Flearning_rust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mateochauchet/learning_rust [INFO] finished tweaking git repo https://github.com/mateochauchet/learning_rust [INFO] tweaked toml for git repo https://github.com/mateochauchet/learning_rust written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mateochauchet/learning_rust on toolchain e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mateochauchet/learning_rust 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" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 478272c00122e414bd9c103c4adda9c758c300d72217bc105d072b3116a46834 [INFO] running `Command { std: "docker" "start" "-a" "478272c00122e414bd9c103c4adda9c758c300d72217bc105d072b3116a46834", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "478272c00122e414bd9c103c4adda9c758c300d72217bc105d072b3116a46834", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "478272c00122e414bd9c103c4adda9c758c300d72217bc105d072b3116a46834", kill_on_drop: false }` [INFO] [stdout] 478272c00122e414bd9c103c4adda9c758c300d72217bc105d072b3116a46834 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4ac3f77e24232b47a8d950a7f257fdf73f248e8321b6a6d9e45ef55d3a7dd78b [INFO] running `Command { std: "docker" "start" "-a" "4ac3f77e24232b47a8d950a7f257fdf73f248e8321b6a6d9e45ef55d3a7dd78b", kill_on_drop: false }` [INFO] [stderr] Checking lerning_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/modules/e_if_bucles.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | for number in (1..4) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - for number in (1..4) { [INFO] [stdout] 61 + for number in 1..4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Door_state` should have an upper camel case name [INFO] [stdout] --> src/modules/i_enums.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum Door_state { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `DoorState` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error` [INFO] [stdout] --> src/modules/o_error_handling.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/modules/e_if_bucles.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | for number in (1..4) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - for number in (1..4) { [INFO] [stdout] 61 + for number in 1..4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Door_state` should have an upper camel case name [INFO] [stdout] --> src/modules/i_enums.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum Door_state { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `DoorState` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error` [INFO] [stdout] --> src/modules/o_error_handling.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `my_variable` is never read [INFO] [stdout] --> src/modules/a_variables.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | let mut my_variable = 10; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `my_variable` is never read [INFO] [stdout] --> src/modules/a_variables.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | let mut my_variable = 10; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/modules/a_variables.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | let a = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/modules/a_variables.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | let a = "hola"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/modules/a_variables.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | let a = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/modules/a_variables.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | let a = "hola"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/modules/a_variables.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | let (name, number, active) = player; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/modules/a_variables.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | let (name, number, active) = player; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `active` [INFO] [stdout] --> src/modules/a_variables.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | let (name, number, active) = player; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_active` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/modules/a_variables.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | let (name, number, active) = player; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/modules/a_variables.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | let (name, number, active) = player; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `active` [INFO] [stdout] --> src/modules/a_variables.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | let (name, number, active) = player; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_active` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/modules/b_functions.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/modules/b_functions.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/modules/c_tuples.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | let (x, y, z) = myTuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/modules/c_tuples.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | let (x, y, z) = myTuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/modules/c_tuples.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | let (x, y, z) = myTuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/modules/c_tuples.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | let (x, y, z) = myTuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/modules/c_tuples.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | let (x, y, z) = myTuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/modules/c_tuples.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | let (name, number, active) = player; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/modules/c_tuples.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | let (x, y, z) = myTuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/modules/c_tuples.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | let (name, number, active) = player; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/modules/c_tuples.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | let (name, number, active) = player; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `active` [INFO] [stdout] --> src/modules/c_tuples.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | let (name, number, active) = player; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_active` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/modules/c_tuples.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | let (name, number, active) = player; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/modules/d_arrays.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | let bytes = [3; 5]; // same as let bytes = [3, 3, 3, 3, 3]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `active` [INFO] [stdout] --> src/modules/c_tuples.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | let (name, number, active) = player; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_active` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/modules/d_arrays.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | let bytes = [3; 5]; // same as let bytes = [3, 3, 3, 3, 3]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/g_slices.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | let mut s = String::from("hello world"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/g_slices.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | let mut s = String::from("hello world"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/modules/g_slices.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | let slice = &a[1..3]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `suarez` [INFO] [stdout] --> src/modules/h_structs.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | let suarez = Player::create("Luis suarez".to_string(), 34, true); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_suarez` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `messi_2012` [INFO] [stdout] --> src/modules/h_structs.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | let messi_2012 = Player { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_messi_2012` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `black` [INFO] [stdout] --> src/modules/h_structs.rs:55:7 [INFO] [stdout] | [INFO] [stdout] 55 | let black = Color(0, 0, 0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/modules/g_slices.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | let slice = &a[1..3]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `suarez` [INFO] [stdout] --> src/modules/h_structs.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | let suarez = Player::create("Luis suarez".to_string(), 34, true); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_suarez` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `messi_2012` [INFO] [stdout] --> src/modules/h_structs.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | let messi_2012 = Player { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_messi_2012` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_door` [INFO] [stdout] --> src/modules/i_enums.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | let my_door = Door{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_door` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `black` [INFO] [stdout] --> src/modules/h_structs.rs:55:7 [INFO] [stdout] | [INFO] [stdout] 55 | let black = Color(0, 0, 0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_door` [INFO] [stdout] --> src/modules/i_enums.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | let my_door = Door{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_door` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/modules/l_vectors.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/modules/m_strings.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/modules/m_strings.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | let s2 = "Hola ".to_string(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/modules/m_strings.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | let s3 = String::from("Mundo"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s4` [INFO] [stdout] --> src/modules/m_strings.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | let s4 = h.to_string(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/m_strings.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/modules/m_strings.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | let h = &s1[0..4]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/modules/m_strings.rs:36:7 [INFO] [stdout] | [INFO] [stdout] 36 | let m = &s1[5..10]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `messi_score` [INFO] [stdout] --> src/modules/n_hashmaps.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | let messi_score = scores.get("messi"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_messi_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/modules/l_vectors.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/modules/m_strings.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/modules/m_strings.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | let s2 = "Hola ".to_string(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/modules/m_strings.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | let s3 = String::from("Mundo"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s4` [INFO] [stdout] --> src/modules/m_strings.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | let s4 = h.to_string(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/m_strings.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/modules/o_error_handling.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | let f = File::open("hello.txt").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/modules/o_error_handling.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | let f = File::open("hello.txt").expect("Failed to open hello.txt"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/modules/o_error_handling.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/modules/m_strings.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | let h = &s1[0..4]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/modules/m_strings.rs:36:7 [INFO] [stdout] | [INFO] [stdout] 36 | let m = &s1[5..10]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/modules/o_error_handling.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/modules/o_error_handling.rs:60:7 [INFO] [stdout] | [INFO] [stdout] 60 | let f = File::open("hello.txt")?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `messi_score` [INFO] [stdout] --> src/modules/n_hashmaps.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | let messi_score = scores.get("messi"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_messi_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entero` [INFO] [stdout] --> src/modules/p_generics.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | let entero = Point { x: 5, y: 10 }; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_entero` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decimal` [INFO] [stdout] --> src/modules/p_generics.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | let decimal = Point { x: 1.0, y: 4.0 }; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decimal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entero_decimal` [INFO] [stdout] --> src/modules/p_generics.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | let entero_decimal = Point2 { x: 5, y: 4.0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entero_decimal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/a_variables.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `constants` is never used [INFO] [stdout] --> src/modules/a_variables.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn constants () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shadowing` is never used [INFO] [stdout] --> src/modules/a_variables.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn shadowing () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tuples` is never used [INFO] [stdout] --> src/modules/a_variables.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn tuples () { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/b_functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_my_name` is never used [INFO] [stdout] --> src/modules/b_functions.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn say_my_name (name: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divide_by_5` is never used [INFO] [stdout] --> src/modules/b_functions.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn divide_by_5(num: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expression` is never used [INFO] [stdout] --> src/modules/b_functions.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn expression() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/c_tuples.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tuples` is never used [INFO] [stdout] --> src/modules/c_tuples.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn tuples () { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/d_arrays.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/e_if_bucles.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `if_expression` is never used [INFO] [stdout] --> src/modules/e_if_bucles.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn if_expression (number: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `conditional_expression` is never used [INFO] [stdout] --> src/modules/e_if_bucles.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn conditional_expression (number: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loop_expression` is never used [INFO] [stdout] --> src/modules/e_if_bucles.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn loop_expression () { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `while_expression` is never used [INFO] [stdout] --> src/modules/e_if_bucles.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn while_expression () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `for_expression` is never used [INFO] [stdout] --> src/modules/e_if_bucles.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn for_expression () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/f_references.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_properties` is never used [INFO] [stdout] --> src/modules/f_references.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn take_properties (string: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_length` is never used [INFO] [stdout] --> src/modules/f_references.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn calculate_length (string: &String) -> (&String, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutable_references` is never used [INFO] [stdout] --> src/modules/f_references.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn mutable_references () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change` is never used [INFO] [stdout] --> src/modules/f_references.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn change (some_string: &mut String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_value` is never used [INFO] [stdout] --> src/modules/f_references.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn print_value(value: &String) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_value` is never used [INFO] [stdout] --> src/modules/f_references.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn change_value(value: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_2` is never used [INFO] [stdout] --> src/modules/f_references.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn main_2() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/g_slices.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word_bytes` is never used [INFO] [stdout] --> src/modules/g_slices.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn first_word_bytes(string: &String) -> (usize, &String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> src/modules/g_slices.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn first_word (text: &String) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slices` is never used [INFO] [stdout] --> src/modules/g_slices.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn slices() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Player` is never constructed [INFO] [stdout] --> src/modules/h_structs.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/modules/o_error_handling.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | let f = File::open("hello.txt").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create` and `display_name` are never used [INFO] [stdout] --> src/modules/h_structs.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Player { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 9 | fn create(name: String, age: u32, is_active: bool) -> Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn display_name(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/h_structs.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/modules/o_error_handling.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | let f = File::open("hello.txt").expect("Failed to open hello.txt"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutability` is never used [INFO] [stdout] --> src/modules/h_structs.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn mutability() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/modules/o_error_handling.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tuple_structs` is never used [INFO] [stdout] --> src/modules/h_structs.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn tuple_structs() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SoccerPlayer` is never constructed [INFO] [stdout] --> src/modules/h_structs.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | struct SoccerPlayer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `score_goal`, and `transfer` are never used [INFO] [stdout] --> src/modules/h_structs.rs:67:6 [INFO] [stdout] | [INFO] [stdout] 66 | impl SoccerPlayer { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 67 | fn new(name: String, age: u8, position: String, team: String) -> SoccerPlayer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn score_goal(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn transfer(&mut self, new_team: String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_2` is never used [INFO] [stdout] --> src/modules/h_structs.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn main_2() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Door_state` is never used [INFO] [stdout] --> src/modules/i_enums.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum Door_state { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Door` is never constructed [INFO] [stdout] --> src/modules/i_enums.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Door { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/i_enums.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_door` is never used [INFO] [stdout] --> src/modules/i_enums.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn change_door(state: Door_state) -> Door_state { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/modules/i_enums.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call` is never used [INFO] [stdout] --> src/modules/i_enums.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 41 | impl Message { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 42 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enum_with_values` is never used [INFO] [stdout] --> src/modules/i_enums.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn enum_with_values() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Option` is never used [INFO] [stdout] --> src/modules/i_enums.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 60 | enum Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/matchers.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `matchers` is never used [INFO] [stdout] --> src/modules/matchers.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn matchers() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Time` is never used [INFO] [stdout] --> src/modules/matchers.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | enum Time { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `value_in_seconds` is never used [INFO] [stdout] --> src/modules/matchers.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn value_in_seconds(time: Time) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Month` is never used [INFO] [stdout] --> src/modules/matchers.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | enum Month { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/k_if_let.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/l_vectors.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector` is never used [INFO] [stdout] --> src/modules/l_vectors.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn vector() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/modules/o_error_handling.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector2` is never used [INFO] [stdout] --> src/modules/l_vectors.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn vector2() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterar_vector` is never used [INFO] [stdout] --> src/modules/l_vectors.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn iterar_vector() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SpreadsheetCell` is never used [INFO] [stdout] --> src/modules/l_vectors.rs:64:6 [INFO] [stdout] | [INFO] [stdout] 64 | enum SpreadsheetCell { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector_de_enum` is never used [INFO] [stdout] --> src/modules/l_vectors.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn vector_de_enum() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/m_strings.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string` is never used [INFO] [stdout] --> src/modules/m_strings.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn string() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_concatenation` is never used [INFO] [stdout] --> src/modules/m_strings.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn string_concatenation() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_indexing` is never used [INFO] [stdout] --> src/modules/m_strings.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn string_indexing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/n_hashmaps.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hashmaps` is never used [INFO] [stdout] --> src/modules/n_hashmaps.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn hashmaps() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recoverable_error` is never used [INFO] [stdout] --> src/modules/o_error_handling.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn recoverable_error() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_kind` is never used [INFO] [stdout] --> src/modules/o_error_handling.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn error_kind() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_handling_with_question_mark` is never used [INFO] [stdout] --> src/modules/o_error_handling.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn error_handling_with_question_mark() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/modules/p_generics.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2` is never constructed [INFO] [stdout] --> src/modules/p_generics.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Point2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/modules/o_error_handling.rs:60:7 [INFO] [stdout] | [INFO] [stdout] 60 | let f = File::open("hello.txt")?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/p_generics.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/ejs/triangle.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_area` is never used [INFO] [stdout] --> src/ejs/triangle.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn calculate_area(width: u32, height: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dimensions` is never constructed [INFO] [stdout] --> src/ejs/triangle.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Dimensions(u32, u32); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_area_2` is never used [INFO] [stdout] --> src/ejs/triangle.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn calculate_area_2(dimensions: Dimensions) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/ejs/triangle.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_area_3` is never used [INFO] [stdout] --> src/ejs/triangle.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn calculate_area_3(rectangle: Rectangle) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_area` is never used [INFO] [stdout] --> src/ejs/triangle.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 42 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 43 | fn calculate_area(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_area_4` is never used [INFO] [stdout] --> src/ejs/triangle.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn calculate_area_4(rectangle: Rectangle) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `myTuple` should have a snake case name [INFO] [stdout] --> src/modules/c_tuples.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | let myTuple: (u8, u8, u8) = (1, 2, 3); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `my_tuple` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `myArray` should have a snake case name [INFO] [stdout] --> src/modules/d_arrays.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | let myArray: [u8; 5] = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `my_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entero` [INFO] [stdout] --> src/modules/p_generics.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | let entero = Point { x: 5, y: 10 }; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_entero` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decimal` [INFO] [stdout] --> src/modules/p_generics.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | let decimal = Point { x: 1.0, y: 4.0 }; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decimal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entero_decimal` [INFO] [stdout] --> src/modules/p_generics.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | let entero_decimal = Point2 { x: 5, y: 4.0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entero_decimal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/a_variables.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `constants` is never used [INFO] [stdout] --> src/modules/a_variables.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn constants () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shadowing` is never used [INFO] [stdout] --> src/modules/a_variables.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn shadowing () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tuples` is never used [INFO] [stdout] --> src/modules/a_variables.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn tuples () { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/b_functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_my_name` is never used [INFO] [stdout] --> src/modules/b_functions.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn say_my_name (name: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divide_by_5` is never used [INFO] [stdout] --> src/modules/b_functions.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn divide_by_5(num: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expression` is never used [INFO] [stdout] --> src/modules/b_functions.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn expression() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/c_tuples.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tuples` is never used [INFO] [stdout] --> src/modules/c_tuples.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn tuples () { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/d_arrays.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/e_if_bucles.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `if_expression` is never used [INFO] [stdout] --> src/modules/e_if_bucles.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn if_expression (number: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `conditional_expression` is never used [INFO] [stdout] --> src/modules/e_if_bucles.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn conditional_expression (number: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loop_expression` is never used [INFO] [stdout] --> src/modules/e_if_bucles.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn loop_expression () { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `while_expression` is never used [INFO] [stdout] --> src/modules/e_if_bucles.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn while_expression () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `for_expression` is never used [INFO] [stdout] --> src/modules/e_if_bucles.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn for_expression () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/f_references.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_properties` is never used [INFO] [stdout] --> src/modules/f_references.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn take_properties (string: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_length` is never used [INFO] [stdout] --> src/modules/f_references.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn calculate_length (string: &String) -> (&String, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutable_references` is never used [INFO] [stdout] --> src/modules/f_references.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn mutable_references () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change` is never used [INFO] [stdout] --> src/modules/f_references.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn change (some_string: &mut String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_value` is never used [INFO] [stdout] --> src/modules/f_references.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn print_value(value: &String) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_value` is never used [INFO] [stdout] --> src/modules/f_references.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn change_value(value: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_2` is never used [INFO] [stdout] --> src/modules/f_references.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn main_2() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/g_slices.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word_bytes` is never used [INFO] [stdout] --> src/modules/g_slices.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn first_word_bytes(string: &String) -> (usize, &String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> src/modules/g_slices.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn first_word (text: &String) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slices` is never used [INFO] [stdout] --> src/modules/g_slices.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn slices() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Player` is never constructed [INFO] [stdout] --> src/modules/h_structs.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create` and `display_name` are never used [INFO] [stdout] --> src/modules/h_structs.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Player { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 9 | fn create(name: String, age: u32, is_active: bool) -> Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn display_name(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/h_structs.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutability` is never used [INFO] [stdout] --> src/modules/h_structs.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn mutability() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tuple_structs` is never used [INFO] [stdout] --> src/modules/h_structs.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn tuple_structs() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SoccerPlayer` is never constructed [INFO] [stdout] --> src/modules/h_structs.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | struct SoccerPlayer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `score_goal`, and `transfer` are never used [INFO] [stdout] --> src/modules/h_structs.rs:67:6 [INFO] [stdout] | [INFO] [stdout] 66 | impl SoccerPlayer { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 67 | fn new(name: String, age: u8, position: String, team: String) -> SoccerPlayer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn score_goal(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn transfer(&mut self, new_team: String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_2` is never used [INFO] [stdout] --> src/modules/h_structs.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn main_2() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Door_state` is never used [INFO] [stdout] --> src/modules/i_enums.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum Door_state { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Door` is never constructed [INFO] [stdout] --> src/modules/i_enums.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Door { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/i_enums.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_door` is never used [INFO] [stdout] --> src/modules/i_enums.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn change_door(state: Door_state) -> Door_state { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/modules/i_enums.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call` is never used [INFO] [stdout] --> src/modules/i_enums.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 41 | impl Message { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 42 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enum_with_values` is never used [INFO] [stdout] --> src/modules/i_enums.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn enum_with_values() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Option` is never used [INFO] [stdout] --> src/modules/i_enums.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 60 | enum Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/matchers.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `matchers` is never used [INFO] [stdout] --> src/modules/matchers.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn matchers() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Time` is never used [INFO] [stdout] --> src/modules/matchers.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | enum Time { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `value_in_seconds` is never used [INFO] [stdout] --> src/modules/matchers.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn value_in_seconds(time: Time) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Month` is never used [INFO] [stdout] --> src/modules/matchers.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | enum Month { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/k_if_let.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/l_vectors.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector` is never used [INFO] [stdout] --> src/modules/l_vectors.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn vector() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector2` is never used [INFO] [stdout] --> src/modules/l_vectors.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn vector2() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterar_vector` is never used [INFO] [stdout] --> src/modules/l_vectors.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn iterar_vector() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SpreadsheetCell` is never used [INFO] [stdout] --> src/modules/l_vectors.rs:64:6 [INFO] [stdout] | [INFO] [stdout] 64 | enum SpreadsheetCell { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector_de_enum` is never used [INFO] [stdout] --> src/modules/l_vectors.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn vector_de_enum() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/m_strings.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string` is never used [INFO] [stdout] --> src/modules/m_strings.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn string() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_concatenation` is never used [INFO] [stdout] --> src/modules/m_strings.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn string_concatenation() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_indexing` is never used [INFO] [stdout] --> src/modules/m_strings.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn string_indexing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/n_hashmaps.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hashmaps` is never used [INFO] [stdout] --> src/modules/n_hashmaps.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn hashmaps() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recoverable_error` is never used [INFO] [stdout] --> src/modules/o_error_handling.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn recoverable_error() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_kind` is never used [INFO] [stdout] --> src/modules/o_error_handling.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn error_kind() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_handling_with_question_mark` is never used [INFO] [stdout] --> src/modules/o_error_handling.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn error_handling_with_question_mark() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/modules/p_generics.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2` is never constructed [INFO] [stdout] --> src/modules/p_generics.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Point2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/modules/p_generics.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/ejs/triangle.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_area` is never used [INFO] [stdout] --> src/ejs/triangle.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn calculate_area(width: u32, height: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dimensions` is never constructed [INFO] [stdout] --> src/ejs/triangle.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Dimensions(u32, u32); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_area_2` is never used [INFO] [stdout] --> src/ejs/triangle.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn calculate_area_2(dimensions: Dimensions) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/ejs/triangle.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_area_3` is never used [INFO] [stdout] --> src/ejs/triangle.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn calculate_area_3(rectangle: Rectangle) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_area` is never used [INFO] [stdout] --> src/ejs/triangle.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 42 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 43 | fn calculate_area(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_area_4` is never used [INFO] [stdout] --> src/ejs/triangle.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn calculate_area_4(rectangle: Rectangle) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `myTuple` should have a snake case name [INFO] [stdout] --> src/modules/c_tuples.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | let myTuple: (u8, u8, u8) = (1, 2, 3); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `my_tuple` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `myArray` should have a snake case name [INFO] [stdout] --> src/modules/d_arrays.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | let myArray: [u8; 5] = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `my_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] running `Command { std: "docker" "inspect" "4ac3f77e24232b47a8d950a7f257fdf73f248e8321b6a6d9e45ef55d3a7dd78b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ac3f77e24232b47a8d950a7f257fdf73f248e8321b6a6d9e45ef55d3a7dd78b", kill_on_drop: false }` [INFO] [stdout] 4ac3f77e24232b47a8d950a7f257fdf73f248e8321b6a6d9e45ef55d3a7dd78b