[INFO] cloning repository https://github.com/SBSixteen/dataBased [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SBSixteen/dataBased" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSBSixteen%2FdataBased", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSBSixteen%2FdataBased'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 09fbb8e9a3ede4e9a097f733d16b6835f9dbb923 [INFO] building SBSixteen/dataBased against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSBSixteen%2FdataBased" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SBSixteen/dataBased on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SBSixteen/dataBased [INFO] finished tweaking git repo https://github.com/SBSixteen/dataBased [INFO] tweaked toml for git repo https://github.com/SBSixteen/dataBased written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/SBSixteen/dataBased 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b1398475287905a6c434597a05481cf8b36e24ae57d89d84ad2c8bdc260cf75 [INFO] running `Command { std: "docker" "start" "-a" "2b1398475287905a6c434597a05481cf8b36e24ae57d89d84ad2c8bdc260cf75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b1398475287905a6c434597a05481cf8b36e24ae57d89d84ad2c8bdc260cf75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b1398475287905a6c434597a05481cf8b36e24ae57d89d84ad2c8bdc260cf75", kill_on_drop: false }` [INFO] [stdout] 2b1398475287905a6c434597a05481cf8b36e24ae57d89d84ad2c8bdc260cf75 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 85f0bcfe2fc5069116cd6942a3ecb67c1135c8fd052d2043ea8b605aa5a7a044 [INFO] running `Command { std: "docker" "start" "-a" "85f0bcfe2fc5069116cd6942a3ecb67c1135c8fd052d2043ea8b605aa5a7a044", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.141 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling iana-time-zone v0.1.56 [INFO] [stderr] Compiling getrandom v0.2.9 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling chrono v0.4.24 [INFO] [stderr] Compiling dataBased v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `collections::HashMap`, `fmt::Debug`, and `fs` [INFO] [stdout] --> src/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, fmt::Debug, fs}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `self` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bytes`, `Error`, `hash::Hash`, and `stdout` [INFO] [stdout] --> src/main.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | fmt::{Error, Debug}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | hash::Hash, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | io::{self, stdout, Write, BufRead, Bytes}, fs::{self, File, read_to_string}, any::Any, path::Path, [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/main.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | use chrono::{Utc, Local}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:756:32 [INFO] [stdout] | [INFO] [stdout] 756 | ... if (b_tb) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 756 - if (b_tb) { [INFO] [stdout] 756 + if b_tb { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:462:18 [INFO] [stdout] | [INFO] [stdout] 462 | for (k, v) in g { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:478:18 [INFO] [stdout] | [INFO] [stdout] 478 | for (k, v) in &self.database { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:518:17 [INFO] [stdout] | [INFO] [stdout] 518 | let mut temp = self.fetchDB(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:560:17 [INFO] [stdout] | [INFO] [stdout] 560 | let mut v = Table { [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:659:13 [INFO] [stdout] | [INFO] [stdout] 659 | let mut L = Logger { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:1739:25 [INFO] [stdout] | [INFO] [stdout] 1739 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:1739:25 [INFO] [stdout] | [INFO] [stdout] 1510 | "groupby"=>{ [INFO] [stdout] | --------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1575 | "table" => { [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1595 | "import" => match g[1].to_lowercase().as_str(){ [INFO] [stdout] | -------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1736 | _=>{ [INFO] [stdout] | - matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1739 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `input` is never read [INFO] [stdout] --> src/main.rs:683:17 [INFO] [stdout] | [INFO] [stdout] 683 | let mut input = String::from(""); [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: `rows` [INFO] [stdout] --> src/main.rs:1293:33 [INFO] [stdout] | [INFO] [stdout] 1293 | ... let rows = tb.rows; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1288:33 [INFO] [stdout] | [INFO] [stdout] 1288 | ... let mut tb = workspaces.get_mut(&a_ws).unwrap().database.get_mut(&a_db).unwrap().table.get_mut(&a_tb).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/main.rs:1300:37 [INFO] [stdout] | [INFO] [stdout] 1300 | ... let mut t = cells.get_mut(&order[i]).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/main.rs:1582:41 [INFO] [stdout] | [INFO] [stdout] 1582 | ... let mut ws_to_use = workspaces.get_mut(&a_ws).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/main.rs:1699:49 [INFO] [stdout] | [INFO] [stdout] 1699 | ... let mut k = workspaces.get_mut(&a_ws).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/main.rs:1702:53 [INFO] [stdout] | [INFO] [stdout] 1702 | ... let mut d = k.database.get_mut(&a_db).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/main.rs:1831:53 [INFO] [stdout] | [INFO] [stdout] 1831 | ... let mut k = workspaces.get_mut(&a_ws).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/main.rs:1834:57 [INFO] [stdout] | [INFO] [stdout] 1834 | ... let mut d = k.database.get_mut(&a_db).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/main.rs:1836:57 [INFO] [stdout] | [INFO] [stdout] 1836 | ... let mut instance = Table{ [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `relations` is never read [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Table { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 53 | relations: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Table` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `table_name` and `col_name` are never read [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Relation { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 58 | table_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 59 | col_name: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Relation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reset` and `reveal` are never used [INFO] [stdout] --> src/main.rs:185:16 [INFO] [stdout] | [INFO] [stdout] 184 | impl Logger { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 185 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn reveal(&mut self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getTables` is never used [INFO] [stdout] --> src/main.rs:551:12 [INFO] [stdout] | [INFO] [stdout] 546 | impl Db { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 551 | fn getTables(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `looper` is never used [INFO] [stdout] --> src/main.rs:667:8 [INFO] [stdout] | [INFO] [stdout] 667 | fn looper() { // Not a movie reference [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `dataBased` should have a snake case name [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub mod dataBased { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `data_based` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/main.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | &self.code.push(x); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 194 | let _ = &self.code.push(x); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getLen` should have a snake case name [INFO] [stdout] --> src/main.rs:418:12 [INFO] [stdout] | [INFO] [stdout] 418 | fn getLen(&mut self) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getName` should have a snake case name [INFO] [stdout] --> src/main.rs:428:16 [INFO] [stdout] | [INFO] [stdout] 428 | pub fn getName(&self) -> &String { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAuthor` should have a snake case name [INFO] [stdout] --> src/main.rs:432:16 [INFO] [stdout] | [INFO] [stdout] 432 | pub fn getAuthor(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_author` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getMetadata` should have a snake case name [INFO] [stdout] --> src/main.rs:436:16 [INFO] [stdout] | [INFO] [stdout] 436 | pub fn getMetadata(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_metadata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getDB` should have a snake case name [INFO] [stdout] --> src/main.rs:440:16 [INFO] [stdout] | [INFO] [stdout] 440 | pub fn getDB(&self) -> &HashMap { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `get_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `throwUC` should have a snake case name [INFO] [stdout] --> src/main.rs:444:16 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn throwUC(&mut self) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `throw_uc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `toggleLogger` should have a snake case name [INFO] [stdout] --> src/main.rs:449:16 [INFO] [stdout] | [INFO] [stdout] 449 | pub fn toggleLogger(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `toggle_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getDBNames` should have a snake case name [INFO] [stdout] --> src/main.rs:453:12 [INFO] [stdout] | [INFO] [stdout] 453 | fn getDBNames(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_dbnames` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addDB` should have a snake case name [INFO] [stdout] --> src/main.rs:484:16 [INFO] [stdout] | [INFO] [stdout] 484 | pub fn addDB(&mut self, x: String) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `add_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fetchDB` should have a snake case name [INFO] [stdout] --> src/main.rs:498:16 [INFO] [stdout] | [INFO] [stdout] 498 | pub fn fetchDB(&mut self) -> &mut HashMap { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `fetch_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fetchDB_name` should have a snake case name [INFO] [stdout] --> src/main.rs:502:16 [INFO] [stdout] | [INFO] [stdout] 502 | pub fn fetchDB_name(&mut self, x: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `fetch_db_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `createTable` should have a snake case name [INFO] [stdout] --> src/main.rs:511:16 [INFO] [stdout] | [INFO] [stdout] 511 | pub fn createTable(&mut self, DB: String, name: String, headers: String, model: String) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `create_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `DB` should have a snake case name [INFO] [stdout] --> src/main.rs:511:39 [INFO] [stdout] | [INFO] [stdout] 511 | pub fn createTable(&mut self, DB: String, name: String, headers: String, model: String) { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `check_DB` should have a snake case name [INFO] [stdout] --> src/main.rs:512:17 [INFO] [stdout] | [INFO] [stdout] 512 | let check_DB = self.fetchDB_name(DB.clone()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `check_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEAD` should have a snake case name [INFO] [stdout] --> src/main.rs:524:21 [INFO] [stdout] | [INFO] [stdout] 524 | let mut HEAD = Vec::new(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `head` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MDL` should have a snake case name [INFO] [stdout] --> src/main.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut MDL = Vec::new(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `mdl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getName` should have a snake case name [INFO] [stdout] --> src/main.rs:547:12 [INFO] [stdout] | [INFO] [stdout] 547 | fn getName(&self) -> &String { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getTables` should have a snake case name [INFO] [stdout] --> src/main.rs:551:12 [INFO] [stdout] | [INFO] [stdout] 551 | fn getTables(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `createTable` should have a snake case name [INFO] [stdout] --> src/main.rs:555:12 [INFO] [stdout] | [INFO] [stdout] 555 | fn createTable(&mut self, x: String, y: Vec, z: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `create_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_Logger` should have a snake case name [INFO] [stdout] --> src/main.rs:658:8 [INFO] [stdout] | [INFO] [stdout] 658 | fn init_Logger() -> Logger { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `init_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/main.rs:659:17 [INFO] [stdout] | [INFO] [stdout] 659 | let mut L = Logger { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generateSession` should have a snake case name [INFO] [stdout] --> src/main.rs:670:12 [INFO] [stdout] | [INFO] [stdout] 670 | pub fn generateSession() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `generate_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:1148:77 [INFO] [stdout] | [INFO] [stdout] 1148 | ... let current = workspaces.get(&a_ws).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Workspace` does not implement `Clone`, so calling `clone` on `&Workspace` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 1148 - let current = workspaces.get(&a_ws).unwrap().clone(); [INFO] [stdout] 1148 + let current = workspaces.get(&a_ws).unwrap(); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Workspace`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 32 + #[derive(Clone)] [INFO] [stdout] 33 | pub struct Workspace { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:1488:64 [INFO] [stdout] | [INFO] [stdout] 1488 | ... if workspaces.contains_key(g[2].clone()){ [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1585:41 [INFO] [stdout] | [INFO] [stdout] 1585 | ... import_table_from_csv(db_to_use, file_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] 1585 | let _ = import_table_from_csv(db_to_use, file_name); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.46s [INFO] running `Command { std: "docker" "inspect" "85f0bcfe2fc5069116cd6942a3ecb67c1135c8fd052d2043ea8b605aa5a7a044", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85f0bcfe2fc5069116cd6942a3ecb67c1135c8fd052d2043ea8b605aa5a7a044", kill_on_drop: false }` [INFO] [stdout] 85f0bcfe2fc5069116cd6942a3ecb67c1135c8fd052d2043ea8b605aa5a7a044 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bebab9f469d7c5bdae2ed3836e8c35e0dc2a8200e112066e85f1a8dd2d7099c7 [INFO] running `Command { std: "docker" "start" "-a" "bebab9f469d7c5bdae2ed3836e8c35e0dc2a8200e112066e85f1a8dd2d7099c7", kill_on_drop: false }` [INFO] [stderr] Compiling dataBased v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `collections::HashMap`, `fmt::Debug`, and `fs` [INFO] [stdout] --> src/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, fmt::Debug, fs}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `self` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bytes`, `Error`, `hash::Hash`, and `stdout` [INFO] [stdout] --> src/main.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | fmt::{Error, Debug}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | hash::Hash, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | io::{self, stdout, Write, BufRead, Bytes}, fs::{self, File, read_to_string}, any::Any, path::Path, [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/main.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | use chrono::{Utc, Local}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:756:32 [INFO] [stdout] | [INFO] [stdout] 756 | ... if (b_tb) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 756 - if (b_tb) { [INFO] [stdout] 756 + if b_tb { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:462:18 [INFO] [stdout] | [INFO] [stdout] 462 | for (k, v) in g { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:478:18 [INFO] [stdout] | [INFO] [stdout] 478 | for (k, v) in &self.database { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:518:17 [INFO] [stdout] | [INFO] [stdout] 518 | let mut temp = self.fetchDB(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:560:17 [INFO] [stdout] | [INFO] [stdout] 560 | let mut v = Table { [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:659:13 [INFO] [stdout] | [INFO] [stdout] 659 | let mut L = Logger { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:1739:25 [INFO] [stdout] | [INFO] [stdout] 1739 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:1739:25 [INFO] [stdout] | [INFO] [stdout] 1510 | "groupby"=>{ [INFO] [stdout] | --------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1575 | "table" => { [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1595 | "import" => match g[1].to_lowercase().as_str(){ [INFO] [stdout] | -------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1736 | _=>{ [INFO] [stdout] | - matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1739 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `input` is never read [INFO] [stdout] --> src/main.rs:683:17 [INFO] [stdout] | [INFO] [stdout] 683 | let mut input = String::from(""); [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: `rows` [INFO] [stdout] --> src/main.rs:1293:33 [INFO] [stdout] | [INFO] [stdout] 1293 | ... let rows = tb.rows; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1288:33 [INFO] [stdout] | [INFO] [stdout] 1288 | ... let mut tb = workspaces.get_mut(&a_ws).unwrap().database.get_mut(&a_db).unwrap().table.get_mut(&a_tb).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/main.rs:1300:37 [INFO] [stdout] | [INFO] [stdout] 1300 | ... let mut t = cells.get_mut(&order[i]).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/main.rs:1582:41 [INFO] [stdout] | [INFO] [stdout] 1582 | ... let mut ws_to_use = workspaces.get_mut(&a_ws).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/main.rs:1699:49 [INFO] [stdout] | [INFO] [stdout] 1699 | ... let mut k = workspaces.get_mut(&a_ws).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/main.rs:1702:53 [INFO] [stdout] | [INFO] [stdout] 1702 | ... let mut d = k.database.get_mut(&a_db).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/main.rs:1831:53 [INFO] [stdout] | [INFO] [stdout] 1831 | ... let mut k = workspaces.get_mut(&a_ws).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/main.rs:1834:57 [INFO] [stdout] | [INFO] [stdout] 1834 | ... let mut d = k.database.get_mut(&a_db).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/main.rs:1836:57 [INFO] [stdout] | [INFO] [stdout] 1836 | ... let mut instance = Table{ [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `relations` is never read [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Table { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 53 | relations: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Table` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `table_name` and `col_name` are never read [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Relation { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 58 | table_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 59 | col_name: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Relation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reset` and `reveal` are never used [INFO] [stdout] --> src/main.rs:185:16 [INFO] [stdout] | [INFO] [stdout] 184 | impl Logger { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 185 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn reveal(&mut self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getTables` is never used [INFO] [stdout] --> src/main.rs:551:12 [INFO] [stdout] | [INFO] [stdout] 546 | impl Db { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 551 | fn getTables(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `looper` is never used [INFO] [stdout] --> src/main.rs:667:8 [INFO] [stdout] | [INFO] [stdout] 667 | fn looper() { // Not a movie reference [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `dataBased` should have a snake case name [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub mod dataBased { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `data_based` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/main.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | &self.code.push(x); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 194 | let _ = &self.code.push(x); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getLen` should have a snake case name [INFO] [stdout] --> src/main.rs:418:12 [INFO] [stdout] | [INFO] [stdout] 418 | fn getLen(&mut self) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getName` should have a snake case name [INFO] [stdout] --> src/main.rs:428:16 [INFO] [stdout] | [INFO] [stdout] 428 | pub fn getName(&self) -> &String { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAuthor` should have a snake case name [INFO] [stdout] --> src/main.rs:432:16 [INFO] [stdout] | [INFO] [stdout] 432 | pub fn getAuthor(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_author` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getMetadata` should have a snake case name [INFO] [stdout] --> src/main.rs:436:16 [INFO] [stdout] | [INFO] [stdout] 436 | pub fn getMetadata(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_metadata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getDB` should have a snake case name [INFO] [stdout] --> src/main.rs:440:16 [INFO] [stdout] | [INFO] [stdout] 440 | pub fn getDB(&self) -> &HashMap { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `get_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `throwUC` should have a snake case name [INFO] [stdout] --> src/main.rs:444:16 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn throwUC(&mut self) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `throw_uc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `toggleLogger` should have a snake case name [INFO] [stdout] --> src/main.rs:449:16 [INFO] [stdout] | [INFO] [stdout] 449 | pub fn toggleLogger(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `toggle_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getDBNames` should have a snake case name [INFO] [stdout] --> src/main.rs:453:12 [INFO] [stdout] | [INFO] [stdout] 453 | fn getDBNames(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_dbnames` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addDB` should have a snake case name [INFO] [stdout] --> src/main.rs:484:16 [INFO] [stdout] | [INFO] [stdout] 484 | pub fn addDB(&mut self, x: String) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `add_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fetchDB` should have a snake case name [INFO] [stdout] --> src/main.rs:498:16 [INFO] [stdout] | [INFO] [stdout] 498 | pub fn fetchDB(&mut self) -> &mut HashMap { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `fetch_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fetchDB_name` should have a snake case name [INFO] [stdout] --> src/main.rs:502:16 [INFO] [stdout] | [INFO] [stdout] 502 | pub fn fetchDB_name(&mut self, x: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `fetch_db_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `createTable` should have a snake case name [INFO] [stdout] --> src/main.rs:511:16 [INFO] [stdout] | [INFO] [stdout] 511 | pub fn createTable(&mut self, DB: String, name: String, headers: String, model: String) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `create_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `DB` should have a snake case name [INFO] [stdout] --> src/main.rs:511:39 [INFO] [stdout] | [INFO] [stdout] 511 | pub fn createTable(&mut self, DB: String, name: String, headers: String, model: String) { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `check_DB` should have a snake case name [INFO] [stdout] --> src/main.rs:512:17 [INFO] [stdout] | [INFO] [stdout] 512 | let check_DB = self.fetchDB_name(DB.clone()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `check_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEAD` should have a snake case name [INFO] [stdout] --> src/main.rs:524:21 [INFO] [stdout] | [INFO] [stdout] 524 | let mut HEAD = Vec::new(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `head` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MDL` should have a snake case name [INFO] [stdout] --> src/main.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut MDL = Vec::new(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `mdl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getName` should have a snake case name [INFO] [stdout] --> src/main.rs:547:12 [INFO] [stdout] | [INFO] [stdout] 547 | fn getName(&self) -> &String { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getTables` should have a snake case name [INFO] [stdout] --> src/main.rs:551:12 [INFO] [stdout] | [INFO] [stdout] 551 | fn getTables(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `createTable` should have a snake case name [INFO] [stdout] --> src/main.rs:555:12 [INFO] [stdout] | [INFO] [stdout] 555 | fn createTable(&mut self, x: String, y: Vec, z: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `create_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_Logger` should have a snake case name [INFO] [stdout] --> src/main.rs:658:8 [INFO] [stdout] | [INFO] [stdout] 658 | fn init_Logger() -> Logger { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `init_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/main.rs:659:17 [INFO] [stdout] | [INFO] [stdout] 659 | let mut L = Logger { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generateSession` should have a snake case name [INFO] [stdout] --> src/main.rs:670:12 [INFO] [stdout] | [INFO] [stdout] 670 | pub fn generateSession() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `generate_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:1148:77 [INFO] [stdout] | [INFO] [stdout] 1148 | ... let current = workspaces.get(&a_ws).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Workspace` does not implement `Clone`, so calling `clone` on `&Workspace` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 1148 - let current = workspaces.get(&a_ws).unwrap().clone(); [INFO] [stdout] 1148 + let current = workspaces.get(&a_ws).unwrap(); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Workspace`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 32 + #[derive(Clone)] [INFO] [stdout] 33 | pub struct Workspace { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:1488:64 [INFO] [stdout] | [INFO] [stdout] 1488 | ... if workspaces.contains_key(g[2].clone()){ [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1585:41 [INFO] [stdout] | [INFO] [stdout] 1585 | ... import_table_from_csv(db_to_use, file_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] 1585 | let _ = import_table_from_csv(db_to_use, file_name); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] running `Command { std: "docker" "inspect" "bebab9f469d7c5bdae2ed3836e8c35e0dc2a8200e112066e85f1a8dd2d7099c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bebab9f469d7c5bdae2ed3836e8c35e0dc2a8200e112066e85f1a8dd2d7099c7", kill_on_drop: false }` [INFO] [stdout] bebab9f469d7c5bdae2ed3836e8c35e0dc2a8200e112066e85f1a8dd2d7099c7