[INFO] cloning repository https://github.com/afex50/sql_orm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/afex50/sql_orm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fafex50%2Fsql_orm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fafex50%2Fsql_orm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fe1064211bb6fa35d9aea29c0d1cbe6fa9712a6d [INFO] building afex50/sql_orm against master#f5209000832c9d3bc29c91f4daef4ca9f28dc797+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fafex50%2Fsql_orm" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/afex50/sql_orm [INFO] finished tweaking git repo https://github.com/afex50/sql_orm [INFO] tweaked toml for git repo https://github.com/afex50/sql_orm written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/afex50/sql_orm on toolchain f5209000832c9d3bc29c91f4daef4ca9f28dc797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/afex50/sql_orm 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" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hashlink v0.9.0 [INFO] [stderr] Downloaded base64 v0.22.0 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] af65b4412f39141870b97fa4b9881c0d7f7a71a9235e6edc338d5e6df2b474f1 [INFO] running `Command { std: "docker" "start" "-a" "af65b4412f39141870b97fa4b9881c0d7f7a71a9235e6edc338d5e6df2b474f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af65b4412f39141870b97fa4b9881c0d7f7a71a9235e6edc338d5e6df2b474f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af65b4412f39141870b97fa4b9881c0d7f7a71a9235e6edc338d5e6df2b474f1", kill_on_drop: false }` [INFO] [stdout] af65b4412f39141870b97fa4b9881c0d7f7a71a9235e6edc338d5e6df2b474f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] f6fd1f8215fbb9e81272719b77cad204f12035f9a4cb44e656490c1f06a99e30 [INFO] running `Command { std: "docker" "start" "-a" "f6fd1f8215fbb9e81272719b77cad204f12035f9a4cb44e656490c1f06a99e30", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling zerocopy v0.7.32 [INFO] [stderr] Compiling cc v1.0.97 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling serde_json v1.0.115 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling base64 v0.22.0 [INFO] [stderr] Compiling zeroize v1.7.0 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling hashlink v0.9.0 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling bcrypt v0.15.1 [INFO] [stderr] Compiling libsqlite3-sys v0.28.0 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling rusqlite v0.31.0 [INFO] [stderr] Compiling sql v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `fmt::format` [INFO] [stdout] --> src/orm.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fmt::format, path::Path}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de::DeserializeOwned` [INFO] [stdout] --> src/orm.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{de::DeserializeOwned, Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::Path` [INFO] [stdout] --> src/others.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, path::Path}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/others.rs:245:25 [INFO] [stdout] | [INFO] [stdout] 245 | hashed.push((x.clone() as u16 + count as u16)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 245 - hashed.push((x.clone() as u16 + count as u16)); [INFO] [stdout] 245 + hashed.push(x.clone() as u16 + count as u16 ); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/orm.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | for x in 0..count{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_path` [INFO] [stdout] --> src/orm.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | let db_path = format!("{}/{}",val["root_path"],val["db_name"]); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/orm.rs:176:25 [INFO] [stdout] | [INFO] [stdout] 176 | let mut count = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/orm.rs:240:13 [INFO] [stdout] | [INFO] [stdout] 240 | count+=1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tables` [INFO] [stdout] --> src/orm.rs:253:19 [INFO] [stdout] | [INFO] [stdout] 253 | let (meta,tables) = self.tables.get(&table_name).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STable` is assigned to, but never used [INFO] [stdout] --> src/orm.rs:499:13 [INFO] [stdout] | [INFO] [stdout] 499 | let STable; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_STable` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ok` [INFO] [stdout] --> src/orm.rs:512:16 [INFO] [stdout] | [INFO] [stdout] 512 | Ok(ok) => return Ok(()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `STable` is never read [INFO] [stdout] --> src/orm.rs:502:13 [INFO] [stdout] | [INFO] [stdout] 502 | STable = tab; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/orm.rs:563:21 [INFO] [stdout] | [INFO] [stdout] 563 | let mut old = keyname_types.clone(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/orm.rs:789:13 [INFO] [stdout] | [INFO] [stdout] 789 | let mut results = Vec::::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `results` [INFO] [stdout] --> src/orm.rs:789:13 [INFO] [stdout] | [INFO] [stdout] 789 | let mut results = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/orm.rs:792:17 [INFO] [stdout] | [INFO] [stdout] 792 | let conn = self.connect_db(&Lul::Path(x.path)).map_err(|err| format!("{}",err))?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/orm.rs:814:14 [INFO] [stdout] | [INFO] [stdout] 814 | for (name ,(meta,table)) in &self.tables{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `STable` [INFO] [stdout] --> src/orm.rs:893:19 [INFO] [stdout] | [INFO] [stdout] 893 | let (meta,STable) = self.tables.get(&name).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_STable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `custom_command` and `connect_db_with_table_name` are never used [INFO] [stdout] --> src/orm.rs:497:8 [INFO] [stdout] | [INFO] [stdout] 97 | impl SqlOrm { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 497 | fn custom_command>(&self,table:S,query:S) -> Result<(), String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 892 | fn connect_db_with_table_name(&self,name:String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `keys` is never read [INFO] [stdout] --> src/others.rs:270:16 [INFO] [stdout] | [INFO] [stdout] 268 | pub(crate) struct UnionSearchthing{ [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 269 | pub(crate) table:String, [INFO] [stdout] 270 | pub(crate) keys:Value [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `query` is never read [INFO] [stdout] --> src/others.rs:275:16 [INFO] [stdout] | [INFO] [stdout] 273 | pub(crate) struct UnionSearchQuery{ [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 274 | pub(crate) path:String, [INFO] [stdout] 275 | pub(crate) query:String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnionSearchQuery` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/orm.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | orm.new_table(val); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 168 | let _ = orm.new_table(val); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/orm.rs:358:30 [INFO] [stdout] | [INFO] [stdout] 358 | for x in &meta.crypted_keys{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 358 - for x in &meta.crypted_keys{ [INFO] [stdout] 358 + while let Some(x) = &meta.crypted_keys{ [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 358 - for x in &meta.crypted_keys{ [INFO] [stdout] 358 + if let Some(x) = &meta.crypted_keys{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/orm.rs:442:26 [INFO] [stdout] | [INFO] [stdout] 442 | for x in &meta.crypted_keys{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 442 - for x in &meta.crypted_keys{ [INFO] [stdout] 442 + while let Some(x) = &meta.crypted_keys{ [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 442 - for x in &meta.crypted_keys{ [INFO] [stdout] 442 + if let Some(x) = &meta.crypted_keys{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STable` should have a snake case name [INFO] [stdout] --> src/orm.rs:499:13 [INFO] [stdout] | [INFO] [stdout] 499 | let STable; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `stable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STable` should have a snake case name [INFO] [stdout] --> src/orm.rs:519:13 [INFO] [stdout] | [INFO] [stdout] 519 | let STable; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `stable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `String` should have a snake case name [INFO] [stdout] --> src/orm.rs:864:23 [INFO] [stdout] | [INFO] [stdout] 864 | Lul::Path(String) => { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STable` should have a snake case name [INFO] [stdout] --> src/orm.rs:893:19 [INFO] [stdout] | [INFO] [stdout] 893 | let (meta,STable) = self.tables.get(&name).unwrap(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `stable` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.43s [INFO] running `Command { std: "docker" "inspect" "f6fd1f8215fbb9e81272719b77cad204f12035f9a4cb44e656490c1f06a99e30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6fd1f8215fbb9e81272719b77cad204f12035f9a4cb44e656490c1f06a99e30", kill_on_drop: false }` [INFO] [stdout] f6fd1f8215fbb9e81272719b77cad204f12035f9a4cb44e656490c1f06a99e30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 539a323f0fce1702d8673b29881855391698b7e3ea75cc2892877c534d5a955f [INFO] running `Command { std: "docker" "start" "-a" "539a323f0fce1702d8673b29881855391698b7e3ea75cc2892877c534d5a955f", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `fmt::format` [INFO] [stdout] --> src/orm.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fmt::format, path::Path}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de::DeserializeOwned` [INFO] [stdout] --> src/orm.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{de::DeserializeOwned, Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::Path` [INFO] [stdout] --> src/others.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, path::Path}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/others.rs:245:25 [INFO] [stdout] | [INFO] [stdout] 245 | hashed.push((x.clone() as u16 + count as u16)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 245 - hashed.push((x.clone() as u16 + count as u16)); [INFO] [stdout] 245 + hashed.push(x.clone() as u16 + count as u16 ); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/orm.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | for x in 0..count{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_path` [INFO] [stdout] --> src/orm.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | let db_path = format!("{}/{}",val["root_path"],val["db_name"]); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/orm.rs:176:25 [INFO] [stdout] | [INFO] [stdout] 176 | let mut count = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/orm.rs:240:13 [INFO] [stdout] | [INFO] [stdout] 240 | count+=1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tables` [INFO] [stdout] --> src/orm.rs:253:19 [INFO] [stdout] | [INFO] [stdout] 253 | let (meta,tables) = self.tables.get(&table_name).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STable` is assigned to, but never used [INFO] [stdout] --> src/orm.rs:499:13 [INFO] [stdout] | [INFO] [stdout] 499 | let STable; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_STable` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ok` [INFO] [stdout] --> src/orm.rs:512:16 [INFO] [stdout] | [INFO] [stdout] 512 | Ok(ok) => return Ok(()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `STable` is never read [INFO] [stdout] --> src/orm.rs:502:13 [INFO] [stdout] | [INFO] [stdout] 502 | STable = tab; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/orm.rs:563:21 [INFO] [stdout] | [INFO] [stdout] 563 | let mut old = keyname_types.clone(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/orm.rs:789:13 [INFO] [stdout] | [INFO] [stdout] 789 | let mut results = Vec::::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `results` [INFO] [stdout] --> src/orm.rs:789:13 [INFO] [stdout] | [INFO] [stdout] 789 | let mut results = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/orm.rs:792:17 [INFO] [stdout] | [INFO] [stdout] 792 | let conn = self.connect_db(&Lul::Path(x.path)).map_err(|err| format!("{}",err))?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/orm.rs:814:14 [INFO] [stdout] | [INFO] [stdout] 814 | for (name ,(meta,table)) in &self.tables{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `STable` [INFO] [stdout] --> src/orm.rs:893:19 [INFO] [stdout] | [INFO] [stdout] 893 | let (meta,STable) = self.tables.get(&name).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_STable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `custom_command` and `connect_db_with_table_name` are never used [INFO] [stdout] --> src/orm.rs:497:8 [INFO] [stdout] | [INFO] [stdout] 97 | impl SqlOrm { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 497 | fn custom_command>(&self,table:S,query:S) -> Result<(), String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 892 | fn connect_db_with_table_name(&self,name:String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `keys` is never read [INFO] [stdout] --> src/others.rs:270:16 [INFO] [stdout] | [INFO] [stdout] 268 | pub(crate) struct UnionSearchthing{ [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 269 | pub(crate) table:String, [INFO] [stdout] 270 | pub(crate) keys:Value [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `query` is never read [INFO] [stdout] --> src/others.rs:275:16 [INFO] [stdout] | [INFO] [stdout] 273 | pub(crate) struct UnionSearchQuery{ [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 274 | pub(crate) path:String, [INFO] [stdout] 275 | pub(crate) query:String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnionSearchQuery` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/orm.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | orm.new_table(val); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 168 | let _ = orm.new_table(val); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sql v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/orm.rs:358:30 [INFO] [stdout] | [INFO] [stdout] 358 | for x in &meta.crypted_keys{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 358 - for x in &meta.crypted_keys{ [INFO] [stdout] 358 + while let Some(x) = &meta.crypted_keys{ [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 358 - for x in &meta.crypted_keys{ [INFO] [stdout] 358 + if let Some(x) = &meta.crypted_keys{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/orm.rs:442:26 [INFO] [stdout] | [INFO] [stdout] 442 | for x in &meta.crypted_keys{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 442 - for x in &meta.crypted_keys{ [INFO] [stdout] 442 + while let Some(x) = &meta.crypted_keys{ [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 442 - for x in &meta.crypted_keys{ [INFO] [stdout] 442 + if let Some(x) = &meta.crypted_keys{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STable` should have a snake case name [INFO] [stdout] --> src/orm.rs:499:13 [INFO] [stdout] | [INFO] [stdout] 499 | let STable; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `stable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STable` should have a snake case name [INFO] [stdout] --> src/orm.rs:519:13 [INFO] [stdout] | [INFO] [stdout] 519 | let STable; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `stable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `String` should have a snake case name [INFO] [stdout] --> src/orm.rs:864:23 [INFO] [stdout] | [INFO] [stdout] 864 | Lul::Path(String) => { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STable` should have a snake case name [INFO] [stdout] --> src/orm.rs:893:19 [INFO] [stdout] | [INFO] [stdout] 893 | let (meta,STable) = self.tables.get(&name).unwrap(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `stable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::format` [INFO] [stdout] --> src/orm.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fmt::format, path::Path}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de::DeserializeOwned` [INFO] [stdout] --> src/orm.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{de::DeserializeOwned, Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::Path` [INFO] [stdout] --> src/others.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, path::Path}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/others.rs:245:25 [INFO] [stdout] | [INFO] [stdout] 245 | hashed.push((x.clone() as u16 + count as u16)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 245 - hashed.push((x.clone() as u16 + count as u16)); [INFO] [stdout] 245 + hashed.push(x.clone() as u16 + count as u16 ); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/testler.rs:1:60 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::HashMap, path::Path, rc::Rc, sync::Arc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bcrypt::BASE_64` [INFO] [stdout] --> src/testler.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use bcrypt::BASE_64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `orm` [INFO] [stdout] --> src/testler.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{new_table, orm}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/testler.rs:161:25 [INFO] [stdout] | [INFO] [stdout] 161 | hashed.push((x.clone() as u16 + count as u16)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 161 - hashed.push((x.clone() as u16 + count as u16)); [INFO] [stdout] 161 + hashed.push(x.clone() as u16 + count as u16 ); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` attribute cannot be used on use statements [INFO] [stdout] --> src/testler.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[macro_use]` can be applied to crates, extern crates, and modules [INFO] [stdout] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/orm.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | for x in 0..count{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_path` [INFO] [stdout] --> src/orm.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | let db_path = format!("{}/{}",val["root_path"],val["db_name"]); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/orm.rs:176:25 [INFO] [stdout] | [INFO] [stdout] 176 | let mut count = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/orm.rs:240:13 [INFO] [stdout] | [INFO] [stdout] 240 | count+=1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tables` [INFO] [stdout] --> src/orm.rs:253:19 [INFO] [stdout] | [INFO] [stdout] 253 | let (meta,tables) = self.tables.get(&table_name).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STable` is assigned to, but never used [INFO] [stdout] --> src/orm.rs:499:13 [INFO] [stdout] | [INFO] [stdout] 499 | let STable; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_STable` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ok` [INFO] [stdout] --> src/orm.rs:512:16 [INFO] [stdout] | [INFO] [stdout] 512 | Ok(ok) => return Ok(()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `STable` is never read [INFO] [stdout] --> src/orm.rs:502:13 [INFO] [stdout] | [INFO] [stdout] 502 | STable = tab; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/orm.rs:563:21 [INFO] [stdout] | [INFO] [stdout] 563 | let mut old = keyname_types.clone(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/orm.rs:789:13 [INFO] [stdout] | [INFO] [stdout] 789 | let mut results = Vec::::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `results` [INFO] [stdout] --> src/orm.rs:789:13 [INFO] [stdout] | [INFO] [stdout] 789 | let mut results = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/orm.rs:792:17 [INFO] [stdout] | [INFO] [stdout] 792 | let conn = self.connect_db(&Lul::Path(x.path)).map_err(|err| format!("{}",err))?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/orm.rs:814:14 [INFO] [stdout] | [INFO] [stdout] 814 | for (name ,(meta,table)) in &self.tables{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `STable` [INFO] [stdout] --> src/orm.rs:893:19 [INFO] [stdout] | [INFO] [stdout] 893 | let (meta,STable) = self.tables.get(&name).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_STable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/testler.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let x : Box; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ok` [INFO] [stdout] --> src/testler.rs:106:16 [INFO] [stdout] | [INFO] [stdout] 106 | Ok(ok) => println!("ok"), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ok` [INFO] [stdout] --> src/testler.rs:215:16 [INFO] [stdout] | [INFO] [stdout] 215 | Ok(ok) => println!("ok"), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/testler.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | let mut orm = test_orm!(); [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/testler.rs:291:7 [INFO] [stdout] | [INFO] [stdout] 291 | let mut e = Arc::new(RefCell::new(232)); [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/testler.rs:293:7 [INFO] [stdout] | [INFO] [stdout] 293 | let mut af = e.clone(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/testler.rs:378:9 [INFO] [stdout] | [INFO] [stdout] 378 | let a = path.parent().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `custom_command` and `connect_db_with_table_name` are never used [INFO] [stdout] --> src/orm.rs:497:8 [INFO] [stdout] | [INFO] [stdout] 97 | impl SqlOrm { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 497 | fn custom_command>(&self,table:S,query:S) -> Result<(), String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 892 | fn connect_db_with_table_name(&self,name:String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `keys` is never read [INFO] [stdout] --> src/others.rs:270:16 [INFO] [stdout] | [INFO] [stdout] 268 | pub(crate) struct UnionSearchthing{ [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 269 | pub(crate) table:String, [INFO] [stdout] 270 | pub(crate) keys:Value [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `query` is never read [INFO] [stdout] --> src/others.rs:275:16 [INFO] [stdout] | [INFO] [stdout] 273 | pub(crate) struct UnionSearchQuery{ [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 274 | pub(crate) path:String, [INFO] [stdout] 275 | pub(crate) query:String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnionSearchQuery` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/orm.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | orm.new_table(val); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 168 | let _ = orm.new_table(val); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/orm.rs:358:30 [INFO] [stdout] | [INFO] [stdout] 358 | for x in &meta.crypted_keys{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 358 - for x in &meta.crypted_keys{ [INFO] [stdout] 358 + while let Some(x) = &meta.crypted_keys{ [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 358 - for x in &meta.crypted_keys{ [INFO] [stdout] 358 + if let Some(x) = &meta.crypted_keys{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/orm.rs:442:26 [INFO] [stdout] | [INFO] [stdout] 442 | for x in &meta.crypted_keys{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 442 - for x in &meta.crypted_keys{ [INFO] [stdout] 442 + while let Some(x) = &meta.crypted_keys{ [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 442 - for x in &meta.crypted_keys{ [INFO] [stdout] 442 + if let Some(x) = &meta.crypted_keys{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STable` should have a snake case name [INFO] [stdout] --> src/orm.rs:499:13 [INFO] [stdout] | [INFO] [stdout] 499 | let STable; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `stable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STable` should have a snake case name [INFO] [stdout] --> src/orm.rs:519:13 [INFO] [stdout] | [INFO] [stdout] 519 | let STable; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `stable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `String` should have a snake case name [INFO] [stdout] --> src/orm.rs:864:23 [INFO] [stdout] | [INFO] [stdout] 864 | Lul::Path(String) => { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STable` should have a snake case name [INFO] [stdout] --> src/orm.rs:893:19 [INFO] [stdout] | [INFO] [stdout] 893 | let (meta,STable) = self.tables.get(&name).unwrap(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `stable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::option::Option::::insert` that must be used [INFO] [stdout] --> src/testler.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | e.insert("sa", "efe").insert("fe"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to set a value, consider assignment instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 33 | let _ = e.insert("sa", "efe").insert("fe"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/testler.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 280 | std::fs::write("./out.base64", names[0].clone()); [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] 280 | let _ = std::fs::write("./out.base64", names[0].clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.66s [INFO] running `Command { std: "docker" "inspect" "539a323f0fce1702d8673b29881855391698b7e3ea75cc2892877c534d5a955f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "539a323f0fce1702d8673b29881855391698b7e3ea75cc2892877c534d5a955f", kill_on_drop: false }` [INFO] [stdout] 539a323f0fce1702d8673b29881855391698b7e3ea75cc2892877c534d5a955f