[INFO] cloning repository https://github.com/YendisFish/Clidget.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/YendisFish/Clidget.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYendisFish%2FClidget.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYendisFish%2FClidget.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0aa67fde1670de2dc76ae6da7cb0842d8b572502 [INFO] checking YendisFish/Clidget.rs/0aa67fde1670de2dc76ae6da7cb0842d8b572502 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYendisFish%2FClidget.rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/YendisFish/Clidget.rs on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/YendisFish/Clidget.rs [INFO] finished tweaking git repo https://github.com/YendisFish/Clidget.rs [INFO] tweaked toml for git repo https://github.com/YendisFish/Clidget.rs written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/YendisFish/Clidget.rs 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 32117a4d03ed1b6f489a9fca521cb37d6272d35ff4c77be7331dbe58e0643032 [INFO] running `Command { std: "docker" "start" "-a" "32117a4d03ed1b6f489a9fca521cb37d6272d35ff4c77be7331dbe58e0643032", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "32117a4d03ed1b6f489a9fca521cb37d6272d35ff4c77be7331dbe58e0643032", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32117a4d03ed1b6f489a9fca521cb37d6272d35ff4c77be7331dbe58e0643032", kill_on_drop: false }` [INFO] [stdout] 32117a4d03ed1b6f489a9fca521cb37d6272d35ff4c77be7331dbe58e0643032 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2075ad6a1c41a7bce3665d2f234ea1283958145b45f87c516eda0fe66f74cc9f [INFO] running `Command { std: "docker" "start" "-a" "2075ad6a1c41a7bce3665d2f234ea1283958145b45f87c516eda0fe66f74cc9f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.85 [INFO] [stderr] Compiling serde_derive v1.0.133 [INFO] [stderr] Compiling serde v1.0.133 [INFO] [stderr] Compiling serde_json v1.0.74 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Checking clidget-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Read` and `Write` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::from_fn` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter::from_fn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/systemhandler.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/structs.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/structs.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::structs` [INFO] [stdout] --> src/generichandlers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::structs; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `Write` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::from_fn` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter::from_fn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/systemhandler.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/structs.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/structs.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::structs` [INFO] [stdout] --> src/generichandlers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::structs; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut accnttochange = accnt; [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/structs.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut toProcess = &tr; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut newBal: i128 = accnt.Amount - toProcess.Amount; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut ret: Account = Account { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let mut dirFiles= fs::read_dir("/etc/Clidget/Core/Accounts/").unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:69:21 [INFO] [stdout] | [INFO] [stdout] 69 | let mut toRead = String::from(file.unwrap().path().to_string_lossy().to_string()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 70 | let mut toGen = fs::read_to_string(toRead).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let mut dirStr: String = "/etc/Clidget/Core/Accounts/".to_string() + &accnttocreate.Name + &"/" + &accnttocreate.Name + &"/".to_strin... [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let mut ret: Account = serde_json::from_str(&accnt).unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let mut ret: String = serde_json::to_string(&accnt).unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/structs.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 135 | one => accndtpe = AccountType::Checking, [INFO] [stdout] | --- matches any value [INFO] [stdout] 136 | two => accndtpe = AccountType::Savings, [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/structs.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 135 | one => accndtpe = AccountType::Checking, [INFO] [stdout] | --- matches any value [INFO] [stdout] 136 | two => accndtpe = AccountType::Savings, [INFO] [stdout] 137 | three => accndtpe = AccountType::Retirement, [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/structs.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 135 | one => accndtpe = AccountType::Checking, [INFO] [stdout] | --- matches any value [INFO] [stdout] ... [INFO] [stdout] 138 | four => accndtpe = AccountType::Roth, [INFO] [stdout] | ^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/structs.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 135 | one => accndtpe = AccountType::Checking, [INFO] [stdout] | --- matches any value [INFO] [stdout] ... [INFO] [stdout] 139 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `one` [INFO] [stdout] --> src/structs.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | let one = String::from("checking"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_one` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `two` [INFO] [stdout] --> src/structs.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let two = String::from("savings"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `three` [INFO] [stdout] --> src/structs.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let three = String::from("retirement"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_three` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/structs.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let four = String::from("roth"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `one` [INFO] [stdout] --> src/structs.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | one => accndtpe = AccountType::Checking, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `two` [INFO] [stdout] --> src/structs.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | two => accndtpe = AccountType::Savings, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `three` [INFO] [stdout] --> src/structs.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | three => accndtpe = AccountType::Retirement, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_three` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/structs.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | four => accndtpe = AccountType::Roth, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let mut amnt: i128 = stramnmt.parse::().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let mut bdgt = Budget { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut args: Vec = env::args().collect(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut AccountList: Vec = ImportAccounts(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | ... let mut commands = vec!["help - Displays this message", "select-account (account name) - Selects an account", "create-account - Cre... [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `StartupChecks` is never used [INFO] [stdout] --> src/systemhandler.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn StartupChecks() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AddBudgetToAccount` is never used [INFO] [stdout] --> src/structs.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn AddBudgetToAccount(accnt: Account, budget: Budget) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ProcessTransaction` is never used [INFO] [stdout] --> src/structs.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn ProcessTransaction(accnt: Account, tr: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `UpdateAccount` is never used [INFO] [stdout] --> src/structs.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn UpdateAccount(accnt: Account) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CreateAccount` is never used [INFO] [stdout] --> src/structs.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn CreateAccount(accnttocreate: &Account) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AccountToJson` is never used [INFO] [stdout] --> src/structs.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn AccountToJson(accnt: &Account) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GenerateAccountFromInput` is never used [INFO] [stdout] --> src/structs.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn GenerateAccountFromInput() -> Account { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `argsHandler` is never used [INFO] [stdout] --> src/generichandlers.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn argsHandler() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `MainProgram` should have a snake case name [INFO] [stdout] --> src/main.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn MainProgram() { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `main_program` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `UpdateAccountListAndSelect` should have a snake case name [INFO] [stdout] --> src/main.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn UpdateAccountListAndSelect() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_account_list_and_select` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccountList` should have a snake case name [INFO] [stdout] --> src/main.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | let mut AccountList: Vec = ImportAccounts(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `account_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | io::stdin().read_line(&mut inp); [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] 48 | let _ = io::stdin().read_line(&mut inp); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ListCommands` should have a snake case name [INFO] [stdout] --> src/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | fn ListCommands() { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `list_commands` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AccountHandler` should have a snake case name [INFO] [stdout] --> src/main.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn AccountHandler(accnt: Account) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `account_handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | io::stdin().read_line(&mut input); [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] 78 | let _ = io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `StartupChecks` should have a snake case name [INFO] [stdout] --> src/systemhandler.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn StartupChecks() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `startup_checks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `baseDir` should have a snake case name [INFO] [stdout] --> src/systemhandler.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let baseDir: bool = Path::new("/etc/Clidget/").exists(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `base_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `coreDir` should have a snake case name [INFO] [stdout] --> src/systemhandler.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let coreDir: bool = Path::new("/etc/Clidget/Core/").exists(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `core_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Installer` should have a snake case name [INFO] [stdout] --> src/systemhandler.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn Installer() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `installer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/systemhandler.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | fs::create_dir_all("/etc/Clidget/Core/Accounts/"); [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] 23 | let _ = fs::create_dir_all("/etc/Clidget/Core/Accounts/"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentPath` should have a snake case name [INFO] [stdout] --> src/systemhandler.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let currentPath = env::current_exe().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `current_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> src/structs.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub Name: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Amount` should have a snake case name [INFO] [stdout] --> src/structs.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub Amount: i128, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Budget` should have a snake case name [INFO] [stdout] --> src/structs.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub Budget: Budget, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `budget` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Account_Type` should have a snake case name [INFO] [stdout] --> src/structs.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub Account_Type: AccountType [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `account_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Amount_Initial` should have a snake case name [INFO] [stdout] --> src/structs.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub Amount_Initial: i128, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `amount_initial` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Amount_Left` should have a snake case name [INFO] [stdout] --> src/structs.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub Amount_Left: i128 [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `amount_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Title` should have a snake case name [INFO] [stdout] --> src/structs.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub Title: String, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `title` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Amount` should have a snake case name [INFO] [stdout] --> src/structs.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub Amount: i128 [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AddBudgetToAccount` should have a snake case name [INFO] [stdout] --> src/structs.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn AddBudgetToAccount(accnt: Account, budget: Budget) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `add_budget_to_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ProcessTransaction` should have a snake case name [INFO] [stdout] --> src/structs.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn ProcessTransaction(accnt: Account, tr: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `process_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `toProcess` should have a snake case name [INFO] [stdout] --> src/structs.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut toProcess = &tr; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `to_process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newBal` should have a snake case name [INFO] [stdout] --> src/structs.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let mut newBal: i128 = accnt.Amount - toProcess.Amount; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `new_bal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ImportAccounts` should have a snake case name [INFO] [stdout] --> src/structs.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn ImportAccounts() -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `import_accounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dirFiles` should have a snake case name [INFO] [stdout] --> src/structs.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut dirFiles= fs::read_dir("/etc/Clidget/Core/Accounts/").unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `dir_files` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dirStr` should have a snake case name [INFO] [stdout] --> src/structs.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut dirStr: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `dir_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `toRead` should have a snake case name [INFO] [stdout] --> src/structs.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | let mut toRead = String::from(file.unwrap().path().to_string_lossy().to_string()); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `to_read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `toGen` should have a snake case name [INFO] [stdout] --> src/structs.rs:70:25 [INFO] [stdout] | [INFO] [stdout] 70 | let mut toGen = fs::read_to_string(toRead).unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `to_gen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `UpdateAccount` should have a snake case name [INFO] [stdout] --> src/structs.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn UpdateAccount(accnt: Account) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/structs.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fs::remove_dir("/etc/Clidget/Core/Accounts".to_string() + &accnt.Name + &"/" + &accnt.Name + "/"); [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] 81 | let _ = fs::remove_dir("/etc/Clidget/Core/Accounts".to_string() + &accnt.Name + &"/" + &accnt.Name + "/"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CreateAccount` should have a snake case name [INFO] [stdout] --> src/structs.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn CreateAccount(accnttocreate: &Account) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `create_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dirStr` should have a snake case name [INFO] [stdout] --> src/structs.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let mut dirStr: String = "/etc/Clidget/Core/Accounts/".to_string() + &accnttocreate.Name + &"/" + &accnttocreate.Name + &"/".to_strin... [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `dir_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/structs.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | fs::write(dirStr.to_string(), &parsed); [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] 92 | let _ = fs::write(dirStr.to_string(), &parsed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GenerateAccountFromJson` should have a snake case name [INFO] [stdout] --> src/structs.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn GenerateAccountFromJson(accnt: String) -> Account { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `generate_account_from_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AccountToJson` should have a snake case name [INFO] [stdout] --> src/structs.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn AccountToJson(accnt: &Account) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `account_to_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GenerateAccountFromInput` should have a snake case name [INFO] [stdout] --> src/structs.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn GenerateAccountFromInput() -> Account { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `generate_account_from_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/structs.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | io::stdin().read_line(&mut nme); [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] 109 | let _ = io::stdin().read_line(&mut nme); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/structs.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | io::stdin().read_line(&mut stramnmt); [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] 114 | let _ = io::stdin().read_line(&mut stramnmt); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/structs.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | io::stdin().read_line(&mut typestraccnt); [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] 127 | let _ = io::stdin().read_line(&mut typestraccnt); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `argsHandler` should have a snake case name [INFO] [stdout] --> src/generichandlers.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn argsHandler() { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `args_handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 87 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut accnttochange = accnt; [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/structs.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut toProcess = &tr; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut newBal: i128 = accnt.Amount - toProcess.Amount; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut ret: Account = Account { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let mut dirFiles= fs::read_dir("/etc/Clidget/Core/Accounts/").unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:69:21 [INFO] [stdout] | [INFO] [stdout] 69 | let mut toRead = String::from(file.unwrap().path().to_string_lossy().to_string()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 70 | let mut toGen = fs::read_to_string(toRead).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let mut dirStr: String = "/etc/Clidget/Core/Accounts/".to_string() + &accnttocreate.Name + &"/" + &accnttocreate.Name + &"/".to_strin... [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let mut ret: Account = serde_json::from_str(&accnt).unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let mut ret: String = serde_json::to_string(&accnt).unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/structs.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 135 | one => accndtpe = AccountType::Checking, [INFO] [stdout] | --- matches any value [INFO] [stdout] 136 | two => accndtpe = AccountType::Savings, [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/structs.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 135 | one => accndtpe = AccountType::Checking, [INFO] [stdout] | --- matches any value [INFO] [stdout] 136 | two => accndtpe = AccountType::Savings, [INFO] [stdout] 137 | three => accndtpe = AccountType::Retirement, [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/structs.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 135 | one => accndtpe = AccountType::Checking, [INFO] [stdout] | --- matches any value [INFO] [stdout] ... [INFO] [stdout] 138 | four => accndtpe = AccountType::Roth, [INFO] [stdout] | ^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/structs.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 135 | one => accndtpe = AccountType::Checking, [INFO] [stdout] | --- matches any value [INFO] [stdout] ... [INFO] [stdout] 139 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `one` [INFO] [stdout] --> src/structs.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | let one = String::from("checking"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_one` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `two` [INFO] [stdout] --> src/structs.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let two = String::from("savings"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `three` [INFO] [stdout] --> src/structs.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let three = String::from("retirement"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_three` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/structs.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let four = String::from("roth"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `one` [INFO] [stdout] --> src/structs.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | one => accndtpe = AccountType::Checking, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `two` [INFO] [stdout] --> src/structs.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | two => accndtpe = AccountType::Savings, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `three` [INFO] [stdout] --> src/structs.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | three => accndtpe = AccountType::Retirement, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_three` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/structs.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | four => accndtpe = AccountType::Roth, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let mut amnt: i128 = stramnmt.parse::().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let mut bdgt = Budget { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut args: Vec = env::args().collect(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut AccountList: Vec = ImportAccounts(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | ... let mut commands = vec!["help - Displays this message", "select-account (account name) - Selects an account", "create-account - Cre... [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `StartupChecks` is never used [INFO] [stdout] --> src/systemhandler.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn StartupChecks() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AddBudgetToAccount` is never used [INFO] [stdout] --> src/structs.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn AddBudgetToAccount(accnt: Account, budget: Budget) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ProcessTransaction` is never used [INFO] [stdout] --> src/structs.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn ProcessTransaction(accnt: Account, tr: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `UpdateAccount` is never used [INFO] [stdout] --> src/structs.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn UpdateAccount(accnt: Account) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CreateAccount` is never used [INFO] [stdout] --> src/structs.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn CreateAccount(accnttocreate: &Account) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AccountToJson` is never used [INFO] [stdout] --> src/structs.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn AccountToJson(accnt: &Account) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GenerateAccountFromInput` is never used [INFO] [stdout] --> src/structs.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn GenerateAccountFromInput() -> Account { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `argsHandler` is never used [INFO] [stdout] --> src/generichandlers.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn argsHandler() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `MainProgram` should have a snake case name [INFO] [stdout] --> src/main.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn MainProgram() { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `main_program` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `UpdateAccountListAndSelect` should have a snake case name [INFO] [stdout] --> src/main.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn UpdateAccountListAndSelect() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_account_list_and_select` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccountList` should have a snake case name [INFO] [stdout] --> src/main.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | let mut AccountList: Vec = ImportAccounts(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `account_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | io::stdin().read_line(&mut inp); [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] 48 | let _ = io::stdin().read_line(&mut inp); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ListCommands` should have a snake case name [INFO] [stdout] --> src/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | fn ListCommands() { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `list_commands` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AccountHandler` should have a snake case name [INFO] [stdout] --> src/main.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn AccountHandler(accnt: Account) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `account_handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | io::stdin().read_line(&mut input); [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] 78 | let _ = io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `StartupChecks` should have a snake case name [INFO] [stdout] --> src/systemhandler.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn StartupChecks() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `startup_checks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `baseDir` should have a snake case name [INFO] [stdout] --> src/systemhandler.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let baseDir: bool = Path::new("/etc/Clidget/").exists(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `base_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `coreDir` should have a snake case name [INFO] [stdout] --> src/systemhandler.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let coreDir: bool = Path::new("/etc/Clidget/Core/").exists(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `core_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Installer` should have a snake case name [INFO] [stdout] --> src/systemhandler.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn Installer() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `installer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/systemhandler.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | fs::create_dir_all("/etc/Clidget/Core/Accounts/"); [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] 23 | let _ = fs::create_dir_all("/etc/Clidget/Core/Accounts/"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentPath` should have a snake case name [INFO] [stdout] --> src/systemhandler.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let currentPath = env::current_exe().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `current_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> src/structs.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub Name: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Amount` should have a snake case name [INFO] [stdout] --> src/structs.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub Amount: i128, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Budget` should have a snake case name [INFO] [stdout] --> src/structs.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub Budget: Budget, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `budget` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Account_Type` should have a snake case name [INFO] [stdout] --> src/structs.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub Account_Type: AccountType [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `account_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Amount_Initial` should have a snake case name [INFO] [stdout] --> src/structs.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub Amount_Initial: i128, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `amount_initial` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Amount_Left` should have a snake case name [INFO] [stdout] --> src/structs.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub Amount_Left: i128 [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `amount_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Title` should have a snake case name [INFO] [stdout] --> src/structs.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub Title: String, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `title` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Amount` should have a snake case name [INFO] [stdout] --> src/structs.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub Amount: i128 [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AddBudgetToAccount` should have a snake case name [INFO] [stdout] --> src/structs.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn AddBudgetToAccount(accnt: Account, budget: Budget) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `add_budget_to_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ProcessTransaction` should have a snake case name [INFO] [stdout] --> src/structs.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn ProcessTransaction(accnt: Account, tr: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `process_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `toProcess` should have a snake case name [INFO] [stdout] --> src/structs.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut toProcess = &tr; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `to_process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newBal` should have a snake case name [INFO] [stdout] --> src/structs.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let mut newBal: i128 = accnt.Amount - toProcess.Amount; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `new_bal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ImportAccounts` should have a snake case name [INFO] [stdout] --> src/structs.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn ImportAccounts() -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `import_accounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dirFiles` should have a snake case name [INFO] [stdout] --> src/structs.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut dirFiles= fs::read_dir("/etc/Clidget/Core/Accounts/").unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `dir_files` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dirStr` should have a snake case name [INFO] [stdout] --> src/structs.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut dirStr: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `dir_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `toRead` should have a snake case name [INFO] [stdout] --> src/structs.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | let mut toRead = String::from(file.unwrap().path().to_string_lossy().to_string()); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `to_read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `toGen` should have a snake case name [INFO] [stdout] --> src/structs.rs:70:25 [INFO] [stdout] | [INFO] [stdout] 70 | let mut toGen = fs::read_to_string(toRead).unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `to_gen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `UpdateAccount` should have a snake case name [INFO] [stdout] --> src/structs.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn UpdateAccount(accnt: Account) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/structs.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fs::remove_dir("/etc/Clidget/Core/Accounts".to_string() + &accnt.Name + &"/" + &accnt.Name + "/"); [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] 81 | let _ = fs::remove_dir("/etc/Clidget/Core/Accounts".to_string() + &accnt.Name + &"/" + &accnt.Name + "/"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CreateAccount` should have a snake case name [INFO] [stdout] --> src/structs.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn CreateAccount(accnttocreate: &Account) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `create_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dirStr` should have a snake case name [INFO] [stdout] --> src/structs.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let mut dirStr: String = "/etc/Clidget/Core/Accounts/".to_string() + &accnttocreate.Name + &"/" + &accnttocreate.Name + &"/".to_strin... [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `dir_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/structs.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | fs::write(dirStr.to_string(), &parsed); [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] 92 | let _ = fs::write(dirStr.to_string(), &parsed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GenerateAccountFromJson` should have a snake case name [INFO] [stdout] --> src/structs.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn GenerateAccountFromJson(accnt: String) -> Account { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `generate_account_from_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AccountToJson` should have a snake case name [INFO] [stdout] --> src/structs.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn AccountToJson(accnt: &Account) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `account_to_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GenerateAccountFromInput` should have a snake case name [INFO] [stdout] --> src/structs.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn GenerateAccountFromInput() -> Account { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `generate_account_from_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/structs.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | io::stdin().read_line(&mut nme); [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] 109 | let _ = io::stdin().read_line(&mut nme); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/structs.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | io::stdin().read_line(&mut stramnmt); [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] 114 | let _ = io::stdin().read_line(&mut stramnmt); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/structs.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | io::stdin().read_line(&mut typestraccnt); [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] 127 | let _ = io::stdin().read_line(&mut typestraccnt); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `argsHandler` should have a snake case name [INFO] [stdout] --> src/generichandlers.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn argsHandler() { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `args_handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 87 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.55s [INFO] running `Command { std: "docker" "inspect" "2075ad6a1c41a7bce3665d2f234ea1283958145b45f87c516eda0fe66f74cc9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2075ad6a1c41a7bce3665d2f234ea1283958145b45f87c516eda0fe66f74cc9f", kill_on_drop: false }` [INFO] [stdout] 2075ad6a1c41a7bce3665d2f234ea1283958145b45f87c516eda0fe66f74cc9f