[INFO] cloning repository https://github.com/liuguanglong/BuildDBInRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/liuguanglong/BuildDBInRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fliuguanglong%2FBuildDBInRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fliuguanglong%2FBuildDBInRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4240242455bcf4bc42479a998215b31d74042e67 [INFO] testing liuguanglong/BuildDBInRust against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fliuguanglong%2FBuildDBInRust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/liuguanglong/BuildDBInRust [INFO] finished tweaking git repo https://github.com/liuguanglong/BuildDBInRust [INFO] tweaked toml for git repo https://github.com/liuguanglong/BuildDBInRust written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/liuguanglong/BuildDBInRust on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/liuguanglong/BuildDBInRust 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3786f795fe397f4ee9a6871265098ea9e2a42b3119c4e1741121cf7d3f35340f [INFO] running `Command { std: "docker" "start" "-a" "3786f795fe397f4ee9a6871265098ea9e2a42b3119c4e1741121cf7d3f35340f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3786f795fe397f4ee9a6871265098ea9e2a42b3119c4e1741121cf7d3f35340f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3786f795fe397f4ee9a6871265098ea9e2a42b3119c4e1741121cf7d3f35340f", kill_on_drop: false }` [INFO] [stdout] 3786f795fe397f4ee9a6871265098ea9e2a42b3119c4e1741121cf7d3f35340f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3460131a823f526edd2206877578359c022d1bc13de28a82540583aaa1cc7224 [INFO] running `Command { std: "docker" "start" "-a" "3460131a823f526edd2206877578359c022d1bc13de28a82540583aaa1cc7224", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling ntapi v0.4.1 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling syn v2.0.70 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling rustdb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `expr` [INFO] [stdout] --> src/btree/parser/mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod expr; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `expr`, create file "src/btree/parser/expr.rs" or "src/btree/parser/expr/mod.rs" [INFO] [stdout] = note: if there is a `mod expr` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `shared` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::ntdef::PHANDLE; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `shared` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::ntdef::{HANDLE, LARGE_INTEGER, NT_SUCCESS, NULL}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::memoryapi::MapViewOfFile; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::um::fileapi::{CreateFileA,GetFileSizeEx,FlushFileBuffers}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::processthreadsapi::GetCurrentProcess; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::handleapi::CloseHandle; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::memoryapi::FlushViewOfFile; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::um::winnt::{ENLISTMENT_INFORMATION_CLASS, FILE_ATTRIBUTE_NORMAL, GENERIC_READ, GENERIC_WRITE, MEM_RESERVE, PAGE_READWRIT... [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::um::fileapi::{CREATE_NEW, OPEN_EXISTING,OPEN_ALWAYS}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `shared` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use winapi::shared::minwindef::DWORD; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ntapi::ntmmapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use ntapi::ntmmapi::{NtExtendSection,NtUnmapViewOfSection,NtMapViewOfSection,NtCreateSection,ViewUnmap,}; [INFO] [stdout] | ^^^^^^^ could not find `ntmmapi` in `ntapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `shared` in `winapi` [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::shared::ntdef::{HANDLE, LARGE_INTEGER, NT_SUCCESS}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::fileapi::{CreateFileA, FlushFileBuffers, GetFileSizeEx, OPEN_ALWAYS}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::processthreadsapi::GetCurrentProcess; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::handleapi::CloseHandle; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::memoryapi::FlushViewOfFile; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::winnt::{ FILE_ATTRIBUTE_NORMAL, GENERIC_READ, GENERIC_WRITE, MEM_RESERVE, PAGE_READWRITE, SECTION_EXTEND_SIZE, SECTI... [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ntapi::ntmmapi` [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use ntapi::ntmmapi::{NtExtendSection,NtUnmapViewOfSection,NtMapViewOfSection,NtCreateSection,ViewUnmap,}; [INFO] [stdout] | ^^^^^^^ could not find `ntmmapi` in `ntapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `ctypes` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | lpBaseAddress: *mut winapi::ctypes::c_void, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `ctypes` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:307:43 [INFO] [stdout] | [INFO] [stdout] 307 | let mut lpZwMapping: *mut winapi::ctypes::c_void = null_mut(); [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:340:25 [INFO] [stdout] | [INFO] [stdout] 340 | winapi::um::processthreadsapi::GetCurrentProcess(), [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `ctypes` in `winapi` [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:47:114 [INFO] [stdout] | [INFO] [stdout] 47 | let status = NtUnmapViewOfSection(GetCurrentProcess(), self.mmap.read().unwrap().ptr as *mut winapi::ctypes::c_void); [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `ctypes` in `winapi` [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:112:79 [INFO] [stdout] | [INFO] [stdout] 112 | if FlushViewOfFile(self.mmap.read().unwrap().ptr as *mut winapi::ctypes::c_void, 0) == 0 { [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `ctypes` in `winapi` [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:139:43 [INFO] [stdout] | [INFO] [stdout] 139 | let mut lpZwMapping: *mut winapi::ctypes::c_void = null_mut(); [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `um` in `winapi` [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:172:25 [INFO] [stdout] | [INFO] [stdout] 172 | winapi::um::processthreadsapi::GetCurrentProcess(), [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `RwLock` [INFO] [stdout] --> src/main.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::{Arc, RwLock}, thread, time::Duration}; [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: `database::Database` [INFO] [stdout] --> src/main.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use btree::{tx::{database::Database, dbcontext::DbContext, dbinstance::DBInstance, memoryContext::memoryContext, windowsfileContext::... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/btree/btree/btree.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | while (ptr != 0) { [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] 29 - while (ptr != 0) { [INFO] [stdout] 29 + while ptr != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/btree/btree.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | if (self.context.get_root() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - if (self.context.get_root() == 0) { [INFO] [stdout] 168 + if self.context.get_root() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/btree/btree.rs:174:11 [INFO] [stdout] | [INFO] [stdout] 174 | if(n1.is_none()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 174 - if(n1.is_none()) [INFO] [stdout] 174 + if n1.is_none() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/btree/btree.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 201 | if (self.context.get_root() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 201 - if (self.context.get_root() == 0) { [INFO] [stdout] 201 + if self.context.get_root() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/btree/btree.rs:207:11 [INFO] [stdout] | [INFO] [stdout] 207 | if(n1.is_none()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 207 - if(n1.is_none()) [INFO] [stdout] 207 + if n1.is_none() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/btree/btree/btree.rs:251:14 [INFO] [stdout] | [INFO] [stdout] 251 | match(nodeTmp) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 251 - match(nodeTmp) [INFO] [stdout] 251 + match nodeTmp [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/btree/btree.rs:255:15 [INFO] [stdout] | [INFO] [stdout] 255 | if(count == 1) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 255 - if(count == 1) [INFO] [stdout] 255 + if count == 1 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/btree/btree/btree.rs:322:14 [INFO] [stdout] | [INFO] [stdout] 322 | match(nodeTmp) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 322 - match(nodeTmp) [INFO] [stdout] 322 + match nodeTmp [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/kv/node.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | if (left.nbytes() <= crate::btree::BTREE_PAGE_SIZE) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 92 - if (left.nbytes() <= crate::btree::BTREE_PAGE_SIZE) { [INFO] [stdout] 92 + if left.nbytes() <= crate::btree::BTREE_PAGE_SIZE { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::kv::nodeinterface::BNodeReadInterface` [INFO] [stdout] --> src/btree/kv/memorycontext.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::btree::kv::nodeinterface::BNodeReadInterface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::kv::nodeinterface::BNodeWriteInterface` [INFO] [stdout] --> src/btree/kv/memorycontext.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::btree::kv::nodeinterface::BNodeWriteInterface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `null` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | use std::ptr::{null, null_mut}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BNODE_FREE_LIST` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | use super::{ContextError, BNODE_FREE_LIST}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:60:15 [INFO] [stdout] | [INFO] [stdout] 60 | while (curNode.flnSize() <= count) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - while (curNode.flnSize() <= count) { [INFO] [stdout] 60 + while curNode.flnSize() <= count { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:322:16 [INFO] [stdout] | [INFO] [stdout] 322 | if (success == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 322 - if (success == 0) { [INFO] [stdout] 322 + if success == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:356:16 [INFO] [stdout] | [INFO] [stdout] 356 | if (lpZwMapping == INVALID_HANDLE_VALUE) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 356 - if (lpZwMapping == INVALID_HANDLE_VALUE) { [INFO] [stdout] 356 + if lpZwMapping == INVALID_HANDLE_VALUE { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:395:12 [INFO] [stdout] | [INFO] [stdout] 395 | if (ptr > self.pageflushed + self.nappend as u64) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 395 - if (ptr > self.pageflushed + self.nappend as u64) { [INFO] [stdout] 395 + if ptr > self.pageflushed + self.nappend as u64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:551:16 [INFO] [stdout] | [INFO] [stdout] 551 | if (bad == true) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 551 - if (bad == true) { [INFO] [stdout] 551 + if bad == true { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:618:15 [INFO] [stdout] | [INFO] [stdout] 618 | while (filePages < npages) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 618 - while (filePages < npages) { [INFO] [stdout] 618 + while filePages < npages { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:620:16 [INFO] [stdout] | [INFO] [stdout] 620 | if (inc < 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 620 - if (inc < 1) { [INFO] [stdout] 620 + if inc < 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::kv::nodeinterface::BNodeReadInterface` [INFO] [stdout] --> src/btree/kv/contextinterface.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::btree::kv::nodeinterface::BNodeReadInterface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scan::comp::OP_CMP` [INFO] [stdout] --> src/btree/table/value.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::btree::{scan::comp::OP_CMP, BTreeError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/btree/table/table.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/btree/table/record.rs:316:15 [INFO] [stdout] | [INFO] [stdout] 316 | match (self.def.Types[idx]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 316 - match (self.def.Types[idx]) { [INFO] [stdout] 316 + match self.def.Types[idx] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::table::table::TableDef` [INFO] [stdout] --> src/btree/scan/biter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::btree::table::table::TableDef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::table::value::Value` [INFO] [stdout] --> src/btree/scan/biter.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::btree::table::value::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::table::value::ValueType` [INFO] [stdout] --> src/btree/scan/biter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::btree::table::value::ValueType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/btree/scan/biter.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/btree/scan/biter.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::btree::btreeinterface::BTreeKVInterface` [INFO] [stdout] --> src/btree/scan/biter.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::btree::btree::btreeinterface::BTreeKVInterface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `OP_CMP` should have an upper camel case name [INFO] [stdout] --> src/btree/scan/comp.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum OP_CMP { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `OpCmp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CMP_GE` should have an upper camel case name [INFO] [stdout] --> src/btree/scan/comp.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | CMP_GE, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `CmpGe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CMP_GT` should have an upper camel case name [INFO] [stdout] --> src/btree/scan/comp.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | CMP_GT, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `CmpGt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CMP_LT` should have an upper camel case name [INFO] [stdout] --> src/btree/scan/comp.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | CMP_LT, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `CmpLt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CMP_LE` should have an upper camel case name [INFO] [stdout] --> src/btree/scan/comp.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | CMP_LE, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `CmpLe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CMP_EQ` should have an upper camel case name [INFO] [stdout] --> src/btree/scan/comp.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | CMP_EQ, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `CmpEq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CMP_UnEQ` should have an upper camel case name [INFO] [stdout] --> src/btree/scan/comp.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | CMP_UnEQ, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `CmpUnEq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::table::value::ValueType` [INFO] [stdout] --> src/btree/db/database.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::btree::table::value::ValueType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/db/database.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | if (bCheck == false) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - if (bCheck == false) { [INFO] [stdout] 71 + if bCheck == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/db/database.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | if (request.Updated == true && request.Added == false) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 218 - if (request.Updated == true && request.Added == false) { [INFO] [stdout] 218 + if request.Updated == true && request.Added == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/db/database.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 239 | if (bCheck == false) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 239 - if (bCheck == false) { [INFO] [stdout] 239 + if bCheck == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/db/database.rs:316:15 [INFO] [stdout] | [INFO] [stdout] 316 | if(v == true) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 316 - if(v == true) [INFO] [stdout] 316 + if v == true [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `btree::btree::BTree`, `scaninterface::ScanInterface`, and `table::TableDef` [INFO] [stdout] --> src/btree/db/scanner.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | ...::{btree::btree::BTree, scan::{biter::BIter, comp::OP_CMP, scaninterface::ScanInterface}, table::{record::Record, table::TableDef}, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/btree/db/scanner.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use super::database::{self, DataBase}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/db/scanner.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | if (val.len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 42 - if (val.len() > 0) { [INFO] [stdout] 42 + if val.len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut`, `Deref`, and `Mutex` [INFO] [stdout] --> src/btree/tx/txdemo.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, ops::{Deref, DerefMut}, sync::{Arc, Mutex, RwLock}}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/tx/txdemo.rs:51:11 [INFO] [stdout] | [INFO] [stdout] 51 | if(self.updates.contains_key(key)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 51 - if(self.updates.contains_key(key)) [INFO] [stdout] 51 + if self.updates.contains_key(key) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MutexGuard` [INFO] [stdout] --> src/btree/tx/txinterface.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, sync::{Arc, MutexGuard, RwLock}}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `biter::BIter` and `db::scanner::Scanner` [INFO] [stdout] --> src/btree/tx/txinterface.rs:3:67 [INFO] [stdout] | [INFO] [stdout] 3 | ...leteRequest, InsertReqest}, db::scanner::Scanner, kv::{node::BNode, ContextError}, scan::{biter::BIter, comp::OP_CMP}, table::{rec... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `tx::Tx` [INFO] [stdout] --> src/btree/tx/txinterface.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use super::{tx::Tx, txScanner::TxScanner, txbiter::TxBIter, txreader::{self, TxReader}, txwriter::txwriter, winmmap::Mmap}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:97:15 [INFO] [stdout] | [INFO] [stdout] 97 | while (filePages < npages) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - while (filePages < npages) { [INFO] [stdout] 97 + while filePages < npages { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:99:16 [INFO] [stdout] | [INFO] [stdout] 99 | if (inc < 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 99 - if (inc < 1) { [INFO] [stdout] 99 + if inc < 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:154:16 [INFO] [stdout] | [INFO] [stdout] 154 | if (success == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 154 - if (success == 0) { [INFO] [stdout] 154 + if success == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/tx/windowsfileContext.rs:188:16 [INFO] [stdout] | [INFO] [stdout] 188 | if (lpZwMapping == INVALID_HANDLE_VALUE) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 188 - if (lpZwMapping == INVALID_HANDLE_VALUE) { [INFO] [stdout] 188 + if lpZwMapping == INVALID_HANDLE_VALUE { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLockReadGuard` [INFO] [stdout] --> src/btree/tx/txreader.rs:1:53 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, sync::{Arc, RwLock, RwLockReadGuard}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExprSQL`, `biter::BIter`, and `self` [INFO] [stdout] --> src/btree/tx/txreader.rs:3:179 [INFO] [stdout] | [INFO] [stdout] 3 | ...er, select::SelectExpr, statement::{ExprSQL, ExprSQLList, SQLExpr}}, scan::{self, biter::BIter, comp::OP_CMP}, table::{record::Rec... [INFO] [stdout] | ^^^^^^^ ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/btree/tx/txreader.rs:206:15 [INFO] [stdout] | [INFO] [stdout] 206 | while (ptr != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 206 - while (ptr != 0) { [INFO] [stdout] 206 + while ptr != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `RwLock` [INFO] [stdout] --> src/btree/tx/txfreelist.rs:1:40 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, sync::{Arc, RwLock}}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BNodeFreeListInterface`, `BNodeReadInterface`, `BNodeWriteInterface`, `BTREE_PAGE_SIZE`, `ContextError`, `FREE_LIST_CAP_WITH_VERSION`, and `self` [INFO] [stdout] --> src/btree/tx/txfreelist.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | ...::{self, BNode}, nodeinterface::{BNodeFreeListInterface, BNodeReadInterface, BNodeWriteInterface}, ContextError, FREE_LIST_CAP_WITH_VERSION}, BTREE_PAGE_SIZE}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `txinterface::TxReadContext`, `txreader::TxReader`, and `winmmap::Mmap` [INFO] [stdout] --> src/btree/tx/txfreelist.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{txinterface::TxReadContext, txreader::TxReader, winmmap::Mmap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/btree/tx/tx.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, sync::{Arc, RwLock}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/btree/tx/tx.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::btree::{kv::{node::{self, BNode}, nodeinterface::{BNodeFreeListInterface, BNodeReadInterface, BNodeWriteInterface}, Contex... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `txreader::TxReader` [INFO] [stdout] --> src/btree/tx/tx.rs:3:65 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{txfreelist::TxFreeList, txinterface::TxReadContext, txreader::TxReader, winmmap::Mmap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Display` [INFO] [stdout] --> src/btree/tx/txwriter.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fmt::Display, sync::{Arc, RwLock}}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExprSQL` and `scanner::Scanner` [INFO] [stdout] --> src/btree/tx/txwriter.rs:3:72 [INFO] [stdout] | [INFO] [stdout] 3 | ...::{scanner::Scanner, INDEX_ADD, INDEX_DEL, TDEF_META, TDEF_TABLE}, kv::{node::BNode, nodeinterface::{BNodeOperationInterface, BNodeReadInterface, BNodeWriteInterface}}, parser::{delete::DeleteExpr, expr::Expr, insert::InsertExpr, lib::Parser, select::SelectExpr, statement::{ExprSQL, E... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `self` [INFO] [stdout] --> src/btree/tx/txwriter.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use super::{tx::{self, Tx}, txRecord::{DataRow, DataTable}, txScanner::{self, TxScanner}, txbiter::TxBIter, txinterface::{DBTxInterfa... [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `txwriter` should have an upper camel case name [INFO] [stdout] --> src/btree/tx/txwriter.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct txwriter{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Txwriter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/tx/txwriter.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | if (bCheck == false) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - if (bCheck == false) { [INFO] [stdout] 24 + if bCheck == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/tx/txwriter.rs:73:15 [INFO] [stdout] | [INFO] [stdout] 73 | if(v == true) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - if(v == true) [INFO] [stdout] 73 + if v == true [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/tx/txwriter.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | if (request.Updated == true && request.Added == false) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 129 - if (request.Updated == true && request.Added == false) { [INFO] [stdout] 129 + if request.Updated == true && request.Added == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/btree/tx/txwriter.rs:623:15 [INFO] [stdout] | [INFO] [stdout] 623 | while (ptr != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 623 - while (ptr != 0) { [INFO] [stdout] 623 + while ptr != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/tx/txwriter.rs:676:12 [INFO] [stdout] | [INFO] [stdout] 676 | if (self.context.get_root() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 676 - if (self.context.get_root() == 0) { [INFO] [stdout] 676 + if self.context.get_root() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/tx/txwriter.rs:682:11 [INFO] [stdout] | [INFO] [stdout] 682 | if(n1.is_none()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 682 - if(n1.is_none()) [INFO] [stdout] 682 + if n1.is_none() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/btree/tx/txwriter.rs:868:14 [INFO] [stdout] | [INFO] [stdout] 868 | match(nodeTmp) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 868 - match(nodeTmp) [INFO] [stdout] 868 + match nodeTmp [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `txwriter::txwriter` [INFO] [stdout] --> src/btree/tx/txScanner.rs:2:82 [INFO] [stdout] | [INFO] [stdout] 2 | use super::{txRecord::DataRow, txbiter::TxBIter, txinterface::TxReaderInterface, txwriter::txwriter}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/tx/txScanner.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 81 | if (val.len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - if (val.len() > 0) { [INFO] [stdout] 81 + if val.len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/btree/tx/dbcontext.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, sync::{Arc, Mutex, RwLock}}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `memorycontext::MemoryContext` [INFO] [stdout] --> src/btree/tx/dbcontext.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::btree::{kv::{memorycontext::MemoryContext, node::BNode, nodeinterface::{BNodeFreeListInterface, BNodeReadInterface, BNodeW... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winmmap::Mmap` [INFO] [stdout] --> src/btree/tx/dbcontext.rs:4:128 [INFO] [stdout] | [INFO] [stdout] 4 | ...terface, txreader::TxReader, windowsfileContext::WinMmap, winmmap::Mmap}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/tx/dbcontext.rs:168:16 [INFO] [stdout] | [INFO] [stdout] 168 | if (bad == true) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - if (bad == true) { [INFO] [stdout] 168 + if bad == true { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nodeinterface::BNodeReadInterface` [INFO] [stdout] --> src/btree/tx/memoryContext.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::btree::kv::{nodeinterface::BNodeReadInterface, ContextError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `memoryContext` should have an upper camel case name [INFO] [stdout] --> src/btree/tx/memoryContext.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct memoryContext{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MemoryContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/btree/tx/memoryContext.rs:62:15 [INFO] [stdout] | [INFO] [stdout] 62 | while (filePages < totalpages) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - while (filePages < totalpages) { [INFO] [stdout] 62 + while filePages < totalpages { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/tx/memoryContext.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | if (inc < 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - if (inc < 1) { [INFO] [stdout] 64 + if inc < 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MutexGuard` and `hash::Hash` [INFO] [stdout] --> src/btree/tx/database.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, hash::Hash, sync::{Arc, MutexGuard, RwLock}}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `node::BNode` [INFO] [stdout] --> src/btree/tx/database.rs:5:54 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::btree::{db::{TDEF_META, TDEF_TABLE}, kv::{node::BNode, ContextError}, table::table::TableDef, tx::txwriter::txwriter}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MmapInterface` and `self` [INFO] [stdout] --> src/btree/tx/database.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | use super::{dbcontext::{self, DbContext}, shared::Shared, txinterface::{MmapInterface, TxContent}}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/btree/tx/dbinstance.rs:4:106 [INFO] [stdout] | [INFO] [stdout] 4 | use super::{database::Database, dbcontext::DbContext, shared::Shared, txinterface::TxContent, txreader::{self, TxReader}, txwriter::t... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::ParseFloatError` [INFO] [stdout] --> src/btree/parser/lib.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{num::ParseFloatError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/btree/parser/lib.rs:103:19 [INFO] [stdout] | [INFO] [stdout] 103 | break;; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/btree/parser/lib.rs:385:6 [INFO] [stdout] | [INFO] [stdout] 385 | |(chars)| chars.into_iter().collect() [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 385 - |(chars)| chars.into_iter().collect() [INFO] [stdout] 385 + |chars| chars.into_iter().collect() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/btree/parser/lib.rs:395:10 [INFO] [stdout] | [INFO] [stdout] 395 | |(chars)| chars.into_iter().collect() [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 395 - |(chars)| chars.into_iter().collect() [INFO] [stdout] 395 + |chars| chars.into_iter().collect() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/btree/parser/statement.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::E` [INFO] [stdout] --> src/btree/parser/statement.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::f64::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/btree/parser/statement.rs:5:32 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::btree::scan::comp::{self, OP_CMP}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValueType` [INFO] [stdout] --> src/btree/parser/statement.rs:8:41 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::btree::table::value::{Value, ValueType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/btree/parser/statement.rs:156:23 [INFO] [stdout] | [INFO] [stdout] 156 | if( *v != item.1) [INFO] [stdout] | ^^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 156 - if( *v != item.1) [INFO] [stdout] 156 + if *v != item.1 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `value::Value` [INFO] [stdout] --> src/btree/parser/delete.rs:2:61 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::btree::{table::{record::Record, table::TableDef, value::Value}, BTreeError}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/btree/parser/delete.rs:36:15 [INFO] [stdout] | [INFO] [stdout] 36 | .map(|(expr)| [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - .map(|(expr)| [INFO] [stdout] 36 + .map(|expr | [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `btree::request::InsertReqest` [INFO] [stdout] --> src/btree/parser/insert.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::btree::{btree::request::InsertReqest, table::{record::Record, table::TableDef, value::Value}, BTreeError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `sqlerror::SqlError` and `statement::*` [INFO] [stdout] --> src/btree/parser/insert.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{expr::{id, Constant, Expr}, lib::*, sqlerror::SqlError, statement::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/btree/parser/createtable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/btree/parser/createtable.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `statement::*` [INFO] [stdout] --> src/btree/parser/createtable.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{lib::*, statement::*, expr::{ Expr}}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/btree/parser/createtable.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | ; break; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/btree/parser/requesthandler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::table::record::Record` [INFO] [stdout] --> src/btree/parser/requesthandler.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::btree::table::record::Record; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::table::table::TableDef` [INFO] [stdout] --> src/btree/parser/requesthandler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::btree::table::table::TableDef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::table::value::Value` [INFO] [stdout] --> src/btree/parser/requesthandler.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::btree::table::value::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::createtable::ExprCreateTable` [INFO] [stdout] --> src/btree/parser/requesthandler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::createtable::ExprCreateTable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DeleteExpr` and `ExprDelete` [INFO] [stdout] --> src/btree/parser/requesthandler.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use super::delete::{DeleteExpr, ExprDelete}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExprInsert` and `InsertExpr` [INFO] [stdout] --> src/btree/parser/requesthandler.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use super::insert::{ExprInsert, InsertExpr}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExprSelect` and `SelectExpr` [INFO] [stdout] --> src/btree/parser/requesthandler.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use super::select::{ExprSelect, SelectExpr}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::sqlerror::SqlError` [INFO] [stdout] --> src/btree/parser/requesthandler.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use super::sqlerror::SqlError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExprUpdate` and `UpdateExpr` [INFO] [stdout] --> src/btree/parser/requesthandler.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use super::update::{ExprUpdate, UpdateExpr}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::lib::*` [INFO] [stdout] --> src/btree/parser/requesthandler.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use super::lib::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ValueError`, `ValueType`, `scan::comp::OP_CMP`, and `tx::txRecord::DataRow` [INFO] [stdout] --> src/btree/parser/Expr.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | ...e::{scan::comp::OP_CMP, table::{record::Record, table::TableDef, value::{Value, ValueError, ValueType}}, tx::txRecord::DataRow, BT... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/btree/parser/Expr.rs:416:6 [INFO] [stdout] | [INFO] [stdout] 416 | |(chars)| [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 416 - |(chars)| [INFO] [stdout] 416 + |chars | [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/parser/delete.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let mut delete = DeleteExpr{Scan:expr}; [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: unreachable expression [INFO] [stdout] --> src/btree/parser/Expr.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 199 | / match op { [INFO] [stdout] 200 | | ExpressionType::Add => return left + right, [INFO] [stdout] 201 | | ExpressionType::Subtract => return left - right, [INFO] [stdout] 202 | | ExpressionType::Multiply => return left * right, [INFO] [stdout] ... | [INFO] [stdout] 250 | | _other => return Err( BTreeError::OperationNotSupported(String::from("")) ), [INFO] [stdout] 251 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 252 | [INFO] [stdout] 253 | Err( BTreeError::OperationNotSupported(String::from("")) ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BNodeReadInterface` [INFO] [stdout] --> src/btree/tx/tx.rs:2:86 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::btree::{kv::{node::{self, BNode}, nodeinterface::{BNodeFreeListInterface, BNodeReadInterface, BNodeWriteInterface}, Contex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TxWriteContext` [INFO] [stdout] --> src/btree/tx/txwriter.rs:4:185 [INFO] [stdout] | [INFO] [stdout] 4 | ...Interface, TxInterface, TxReadContext, TxReaderInterface, TxWriteContext}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/btree/btree/btree.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | let mut n = self.context.get(ptr).unwrap(); [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 `idx` is never read [INFO] [stdout] --> src/btree/btree/btree.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | let mut idx: usize = 0; [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/btree/btree/btree.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let mut nodeTmp = self.treeInsert(&nodeRoot, key, val, mode); [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/btree/btree/btree.rs:321:13 [INFO] [stdout] | [INFO] [stdout] 321 | let mut nodeTmp = self.treeInsertEx(&nodeRoot, request); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/btree/btree/btree.rs:393:13 [INFO] [stdout] | [INFO] [stdout] 393 | other=> return None [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/btree/btree/btree.rs:423:13 [INFO] [stdout] | [INFO] [stdout] 423 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/btree/btree/btree.rs:458:13 [INFO] [stdout] | [INFO] [stdout] 458 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/btree/btree.rs:513:13 [INFO] [stdout] | [INFO] [stdout] 513 | let mut nodeUpdated = updated.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/btree/btree/btree.rs:561:13 [INFO] [stdout] | [INFO] [stdout] 561 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/btree/btree.rs:584:13 [INFO] [stdout] | [INFO] [stdout] 584 | let mut nodeUpdated = updated.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/btree/btree/btree.rs:632:13 [INFO] [stdout] | [INFO] [stdout] 632 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/btree/btree/btree.rs:673:13 [INFO] [stdout] | [INFO] [stdout] 673 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/btree/btree/btree.rs:720:13 [INFO] [stdout] | [INFO] [stdout] 720 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/btree/btree.rs:731:13 [INFO] [stdout] | [INFO] [stdout] 731 | let mut knode = self.context.get(kptr).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/btree/btree.rs:780:13 [INFO] [stdout] | [INFO] [stdout] 780 | let mut knode = self.context.get(kptr).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pos` is never read [INFO] [stdout] --> src/btree/kv/node.rs:43:27 [INFO] [stdout] | [INFO] [stdout] 43 | let mut pos:u16 = lastPos as u16; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `kvSize` is never read [INFO] [stdout] --> src/btree/kv/node.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | ... let mut kvSize: u16 = (((crate::btree::BTREE_PAGE_SIZE - HEADER as usize - 10 * keyCount as usize) * 2) / 3 ) as u16; //Todo,j... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/btree/kv/node.rs:147:57 [INFO] [stdout] | [INFO] [stdout] 147 | fn copy_Content(&mut self,ptr :*mut u8,offset:usize,length:usize){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flnSize` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let flnSize = curNode.flnSize(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_flnSize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let mut headnode = self.get(self.freehead); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ptr` is never read [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:209:28 [INFO] [stdout] | [INFO] [stdout] 209 | let mut ptr: u64 = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Other` [INFO] [stdout] --> src/btree/kv/windowsfilecontext.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | Other=> [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/btree/table/record.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | for i in 0..def.Cols.len() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Other` [INFO] [stdout] --> src/btree/table/record.rs:256:29 [INFO] [stdout] | [INFO] [stdout] 256 | ... Other=> {panic!()} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Other` [INFO] [stdout] --> src/btree/table/record.rs:354:21 [INFO] [stdout] | [INFO] [stdout] 354 | Other => {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Other` [INFO] [stdout] --> src/btree/db/database.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | Other=>{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/db/database.rs:227:17 [INFO] [stdout] | [INFO] [stdout] 227 | let mut old = Record::new(&rec.def); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old` [INFO] [stdout] --> src/btree/db/database.rs:227:17 [INFO] [stdout] | [INFO] [stdout] 227 | let mut old = Record::new(&rec.def); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `er` [INFO] [stdout] --> src/btree/db/database.rs:348:20 [INFO] [stdout] | [INFO] [stdout] 348 | if let Err(er) = ret [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_er` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/btree/tx/txdemo.rs:114:26 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn endread(&self,reader:&KVReader) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/btree/tx/txdemo.rs:130:29 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn abort(&mut self, tx:&KVTx) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ret` [INFO] [stdout] --> src/btree/tx/txreader.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | if let Ok((ret,sqlExprList)) = ret [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/btree/tx/txreader.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | expr@Other => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Other` [INFO] [stdout] --> src/btree/tx/txreader.rs:54:26 [INFO] [stdout] | [INFO] [stdout] 54 | expr@Other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/btree/tx/txreader.rs:204:21 [INFO] [stdout] | [INFO] [stdout] 204 | let mut n = self.get(ptr).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `idx` is never read [INFO] [stdout] --> src/btree/tx/txreader.rs:205:30 [INFO] [stdout] | [INFO] [stdout] 205 | let mut idx: usize = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `er` [INFO] [stdout] --> src/btree/tx/txreader.rs:229:20 [INFO] [stdout] | [INFO] [stdout] 229 | if let Err(er) = ret [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_er` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/btree/tx/txreader.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 250 | if let tbs = self.tables.read().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/btree/tx/txreader.rs:297:13 [INFO] [stdout] | [INFO] [stdout] 297 | other=> return None [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Other` [INFO] [stdout] --> src/btree/tx/txreader.rs:320:13 [INFO] [stdout] | [INFO] [stdout] 320 | Other=>{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Other` [INFO] [stdout] --> src/btree/tx/tx.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | Other=> [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/tx.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut node = self.get(self.freelist.data.nodes[0]).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/tx.rs:178:17 [INFO] [stdout] | [INFO] [stdout] 178 | let mut head = self.get(ptrHead).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ver` [INFO] [stdout] --> src/btree/tx/tx.rs:185:26 [INFO] [stdout] | [INFO] [stdout] 185 | let (ptr,ver) = head.flnPtrWithVersion(i); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/tx.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let mut ptr: u64 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/btree/tx/tx.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let mut ptr: u64 = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `totalfree` [INFO] [stdout] --> src/btree/tx/tx.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let totalfree = self.freelist.data.total as u16; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_totalfree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/txwriter.rs:138:17 [INFO] [stdout] | [INFO] [stdout] 138 | let mut old = Record::new(&rec.def); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old` [INFO] [stdout] --> src/btree/tx/txwriter.rs:138:17 [INFO] [stdout] | [INFO] [stdout] 138 | let mut old = Record::new(&rec.def); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Other` [INFO] [stdout] --> src/btree/tx/txwriter.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | Other=>{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ret` [INFO] [stdout] --> src/btree/tx/txwriter.rs:221:20 [INFO] [stdout] | [INFO] [stdout] 221 | if let Ok((ret,sqlExprList)) = ret [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Other` [INFO] [stdout] --> src/btree/tx/txwriter.rs:232:26 [INFO] [stdout] | [INFO] [stdout] 232 | expr@Other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/txwriter.rs:425:13 [INFO] [stdout] | [INFO] [stdout] 425 | let mut recordes = cmd.createQuest(&tdef.as_ref().unwrap()); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `er` [INFO] [stdout] --> src/btree/tx/txwriter.rs:548:20 [INFO] [stdout] | [INFO] [stdout] 548 | if let Err(er) = ret [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_er` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/btree/tx/txwriter.rs:568:12 [INFO] [stdout] | [INFO] [stdout] 568 | if let tbs = self.tables.clone().read().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/btree/tx/txwriter.rs:580:16 [INFO] [stdout] | [INFO] [stdout] 580 | if let mut tbs = self.tables.clone().write().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/btree/tx/txwriter.rs:621:21 [INFO] [stdout] | [INFO] [stdout] 621 | let mut n = self.context.get(ptr).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `idx` is never read [INFO] [stdout] --> src/btree/tx/txwriter.rs:622:30 [INFO] [stdout] | [INFO] [stdout] 622 | let mut idx: usize = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/btree/tx/txwriter.rs:667:13 [INFO] [stdout] | [INFO] [stdout] 667 | other=> return None [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/btree/tx/txwriter.rs:733:13 [INFO] [stdout] | [INFO] [stdout] 733 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/txwriter.rs:754:13 [INFO] [stdout] | [INFO] [stdout] 754 | let mut nodeUpdated = updated.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/btree/tx/txwriter.rs:802:13 [INFO] [stdout] | [INFO] [stdout] 802 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/txwriter.rs:867:13 [INFO] [stdout] | [INFO] [stdout] 867 | let mut nodeTmp = self.treeInsert(&nodeRoot, request); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/btree/tx/txwriter.rs:951:13 [INFO] [stdout] | [INFO] [stdout] 951 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/txwriter.rs:962:13 [INFO] [stdout] | [INFO] [stdout] 962 | let mut knode = self.context.get(kptr).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/dbcontext.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 93 | let mut mmap = self.mmapObj.read().unwrap().getMmap(); [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/btree/tx/dbcontext.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | let mut mmap = self.mmapObj.read().unwrap().getMmap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `er` [INFO] [stdout] --> src/btree/tx/dbcontext.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 79 | if let Err(er) = self.mmapObj.write().unwrap().extendContext(2){ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_er` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/dbcontext.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | let mut mmap = self.mmapObj.read().unwrap().getMmap(); [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/btree/tx/dbcontext.rs:225:25 [INFO] [stdout] | [INFO] [stdout] 225 | let mut mmap = self.mmapObj.read().unwrap().getMmap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ret` [INFO] [stdout] --> src/btree/tx/dbcontext.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | let ret = writer.syncContext(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/database.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut txwriter: txwriter = txwriter{ [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/btree/tx/database.rs:102:25 [INFO] [stdout] | [INFO] [stdout] 102 | fn abort(& mut self,tx:&super::txwriter::txwriter) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/dbinstance.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut tx = dbinstance.begin(); [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/btree/tx/dbinstance.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut ret = dbinstance.commmit(tx); [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/btree/tx/dbinstance.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let mut ret = dbinstance.abort(tx); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ret` [INFO] [stdout] --> src/btree/tx/dbinstance.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let mut ret = dbinstance.abort(tx); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/dbinstance.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut tx = dbinstance.beginread(); [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/btree/tx/dbinstance.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut ret = dbinstance.endread(tx); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ret` [INFO] [stdout] --> src/btree/tx/dbinstance.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut ret = dbinstance.endread(tx); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/dbinstance.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut dbinstance = self.lock().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/tx/dbinstance.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut writer = dbinstance.writer.clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/lib.rs:403:38 [INFO] [stdout] | [INFO] [stdout] 403 | map(is_literal(" "),|c| String::from("")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree/parser/delete.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut r: Record = Record::new(&tdef); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `left` is never read [INFO] [stdout] --> src/btree/parser/Expr.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | let mut left = Value::None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `right` is never read [INFO] [stdout] --> src/btree/parser/Expr.rs:128:25 [INFO] [stdout] | [INFO] [stdout] 128 | let mut right = Value::None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:348:30 [INFO] [stdout] | [INFO] [stdout] 348 | match_literal("=").map( |c| ExpressionType::EQ) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:352:31 [INFO] [stdout] | [INFO] [stdout] 352 | match_literal("!=").map( |c| ExpressionType::UnEQ) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:357:32 [INFO] [stdout] | [INFO] [stdout] 357 | match_literal("not").map( |c| ExpressionType::NOT) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:361:32 [INFO] [stdout] | [INFO] [stdout] 361 | match_literal("and").map( |c| ExpressionType::AND) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:365:31 [INFO] [stdout] | [INFO] [stdout] 365 | match_literal("or").map( |c| ExpressionType::OR) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:369:30 [INFO] [stdout] | [INFO] [stdout] 369 | match_literal("-").map( |c| ExpressionType::UnOP) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:373:30 [INFO] [stdout] | [INFO] [stdout] 373 | match_literal("+").map( |c| ExpressionType::Add) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:377:31 [INFO] [stdout] | [INFO] [stdout] 377 | match_literal("- ").map( |c| ExpressionType::Subtract) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:381:30 [INFO] [stdout] | [INFO] [stdout] 381 | match_literal("*").map( |c| ExpressionType::Multiply) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:385:30 [INFO] [stdout] | [INFO] [stdout] 385 | match_literal("/").map( |c| ExpressionType::Divide) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:389:30 [INFO] [stdout] | [INFO] [stdout] 389 | match_literal("%").map( |c| ExpressionType::Modulo) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:393:30 [INFO] [stdout] | [INFO] [stdout] 393 | match_literal("^").map( |c| ExpressionType::Power) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:397:30 [INFO] [stdout] | [INFO] [stdout] 397 | match_literal("<").map( |c| ExpressionType::LT) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:401:31 [INFO] [stdout] | [INFO] [stdout] 401 | match_literal("<=").map( |c| ExpressionType::LE) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:405:31 [INFO] [stdout] | [INFO] [stdout] 405 | match_literal(">=").map( |c| ExpressionType::GE) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/btree/parser/Expr.rs:409:30 [INFO] [stdout] | [INFO] [stdout] 409 | match_literal(">").map( |c| ExpressionType::GT) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/btree/parser/Expr.rs:442:68 [INFO] [stdout] | [INFO] [stdout] 442 | remove_lead_space_and_newline(match_literal("false")).map(|v| Value::BOOL(false)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/btree/parser/Expr.rs:441:67 [INFO] [stdout] | [INFO] [stdout] 441 | remove_lead_space_and_newline(match_literal("true")).map(|v| Value::BOOL(true)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/btree/parser/Expr.rs:542:13 [INFO] [stdout] | [INFO] [stdout] 542 | fn initExpr(r:&Expr,v:Expr) -> Expr [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut context:DbContext = WinMmap::new("c:/temp/rustdb.dat".as_bytes(),BTREE_PAGE_SIZE,1000).unwrap().into(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut context :DbContext = memoryContext::new(BTREE_PAGE_SIZE,1000).into(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut context:DbContext = WinMmap::new("c:/temp/rustdb.dat".as_bytes(),BTREE_PAGE_SIZE,1000).unwrap().into(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut sql:String = String::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut writer = db.getLocker(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sql` [INFO] [stdout] --> src/main.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut sql:String = String::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sql` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ret` [INFO] [stdout] --> src/main.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | let ret = tx.ExecuteSQLStatments(insert); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0583. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustdb` (bin "rustdb") due to 28 previous errors; 236 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3460131a823f526edd2206877578359c022d1bc13de28a82540583aaa1cc7224", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3460131a823f526edd2206877578359c022d1bc13de28a82540583aaa1cc7224", kill_on_drop: false }` [INFO] [stdout] 3460131a823f526edd2206877578359c022d1bc13de28a82540583aaa1cc7224