[INFO] cloning repository https://github.com/mambisi/escanor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mambisi/escanor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmambisi%2Fescanor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmambisi%2Fescanor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aa0fa048bcc22dae19fc33ec69ae03f776cee875 [INFO] checking mambisi/escanor against try#6f12b8fe67b4eed2e838dab803ed9493b9d62c0f for pr-79073 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmambisi%2Fescanor" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mambisi/escanor on toolchain 6f12b8fe67b4eed2e838dab803ed9493b9d62c0f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+6f12b8fe67b4eed2e838dab803ed9493b9d62c0f" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mambisi/escanor [INFO] finished tweaking git repo https://github.com/mambisi/escanor [INFO] tweaked toml for git repo https://github.com/mambisi/escanor written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/mambisi/escanor already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+6f12b8fe67b4eed2e838dab803ed9493b9d62c0f" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/kevinmo13/redis-protocol.rs.git` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rstar v0.8.2 [INFO] [stderr] Downloaded geohash v0.9.0 [INFO] [stderr] Downloaded app_dirs2 v2.0.4 [INFO] [stderr] Downloaded dashmap v3.11.0 [INFO] [stderr] Downloaded jsonpath_lib v0.2.4 [INFO] [stderr] Downloaded json_dotpath v1.0.2 [INFO] [stderr] Downloaded resp v0.3.7 [INFO] [stderr] Downloaded evmap v9.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+6f12b8fe67b4eed2e838dab803ed9493b9d62c0f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ced38c7f1d46e5ba22292bfd77c041a36644609a05680c0d2b78ba9992674cb7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ced38c7f1d46e5ba22292bfd77c041a36644609a05680c0d2b78ba9992674cb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ced38c7f1d46e5ba22292bfd77c041a36644609a05680c0d2b78ba9992674cb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ced38c7f1d46e5ba22292bfd77c041a36644609a05680c0d2b78ba9992674cb7", kill_on_drop: false }` [INFO] [stdout] ced38c7f1d46e5ba22292bfd77c041a36644609a05680c0d2b78ba9992674cb7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+6f12b8fe67b4eed2e838dab803ed9493b9d62c0f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3b1977395f9f1497ae18f58349aca5a78f7d47c0134bb29ec7f80f687154a604 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3b1977395f9f1497ae18f58349aca5a78f7d47c0134bb29ec7f80f687154a604", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking smallvec v1.4.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling proc-macro-hack v0.5.15 [INFO] [stderr] Checking regex-syntax v0.6.17 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking futures-core v0.3.4 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.4 [INFO] [stderr] Compiling failure_derive v0.1.7 [INFO] [stderr] Checking futures-sink v0.3.4 [INFO] [stderr] Checking rustc-demangle v0.1.16 [INFO] [stderr] Checking futures-io v0.3.4 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Compiling openssl v0.10.29 [INFO] [stderr] Compiling crc16 v0.3.4 [INFO] [stderr] Checking arc-swap v0.4.5 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Checking pin-utils v0.1.0-alpha.4 [INFO] [stderr] Checking futures-task v0.3.4 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling heapless v0.5.6 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking pin-project-lite v0.1.4 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking static_assertions v0.3.4 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking cookie-factory v0.2.4 [INFO] [stderr] Checking utf-8 v0.7.5 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking pdqselect v0.1.0 [INFO] [stderr] Checking array_tool v1.0.3 [INFO] [stderr] Checking hashbag v0.1.2 [INFO] [stderr] Checking dtoa v0.4.5 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Checking glob v0.2.11 [INFO] [stderr] Checking cookie-factory v0.3.1 [INFO] [stderr] Checking resp v0.3.7 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking oorandom v11.1.0 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking unicode-normalization v0.1.12 [INFO] [stderr] Checking lock_api v0.4.1 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking instant v0.1.8 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking futures-channel v0.3.4 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Compiling generic-array v0.14.3 [INFO] [stderr] Compiling nom v5.1.1 [INFO] [stderr] Checking input_buffer v0.3.1 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Checking evmap v9.0.0 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Checking app_dirs2 v2.0.4 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking phf v0.7.24 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking parking_lot_core v0.8.0 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking dirs v1.0.5 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking termios v0.3.1 [INFO] [stderr] Checking clicolors-control v1.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.55 [INFO] [stderr] Compiling backtrace-sys v0.1.35 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking hash32 v0.1.1 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking mio v0.6.21 [INFO] [stderr] Checking parking_lot v0.11.0 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling lexical-core v0.6.2 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Checking smallstr v0.1.0 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Checking crossbeam-queue v0.2.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Compiling const-random-macro v0.1.8 [INFO] [stderr] Checking regex v1.3.6 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking rmp v0.8.9 [INFO] [stderr] Checking geo-types v0.4.3 [INFO] [stderr] Checking plotters v0.2.12 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking sled v0.34.4 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking as-slice v0.1.4 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking criterion-plot v0.4.1 [INFO] [stderr] Checking nanoid v0.3.0 [INFO] [stderr] Checking const-random v0.1.8 [INFO] [stderr] Checking backtrace v0.3.41 [INFO] [stderr] Checking ahash v0.3.2 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Checking env_logger v0.5.13 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking console v0.10.0 [INFO] [stderr] Compiling terminfo v0.6.1 [INFO] [stderr] Checking pretty_env_logger v0.2.5 [INFO] [stderr] Checking redis-protocol v1.0.0 (https://github.com/kevinmo13/redis-protocol.rs.git#70a1ef13) [INFO] [stderr] Checking tungstenite v0.10.1 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Checking mortal v0.2.1 [INFO] [stderr] Checking linefeed v0.6.0 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Checking tokio v0.2.15 [INFO] [stderr] Checking failure v0.1.7 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Checking geohash v0.9.0 [INFO] [stderr] Checking futures-executor v0.3.4 [INFO] [stderr] Checking futures v0.3.4 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking serde_json v1.0.51 [INFO] [stderr] Checking serde_yaml v0.8.11 [INFO] [stderr] Checking rmp-serde v0.14.3 [INFO] [stderr] Checking bincode v1.3.1 [INFO] [stderr] Checking dashmap v3.11.0 [INFO] [stderr] Checking rstar v0.8.2 [INFO] [stderr] Checking multimap v0.8.1 [INFO] [stderr] Checking bstr v0.2.12 [INFO] [stderr] Checking csv v1.1.3 [INFO] [stderr] Checking json_dotpath v1.0.2 [INFO] [stderr] Checking colored_json v2.1.0 [INFO] [stderr] Checking jsonpath_lib v0.2.4 [INFO] [stderr] Checking tinytemplate v1.0.3 [INFO] [stderr] Checking criterion v0.3.1 [INFO] [stderr] Checking escanor v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `next_char` is never read [INFO] [stdout] --> src/common/parser.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut next_char = '\0'; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `prev_char` is never read [INFO] [stdout] --> src/common/parser.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut prev_char = '\0'; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `Function`, `Prompter`, `Terminal` [INFO] [stdout] --> src/bin/cli/main.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use linefeed::{Command, Function, Interface, Prompter, ReadResult, Terminal, DefaultTerminal, Signal}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `COMMANDS` [INFO] [stdout] --> src/bin/cli/command.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / pub const COMMANDS: [&'static str; 17] = [ [INFO] [stdout] 2 | | "del", [INFO] [stdout] 3 | | "exists", [INFO] [stdout] 4 | | "geoadd", [INFO] [stdout] ... | [INFO] [stdout] 18 | | "set", [INFO] [stdout] 19 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEMO_FN_SEQ` [INFO] [stdout] --> src/bin/cli/main.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | const DEMO_FN_SEQ: &str = "\n^c"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BytesCodec`, `Framed`, `LinesCodec` [INFO] [stdout] --> src/bin/server/network.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio_util::codec::{BytesCodec, Decoder, LinesCodec, Framed}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shutdown` [INFO] [stdout] --> src/bin/server/network.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | use std::net::{SocketAddr,Shutdown}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::io::Error` [INFO] [stdout] --> src/bin/server/network.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | use futures::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_yaml::Value` [INFO] [stdout] --> src/bin/server/network.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | use serde_yaml::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLockWriteGuard` [INFO] [stdout] --> src/bin/server/db.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{Arc, RwLock, RwLockReadGuard, RwLockWriteGuard}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::DatabaseError` [INFO] [stdout] --> src/bin/server/db.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::error::DatabaseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `config` [INFO] [stdout] --> src/bin/server/db.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{config, unit_conv}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::core_reexport::num::ParseIntError` [INFO] [stdout] --> src/bin/server/db.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use futures::core_reexport::num::ParseIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bincode::ErrorKind` [INFO] [stdout] --> src/bin/server/db.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use bincode::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `IVec`, `MergeOperator` [INFO] [stdout] --> src/bin/server/db.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | use sled::{MergeOperator, Error, IVec}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BTreeSet` [INFO] [stdout] --> src/bin/server/db.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use std::collections::BTreeSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `redis_protocol::prelude::*` [INFO] [stdout] --> src/bin/server/printer.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use redis_protocol::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mapping` [INFO] [stdout] --> src/bin/server/config.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 48 | use serde_yaml::{Value, Mapping}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::ParseDataError` [INFO] [stdout] --> src/bin/server/syntax_analyzer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::error::ParseDataError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/server/config.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 67 | panic!("Config file not found"); [INFO] [stdout] | -------------------------------- any code following this expression is unreachable [INFO] [stdout] 68 | return Err("Config file not found".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/server/config.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 74 | panic!("Configuration file not loaded"); [INFO] [stdout] | ---------------------------------------- any code following this expression is unreachable [INFO] [stdout] 75 | return Err("Configuration file not loaded".to_owned()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::AsBytes` [INFO] [stdout] --> src/bin/server/network.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use nom::AsBytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::command::Command` [INFO] [stdout] --> src/bin/server/network.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::command::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Point` [INFO] [stdout] --> src/bin/server/db.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | use rstar::{RTree, Point}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::AsBytes` [INFO] [stdout] --> src/bin/server/config.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | use nom::AsBytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `default_log_flag` is never read [INFO] [stdout] --> src/bin/server/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let mut default_log_flag = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o` [INFO] [stdout] --> src/bin/server/db.rs:270:24 [INFO] [stdout] | [INFO] [stdout] 270 | (Data::Int(o), Data::Int(n)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_o` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o` [INFO] [stdout] --> src/bin/server/db.rs:274:26 [INFO] [stdout] | [INFO] [stdout] 274 | (Data::Float(o), Data::Float(n)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/bin/server/db.rs:412:19 [INFO] [stdout] | [INFO] [stdout] 412 | pub fn random_key(context: &Context, cmd: &RandomKeyCmd) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/bin/server/db.rs:412:38 [INFO] [stdout] | [INFO] [stdout] 412 | pub fn random_key(context: &Context, cmd: &RandomKeyCmd) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/bin/server/db.rs:492:16 [INFO] [stdout] | [INFO] [stdout] 492 | pub fn persist(context: &Context, cmd: &PersistCmd) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/bin/server/db.rs:492:35 [INFO] [stdout] | [INFO] [stdout] 492 | pub fn persist(context: &Context, cmd: &PersistCmd) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/bin/server/db.rs:496:12 [INFO] [stdout] | [INFO] [stdout] 496 | pub fn ttl(context: &Context, cmd: &TTLCmd) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/bin/server/db.rs:496:31 [INFO] [stdout] | [INFO] [stdout] 496 | pub fn ttl(context: &Context, cmd: &TTLCmd) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/bin/server/db.rs:500:15 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn expire(context: &Context, cmd: &ExpireCmd) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/bin/server/db.rs:500:34 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn expire(context: &Context, cmd: &ExpireCmd) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/bin/server/db.rs:504:18 [INFO] [stdout] | [INFO] [stdout] 504 | pub fn expire_at(context: &Context, cmd: &ExpireAtCmd) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/bin/server/db.rs:504:37 [INFO] [stdout] | [INFO] [stdout] 504 | pub fn expire_at(context: &Context, cmd: &ExpireAtCmd) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/server/db.rs:598:20 [INFO] [stdout] | [INFO] [stdout] 598 | Ok((k, v)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/bin/server/db.rs:856:23 [INFO] [stdout] | [INFO] [stdout] 856 | Data::GeoTree(t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/server/db.rs:864:20 [INFO] [stdout] | [INFO] [stdout] 864 | Ok(k) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/server/db.rs:1122:20 [INFO] [stdout] | [INFO] [stdout] 1122 | Ok(k) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/bin/server/db.rs:1188:9 [INFO] [stdout] | [INFO] [stdout] 1188 | let data = db.fetch_and_update(k, |old| -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/bin/server/db.rs:1259:9 [INFO] [stdout] | [INFO] [stdout] 1259 | let data = db.fetch_and_update(k, |old| -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> src/bin/server/util.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut r: f64 = 0.0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/server/geo.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/server/geo.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/server/geo.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/server/geo.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/bin/server/config.rs:89:72 [INFO] [stdout] | [INFO] [stdout] 89 | let conf: Conf = serde_yaml::from_slice(&contents).unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `null_value` [INFO] [stdout] --> src/bin/server/config.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let null_value = Value::Null; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_null_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default_d_name` [INFO] [stdout] --> src/bin/server/config.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let default_d_name = String::from("escdb"); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default_d_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/server/file_dirs.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | Err(e) => { return None; } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/db.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 278 | (Data::Json(mut o), Data::Json(n)) => { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/db.rs:992:24 [INFO] [stdout] | [INFO] [stdout] 992 | Data::Json(mut json_b) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/db.rs:1023:9 [INFO] [stdout] | [INFO] [stdout] 1023 | let mut json: Value = match serde_json::from_str(&cmd.arg_value) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/db.rs:1160:24 [INFO] [stdout] | [INFO] [stdout] 1160 | Data::Json(mut json_b) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/db.rs:1207:24 [INFO] [stdout] | [INFO] [stdout] 1207 | Data::Json(mut json_b) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/db.rs:1278:24 [INFO] [stdout] | [INFO] [stdout] 1278 | Data::Json(mut json_b) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/file_dirs.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut directory = PathBuf::from("/usr/lib/escanor"); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DATABASE_PATH_PREFIX` [INFO] [stdout] --> src/bin/server/db.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | const DATABASE_PATH_PREFIX: &str = "dbs/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_QUEUE_LOG_PATH` [INFO] [stdout] --> src/bin/server/db.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | const DEFAULT_QUEUE_LOG_PATH: &str = "logs/queue"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_items` [INFO] [stdout] --> src/bin/server/db.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn with_items(items: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `locate_at_point` [INFO] [stdout] --> src/bin/server/db.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn locate_at_point(&self, point: &[f64; 2]) -> Option<&GeoPoint2D> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `select` [INFO] [stdout] --> src/bin/server/db.rs:365:8 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn select() {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compile` [INFO] [stdout] --> src/bin/server/command.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn compile(buf: &[u8]) -> Result, error::SyntaxError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compile_raw` [INFO] [stdout] --> src/bin/server/command.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn compile_raw(cmd: &[u8]) -> Result, error::SyntaxError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compile_resp` [INFO] [stdout] --> src/bin/server/command.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn compile_resp(buf: &[u8]) -> Result, error::SyntaxError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/server/error.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn new(detail : &str) -> CustomMessageError{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/server/error.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn new(detail : &str) -> DatabaseError{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `JSON_PREFIX` [INFO] [stdout] --> src/bin/server/printer.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const JSON_PREFIX: &str = "?"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POINT_PREFIX` [INFO] [stdout] --> src/bin/server/printer.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const POINT_PREFIX: &str = "!"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_wrong_type_err` [INFO] [stdout] --> src/bin/server/printer.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn print_wrong_type_err() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_json` [INFO] [stdout] --> src/bin/server/util.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn is_json(json_str: &String) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_cord` [INFO] [stdout] --> src/bin/server/geo.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn set_cord(&mut self, x_cord: f64, y_cord: f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_x_cord` [INFO] [stdout] --> src/bin/server/geo.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn set_x_cord(&mut self, x_cord: f64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_y_cord` [INFO] [stdout] --> src/bin/server/geo.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn set_y_cord(&mut self, y_cord: f64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cord` [INFO] [stdout] --> src/bin/server/geo.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn get_cord(&self) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_tokens_from_resp` [INFO] [stdout] --> src/bin/server/tokenizer.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn generate_tokens_from_resp(buf: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_tokens` [INFO] [stdout] --> src/bin/server/tokenizer.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn generate_tokens(cmd: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MUTABLE_CONF_KEYS` [INFO] [stdout] --> src/bin/server/config.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | const MUTABLE_CONF_KEYS: [&str; 2] = ["database.save_after", "database.mutations"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_conf_by_key` [INFO] [stdout] --> src/bin/server/config.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn get_conf_by_key(key: &String) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dbs_path` [INFO] [stdout] --> src/bin/server/file_dirs.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn dbs_path() -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `db_file_path` [INFO] [stdout] --> src/bin/server/file_dirs.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn db_file_path() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | config::write_default_config_file().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/main.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | config::load_conf(true).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/main.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | network::start_up(addrs).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/network.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | lines.send(f.unwrap_or(Frame::Error("Internal Error".to_owned()))).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:383:5 [INFO] [stdout] | [INFO] [stdout] 383 | db.insert(k, v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:630:5 [INFO] [stdout] | [INFO] [stdout] 630 | db.merge(k, v); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:883:5 [INFO] [stdout] | [INFO] [stdout] 883 | / db.update_and_fetch(k, |old| -> Option> { [INFO] [stdout] 884 | | let data = match old { [INFO] [stdout] 885 | | None => { [INFO] [stdout] 886 | | Data::Null [INFO] [stdout] ... | [INFO] [stdout] 914 | | } [INFO] [stdout] 915 | | }); [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:965:5 [INFO] [stdout] | [INFO] [stdout] 965 | db.insert(k,v); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:973:5 [INFO] [stdout] | [INFO] [stdout] 973 | / db.fetch_and_update(k, |old| -> Option> { [INFO] [stdout] 974 | | let data = match old { [INFO] [stdout] 975 | | None => { [INFO] [stdout] 976 | | let json_b = serde_json::to_vec(&Value::Null).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 1014 | | } [INFO] [stdout] 1015 | | }); [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:1028:5 [INFO] [stdout] | [INFO] [stdout] 1028 | db.merge(k,v); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:1141:5 [INFO] [stdout] | [INFO] [stdout] 1141 | / db.fetch_and_update(k, |old| -> Option> { [INFO] [stdout] 1142 | | let data = match old { [INFO] [stdout] 1143 | | None => { [INFO] [stdout] 1144 | | let json_b = serde_json::to_vec(&Value::Null).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 1177 | | } [INFO] [stdout] 1178 | | }); [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:1214:21 [INFO] [stdout] | [INFO] [stdout] 1214 | json.dot_set(&cmd.arg_path.to_owned(), new_value.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:1240:17 [INFO] [stdout] | [INFO] [stdout] 1240 | json.dot_set(&cmd.arg_path, new_value.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:1285:21 [INFO] [stdout] | [INFO] [stdout] 1285 | json.dot_set(&cmd.arg_path.to_owned(), new_value.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:1312:17 [INFO] [stdout] | [INFO] [stdout] 1312 | json.dot_set(&cmd.arg_path, new_value.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/bin/server/config.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | load_conf(false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/file_dirs.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | std::fs::create_dir_all(directory.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/file_dirs.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | std::fs::create_dir_all(directory.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/file_dirs.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | std::fs::create_dir_all(directory.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `BytesMut::split_to` that must be used [INFO] [stdout] --> src/bin/server/codec.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | buf.split_to(consumed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider BytesMut::advance if you don't need the other half [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/codec.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | encode_bytes( dst, &item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 100 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_char` is never read [INFO] [stdout] --> src/common/parser.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut next_char = '\0'; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `prev_char` is never read [INFO] [stdout] --> src/common/parser.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut prev_char = '\0'; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `Function`, `Prompter`, `Terminal` [INFO] [stdout] --> src/bin/cli/main.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use linefeed::{Command, Function, Interface, Prompter, ReadResult, Terminal, DefaultTerminal, Signal}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `COMMANDS` [INFO] [stdout] --> src/bin/cli/command.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / pub const COMMANDS: [&'static str; 17] = [ [INFO] [stdout] 2 | | "del", [INFO] [stdout] 3 | | "exists", [INFO] [stdout] 4 | | "geoadd", [INFO] [stdout] ... | [INFO] [stdout] 18 | | "set", [INFO] [stdout] 19 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEMO_FN_SEQ` [INFO] [stdout] --> src/bin/cli/main.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | const DEMO_FN_SEQ: &str = "\n^c"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BytesCodec`, `Framed`, `LinesCodec` [INFO] [stdout] --> src/bin/server/network.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio_util::codec::{BytesCodec, Decoder, LinesCodec, Framed}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shutdown` [INFO] [stdout] --> src/bin/server/network.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | use std::net::{SocketAddr,Shutdown}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::io::Error` [INFO] [stdout] --> src/bin/server/network.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | use futures::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_yaml::Value` [INFO] [stdout] --> src/bin/server/network.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | use serde_yaml::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLockWriteGuard` [INFO] [stdout] --> src/bin/server/db.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{Arc, RwLock, RwLockReadGuard, RwLockWriteGuard}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::DatabaseError` [INFO] [stdout] --> src/bin/server/db.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::error::DatabaseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `config` [INFO] [stdout] --> src/bin/server/db.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{config, unit_conv}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::core_reexport::num::ParseIntError` [INFO] [stdout] --> src/bin/server/db.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use futures::core_reexport::num::ParseIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bincode::ErrorKind` [INFO] [stdout] --> src/bin/server/db.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use bincode::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `IVec`, `MergeOperator` [INFO] [stdout] --> src/bin/server/db.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | use sled::{MergeOperator, Error, IVec}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BTreeSet` [INFO] [stdout] --> src/bin/server/db.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use std::collections::BTreeSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `redis_protocol::prelude::*` [INFO] [stdout] --> src/bin/server/printer.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use redis_protocol::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mapping` [INFO] [stdout] --> src/bin/server/config.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 48 | use serde_yaml::{Value, Mapping}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::ParseDataError` [INFO] [stdout] --> src/bin/server/syntax_analyzer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::error::ParseDataError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/server/config.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 67 | panic!("Config file not found"); [INFO] [stdout] | -------------------------------- any code following this expression is unreachable [INFO] [stdout] 68 | return Err("Config file not found".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/server/config.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 74 | panic!("Configuration file not loaded"); [INFO] [stdout] | ---------------------------------------- any code following this expression is unreachable [INFO] [stdout] 75 | return Err("Configuration file not loaded".to_owned()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::AsBytes` [INFO] [stdout] --> src/bin/server/network.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use nom::AsBytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::command::Command` [INFO] [stdout] --> src/bin/server/network.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::command::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Point` [INFO] [stdout] --> src/bin/server/db.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | use rstar::{RTree, Point}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::AsBytes` [INFO] [stdout] --> src/bin/server/config.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | use nom::AsBytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `default_log_flag` is never read [INFO] [stdout] --> src/bin/server/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let mut default_log_flag = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o` [INFO] [stdout] --> src/bin/server/db.rs:270:24 [INFO] [stdout] | [INFO] [stdout] 270 | (Data::Int(o), Data::Int(n)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_o` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o` [INFO] [stdout] --> src/bin/server/db.rs:274:26 [INFO] [stdout] | [INFO] [stdout] 274 | (Data::Float(o), Data::Float(n)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/bin/server/db.rs:412:19 [INFO] [stdout] | [INFO] [stdout] 412 | pub fn random_key(context: &Context, cmd: &RandomKeyCmd) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/bin/server/db.rs:412:38 [INFO] [stdout] | [INFO] [stdout] 412 | pub fn random_key(context: &Context, cmd: &RandomKeyCmd) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/bin/server/db.rs:492:16 [INFO] [stdout] | [INFO] [stdout] 492 | pub fn persist(context: &Context, cmd: &PersistCmd) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/bin/server/db.rs:492:35 [INFO] [stdout] | [INFO] [stdout] 492 | pub fn persist(context: &Context, cmd: &PersistCmd) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/bin/server/db.rs:496:12 [INFO] [stdout] | [INFO] [stdout] 496 | pub fn ttl(context: &Context, cmd: &TTLCmd) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/bin/server/db.rs:496:31 [INFO] [stdout] | [INFO] [stdout] 496 | pub fn ttl(context: &Context, cmd: &TTLCmd) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/bin/server/db.rs:500:15 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn expire(context: &Context, cmd: &ExpireCmd) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/bin/server/db.rs:500:34 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn expire(context: &Context, cmd: &ExpireCmd) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/bin/server/db.rs:504:18 [INFO] [stdout] | [INFO] [stdout] 504 | pub fn expire_at(context: &Context, cmd: &ExpireAtCmd) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/bin/server/db.rs:504:37 [INFO] [stdout] | [INFO] [stdout] 504 | pub fn expire_at(context: &Context, cmd: &ExpireAtCmd) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/server/db.rs:598:20 [INFO] [stdout] | [INFO] [stdout] 598 | Ok((k, v)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/bin/server/db.rs:856:23 [INFO] [stdout] | [INFO] [stdout] 856 | Data::GeoTree(t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/server/db.rs:864:20 [INFO] [stdout] | [INFO] [stdout] 864 | Ok(k) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/server/db.rs:1122:20 [INFO] [stdout] | [INFO] [stdout] 1122 | Ok(k) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/bin/server/db.rs:1188:9 [INFO] [stdout] | [INFO] [stdout] 1188 | let data = db.fetch_and_update(k, |old| -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/bin/server/db.rs:1259:9 [INFO] [stdout] | [INFO] [stdout] 1259 | let data = db.fetch_and_update(k, |old| -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> src/bin/server/util.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut r: f64 = 0.0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/server/geo.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/server/geo.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/server/geo.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/server/geo.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/bin/server/config.rs:89:72 [INFO] [stdout] | [INFO] [stdout] 89 | let conf: Conf = serde_yaml::from_slice(&contents).unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `null_value` [INFO] [stdout] --> src/bin/server/config.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let null_value = Value::Null; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_null_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default_d_name` [INFO] [stdout] --> src/bin/server/config.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let default_d_name = String::from("escdb"); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default_d_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/server/file_dirs.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | Err(e) => { return None; } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/db.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 278 | (Data::Json(mut o), Data::Json(n)) => { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/db.rs:992:24 [INFO] [stdout] | [INFO] [stdout] 992 | Data::Json(mut json_b) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/db.rs:1023:9 [INFO] [stdout] | [INFO] [stdout] 1023 | let mut json: Value = match serde_json::from_str(&cmd.arg_value) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/db.rs:1160:24 [INFO] [stdout] | [INFO] [stdout] 1160 | Data::Json(mut json_b) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/db.rs:1207:24 [INFO] [stdout] | [INFO] [stdout] 1207 | Data::Json(mut json_b) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/db.rs:1278:24 [INFO] [stdout] | [INFO] [stdout] 1278 | Data::Json(mut json_b) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server/file_dirs.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut directory = PathBuf::from("/usr/lib/escanor"); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DATABASE_PATH_PREFIX` [INFO] [stdout] --> src/bin/server/db.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | const DATABASE_PATH_PREFIX: &str = "dbs/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_QUEUE_LOG_PATH` [INFO] [stdout] --> src/bin/server/db.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | const DEFAULT_QUEUE_LOG_PATH: &str = "logs/queue"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_items` [INFO] [stdout] --> src/bin/server/db.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn with_items(items: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `locate_at_point` [INFO] [stdout] --> src/bin/server/db.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn locate_at_point(&self, point: &[f64; 2]) -> Option<&GeoPoint2D> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `select` [INFO] [stdout] --> src/bin/server/db.rs:365:8 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn select() {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compile` [INFO] [stdout] --> src/bin/server/command.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn compile(buf: &[u8]) -> Result, error::SyntaxError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compile_raw` [INFO] [stdout] --> src/bin/server/command.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn compile_raw(cmd: &[u8]) -> Result, error::SyntaxError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compile_resp` [INFO] [stdout] --> src/bin/server/command.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn compile_resp(buf: &[u8]) -> Result, error::SyntaxError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/server/error.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn new(detail : &str) -> CustomMessageError{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/server/error.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn new(detail : &str) -> DatabaseError{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `JSON_PREFIX` [INFO] [stdout] --> src/bin/server/printer.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const JSON_PREFIX: &str = "?"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POINT_PREFIX` [INFO] [stdout] --> src/bin/server/printer.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const POINT_PREFIX: &str = "!"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_wrong_type_err` [INFO] [stdout] --> src/bin/server/printer.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn print_wrong_type_err() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_json` [INFO] [stdout] --> src/bin/server/util.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn is_json(json_str: &String) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_cord` [INFO] [stdout] --> src/bin/server/geo.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn set_cord(&mut self, x_cord: f64, y_cord: f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_x_cord` [INFO] [stdout] --> src/bin/server/geo.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn set_x_cord(&mut self, x_cord: f64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_y_cord` [INFO] [stdout] --> src/bin/server/geo.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn set_y_cord(&mut self, y_cord: f64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cord` [INFO] [stdout] --> src/bin/server/geo.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn get_cord(&self) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_tokens_from_resp` [INFO] [stdout] --> src/bin/server/tokenizer.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn generate_tokens_from_resp(buf: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_tokens` [INFO] [stdout] --> src/bin/server/tokenizer.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn generate_tokens(cmd: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MUTABLE_CONF_KEYS` [INFO] [stdout] --> src/bin/server/config.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | const MUTABLE_CONF_KEYS: [&str; 2] = ["database.save_after", "database.mutations"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_conf_by_key` [INFO] [stdout] --> src/bin/server/config.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn get_conf_by_key(key: &String) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dbs_path` [INFO] [stdout] --> src/bin/server/file_dirs.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn dbs_path() -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `db_file_path` [INFO] [stdout] --> src/bin/server/file_dirs.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn db_file_path() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | config::write_default_config_file().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/main.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | config::load_conf(true).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/main.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | network::start_up(addrs).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/network.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | lines.send(f.unwrap_or(Frame::Error("Internal Error".to_owned()))).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:383:5 [INFO] [stdout] | [INFO] [stdout] 383 | db.insert(k, v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:630:5 [INFO] [stdout] | [INFO] [stdout] 630 | db.merge(k, v); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:883:5 [INFO] [stdout] | [INFO] [stdout] 883 | / db.update_and_fetch(k, |old| -> Option> { [INFO] [stdout] 884 | | let data = match old { [INFO] [stdout] 885 | | None => { [INFO] [stdout] 886 | | Data::Null [INFO] [stdout] ... | [INFO] [stdout] 914 | | } [INFO] [stdout] 915 | | }); [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:965:5 [INFO] [stdout] | [INFO] [stdout] 965 | db.insert(k,v); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:973:5 [INFO] [stdout] | [INFO] [stdout] 973 | / db.fetch_and_update(k, |old| -> Option> { [INFO] [stdout] 974 | | let data = match old { [INFO] [stdout] 975 | | None => { [INFO] [stdout] 976 | | let json_b = serde_json::to_vec(&Value::Null).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 1014 | | } [INFO] [stdout] 1015 | | }); [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:1028:5 [INFO] [stdout] | [INFO] [stdout] 1028 | db.merge(k,v); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:1141:5 [INFO] [stdout] | [INFO] [stdout] 1141 | / db.fetch_and_update(k, |old| -> Option> { [INFO] [stdout] 1142 | | let data = match old { [INFO] [stdout] 1143 | | None => { [INFO] [stdout] 1144 | | let json_b = serde_json::to_vec(&Value::Null).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 1177 | | } [INFO] [stdout] 1178 | | }); [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:1214:21 [INFO] [stdout] | [INFO] [stdout] 1214 | json.dot_set(&cmd.arg_path.to_owned(), new_value.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:1240:17 [INFO] [stdout] | [INFO] [stdout] 1240 | json.dot_set(&cmd.arg_path, new_value.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:1285:21 [INFO] [stdout] | [INFO] [stdout] 1285 | json.dot_set(&cmd.arg_path.to_owned(), new_value.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/db.rs:1312:17 [INFO] [stdout] | [INFO] [stdout] 1312 | json.dot_set(&cmd.arg_path, new_value.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/bin/server/config.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | load_conf(false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/file_dirs.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | std::fs::create_dir_all(directory.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/file_dirs.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | std::fs::create_dir_all(directory.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/file_dirs.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | std::fs::create_dir_all(directory.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `BytesMut::split_to` that must be used [INFO] [stdout] --> src/bin/server/codec.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | buf.split_to(consumed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider BytesMut::advance if you don't need the other half [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/server/codec.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | encode_bytes( dst, &item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 100 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 32s [INFO] running `Command { std: "docker" "inspect" "3b1977395f9f1497ae18f58349aca5a78f7d47c0134bb29ec7f80f687154a604", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b1977395f9f1497ae18f58349aca5a78f7d47c0134bb29ec7f80f687154a604", kill_on_drop: false }` [INFO] [stdout] 3b1977395f9f1497ae18f58349aca5a78f7d47c0134bb29ec7f80f687154a604