[INFO] cloning repository https://github.com/trdthg/my-rust-db [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/trdthg/my-rust-db" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrdthg%2Fmy-rust-db", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrdthg%2Fmy-rust-db'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4bf6ee8420868a39f4842c316245a866dcb1a00d [INFO] checking trdthg/my-rust-db against try#cac44d9528e3bbbdaa1537d187bd489ccc5de18c for pr-91141 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrdthg%2Fmy-rust-db" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/trdthg/my-rust-db on toolchain cac44d9528e3bbbdaa1537d187bd489ccc5de18c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/trdthg/my-rust-db [INFO] finished tweaking git repo https://github.com/trdthg/my-rust-db [INFO] tweaked toml for git repo https://github.com/trdthg/my-rust-db written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/trdthg/my-rust-db already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bit v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e555f55f1a0d27e78939c091b86a47097b7fec585800f901f0f6da9a6a62b7a6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e555f55f1a0d27e78939c091b86a47097b7fec585800f901f0f6da9a6a62b7a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e555f55f1a0d27e78939c091b86a47097b7fec585800f901f0f6da9a6a62b7a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e555f55f1a0d27e78939c091b86a47097b7fec585800f901f0f6da9a6a62b7a6", kill_on_drop: false }` [INFO] [stdout] e555f55f1a0d27e78939c091b86a47097b7fec585800f901f0f6da9a6a62b7a6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 46f5ecb6c486c9089459056def68205176aba8658d8040bb0664c447215493f6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "46f5ecb6c486c9089459056def68205176aba8658d8040bb0664c447215493f6", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking bit v0.1.1 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Checking serde_json v1.0.67 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking object v0.26.2 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking backtrace v0.3.61 [INFO] [stderr] Checking lists v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `convert::TryInto` [INFO] [stdout] --> src/core/rowmanager.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, convert::TryInto}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/http/client.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader, Read, Write}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenState` [INFO] [stdout] --> src/parse/parser.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use super::token::{self, Token, TokenState, TokenType}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/parse/parser.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader, Read, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap`, `convert::TryInto` [INFO] [stdout] --> src/parse/parser.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, convert::TryInto, fs::File}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parse/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Result`, `iter` [INFO] [stdout] --> src/parse/token.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt::Result, iter}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_PRE` should have an upper camel case name [INFO] [stdout] --> src/parse/token.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | ANNO_PRE, // / [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `AnnoPre` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_A` should have an upper camel case name [INFO] [stdout] --> src/parse/token.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ANNO_A, // // [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `AnnoA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_B` should have an upper camel case name [INFO] [stdout] --> src/parse/token.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ANNO_B, // /* [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `AnnoB` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_B2` should have an upper camel case name [INFO] [stdout] --> src/parse/token.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | ANNO_B2, // /* * / * [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `AnnoB2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::size_of` [INFO] [stdout] --> src/tree/bplustree.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | use std::mem::size_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefMut`, `ptr::NonNull` [INFO] [stdout] --> src/tree/insert.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefMut, ptr::NonNull}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `convert::TryInto` [INFO] [stdout] --> src/core/rowmanager.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, convert::TryInto}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parse::parser::Parser` [INFO] [stdout] --> src/core/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parse::parser::Parser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parse::token` [INFO] [stdout] --> src/core/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::parse::token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pagemanager::PageManager` [INFO] [stdout] --> src/core/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use pagemanager::PageManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rowmanager::RowManager` [INFO] [stdout] --> src/core/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rowmanager::RowManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/http/client.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader, Read, Write}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenState`, `self` [INFO] [stdout] --> src/parse/parser.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use super::token::{self, Token, TokenState, TokenType}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/parse/parser.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader, Read, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap`, `convert::TryInto` [INFO] [stdout] --> src/parse/parser.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, convert::TryInto, fs::File}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parse/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Result`, `iter` [INFO] [stdout] --> src/parse/token.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt::Result, iter}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_PRE` should have an upper camel case name [INFO] [stdout] --> src/parse/token.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | ANNO_PRE, // / [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `AnnoPre` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_A` should have an upper camel case name [INFO] [stdout] --> src/parse/token.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ANNO_A, // // [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `AnnoA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_B` should have an upper camel case name [INFO] [stdout] --> src/parse/token.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ANNO_B, // /* [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `AnnoB` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_B2` should have an upper camel case name [INFO] [stdout] --> src/parse/token.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | ANNO_B2, // /* * / * [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `AnnoB2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefMut`, `ptr::NonNull` [INFO] [stdout] --> src/tree/insert.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefMut, ptr::NonNull}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/tree/insert.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 182 | return Some(new_top); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 269 | None [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/tree/insert.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 182 | return Some(new_top); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 269 | None [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `empty_list_len` is assigned to, but never used [INFO] [stdout] --> src/core/rowmanager.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut empty_list_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_empty_list_len` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/core/rowmanager.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | for (i, (k, v)) in parser.Pfields.iter().zip(parser.Pvalues).enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sbuf` [INFO] [stdout] --> src/core/rowmanager.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let mut sbuf: Vec = vec![]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_sbuf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_length` [INFO] [stdout] --> src/http/client.rs:107:26 [INFO] [stdout] | [INFO] [stdout] 107 | Some(content_length) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message_body` [INFO] [stdout] --> src/http/client.rs:151:35 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encode_chunked` [INFO] [stdout] --> src/http/client.rs:151:65 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encode_chunked` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/http/client.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | pub fn _validate_method(method: &str) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sql` [INFO] [stdout] --> src/parse/parser.rs:476:9 [INFO] [stdout] | [INFO] [stdout] 476 | let sql = "SELECT id, name from adwdw where a =ad and b=ad "; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sql` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sql` [INFO] [stdout] --> src/parse/parser.rs:477:9 [INFO] [stdout] | [INFO] [stdout] 477 | let sql = " \ninsert into user(id,name)values(1,\"saadwdd\")where id=1; "; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sql` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sql` [INFO] [stdout] --> src/parse/parser.rs:478:9 [INFO] [stdout] | [INFO] [stdout] 478 | let sql = "delete from user where id = 12"; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sql` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sql` [INFO] [stdout] --> src/parse/parser.rs:479:9 [INFO] [stdout] | [INFO] [stdout] 479 | let sql = "update user set id=1,name=\"acbeix\" where xxx=\"debsxnk\""; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sql` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sql` [INFO] [stdout] --> src/parse/parser.rs:480:9 [INFO] [stdout] | [INFO] [stdout] 480 | let sql = "create table user ( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sql` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sql` [INFO] [stdout] --> src/parse/parser.rs:497:9 [INFO] [stdout] | [INFO] [stdout] 497 | let sql = "SELECT * from adwdw where a =ad and b=ad "; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sql` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sql` [INFO] [stdout] --> src/parse/parser.rs:498:9 [INFO] [stdout] | [INFO] [stdout] 498 | let sql = " \ninsert into user(id,name)values(1,\"saadwdd\")where id=1; "; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sql` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sql` [INFO] [stdout] --> src/parse/parser.rs:499:9 [INFO] [stdout] | [INFO] [stdout] 499 | let sql = "update user set id=1,name=\"acbeix\" where xxx=\"debsxnk\""; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sql` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sql` [INFO] [stdout] --> src/parse/parser.rs:500:9 [INFO] [stdout] | [INFO] [stdout] 500 | let sql = "delete from user where id = 12"; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sql` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_stream` [INFO] [stdout] --> src/parse/parser.rs:502:13 [INFO] [stdout] | [INFO] [stdout] 502 | let mut token_stream = token::trim_to_token_stream(&token::trim_code(sql)); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/parse/parser.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | for (i, token) in token_stream.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mark` [INFO] [stdout] --> src/parse/token.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mark: usize = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mark` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/parse/token.rs:221:10 [INFO] [stdout] | [INFO] [stdout] 221 | for (i, word) in words.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/tree/bplustree.rs:161:25 [INFO] [stdout] | [INFO] [stdout] 161 | for tuple in &leaf.unwrap().borrow().ids { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/tree/bplustree.rs:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | for tuple in &leaf.unwrap().borrow().ids { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/core/rowmanager.rs:202:14 [INFO] [stdout] | [INFO] [stdout] 202 | for (x, y) in a.iter().zip(b.iter()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/core/rowmanager.rs:202:17 [INFO] [stdout] | [INFO] [stdout] 202 | for (x, y) in a.iter().zip(b.iter()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/core/rowmanager.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | let a = 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/tree/bplustree.rs:267:17 [INFO] [stdout] | [INFO] [stdout] 267 | let mut s = vec![0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/tree/bplustree.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | let num = 42; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/tree/bplustree.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | let b = a[0..1].to_owned(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `empty_list_len` is assigned to, but never used [INFO] [stdout] --> src/core/rowmanager.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut empty_list_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_empty_list_len` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/core/rowmanager.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | for (i, (k, v)) in parser.Pfields.iter().zip(parser.Pvalues).enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sbuf` [INFO] [stdout] --> src/core/rowmanager.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let mut sbuf: Vec = vec![]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_sbuf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_length` [INFO] [stdout] --> src/http/client.rs:107:26 [INFO] [stdout] | [INFO] [stdout] 107 | Some(content_length) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message_body` [INFO] [stdout] --> src/http/client.rs:151:35 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encode_chunked` [INFO] [stdout] --> src/http/client.rs:151:65 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encode_chunked` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/http/client.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | pub fn _validate_method(method: &str) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/parse/parser.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | for (i, token) in token_stream.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mark` [INFO] [stdout] --> src/parse/token.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mark: usize = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mark` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/parse/token.rs:221:10 [INFO] [stdout] | [INFO] [stdout] 221 | for (i, word) in words.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/tree/bplustree.rs:161:25 [INFO] [stdout] | [INFO] [stdout] 161 | for tuple in &leaf.unwrap().borrow().ids { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/tree/bplustree.rs:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | for tuple in &leaf.unwrap().borrow().ids { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/rowmanager.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut sbuf: Vec = vec![]; [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/parse/token.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | let mut tmp; [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/core/rowmanager.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut sbuf: Vec = vec![]; [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/parse/token.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mark: usize = 0; [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/parse/token.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut chars: Vec = code.chars().into_iter().collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parse/token.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut chars_: Vec = chars.clone(); [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/parse/token.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let mut code = Regex::replace_all(&re, &code, ""); [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/parse/token.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | let mut code = Regex::replace_all(&re, &code, ""); [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/parse/token.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let mut code = Regex::replace_all(&re, &code, " "); [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/parse/token.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | let mut code = Regex::replace_all(&re, &code, " = "); [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/parse/token.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | let mut code = Regex::replace_all(&re, &code, " ( "); [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/parse/token.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let mut code = Regex::replace_all(&re, &code, " ) "); [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/parse/token.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | let mut code = Regex::replace_all(&re, &code, " , "); [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/parse/token.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | let mut code = Regex::replace_all(&re, &code, " ; "); [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/tree/insert.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut new_top = BranchNode { [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/tree/insert.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut new_left = LeafNode { [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/tree/insert.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let mut new_top = BranchNode { [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/tree/insert.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let mut new_left = BranchNode { [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/parse/token.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | let mut tmp; [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/parse/token.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mark: usize = 0; [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/parse/token.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut chars: Vec = code.chars().into_iter().collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parse/token.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut chars_: Vec = chars.clone(); [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/parse/token.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let mut code = Regex::replace_all(&re, &code, ""); [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/parse/token.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | let mut code = Regex::replace_all(&re, &code, ""); [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/parse/token.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let mut code = Regex::replace_all(&re, &code, " "); [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/parse/token.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | let mut code = Regex::replace_all(&re, &code, " = "); [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/parse/token.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | let mut code = Regex::replace_all(&re, &code, " ( "); [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/parse/token.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let mut code = Regex::replace_all(&re, &code, " ) "); [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/parse/token.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | let mut code = Regex::replace_all(&re, &code, " , "); [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/parse/token.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | let mut code = Regex::replace_all(&re, &code, " ; "); [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/tree/insert.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | let mut new_top = BranchNode { [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/tree/insert.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | let mut new_left = BranchNode { [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/tree/insert.rs:246:21 [INFO] [stdout] | [INFO] [stdout] 246 | let mut node = father.as_ptr(); [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/tree/insert.rs:277:9 [INFO] [stdout] | [INFO] [stdout] 277 | let mut node = _node.borrow_mut(); [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/tree/insert.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut new_top = BranchNode { [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/tree/insert.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut new_left = LeafNode { [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/tree/insert.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | let mut pos = ids.binary_search(&id).unwrap_or_else(|x| x); [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/tree/insert.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let mut new_top = BranchNode { [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/tree/insert.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let mut new_left = BranchNode { [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/tree/insert.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | let mut new_top = BranchNode { [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/tree/insert.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | let mut new_left = BranchNode { [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/tree/insert.rs:246:21 [INFO] [stdout] | [INFO] [stdout] 246 | let mut node = father.as_ptr(); [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/tree/insert.rs:277:9 [INFO] [stdout] | [INFO] [stdout] 277 | let mut node = _node.borrow_mut(); [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/tree/insert.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | let mut pos = ids.binary_search(&id).unwrap_or_else(|x| x); [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/core/rowmanager.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let mut token_stream = token::trim_to_token_stream(&token::trim_code(sql)); [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/core/mod.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut token_stream = token::trim_to_token_stream(&token::trim_code(sql)); [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/parse/parser.rs:488:9 [INFO] [stdout] | [INFO] [stdout] 488 | let mut token_stream = token::trim_to_token_stream(&token::trim_code(sql)); [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/parse/parser.rs:502:9 [INFO] [stdout] | [INFO] [stdout] 502 | let mut token_stream = token::trim_to_token_stream(&token::trim_code(sql)); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `RequestState` [INFO] [stdout] --> src/http/client.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum RequestState { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HttpConnection` [INFO] [stdout] --> src/http/client.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct HttpConnection { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree/bplustree.rs:267:13 [INFO] [stdout] | [INFO] [stdout] 267 | let mut s = vec![0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/http/client.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new(addr: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hostport` [INFO] [stdout] --> src/http/client.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn get_hostport(addr: &str) -> Option<(String, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `request` [INFO] [stdout] --> src/http/client.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn request( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `putheader` [INFO] [stdout] --> src/http/client.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn putheader(&mut self, header: String, value: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `endheader` [INFO] [stdout] --> src/http/client.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn endheader(&mut self, body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_output` [INFO] [stdout] --> src/http/client.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send` [INFO] [stdout] --> src/http/client.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn send(&mut self, data: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `putrequest` [INFO] [stdout] --> src/http/client.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn putrequest(&mut self, method: &str, url: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_content_length` [INFO] [stdout] --> src/http/client.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn get_content_length(body: Option, method: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `getresponse` [INFO] [stdout] --> src/http/client.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn getresponse(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HttpResponse` [INFO] [stdout] --> src/http/client.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 230 | struct HttpResponse {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `METHOD_EXCEPTING_BODY` should have a snake case name [INFO] [stdout] --> src/http/client.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | let METHOD_EXCEPTING_BODY: Vec = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `method_excepting_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `timeout` [INFO] [stdout] --> src/http/client.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | timeout: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `source_address` [INFO] [stdout] --> src/http/client.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | source_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `method` [INFO] [stdout] --> src/http/client.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | method: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Pfields` should have a snake case name [INFO] [stdout] --> src/parse/parser.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub Pfields: Vec, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pfields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Pvalues` should have a snake case name [INFO] [stdout] --> src/parse/parser.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub Pvalues: Vec, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pvalues` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Pwhere` should have a snake case name [INFO] [stdout] --> src/parse/parser.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub Pwhere: Vec, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `pwhere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Ptable` should have a snake case name [INFO] [stdout] --> src/parse/parser.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub Ptable: Vec, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ptable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `METHOD_EXCEPTING_BODY` should have a snake case name [INFO] [stdout] --> src/http/client.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | let METHOD_EXCEPTING_BODY: Vec = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `method_excepting_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Pfields` should have a snake case name [INFO] [stdout] --> src/parse/parser.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub Pfields: Vec, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pfields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Pvalues` should have a snake case name [INFO] [stdout] --> src/parse/parser.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub Pvalues: Vec, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pvalues` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Pwhere` should have a snake case name [INFO] [stdout] --> src/parse/parser.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub Pwhere: Vec, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `pwhere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Ptable` should have a snake case name [INFO] [stdout] --> src/parse/parser.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub Ptable: Vec, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ptable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PageManager` should have a snake case name [INFO] [stdout] --> src/core/pagemanager.rs:1007:17 [INFO] [stdout] | [INFO] [stdout] 1007 | let mut PageManager = PageManager::create("student.db"); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `page_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 78 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 69 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 39.46s [INFO] running `Command { std: "docker" "inspect" "46f5ecb6c486c9089459056def68205176aba8658d8040bb0664c447215493f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46f5ecb6c486c9089459056def68205176aba8658d8040bb0664c447215493f6", kill_on_drop: false }` [INFO] [stdout] 46f5ecb6c486c9089459056def68205176aba8658d8040bb0664c447215493f6