[INFO] cloning repository https://github.com/123enjoy/time-cache [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/123enjoy/time-cache" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F123enjoy%2Ftime-cache", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F123enjoy%2Ftime-cache'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a4076b751df023d030abf54029467d6d10edde1b [INFO] building 123enjoy/time-cache against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F123enjoy%2Ftime-cache" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/123enjoy/time-cache [INFO] finished tweaking git repo https://github.com/123enjoy/time-cache [INFO] tweaked toml for git repo https://github.com/123enjoy/time-cache written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/123enjoy/time-cache on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/123enjoy/time-cache 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded redox_syscall v0.5.4 [INFO] [stderr] Downloaded atoi v0.3.3 [INFO] [stderr] Downloaded strsim v0.8.0 [INFO] [stderr] Downloaded textwrap v0.11.0 [INFO] [stderr] Downloaded anyhow v1.0.89 [INFO] [stderr] Downloaded cc v1.1.18 [INFO] [stderr] Downloaded structopt-derive v0.4.18 [INFO] [stderr] Downloaded structopt v0.3.26 [INFO] [stderr] Downloaded tracing-log v0.1.4 [INFO] [stderr] Downloaded tracing-subscriber v0.2.25 [INFO] [stderr] Downloaded clap v2.34.0 [INFO] [stderr] Downloaded indexmap v2.5.0 [INFO] [stderr] Downloaded hex v0.3.2 [INFO] [stderr] Downloaded msgpack_simple v1.0.2 [INFO] [stderr] Downloaded mini-redis v0.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3d16f7a0904495c62eaf451ada9037ede265f93592e3ed9a6245b48bcd5c44f [INFO] running `Command { std: "docker" "start" "-a" "a3d16f7a0904495c62eaf451ada9037ede265f93592e3ed9a6245b48bcd5c44f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3d16f7a0904495c62eaf451ada9037ede265f93592e3ed9a6245b48bcd5c44f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3d16f7a0904495c62eaf451ada9037ede265f93592e3ed9a6245b48bcd5c44f", kill_on_drop: false }` [INFO] [stdout] a3d16f7a0904495c62eaf451ada9037ede265f93592e3ed9a6245b48bcd5c44f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 24c14b94c5341a903f03382b6e1c04cece75874beaa453dfdd110f85f25e20c6 [INFO] running `Command { std: "docker" "start" "-a" "24c14b94c5341a903f03382b6e1c04cece75874beaa453dfdd110f85f25e20c6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling destructure_traitobject v0.2.0 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling unsafe-any-ors v1.0.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling log-mdc v0.1.0 [INFO] [stderr] Compiling hex v0.3.2 [INFO] [stderr] Compiling typemap-ors v1.0.0 [INFO] [stderr] Compiling msgpack_simple v1.0.2 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling ordered-float v2.10.1 [INFO] [stderr] Compiling rmp v0.8.14 [INFO] [stderr] Compiling atoi v0.3.3 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling thread-id v4.2.2 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling matchers v0.0.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling tracing-serde v0.1.3 [INFO] [stderr] Compiling serde-value v0.7.0 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling rmp-serde v1.3.0 [INFO] [stderr] Compiling tracing-log v0.1.4 [INFO] [stderr] Compiling tracing-subscriber v0.2.25 [INFO] [stderr] Compiling log4rs v1.3.0 [INFO] [stderr] Compiling mini-redis v0.4.1 [INFO] [stderr] Compiling time-cache v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `TSCacheValue` [INFO] [stdout] --> src/db.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::entity::{TSCacheValue, TSItem, TSValue}; [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: `chrono::format::Item` [INFO] [stdout] --> src/db.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::format::Item; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::from_slice` [INFO] [stdout] --> src/db.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::from_slice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::arch::x86_64::_bextr_u64` [INFO] [stdout] --> src/db.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::arch::x86_64::_bextr_u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/db.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de` [INFO] [stdout] --> src/entity.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{de, Deserialize, Deserializer, Serialize, Serializer}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/entity.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/entity.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{format, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/entity.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::SeekFrom::Start` [INFO] [stdout] --> src/entity.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::SeekFrom::Start; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataType`, `SaveTimePeriod`, `TSItem`, and `TSValue` [INFO] [stdout] --> src/handle.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::entity::{DataType, SaveTimePeriod, TSCacheValue, TSItem, TSValue}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TSQueue` [INFO] [stdout] --> src/handle.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::method::{choose_method, Exception, TSQueue}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/handle.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorKind` [INFO] [stdout] --> src/handle.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{Error, ErrorKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TSCacheValue` [INFO] [stdout] --> src/io.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::entity::{SaveTimePeriod, TSCacheValue, TSItem, TSValue}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_dir` [INFO] [stdout] --> src/io.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs::{create_dir, create_dir_all, File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/method.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mini_redis::buffer` [INFO] [stdout] --> src/method.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mini_redis::buffer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::take` [INFO] [stdout] --> src/method.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::mem::take; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `to_vec` [INFO] [stdout] --> src/method.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | use rmp_serde::{from_slice, to_vec, to_vec_named}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::value` [INFO] [stdout] --> src/method.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use serde::de::value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rmp_serde::to_vec_named` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rmp_serde::to_vec_named; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rscode.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | _ => 0, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/rscode.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 38 | TSReturnCode::TS0101 => 101, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 39 | TSReturnCode::TS0102 => 102, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 40 | TSReturnCode::TS0103 => 103, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 41 | TSReturnCode::TS0201 => 201, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 68 | _ => 0, [INFO] [stdout] | ^ ...and 26 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data` and `index` are never read [INFO] [stdout] --> src/db.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct CacheDb { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert_data`, `get_request_data`, and `remove_data` are never used [INFO] [stdout] --> src/db.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl CacheDb { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn insert_data(&mut self, data: BytesMut) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn get_request_data(&self) -> &BytesMut { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn remove_data(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TSMethod` is never used [INFO] [stdout] --> src/entity.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait TSMethod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BYTE_ARRAYS_INDEX` is never used [INFO] [stdout] --> src/entity.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | static BYTE_ARRAYS_INDEX: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `length` is never used [INFO] [stdout] --> src/entity.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl DataType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 35 | pub fn length(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Number` is never constructed [INFO] [stdout] --> src/entity.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub enum TSCacheValue { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 161 | Number(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TSCacheValue` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `query_time` is never used [INFO] [stdout] --> src/method.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl TSQueue { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn query_time(&mut self, time: u64) -> Option<&TSCacheValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ok` is never used [INFO] [stdout] --> src/method.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl Exception { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn ok(&self, msg: &str) -> Exception { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/rscode.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum TSReturnCode { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 2 | TS0101, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | TS0102, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | TS0103, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | TS0204, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | TS0205, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | TS0206, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | TS0207, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | TS0208, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | TS0209, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | TS0210, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | TS0211, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | TS0301, [INFO] [stdout] 17 | TS0302, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | TS0303, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | TS0304, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | TS0305, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | TS0306, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | TS0307, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | [INFO] [stdout] 24 | TS0401, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | TS0402, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | TS0403, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | TS0501, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | TS0502, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 29 | TS0503, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 30 | TS0504, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | TS0505, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 32 | TS0506, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `tsName` should have a snake case name [INFO] [stdout] --> src/entity.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | pub tsName: String, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ts_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `keyType` should have a snake case name [INFO] [stdout] --> src/entity.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | pub keyType: DataType, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `key_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `valueType` should have a snake case name [INFO] [stdout] --> src/entity.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | pub valueType: DataType, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `value_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `storageEnum` should have a snake case name [INFO] [stdout] --> src/entity.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | pub storageEnum: SaveTimePeriod, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `storage_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 48.44s [INFO] running `Command { std: "docker" "inspect" "24c14b94c5341a903f03382b6e1c04cece75874beaa453dfdd110f85f25e20c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24c14b94c5341a903f03382b6e1c04cece75874beaa453dfdd110f85f25e20c6", kill_on_drop: false }` [INFO] [stdout] 24c14b94c5341a903f03382b6e1c04cece75874beaa453dfdd110f85f25e20c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 026f7ff7b4f308e89dd237aa4ca7a63993635f17a8ff84a838d93a5caf9971e5 [INFO] running `Command { std: "docker" "start" "-a" "026f7ff7b4f308e89dd237aa4ca7a63993635f17a8ff84a838d93a5caf9971e5", kill_on_drop: false }` [INFO] [stderr] Compiling time-cache v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `TSCacheValue` [INFO] [stdout] --> src/db.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::entity::{TSCacheValue, TSItem, TSValue}; [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: `chrono::format::Item` [INFO] [stdout] --> src/db.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::format::Item; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::from_slice` [INFO] [stdout] --> src/db.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::from_slice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::arch::x86_64::_bextr_u64` [INFO] [stdout] --> src/db.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::arch::x86_64::_bextr_u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/db.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de` [INFO] [stdout] --> src/entity.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{de, Deserialize, Deserializer, Serialize, Serializer}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/entity.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/entity.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{format, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/entity.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::SeekFrom::Start` [INFO] [stdout] --> src/entity.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::SeekFrom::Start; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataType`, `SaveTimePeriod`, `TSItem`, and `TSValue` [INFO] [stdout] --> src/handle.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::entity::{DataType, SaveTimePeriod, TSCacheValue, TSItem, TSValue}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TSQueue` [INFO] [stdout] --> src/handle.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::method::{choose_method, Exception, TSQueue}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/handle.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorKind` [INFO] [stdout] --> src/handle.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{Error, ErrorKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TSCacheValue` [INFO] [stdout] --> src/io.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::entity::{SaveTimePeriod, TSCacheValue, TSItem, TSValue}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_dir` [INFO] [stdout] --> src/io.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs::{create_dir, create_dir_all, File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/method.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mini_redis::buffer` [INFO] [stdout] --> src/method.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mini_redis::buffer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::take` [INFO] [stdout] --> src/method.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::mem::take; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `to_vec` [INFO] [stdout] --> src/method.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | use rmp_serde::{from_slice, to_vec, to_vec_named}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::value` [INFO] [stdout] --> src/method.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use serde::de::value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rmp_serde::to_vec_named` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rmp_serde::to_vec_named; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rscode.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | _ => 0, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/rscode.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 38 | TSReturnCode::TS0101 => 101, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 39 | TSReturnCode::TS0102 => 102, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 40 | TSReturnCode::TS0103 => 103, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 41 | TSReturnCode::TS0201 => 201, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 68 | _ => 0, [INFO] [stdout] | ^ ...and 26 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data` and `index` are never read [INFO] [stdout] --> src/db.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct CacheDb { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert_data`, `get_request_data`, and `remove_data` are never used [INFO] [stdout] --> src/db.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl CacheDb { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn insert_data(&mut self, data: BytesMut) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn get_request_data(&self) -> &BytesMut { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn remove_data(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TSMethod` is never used [INFO] [stdout] --> src/entity.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait TSMethod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BYTE_ARRAYS_INDEX` is never used [INFO] [stdout] --> src/entity.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | static BYTE_ARRAYS_INDEX: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `length` is never used [INFO] [stdout] --> src/entity.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl DataType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 35 | pub fn length(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Number` is never constructed [INFO] [stdout] --> src/entity.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub enum TSCacheValue { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 161 | Number(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TSCacheValue` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `query_time` is never used [INFO] [stdout] --> src/method.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl TSQueue { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn query_time(&mut self, time: u64) -> Option<&TSCacheValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ok` is never used [INFO] [stdout] --> src/method.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl Exception { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn ok(&self, msg: &str) -> Exception { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/rscode.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum TSReturnCode { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 2 | TS0101, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | TS0102, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | TS0103, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | TS0204, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | TS0205, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | TS0206, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | TS0207, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | TS0208, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | TS0209, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | TS0210, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | TS0211, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | TS0301, [INFO] [stdout] 17 | TS0302, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | TS0303, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | TS0304, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | TS0305, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | TS0306, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | TS0307, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | [INFO] [stdout] 24 | TS0401, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | TS0402, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | TS0403, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | TS0501, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | TS0502, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 29 | TS0503, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 30 | TS0504, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | TS0505, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 32 | TS0506, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `tsName` should have a snake case name [INFO] [stdout] --> src/entity.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | pub tsName: String, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ts_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `keyType` should have a snake case name [INFO] [stdout] --> src/entity.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | pub keyType: DataType, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `key_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `valueType` should have a snake case name [INFO] [stdout] --> src/entity.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | pub valueType: DataType, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `value_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `storageEnum` should have a snake case name [INFO] [stdout] --> src/entity.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | pub storageEnum: SaveTimePeriod, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `storage_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::RandomState` [INFO] [stdout] --> tests/client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de` [INFO] [stdout] --> tests/../src/entity.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{de, Deserialize, Deserializer, Serialize, Serializer}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> tests/../src/entity.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> tests/../src/entity.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{format, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> tests/../src/entity.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::SeekFrom::Start` [INFO] [stdout] --> tests/../src/entity.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::SeekFrom::Start; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> tests/../src/method.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mini_redis::buffer` [INFO] [stdout] --> tests/../src/method.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mini_redis::buffer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::take` [INFO] [stdout] --> tests/../src/method.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::mem::take; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `to_vec` [INFO] [stdout] --> tests/../src/method.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | use rmp_serde::{from_slice, to_vec, to_vec_named}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::value` [INFO] [stdout] --> tests/../src/method.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use serde::de::value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TSCacheValue` [INFO] [stdout] --> tests/../src/io.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::entity::{SaveTimePeriod, TSCacheValue, TSItem, TSValue}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_dir` [INFO] [stdout] --> tests/../src/io.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs::{create_dir, create_dir_all, File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TSCacheValue` [INFO] [stdout] --> tests/../src/db.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::entity::{TSCacheValue, TSItem, TSValue}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Item` [INFO] [stdout] --> tests/../src/db.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::format::Item; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::from_slice` [INFO] [stdout] --> tests/../src/db.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::from_slice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::arch::x86_64::_bextr_u64` [INFO] [stdout] --> tests/../src/db.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::arch::x86_64::_bextr_u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> tests/../src/db.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `encode` and `to_vec` [INFO] [stdout] --> tests/test01.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use rmp_serde::{encode, from_slice, to_vec, to_vec_named}; [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: `std::collections::HashMap` [INFO] [stdout] --> tests/test01.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> tests/test01.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::write` [INFO] [stdout] --> tests/test01.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ptr::write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> tests/test01.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::SystemTime` [INFO] [stdout] --> tests/test01.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::SystemTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de` [INFO] [stdout] --> tests/../src/entity.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{de, Deserialize, Deserializer, Serialize, Serializer}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> tests/../src/entity.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> tests/../src/entity.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{format, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> tests/../src/entity.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::SeekFrom::Start` [INFO] [stdout] --> tests/../src/entity.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::SeekFrom::Start; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> tests/../src/method.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mini_redis::buffer` [INFO] [stdout] --> tests/../src/method.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mini_redis::buffer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::take` [INFO] [stdout] --> tests/../src/method.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::mem::take; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `to_vec` [INFO] [stdout] --> tests/../src/method.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | use rmp_serde::{from_slice, to_vec, to_vec_named}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::value` [INFO] [stdout] --> tests/../src/method.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use serde::de::value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TSCacheValue` [INFO] [stdout] --> tests/../src/io.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::entity::{SaveTimePeriod, TSCacheValue, TSItem, TSValue}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_dir` [INFO] [stdout] --> tests/../src/io.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs::{create_dir, create_dir_all, File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TSCacheValue` [INFO] [stdout] --> tests/../src/db.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::entity::{TSCacheValue, TSItem, TSValue}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Item` [INFO] [stdout] --> tests/../src/db.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::format::Item; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::from_slice` [INFO] [stdout] --> tests/../src/db.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::from_slice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::arch::x86_64::_bextr_u64` [INFO] [stdout] --> tests/../src/db.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::arch::x86_64::_bextr_u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> tests/../src/db.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::entity::DataType::Float` [INFO] [stdout] --> tests/test01.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::entity::DataType::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::entity::TSCacheValue::String` [INFO] [stdout] --> tests/test01.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::entity::TSCacheValue::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::io::read_all_items` [INFO] [stdout] --> tests/test01.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::io::read_all_items; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TSCacheValue` [INFO] [stdout] --> src/db.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::entity::{TSCacheValue, TSItem, TSValue}; [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: `chrono::format::Item` [INFO] [stdout] --> src/db.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::format::Item; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::from_slice` [INFO] [stdout] --> src/db.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::from_slice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::arch::x86_64::_bextr_u64` [INFO] [stdout] --> src/db.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::arch::x86_64::_bextr_u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/db.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de` [INFO] [stdout] --> src/entity.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{de, Deserialize, Deserializer, Serialize, Serializer}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/entity.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/entity.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{format, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/entity.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::SeekFrom::Start` [INFO] [stdout] --> src/entity.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::SeekFrom::Start; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataType`, `SaveTimePeriod`, `TSItem`, and `TSValue` [INFO] [stdout] --> src/handle.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::entity::{DataType, SaveTimePeriod, TSCacheValue, TSItem, TSValue}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TSQueue` [INFO] [stdout] --> src/handle.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::method::{choose_method, Exception, TSQueue}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/handle.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorKind` [INFO] [stdout] --> src/handle.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{Error, ErrorKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TSCacheValue` [INFO] [stdout] --> src/io.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::entity::{SaveTimePeriod, TSCacheValue, TSItem, TSValue}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_dir` [INFO] [stdout] --> src/io.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs::{create_dir, create_dir_all, File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/method.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mini_redis::buffer` [INFO] [stdout] --> src/method.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mini_redis::buffer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::take` [INFO] [stdout] --> src/method.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::mem::take; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `to_vec` [INFO] [stdout] --> src/method.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | use rmp_serde::{from_slice, to_vec, to_vec_named}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::value` [INFO] [stdout] --> src/method.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use serde::de::value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rmp_serde::to_vec_named` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rmp_serde::to_vec_named; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> tests/../src/rscode.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | _ => 0, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> tests/../src/rscode.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 38 | TSReturnCode::TS0101 => 101, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 39 | TSReturnCode::TS0102 => 102, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 40 | TSReturnCode::TS0103 => 103, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 41 | TSReturnCode::TS0201 => 201, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 68 | _ => 0, [INFO] [stdout] | ^ ...and 26 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ret` [INFO] [stdout] --> tests/client.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let ret: TSCacheValue = from_slice(&ret[..n]).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ret` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TSMethod` is never used [INFO] [stdout] --> tests/../src/entity.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait TSMethod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BYTE_ARRAYS_INDEX` is never used [INFO] [stdout] --> tests/../src/entity.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | static BYTE_ARRAYS_INDEX: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `length`, `equal`, and `code` are never used [INFO] [stdout] --> tests/../src/entity.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl DataType { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 35 | pub fn length(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn equal(&self, value: &TSCacheValue) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn code(&self) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_period` is never used [INFO] [stdout] --> tests/../src/entity.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 107 | impl SaveTimePeriod { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 108 | pub fn as_period(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Number` is never constructed [INFO] [stdout] --> tests/../src/entity.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub enum TSCacheValue { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 161 | Number(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TSCacheValue` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `convert` is never used [INFO] [stdout] --> tests/../src/entity.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl TSCacheValue { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 167 | pub fn convert(self) -> DataType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TSQueue` is never constructed [INFO] [stdout] --> tests/../src/method.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct TSQueue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `query_times`, `query_time`, `query_last`, and `get_value_type_code` are never used [INFO] [stdout] --> tests/../src/method.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl TSQueue { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 29 | pub fn new(item: Box, capacity: usize) -> TSQueue { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn insert<'b>(&mut self, time: u64, value: TSCacheValue) -> Result<(), Exception> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn query_times(&mut self, start_time: u64, end_time: u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn query_time(&mut self, time: u64) -> Option<&TSCacheValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn query_last(&mut self) -> Option<(u64, &TSCacheValue)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn get_value_type_code(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Exception` is never constructed [INFO] [stdout] --> tests/../src/method.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct Exception { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExceptionKind` is never used [INFO] [stdout] --> tests/../src/method.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | pub enum ExceptionKind { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_code` is never used [INFO] [stdout] --> tests/../src/method.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 144 | impl ExceptionKind { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 145 | fn as_code(&self) -> i16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `err`, and `ok` are never used [INFO] [stdout] --> tests/../src/method.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl Exception { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 157 | pub fn new(code: i16, msg: &str) -> Exception { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn err(kind: ExceptionKind, msg: &str) -> Exception { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn ok(&self, msg: &str) -> Exception { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TSMethod` is never constructed [INFO] [stdout] --> tests/../src/method.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct TSMethod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> tests/../src/method.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 176 | pub enum MethodKind { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 177 | Create, [INFO] [stdout] 178 | CreateMuti, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 179 | EXIST, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 180 | Set, [INFO] [stdout] | ^^^ [INFO] [stdout] 181 | SetMuti, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | GetMuti, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 185 | [INFO] [stdout] 186 | GetRange, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 187 | GetRangeMuti, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> tests/../src/method.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 209 | impl TSMethod { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 210 | pub fn new(kind: MethodKind, method: Box) -> TSMethod { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `choose_method` is never used [INFO] [stdout] --> tests/../src/method.rs:239:8 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn choose_method(action: u16) -> Option<&'static Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Method` is never used [INFO] [stdout] --> tests/../src/method.rs:247:11 [INFO] [stdout] | [INFO] [stdout] 247 | pub trait Method: Send + Sync { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateItemAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:256:8 [INFO] [stdout] | [INFO] [stdout] 256 | struct CreateItemAction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SetValueAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:290:8 [INFO] [stdout] | [INFO] [stdout] 290 | struct SetValueAction; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetValueAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:320:8 [INFO] [stdout] | [INFO] [stdout] 320 | struct GetValueAction; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExistsAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:375:8 [INFO] [stdout] | [INFO] [stdout] 375 | struct ExistsAction; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetMutiAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:414:8 [INFO] [stdout] | [INFO] [stdout] 414 | struct GetMutiAction; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SetMutiAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:466:8 [INFO] [stdout] | [INFO] [stdout] 466 | struct SetMutiAction; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateMutiAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:500:8 [INFO] [stdout] | [INFO] [stdout] 500 | struct CreateMutiAction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TSKeyRange` is never constructed [INFO] [stdout] --> tests/../src/method.rs:525:8 [INFO] [stdout] | [INFO] [stdout] 525 | struct TSKeyRange{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetRangeAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:531:8 [INFO] [stdout] | [INFO] [stdout] 531 | struct GetRangeAction; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TSValueArray` is never constructed [INFO] [stdout] --> tests/../src/method.rs:547:8 [INFO] [stdout] | [INFO] [stdout] 547 | struct TSValueArray{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> tests/../src/method.rs:554:8 [INFO] [stdout] | [INFO] [stdout] 553 | impl TSValueArray{ [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 554 | fn new(n:&str) -> TSValueArray{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetRangeMutiAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:564:8 [INFO] [stdout] | [INFO] [stdout] 564 | struct GetRangeMutiAction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DATA` is never used [INFO] [stdout] --> tests/../src/io.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | static DATA: &str = "./data"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileIOCache` is never constructed [INFO] [stdout] --> tests/../src/io.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct FileIOCache { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_new_file`, `append`, and `close` are never used [INFO] [stdout] --> tests/../src/io.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl FileIOCache { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new(ts_item: Box) -> FileIOCache { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn create_new_file(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn append(&mut self, value: &TSValue) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn close(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_all_items` is never used [INFO] [stdout] --> tests/../src/io.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn write_all_items(items: &Vec<&TSItem>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_all_items` is never used [INFO] [stdout] --> tests/../src/io.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn read_all_items(items: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CacheDb` is never constructed [INFO] [stdout] --> tests/../src/db.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct CacheDb { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> tests/../src/db.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl CacheDb { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 20 | pub fn new() -> CacheDb { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn contains_key(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn create_item(&mut self, item: TSItem) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn create_new_item(&mut self, item: TSItem, queue: TSQueue) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn insert_data(&mut self, data: BytesMut) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn get_request_data(&self) -> &BytesMut { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn remove_data(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn insert_new_value<>(&mut self, ts_value: TSValue) -> Result<(), Exception> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn get_mut(&mut self, key: &str) -> Option<&mut TSQueue> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TSReturnCode` is never used [INFO] [stdout] --> tests/../src/rscode.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum TSReturnCode { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `code` is never used [INFO] [stdout] --> tests/../src/rscode.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl TSReturnCode { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 36 | pub fn code(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `tsName` should have a snake case name [INFO] [stdout] --> tests/../src/entity.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | pub tsName: String, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ts_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `keyType` should have a snake case name [INFO] [stdout] --> tests/../src/entity.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | pub keyType: DataType, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `key_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `valueType` should have a snake case name [INFO] [stdout] --> tests/../src/entity.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | pub valueType: DataType, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `value_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `storageEnum` should have a snake case name [INFO] [stdout] --> tests/../src/entity.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | pub storageEnum: SaveTimePeriod, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `storage_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> tests/../src/rscode.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | _ => 0, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> tests/../src/rscode.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 38 | TSReturnCode::TS0101 => 101, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 39 | TSReturnCode::TS0102 => 102, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 40 | TSReturnCode::TS0103 => 103, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 41 | TSReturnCode::TS0201 => 201, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 68 | _ => 0, [INFO] [stdout] | ^ ...and 26 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test01.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut value = Some(34); [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: unused variable: `bs` [INFO] [stdout] --> tests/test01.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | let bs = to_vec_named(&item).unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bs` [INFO] [stdout] --> tests/test01.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | let bs = to_vec_named(&ts_values).unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TSMethod` is never used [INFO] [stdout] --> tests/../src/entity.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait TSMethod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BYTE_ARRAYS_INDEX` is never used [INFO] [stdout] --> tests/../src/entity.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | static BYTE_ARRAYS_INDEX: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `length`, `equal`, and `code` are never used [INFO] [stdout] --> tests/../src/entity.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl DataType { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 35 | pub fn length(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn equal(&self, value: &TSCacheValue) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn code(&self) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_period` is never used [INFO] [stdout] --> tests/../src/entity.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 107 | impl SaveTimePeriod { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 108 | pub fn as_period(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Number` is never constructed [INFO] [stdout] --> tests/../src/entity.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub enum TSCacheValue { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 161 | Number(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TSCacheValue` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `convert` is never used [INFO] [stdout] --> tests/../src/entity.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl TSCacheValue { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 167 | pub fn convert(self) -> DataType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TSQueue` is never constructed [INFO] [stdout] --> tests/../src/method.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct TSQueue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `query_times`, `query_time`, `query_last`, and `get_value_type_code` are never used [INFO] [stdout] --> tests/../src/method.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl TSQueue { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 29 | pub fn new(item: Box, capacity: usize) -> TSQueue { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn insert<'b>(&mut self, time: u64, value: TSCacheValue) -> Result<(), Exception> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn query_times(&mut self, start_time: u64, end_time: u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn query_time(&mut self, time: u64) -> Option<&TSCacheValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn query_last(&mut self) -> Option<(u64, &TSCacheValue)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn get_value_type_code(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Exception` is never constructed [INFO] [stdout] --> tests/../src/method.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct Exception { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExceptionKind` is never used [INFO] [stdout] --> tests/../src/method.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | pub enum ExceptionKind { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_code` is never used [INFO] [stdout] --> tests/../src/method.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 144 | impl ExceptionKind { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 145 | fn as_code(&self) -> i16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `err`, and `ok` are never used [INFO] [stdout] --> tests/../src/method.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl Exception { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 157 | pub fn new(code: i16, msg: &str) -> Exception { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn err(kind: ExceptionKind, msg: &str) -> Exception { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn ok(&self, msg: &str) -> Exception { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TSMethod` is never constructed [INFO] [stdout] --> tests/../src/method.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct TSMethod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MethodKind` is never used [INFO] [stdout] --> tests/../src/method.rs:176:10 [INFO] [stdout] | [INFO] [stdout] 176 | pub enum MethodKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_code` is never used [INFO] [stdout] --> tests/../src/method.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 190 | impl MethodKind { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 191 | pub fn as_code(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> tests/../src/method.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 209 | impl TSMethod { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 210 | pub fn new(kind: MethodKind, method: Box) -> TSMethod { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `choose_method` is never used [INFO] [stdout] --> tests/../src/method.rs:239:8 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn choose_method(action: u16) -> Option<&'static Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Method` is never used [INFO] [stdout] --> tests/../src/method.rs:247:11 [INFO] [stdout] | [INFO] [stdout] 247 | pub trait Method: Send + Sync { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateItemAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:256:8 [INFO] [stdout] | [INFO] [stdout] 256 | struct CreateItemAction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SetValueAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:290:8 [INFO] [stdout] | [INFO] [stdout] 290 | struct SetValueAction; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetValueAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:320:8 [INFO] [stdout] | [INFO] [stdout] 320 | struct GetValueAction; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExistsAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:375:8 [INFO] [stdout] | [INFO] [stdout] 375 | struct ExistsAction; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetMutiAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:414:8 [INFO] [stdout] | [INFO] [stdout] 414 | struct GetMutiAction; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SetMutiAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:466:8 [INFO] [stdout] | [INFO] [stdout] 466 | struct SetMutiAction; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateMutiAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:500:8 [INFO] [stdout] | [INFO] [stdout] 500 | struct CreateMutiAction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TSKeyRange` is never constructed [INFO] [stdout] --> tests/../src/method.rs:525:8 [INFO] [stdout] | [INFO] [stdout] 525 | struct TSKeyRange{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetRangeAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:531:8 [INFO] [stdout] | [INFO] [stdout] 531 | struct GetRangeAction; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TSValueArray` is never constructed [INFO] [stdout] --> tests/../src/method.rs:547:8 [INFO] [stdout] | [INFO] [stdout] 547 | struct TSValueArray{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> tests/../src/method.rs:554:8 [INFO] [stdout] | [INFO] [stdout] 553 | impl TSValueArray{ [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 554 | fn new(n:&str) -> TSValueArray{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetRangeMutiAction` is never constructed [INFO] [stdout] --> tests/../src/method.rs:564:8 [INFO] [stdout] | [INFO] [stdout] 564 | struct GetRangeMutiAction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DATA` is never used [INFO] [stdout] --> tests/../src/io.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | static DATA: &str = "./data"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileIOCache` is never constructed [INFO] [stdout] --> tests/../src/io.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct FileIOCache { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_new_file`, `append`, and `close` are never used [INFO] [stdout] --> tests/../src/io.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl FileIOCache { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new(ts_item: Box) -> FileIOCache { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn create_new_file(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn append(&mut self, value: &TSValue) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn close(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_all_items` is never used [INFO] [stdout] --> tests/../src/io.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn write_all_items(items: &Vec<&TSItem>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_all_items` is never used [INFO] [stdout] --> tests/../src/io.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn read_all_items(items: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CacheDb` is never constructed [INFO] [stdout] --> tests/../src/db.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct CacheDb { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> tests/../src/db.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl CacheDb { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 20 | pub fn new() -> CacheDb { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn contains_key(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn create_item(&mut self, item: TSItem) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn create_new_item(&mut self, item: TSItem, queue: TSQueue) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn insert_data(&mut self, data: BytesMut) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn get_request_data(&self) -> &BytesMut { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn remove_data(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn insert_new_value<>(&mut self, ts_value: TSValue) -> Result<(), Exception> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn get_mut(&mut self, key: &str) -> Option<&mut TSQueue> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TSReturnCode` is never used [INFO] [stdout] --> tests/../src/rscode.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum TSReturnCode { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `code` is never used [INFO] [stdout] --> tests/../src/rscode.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl TSReturnCode { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 36 | pub fn code(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `tsName` should have a snake case name [INFO] [stdout] --> tests/../src/entity.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | pub tsName: String, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ts_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `keyType` should have a snake case name [INFO] [stdout] --> tests/../src/entity.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | pub keyType: DataType, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `key_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `valueType` should have a snake case name [INFO] [stdout] --> tests/../src/entity.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | pub valueType: DataType, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `value_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `storageEnum` should have a snake case name [INFO] [stdout] --> tests/../src/entity.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | pub storageEnum: SaveTimePeriod, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `storage_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rscode.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | _ => 0, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/rscode.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 38 | TSReturnCode::TS0101 => 101, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 39 | TSReturnCode::TS0102 => 102, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 40 | TSReturnCode::TS0103 => 103, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 41 | TSReturnCode::TS0201 => 201, [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 68 | _ => 0, [INFO] [stdout] | ^ ...and 26 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data` and `index` are never read [INFO] [stdout] --> src/db.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct CacheDb { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert_data`, `get_request_data`, and `remove_data` are never used [INFO] [stdout] --> src/db.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl CacheDb { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn insert_data(&mut self, data: BytesMut) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn get_request_data(&self) -> &BytesMut { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn remove_data(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TSMethod` is never used [INFO] [stdout] --> src/entity.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait TSMethod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BYTE_ARRAYS_INDEX` is never used [INFO] [stdout] --> src/entity.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | static BYTE_ARRAYS_INDEX: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `length` is never used [INFO] [stdout] --> src/entity.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl DataType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 35 | pub fn length(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Number` is never constructed [INFO] [stdout] --> src/entity.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub enum TSCacheValue { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 161 | Number(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TSCacheValue` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `query_time` is never used [INFO] [stdout] --> src/method.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl TSQueue { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn query_time(&mut self, time: u64) -> Option<&TSCacheValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ok` is never used [INFO] [stdout] --> src/method.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl Exception { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn ok(&self, msg: &str) -> Exception { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/rscode.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum TSReturnCode { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 2 | TS0101, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | TS0102, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | TS0103, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | TS0204, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | TS0205, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | TS0206, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | TS0207, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | TS0208, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | TS0209, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | TS0210, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | TS0211, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | TS0301, [INFO] [stdout] 17 | TS0302, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | TS0303, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | TS0304, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | TS0305, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | TS0306, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | TS0307, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | [INFO] [stdout] 24 | TS0401, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | TS0402, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | TS0403, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | TS0501, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | TS0502, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 29 | TS0503, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 30 | TS0504, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | TS0505, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 32 | TS0506, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `tsName` should have a snake case name [INFO] [stdout] --> src/entity.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | pub tsName: String, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ts_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `keyType` should have a snake case name [INFO] [stdout] --> src/entity.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | pub keyType: DataType, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `key_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `valueType` should have a snake case name [INFO] [stdout] --> src/entity.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | pub valueType: DataType, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `value_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `storageEnum` should have a snake case name [INFO] [stdout] --> src/entity.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | pub storageEnum: SaveTimePeriod, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `storage_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.40s [INFO] running `Command { std: "docker" "inspect" "026f7ff7b4f308e89dd237aa4ca7a63993635f17a8ff84a838d93a5caf9971e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "026f7ff7b4f308e89dd237aa4ca7a63993635f17a8ff84a838d93a5caf9971e5", kill_on_drop: false }` [INFO] [stdout] 026f7ff7b4f308e89dd237aa4ca7a63993635f17a8ff84a838d93a5caf9971e5