[INFO] cloning repository https://github.com/yatharthmathur/rustic-db [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yatharthmathur/rustic-db" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyatharthmathur%2Frustic-db", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyatharthmathur%2Frustic-db'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c86ab3f689019df92b1d8438ff447d3b7d5348f7 [INFO] checking yatharthmathur/rustic-db against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyatharthmathur%2Frustic-db" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yatharthmathur/rustic-db on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yatharthmathur/rustic-db [INFO] finished tweaking git repo https://github.com/yatharthmathur/rustic-db [INFO] tweaked toml for git repo https://github.com/yatharthmathur/rustic-db written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/yatharthmathur/rustic-db 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded smallvec v1.12.0 [INFO] [stderr] Downloaded env_logger v0.10.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 23384410919ca8f44a405354877c4b69abe66e305454c1faac1e8d172930357b [INFO] running `Command { std: "docker" "start" "-a" "23384410919ca8f44a405354877c4b69abe66e305454c1faac1e8d172930357b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23384410919ca8f44a405354877c4b69abe66e305454c1faac1e8d172930357b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23384410919ca8f44a405354877c4b69abe66e305454c1faac1e8d172930357b", kill_on_drop: false }` [INFO] [stdout] 23384410919ca8f44a405354877c4b69abe66e305454c1faac1e8d172930357b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af2cc1fde45fdad5b7a6906c5f8b11746cd759c32c15d2fa0f3ca796a9dfd1d9 [INFO] running `Command { std: "docker" "start" "-a" "af2cc1fde45fdad5b7a6906c5f8b11746cd759c32c15d2fa0f3ca796a9dfd1d9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling rustix v0.38.30 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking smallvec v1.12.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking is-terminal v0.4.10 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.35.1 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking rustic-db v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::manager::RusticManager` [INFO] [stdout] --> src/managers/tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::manager::RusticManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/stores/implementations/bytes/tests.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::stores::store::KeyValueStore` [INFO] [stdout] --> src/stores/implementations/bytes/tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::stores::store::KeyValueStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::stores::store::KeyValueStore` [INFO] [stdout] --> src/stores/implementations/hmaps/tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::stores::store::KeyValueStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/stores/implementations/hsets/tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::stores::store::KeyValueStore` [INFO] [stdout] --> src/stores/implementations/hsets/tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::stores::store::KeyValueStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::stores::store::KeyValueStore` [INFO] [stdout] --> src/stores/implementations/integers/tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::stores::store::KeyValueStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::stores::store::KeyValueStore` [INFO] [stdout] --> src/stores/implementations/lists/tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::stores::store::KeyValueStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::stores::store::KeyValueStore` [INFO] [stdout] --> src/stores/implementations/strings/tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::stores::store::KeyValueStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::KeyValueStore` [INFO] [stdout] --> src/stores/tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::KeyValueStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/stores/tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `env_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ the item `env_logger` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `env_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ the item `env_logger` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_store`, `get_store`, and `list_store_names` are never used [INFO] [stdout] --> src/managers/manager.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl RusticManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn remove_store(&mut self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn get_store(&self, name: &str) -> Option<&KeyValueStore> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn list_store_names(&self) -> Vec<&String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | FromUtf8Error(FromUtf8Error), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | FromUtf8Error(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ParseIntError` and `TryFromIntError` are never constructed [INFO] [stdout] --> src/stores/errors.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum TypeConversionError { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 8 | ParseIntError(ParseIntError), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | FromUtf8Error(FromUtf8Error), [INFO] [stdout] 10 | TryFromIntError(TryFromIntError), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeConversionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AsReference` and `AsMutable` are never constructed [INFO] [stdout] --> src/stores/errors.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum TypeConversionImpossible { [INFO] [stdout] | ------------------------ variants in this enum [INFO] [stdout] 16 | IncompatibleTypes, [INFO] [stdout] 17 | AsReference, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | AsMutable, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeConversionImpossible` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | TypeConversionImpossible(TypeConversionImpossible), [INFO] [stdout] | ------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 | TypeConversionImpossible(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:24:25 [INFO] [stdout] | [INFO] [stdout] 24 | TypeConversionError(TypeConversionError), [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 | TypeConversionError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_bytes`, `get_bytes`, and `pop_bytes` are never used [INFO] [stdout] --> src/stores/implementations/bytes/bytes.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 4 | /// Inserts a Key-Value(in Vec type) pair in the KeyValueStore [INFO] [stdout] 5 | pub fn set_bytes(&mut self, key: &str, value: Vec, ttl: Option) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn get_bytes(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn pop_bytes(&mut self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/stores/implementations/hmaps/hmaps.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 5 | /// Inserts a Key-Value(in HashMap<(String, String)> type) pair in the KeyValueStore [INFO] [stdout] 6 | pub fn set_hmap(&mut self, key: &str, value: Vec<(String, String)>, ttl: Option) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn get_hmap(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn hmap_insert( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn hmap_get(&self, key: &str, hmap_key: String) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn hmap_remove( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn hmap_contains_key( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn hmap_size(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn hmap_keys(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn hmap_values(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn hmap_items(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/stores/implementations/hsets/hsets.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 5 | /// Inserts a Key-Value(in HashSet type) pair in the KeyValueStore [INFO] [stdout] 6 | pub fn set_hset(&mut self, key: &str, value: Vec, ttl: Option) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn get_hset(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn pop_hset(&mut self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn hset_add(&mut self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn hset_remove(&mut self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn hset_contains(&self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn hset_intersection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn hset_union(&self, key1: &str, key2: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn hset_difference( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn hset_size(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_i64`, `get_i64`, `pop_i64`, `decr`, and `incr` are never used [INFO] [stdout] --> src/stores/implementations/integers/integers.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 9 | /// Inserts a Key-Value(in i64 type) pair in the KeyValueStore [INFO] [stdout] 10 | pub fn set_i64(&mut self, key: &str, value: i64, ttl: Option) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_i64(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn pop_i64(&mut self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn decr(&mut self, key: &str, by: Option) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn incr(&mut self, key: &str, by: Option) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/stores/implementations/lists/lists.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 5 | /// Inserts a Key-Value(in Vec type) pair in the KeyValueStore [INFO] [stdout] 6 | pub fn set_list(&mut self, key: &str, value: Vec, ttl: Option) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn get_list(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn pop_list(&mut self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn list_pushb(&mut self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn list_pushf(&mut self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn list_popf(&mut self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn list_popb(&mut self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn list_front(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn list_back(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn list_size(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pop_string` is never used [INFO] [stdout] --> src/stores/implementations/strings/strings.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl KeyValueStore { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn pop_string(&mut self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `contains_key`, `is_expired`, and `clear` are never used [INFO] [stdout] --> src/stores/store.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn contains_key(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn is_expired(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Integer64`, `Bytes`, `Deque`, `Set`, and `HashMap` are never constructed [INFO] [stdout] --> src/stores/types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ValueType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 5 | Integer64(i64), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | Bytes(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | String(String), [INFO] [stdout] 8 | Deque(VecDeque), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Set(HashSet), [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | HashMap(HashMap), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValueType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/stores/value_entry.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ValueEntry { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 23 | pub fn from_i64(value: i64, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn from_bytes(value: Vec, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn from_list(value: Vec, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn from_hset(value: HashSet, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn from_hashmap(value: HashMap, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn get_value_as_i64(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn get_value_as_bytes(&self) -> Result, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_value_as_list(&self) -> Result, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn get_value_as_deque(&self) -> Result<&VecDeque, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn get_value_as_mut_deque(&mut self) -> Result<&mut VecDeque, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn get_value_as_hset(&self) -> Result, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn get_value_as_mut_hset(&mut self) -> Result<&mut HashSet, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn get_value_as_hmap(&self) -> Result, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn get_value_as_mut_hmap(&mut self) -> Result<&mut HashMap, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | ParseIntError(ParseIntError), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 | ParseIntError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | FromUtf8Error(FromUtf8Error), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | FromUtf8Error(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | TypeConversionImpossible(TypeConversionImpossible), [INFO] [stdout] | ------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 | TypeConversionImpossible(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:24:25 [INFO] [stdout] | [INFO] [stdout] 24 | TypeConversionError(TypeConversionError), [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 | TypeConversionError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.65s [INFO] running `Command { std: "docker" "inspect" "af2cc1fde45fdad5b7a6906c5f8b11746cd759c32c15d2fa0f3ca796a9dfd1d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af2cc1fde45fdad5b7a6906c5f8b11746cd759c32c15d2fa0f3ca796a9dfd1d9", kill_on_drop: false }` [INFO] [stdout] af2cc1fde45fdad5b7a6906c5f8b11746cd759c32c15d2fa0f3ca796a9dfd1d9 [INFO] checking yatharthmathur/rustic-db against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyatharthmathur%2Frustic-db" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yatharthmathur/rustic-db on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yatharthmathur/rustic-db [INFO] finished tweaking git repo https://github.com/yatharthmathur/rustic-db [INFO] tweaked toml for git repo https://github.com/yatharthmathur/rustic-db written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/yatharthmathur/rustic-db 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dcdfd979a2a823684227563e0fe365d0d22e7aa6e8966bae344ec1cb1824de0f [INFO] running `Command { std: "docker" "start" "-a" "dcdfd979a2a823684227563e0fe365d0d22e7aa6e8966bae344ec1cb1824de0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dcdfd979a2a823684227563e0fe365d0d22e7aa6e8966bae344ec1cb1824de0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dcdfd979a2a823684227563e0fe365d0d22e7aa6e8966bae344ec1cb1824de0f", kill_on_drop: false }` [INFO] [stdout] dcdfd979a2a823684227563e0fe365d0d22e7aa6e8966bae344ec1cb1824de0f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3326ba9b341fa061f6bc3b4562c2485e8aa0d167f0ca632ac98fffaba867896a [INFO] running `Command { std: "docker" "start" "-a" "3326ba9b341fa061f6bc3b4562c2485e8aa0d167f0ca632ac98fffaba867896a", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling rustix v0.38.30 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking smallvec v1.12.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking is-terminal v0.4.10 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking tokio v1.35.1 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking rustic-db v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: the item `env_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ the item `env_logger` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | ParseIntError(ParseIntError), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 | ParseIntError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | FromUtf8Error(FromUtf8Error), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | FromUtf8Error(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | TypeConversionImpossible(TypeConversionImpossible), [INFO] [stdout] | ------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 | TypeConversionImpossible(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:24:25 [INFO] [stdout] | [INFO] [stdout] 24 | TypeConversionError(TypeConversionError), [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 | TypeConversionError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/stores/implementations/integers/tests.rs (1 fix) [INFO] [stderr] Fixed src/stores/implementations/lists/tests.rs (1 fix) [INFO] [stderr] Fixed src/stores/implementations/bytes/tests.rs (2 fixes) [INFO] [stderr] Fixed src/stores/implementations/hsets/tests.rs (2 fixes) [INFO] [stderr] Fixed src/stores/tests.rs (2 fixes) [INFO] [stderr] Fixed src/managers/tests.rs (1 fix) [INFO] [stderr] Fixed src/stores/implementations/strings/tests.rs (1 fix) [INFO] [stderr] Fixed src/stores/implementations/hmaps/tests.rs (1 fix) [INFO] [stdout] warning: the item `env_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ the item `env_logger` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stores::store::KeyValueStore` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use stores::store::KeyValueStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_store`, `get_store`, and `list_store_names` are never used [INFO] [stdout] --> src/managers/manager.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl RusticManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn remove_store(&mut self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn get_store(&self, name: &str) -> Option<&KeyValueStore> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn list_store_names(&self) -> Vec<&String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | FromUtf8Error(FromUtf8Error), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | FromUtf8Error(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ParseIntError` and `TryFromIntError` are never constructed [INFO] [stdout] --> src/stores/errors.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum TypeConversionError { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 8 | ParseIntError(ParseIntError), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | FromUtf8Error(FromUtf8Error), [INFO] [stdout] 10 | TryFromIntError(TryFromIntError), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeConversionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AsReference` and `AsMutable` are never constructed [INFO] [stdout] --> src/stores/errors.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum TypeConversionImpossible { [INFO] [stdout] | ------------------------ variants in this enum [INFO] [stdout] 16 | IncompatibleTypes, [INFO] [stdout] 17 | AsReference, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | AsMutable, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeConversionImpossible` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | TypeConversionImpossible(TypeConversionImpossible), [INFO] [stdout] | ------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 | TypeConversionImpossible(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:24:25 [INFO] [stdout] | [INFO] [stdout] 24 | TypeConversionError(TypeConversionError), [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 | TypeConversionError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_bytes`, `get_bytes`, and `pop_bytes` are never used [INFO] [stdout] --> src/stores/implementations/bytes/bytes.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 4 | /// Inserts a Key-Value(in Vec type) pair in the KeyValueStore [INFO] [stdout] 5 | pub fn set_bytes(&mut self, key: &str, value: Vec, ttl: Option) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn get_bytes(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn pop_bytes(&mut self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/stores/implementations/hmaps/hmaps.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 5 | /// Inserts a Key-Value(in HashMap<(String, String)> type) pair in the KeyValueStore [INFO] [stdout] 6 | pub fn set_hmap(&mut self, key: &str, value: Vec<(String, String)>, ttl: Option) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn get_hmap(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn hmap_insert( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn hmap_get(&self, key: &str, hmap_key: String) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn hmap_remove( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn hmap_contains_key( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn hmap_size(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn hmap_keys(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn hmap_values(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn hmap_items(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/stores/implementations/hsets/hsets.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 5 | /// Inserts a Key-Value(in HashSet type) pair in the KeyValueStore [INFO] [stdout] 6 | pub fn set_hset(&mut self, key: &str, value: Vec, ttl: Option) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn get_hset(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn pop_hset(&mut self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn hset_add(&mut self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn hset_remove(&mut self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn hset_contains(&self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn hset_intersection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn hset_union(&self, key1: &str, key2: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn hset_difference( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn hset_size(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_i64`, `get_i64`, `pop_i64`, `decr`, and `incr` are never used [INFO] [stdout] --> src/stores/implementations/integers/integers.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 9 | /// Inserts a Key-Value(in i64 type) pair in the KeyValueStore [INFO] [stdout] 10 | pub fn set_i64(&mut self, key: &str, value: i64, ttl: Option) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_i64(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn pop_i64(&mut self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn decr(&mut self, key: &str, by: Option) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn incr(&mut self, key: &str, by: Option) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/stores/implementations/lists/lists.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 5 | /// Inserts a Key-Value(in Vec type) pair in the KeyValueStore [INFO] [stdout] 6 | pub fn set_list(&mut self, key: &str, value: Vec, ttl: Option) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn get_list(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn pop_list(&mut self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn list_pushb(&mut self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn list_pushf(&mut self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn list_popf(&mut self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn list_popb(&mut self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn list_front(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn list_back(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn list_size(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pop_string` is never used [INFO] [stdout] --> src/stores/implementations/strings/strings.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl KeyValueStore { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn pop_string(&mut self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `contains_key`, `is_expired`, and `clear` are never used [INFO] [stdout] --> src/stores/store.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn contains_key(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn is_expired(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Integer64`, `Bytes`, `Deque`, `Set`, and `HashMap` are never constructed [INFO] [stdout] --> src/stores/types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ValueType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 5 | Integer64(i64), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | Bytes(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | String(String), [INFO] [stdout] 8 | Deque(VecDeque), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Set(HashSet), [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | HashMap(HashMap), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValueType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/stores/value_entry.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ValueEntry { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 23 | pub fn from_i64(value: i64, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn from_bytes(value: Vec, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn from_list(value: Vec, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn from_hset(value: HashSet, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn from_hashmap(value: HashMap, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn get_value_as_i64(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn get_value_as_bytes(&self) -> Result, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_value_as_list(&self) -> Result, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn get_value_as_deque(&self) -> Result<&VecDeque, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn get_value_as_mut_deque(&mut self) -> Result<&mut VecDeque, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn get_value_as_hset(&self) -> Result, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn get_value_as_mut_hset(&mut self) -> Result<&mut HashSet, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn get_value_as_hmap(&self) -> Result, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn get_value_as_mut_hmap(&mut self) -> Result<&mut HashMap, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.16s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking rustic-db v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: the item `env_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ the item `env_logger` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stores::store::KeyValueStore` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use stores::store::KeyValueStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/stores/implementations/bytes/tests.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use serde::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/stores/implementations/bytes/tests.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RusticManager` [INFO] [stdout] --> src/managers/tests.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | let mut manager = RusticManager::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RusticManager` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::RusticManager; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RusticManager` [INFO] [stdout] --> src/managers/tests.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | let mut manager = RusticManager::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RusticManager` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::RusticManager; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RusticManager` [INFO] [stdout] --> src/managers/tests.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | let mut manager = RusticManager::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RusticManager` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::RusticManager; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RusticManager` [INFO] [stdout] --> src/managers/tests.rs:41:23 [INFO] [stdout] | [INFO] [stdout] 41 | let mut manager = RusticManager::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RusticManager` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::RusticManager; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RusticManager` [INFO] [stdout] --> src/managers/tests.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | let mut manager = RusticManager::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RusticManager` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::RusticManager; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/bytes/tests.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/bytes/tests.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/bytes/tests.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/hmaps/tests.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/hmaps/tests.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/hmaps/tests.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/hsets/tests.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashSet` [INFO] [stdout] --> src/stores/implementations/hsets/tests.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | HashSet::from_iter(vec!["X".to_string(), "Y".to_string(), "Z".to_string()]) [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashSet` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::HashSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashSet` [INFO] [stdout] --> src/stores/implementations/hsets/tests.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | HashSet::from_iter(vec!["X".to_string(), "Y".to_string(), "Z".to_string()]) [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashSet` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::HashSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/hsets/tests.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/hsets/tests.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/integers/tests.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/integers/tests.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/lists/tests.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/lists/tests.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/strings/tests.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/implementations/strings/tests.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/tests.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/tests.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/stores/tests.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | std::thread::sleep(Duration::from_millis(250)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/tests.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/tests.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 47 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/stores/tests.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 54 | std::thread::sleep(Duration::from_millis(250)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/stores/tests.rs:64:24 [INFO] [stdout] | [INFO] [stdout] 64 | std::thread::sleep(Duration::from_millis(250)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyValueStore` [INFO] [stdout] --> src/stores/tests.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | let mut store = KeyValueStore::new("new_store", None); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `KeyValueStore` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::KeyValueStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `env_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ the item `env_logger` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stores::store::KeyValueStore` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use stores::store::KeyValueStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_store`, `get_store`, and `list_store_names` are never used [INFO] [stdout] --> src/managers/manager.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl RusticManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn remove_store(&mut self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn get_store(&self, name: &str) -> Option<&KeyValueStore> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn list_store_names(&self) -> Vec<&String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | FromUtf8Error(FromUtf8Error), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | FromUtf8Error(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ParseIntError` and `TryFromIntError` are never constructed [INFO] [stdout] --> src/stores/errors.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum TypeConversionError { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 8 | ParseIntError(ParseIntError), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | FromUtf8Error(FromUtf8Error), [INFO] [stdout] 10 | TryFromIntError(TryFromIntError), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeConversionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AsReference` and `AsMutable` are never constructed [INFO] [stdout] --> src/stores/errors.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum TypeConversionImpossible { [INFO] [stdout] | ------------------------ variants in this enum [INFO] [stdout] 16 | IncompatibleTypes, [INFO] [stdout] 17 | AsReference, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | AsMutable, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeConversionImpossible` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | TypeConversionImpossible(TypeConversionImpossible), [INFO] [stdout] | ------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 | TypeConversionImpossible(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/stores/errors.rs:24:25 [INFO] [stdout] | [INFO] [stdout] 24 | TypeConversionError(TypeConversionError), [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 | TypeConversionError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_bytes`, `get_bytes`, and `pop_bytes` are never used [INFO] [stdout] --> src/stores/implementations/bytes/bytes.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 4 | /// Inserts a Key-Value(in Vec type) pair in the KeyValueStore [INFO] [stdout] 5 | pub fn set_bytes(&mut self, key: &str, value: Vec, ttl: Option) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn get_bytes(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn pop_bytes(&mut self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/stores/implementations/hmaps/hmaps.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 5 | /// Inserts a Key-Value(in HashMap<(String, String)> type) pair in the KeyValueStore [INFO] [stdout] 6 | pub fn set_hmap(&mut self, key: &str, value: Vec<(String, String)>, ttl: Option) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn get_hmap(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn hmap_insert( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn hmap_get(&self, key: &str, hmap_key: String) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn hmap_remove( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn hmap_contains_key( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn hmap_size(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn hmap_keys(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn hmap_values(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn hmap_items(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/stores/implementations/hsets/hsets.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 5 | /// Inserts a Key-Value(in HashSet type) pair in the KeyValueStore [INFO] [stdout] 6 | pub fn set_hset(&mut self, key: &str, value: Vec, ttl: Option) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn get_hset(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn pop_hset(&mut self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn hset_add(&mut self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn hset_remove(&mut self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn hset_contains(&self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn hset_intersection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn hset_union(&self, key1: &str, key2: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn hset_difference( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn hset_size(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_i64`, `get_i64`, `pop_i64`, `decr`, and `incr` are never used [INFO] [stdout] --> src/stores/implementations/integers/integers.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 9 | /// Inserts a Key-Value(in i64 type) pair in the KeyValueStore [INFO] [stdout] 10 | pub fn set_i64(&mut self, key: &str, value: i64, ttl: Option) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_i64(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn pop_i64(&mut self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn decr(&mut self, key: &str, by: Option) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn incr(&mut self, key: &str, by: Option) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/stores/implementations/lists/lists.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 5 | /// Inserts a Key-Value(in Vec type) pair in the KeyValueStore [INFO] [stdout] 6 | pub fn set_list(&mut self, key: &str, value: Vec, ttl: Option) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn get_list(&self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn pop_list(&mut self, key: &str) -> Option, ValueError>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn list_pushb(&mut self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn list_pushf(&mut self, key: &str, value: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn list_popf(&mut self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn list_popb(&mut self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn list_front(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn list_back(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn list_size(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pop_string` is never used [INFO] [stdout] --> src/stores/implementations/strings/strings.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl KeyValueStore { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn pop_string(&mut self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `contains_key`, `is_expired`, and `clear` are never used [INFO] [stdout] --> src/stores/store.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl KeyValueStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn contains_key(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn is_expired(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Integer64`, `Bytes`, `Deque`, `Set`, and `HashMap` are never constructed [INFO] [stdout] --> src/stores/types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ValueType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 5 | Integer64(i64), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | Bytes(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | String(String), [INFO] [stdout] 8 | Deque(VecDeque), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Set(HashSet), [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | HashMap(HashMap), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValueType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/stores/value_entry.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ValueEntry { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 23 | pub fn from_i64(value: i64, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn from_bytes(value: Vec, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn from_list(value: Vec, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn from_hset(value: HashSet, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn from_hashmap(value: HashMap, expiration: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn get_value_as_i64(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn get_value_as_bytes(&self) -> Result, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_value_as_list(&self) -> Result, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn get_value_as_deque(&self) -> Result<&VecDeque, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn get_value_as_mut_deque(&mut self) -> Result<&mut VecDeque, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn get_value_as_hset(&self) -> Result, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn get_value_as_mut_hset(&mut self) -> Result<&mut HashSet, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn get_value_as_hmap(&self) -> Result, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn get_value_as_mut_hmap(&mut self) -> Result<&mut HashMap, ValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `LocalStruct: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> src/stores/implementations/bytes/tests.rs:36:39 [INFO] [stdout] | [INFO] [stdout] 36 | let bin_code = bincode::serialize(&local_struct_instance).unwrap(); [INFO] [stdout] | ------------------ ^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `LocalStruct` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 127 others [INFO] [stdout] note: required by a bound in `bincode::serialize` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bincode-1.3.3/src/lib.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn serialize(value: &T) -> Result> [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 107 | where [INFO] [stdout] 108 | T: serde::Serialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `serialize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `LocalStruct: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> src/stores/implementations/bytes/tests.rs:40:45 [INFO] [stdout] | [INFO] [stdout] 40 | let new_local_struct: LocalStruct = bincode::deserialize(&vec_val.unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `LocalStruct` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 127 others [INFO] [stdout] note: required by a bound in `bincode::deserialize` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bincode-1.3.3/src/lib.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn deserialize<'a, T>(bytes: &'a [u8]) -> Result [INFO] [stdout] | ----------- required by a bound in this function [INFO] [stdout] 178 | where [INFO] [stdout] 179 | T: serde::de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `deserialize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 34 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustic-db` (bin "rustic-db" test) due to 35 previous errors; 2 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "3326ba9b341fa061f6bc3b4562c2485e8aa0d167f0ca632ac98fffaba867896a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3326ba9b341fa061f6bc3b4562c2485e8aa0d167f0ca632ac98fffaba867896a", kill_on_drop: false }` [INFO] [stdout] 3326ba9b341fa061f6bc3b4562c2485e8aa0d167f0ca632ac98fffaba867896a