[INFO] cloning repository https://github.com/Pilsertech/HelixDB-MCP-Server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Pilsertech/HelixDB-MCP-Server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPilsertech%2FHelixDB-MCP-Server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPilsertech%2FHelixDB-MCP-Server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7203ec4448c0b233389911746c02601486cf23eb [INFO] linting Pilsertech/HelixDB-MCP-Server against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPilsertech%2FHelixDB-MCP-Server" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Pilsertech/HelixDB-MCP-Server [INFO] finished tweaking git repo https://github.com/Pilsertech/HelixDB-MCP-Server [INFO] tweaked toml for git repo https://github.com/Pilsertech/HelixDB-MCP-Server written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Pilsertech/HelixDB-MCP-Server on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Pilsertech/HelixDB-MCP-Server 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.104 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.104 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.104 [INFO] [stderr] Downloaded unicode-ident v1.0.20 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.54 [INFO] [stderr] Downloaded ref-cast-impl v1.0.25 [INFO] [stderr] Downloaded darling_macro v0.21.3 [INFO] [stderr] Downloaded rmcp-macros v0.8.3 [INFO] [stderr] Downloaded ref-cast v1.0.25 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.104 [INFO] [stderr] Downloaded tempfile v3.23.0 [INFO] [stderr] Downloaded darling v0.21.3 [INFO] [stderr] Downloaded socket2 v0.6.1 [INFO] [stderr] Downloaded openssl-sys v0.9.110 [INFO] [stderr] Downloaded darling_core v0.21.3 [INFO] [stderr] Downloaded cc v1.2.43 [INFO] [stderr] Downloaded indexmap v2.12.0 [INFO] [stderr] Downloaded mio v1.1.0 [INFO] [stderr] Downloaded hashbrown v0.16.0 [INFO] [stderr] Downloaded winnow v0.7.13 [INFO] [stderr] Downloaded rmcp v0.8.3 [INFO] [stderr] Downloaded tracing-subscriber v0.3.20 [INFO] [stderr] Downloaded zerocopy-derive v0.8.27 [INFO] [stderr] Downloaded js-sys v0.3.81 [INFO] [stderr] Downloaded openssl v0.10.74 [INFO] [stderr] Downloaded zerocopy v0.8.27 [INFO] [stderr] Downloaded syn v2.0.108 [INFO] [stderr] Downloaded proc-macro2 v1.0.103 [INFO] [stderr] Downloaded wasm-bindgen v0.2.104 [INFO] [stderr] Downloaded schemars_derive v1.0.4 [INFO] [stderr] Downloaded sse-stream v0.2.1 [INFO] [stderr] Downloaded web-sys v0.3.81 [INFO] [stderr] Downloaded tokio v1.48.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76fda72da22ef5898536389bda4469b702d02eed4d0f1d6fa51e48022ca14326 [INFO] running `Command { std: "docker" "start" "-a" "76fda72da22ef5898536389bda4469b702d02eed4d0f1d6fa51e48022ca14326", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76fda72da22ef5898536389bda4469b702d02eed4d0f1d6fa51e48022ca14326", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76fda72da22ef5898536389bda4469b702d02eed4d0f1d6fa51e48022ca14326", kill_on_drop: false }` [INFO] [stdout] 76fda72da22ef5898536389bda4469b702d02eed4d0f1d6fa51e48022ca14326 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 107c3aeec91e5b0a806e5ea07a3ea4a66f3036c89dbc74673511dd90b0547ab8 [INFO] running `Command { std: "docker" "start" "-a" "107c3aeec91e5b0a806e5ea07a3ea4a66f3036c89dbc74673511dd90b0547ab8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Checking cfg-if v1.0.4 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling find-msvc-tools v0.1.4 [INFO] [stderr] Checking lock_api v0.4.14 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Compiling cc v1.2.43 [INFO] [stderr] Compiling openssl v0.10.74 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Compiling ref-cast v1.0.25 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Checking iana-time-zone v0.1.64 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Checking regex-syntax v0.8.8 [INFO] [stderr] Checking dyn-clone v1.0.20 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Checking winnow v0.7.13 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking nu-ansi-term v0.50.3 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking rmp v0.8.14 [INFO] [stderr] Compiling openssl-sys v0.9.110 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking mio v1.1.0 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling schemars_derive v1.0.4 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Compiling rmcp-macros v0.8.3 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking rmp-serde v1.3.0 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking sse-stream v0.2.1 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking schemars v1.0.4 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking rmcp v0.8.3 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking helix-mcp-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/server/mod.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / /// - HTTP: Hyper-based HTTP server for REST-like access [INFO] [stdout] 6 | | [INFO] [stdout] | |_^ [INFO] [stdout] 7 | pub mod tcp_server; [INFO] [stdout] | ------------------ the comment documents this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! Server transport modules for MCP [INFO] [stdout] 2 ~ //! [INFO] [stdout] 3 ~ //! This module provides multiple transport options: [INFO] [stdout] 4 ~ //! - TCP: Direct TCP socket connections [INFO] [stdout] 5 ~ //! - HTTP: Hyper-based HTTP server for REST-like access [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/server/tcp_server.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / /// - tcp_keepalive: Detect broken connections automatically [INFO] [stdout] 12 | | [INFO] [stdout] | |_^ [INFO] [stdout] 13 | use anyhow::Result; [INFO] [stdout] | - the comment documents this `use` import [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! TCP Transport Server for MCP [INFO] [stdout] 2 ~ //! [INFO] [stdout] 3 ~ //! This module provides a simple TCP server that accepts connections [INFO] [stdout] 4 ~ //! and serves the MCP protocol over TCP without any authentication. [INFO] [stdout] 5 ~ //! [INFO] [stdout] 6 ~ //! Each connection is handled independently, making it easy for clients [INFO] [stdout] 7 ~ //! to connect and start using MCP tools immediately. [INFO] [stdout] 8 ~ //! [INFO] [stdout] 9 ~ //! Performance optimizations are configurable via mcpconfig.toml: [INFO] [stdout] 10 ~ //! - tcp_nodelay: Disable Nagle's algorithm for low latency [INFO] [stdout] 11 ~ //! - tcp_keepalive: Detect broken connections automatically [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/server/http_server.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / /// - CORS headers for browser access [INFO] [stdout] 13 | | [INFO] [stdout] | |_^ [INFO] [stdout] 14 | use anyhow::Result; [INFO] [stdout] | - the comment documents this `use` import [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! HTTP Transport Server for MCP using RMCP's StreamableHttpService [INFO] [stdout] 2 ~ //! [INFO] [stdout] 3 ~ //! This module provides an HTTP server that uses RMCP's built-in streamable HTTP [INFO] [stdout] 4 ~ //! transport, which provides full MCP protocol support including all tools and resources. [INFO] [stdout] 5 ~ //! [INFO] [stdout] 6 ~ //! The server uses Hyper + Tower for HTTP handling and RMCP's StreamableHttpService [INFO] [stdout] 7 ~ //! for the MCP protocol layer. This provides: [INFO] [stdout] 8 ~ //! - Full JSON-RPC 2.0 protocol over HTTP [INFO] [stdout] 9 ~ //! - Server-Sent Events (SSE) for streaming responses [INFO] [stdout] 10 ~ //! - Complete tool and resource access (same as TCP/STDIO) [INFO] [stdout] 11 ~ //! - Session management for stateful connections [INFO] [stdout] 12 ~ //! - CORS headers for browser access [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/server/mod.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / /// - HTTP: Hyper-based HTTP server for REST-like access [INFO] [stdout] 6 | | [INFO] [stdout] | |_^ [INFO] [stdout] 7 | pub mod tcp_server; [INFO] [stdout] | ------------------ the comment documents this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! Server transport modules for MCP [INFO] [stdout] 2 ~ //! [INFO] [stdout] 3 ~ //! This module provides multiple transport options: [INFO] [stdout] 4 ~ //! - TCP: Direct TCP socket connections [INFO] [stdout] 5 ~ //! - HTTP: Hyper-based HTTP server for REST-like access [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/server/tcp_server.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / /// - tcp_keepalive: Detect broken connections automatically [INFO] [stdout] 12 | | [INFO] [stdout] | |_^ [INFO] [stdout] 13 | use anyhow::Result; [INFO] [stdout] | - the comment documents this `use` import [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! TCP Transport Server for MCP [INFO] [stdout] 2 ~ //! [INFO] [stdout] 3 ~ //! This module provides a simple TCP server that accepts connections [INFO] [stdout] 4 ~ //! and serves the MCP protocol over TCP without any authentication. [INFO] [stdout] 5 ~ //! [INFO] [stdout] 6 ~ //! Each connection is handled independently, making it easy for clients [INFO] [stdout] 7 ~ //! to connect and start using MCP tools immediately. [INFO] [stdout] 8 ~ //! [INFO] [stdout] 9 ~ //! Performance optimizations are configurable via mcpconfig.toml: [INFO] [stdout] 10 ~ //! - tcp_nodelay: Disable Nagle's algorithm for low latency [INFO] [stdout] 11 ~ //! - tcp_keepalive: Detect broken connections automatically [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/server/http_server.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / /// - CORS headers for browser access [INFO] [stdout] 13 | | [INFO] [stdout] | |_^ [INFO] [stdout] 14 | use anyhow::Result; [INFO] [stdout] | - the comment documents this `use` import [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! HTTP Transport Server for MCP using RMCP's StreamableHttpService [INFO] [stdout] 2 ~ //! [INFO] [stdout] 3 ~ //! This module provides an HTTP server that uses RMCP's built-in streamable HTTP [INFO] [stdout] 4 ~ //! transport, which provides full MCP protocol support including all tools and resources. [INFO] [stdout] 5 ~ //! [INFO] [stdout] 6 ~ //! The server uses Hyper + Tower for HTTP handling and RMCP's StreamableHttpService [INFO] [stdout] 7 ~ //! for the MCP protocol layer. This provides: [INFO] [stdout] 8 ~ //! - Full JSON-RPC 2.0 protocol over HTTP [INFO] [stdout] 9 ~ //! - Server-Sent Events (SSE) for streaming responses [INFO] [stdout] 10 ~ //! - Complete tool and resource access (same as TCP/STDIO) [INFO] [stdout] 11 ~ //! - Session management for stateful connections [INFO] [stdout] 12 ~ //! - CORS headers for browser access [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryRequest` is never constructed [INFO] [stdout] --> src/helix_client.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct QueryRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/helix_client.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl HelixClient { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub async fn next(&self, connection_id: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub async fn collect(&self, connection_id: &str, range: Option<(usize, usize)>, drop: bool) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub async fn reset(&self, connection_id: &str) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub async fn schema_resource(&self, connection_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub async fn n_from_type(&self, connection_id: &str, node_type: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub async fn e_from_type(&self, connection_id: &str, edge_type: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub async fn out_step(&self, connection_id: &str, edge_label: &str, edge_type: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub async fn out_e_step(&self, connection_id: &str, edge_label: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub async fn in_step(&self, connection_id: &str, edge_label: &str, edge_type: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub async fn in_e_step(&self, connection_id: &str, edge_label: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub async fn filter_items(&self, connection_id: &str, filter: Value) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub async fn search_vector(&self, connection_id: &str, vector: Vec, k: usize, min_score: Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub async fn search_vector_text(&self, connection_id: &str, query: &str, label: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub async fn search_keyword(&self, connection_id: &str, query: &str, label: &str, limit: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QuerySession` is never constructed [INFO] [stdout] --> src/session.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct QuerySession { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `next`, `collect_all`, and `has_more` are never used [INFO] [stdout] --> src/session.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl QuerySession { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(query: String, results: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn next(&mut self, limit: usize) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn collect_all(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn has_more(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SessionManager` is never constructed [INFO] [stdout] --> src/session.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct SessionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_session`, `get_session`, `remove_session`, and `cleanup_old_sessions` are never used [INFO] [stdout] --> src/session.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl SessionManager { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 59 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn create_session(&mut self, query: String, results: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn get_session(&mut self, session_id: &str) -> Option<&mut QuerySession> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn remove_session(&mut self, session_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn cleanup_old_sessions(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_embedding_api_url` is never used [INFO] [stdout] --> src/config.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 148 | impl Config { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn get_embedding_api_url(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `test_connection` is never used [INFO] [stdout] --> src/embedding_client.rs:230:18 [INFO] [stdout] | [INFO] [stdout] 58 | impl EmbeddingClient { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 230 | pub async fn test_connection(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryRequest` is never constructed [INFO] [stdout] --> src/helix_client.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct QueryRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/helix_client.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl HelixClient { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub async fn next(&self, connection_id: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub async fn collect(&self, connection_id: &str, range: Option<(usize, usize)>, drop: bool) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub async fn reset(&self, connection_id: &str) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub async fn schema_resource(&self, connection_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub async fn n_from_type(&self, connection_id: &str, node_type: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub async fn e_from_type(&self, connection_id: &str, edge_type: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub async fn out_step(&self, connection_id: &str, edge_label: &str, edge_type: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub async fn out_e_step(&self, connection_id: &str, edge_label: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub async fn in_step(&self, connection_id: &str, edge_label: &str, edge_type: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub async fn in_e_step(&self, connection_id: &str, edge_label: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub async fn filter_items(&self, connection_id: &str, filter: Value) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub async fn search_vector(&self, connection_id: &str, vector: Vec, k: usize, min_score: Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub async fn search_vector_text(&self, connection_id: &str, query: &str, label: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub async fn search_keyword(&self, connection_id: &str, query: &str, label: &str, limit: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QuerySession` is never constructed [INFO] [stdout] --> src/session.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct QuerySession { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `next`, `collect_all`, and `has_more` are never used [INFO] [stdout] --> src/session.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl QuerySession { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(query: String, results: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn next(&mut self, limit: usize) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn collect_all(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn has_more(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SessionManager` is never constructed [INFO] [stdout] --> src/session.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct SessionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_session`, `get_session`, `remove_session`, and `cleanup_old_sessions` are never used [INFO] [stdout] --> src/session.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl SessionManager { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 59 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn create_session(&mut self, query: String, results: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn get_session(&mut self, session_id: &str) -> Option<&mut QuerySession> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn remove_session(&mut self, session_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn cleanup_old_sessions(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_embedding_api_url` is never used [INFO] [stdout] --> src/config.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 148 | impl Config { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn get_embedding_api_url(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `test_connection` is never used [INFO] [stdout] --> src/embedding_client.rs:230:18 [INFO] [stdout] | [INFO] [stdout] 58 | impl EmbeddingClient { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 230 | pub async fn test_connection(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1315:20 [INFO] [stdout] | [INFO] [stdout] 1315 | if !data.get("product_category").is_some() { data["product_category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("product_category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1316:20 [INFO] [stdout] | [INFO] [stdout] 1316 | if !data.get("currency").is_some() { data["currency"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("currency").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1317:20 [INFO] [stdout] | [INFO] [stdout] 1317 | if !data.get("availability").is_some() { data["availability"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("availability").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1318:20 [INFO] [stdout] | [INFO] [stdout] 1318 | if !data.get("description").is_some() { data["description"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("description").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1319:20 [INFO] [stdout] | [INFO] [stdout] 1319 | if !data.get("competitor_analysis").is_some() { data["competitor_analysis"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("competitor_analysis").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1322:20 [INFO] [stdout] | [INFO] [stdout] 1322 | if !data.get("price").is_some() { data["price"] = json!(0.0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("price").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1325:20 [INFO] [stdout] | [INFO] [stdout] 1325 | if !data.get("specifications").is_some() { data["specifications"] = json!("{}"); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("specifications").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1326:20 [INFO] [stdout] | [INFO] [stdout] 1326 | if !data.get("seasonal_trends").is_some() { data["seasonal_trends"] = json!("{}"); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("seasonal_trends").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1330:20 [INFO] [stdout] | [INFO] [stdout] 1330 | if !data.get("features").is_some() { data["features"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("features").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1331:20 [INFO] [stdout] | [INFO] [stdout] 1331 | if !data.get("tags").is_some() { data["tags"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tags").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1332:20 [INFO] [stdout] | [INFO] [stdout] 1332 | if !data.get("seo_keywords").is_some() { data["seo_keywords"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("seo_keywords").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1336:20 [INFO] [stdout] | [INFO] [stdout] 1336 | if !data.get("service_category").is_some() { data["service_category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("service_category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1337:20 [INFO] [stdout] | [INFO] [stdout] 1337 | if !data.get("currency").is_some() { data["currency"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("currency").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1338:20 [INFO] [stdout] | [INFO] [stdout] 1338 | if !data.get("availability").is_some() { data["availability"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("availability").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1339:20 [INFO] [stdout] | [INFO] [stdout] 1339 | if !data.get("description").is_some() { data["description"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("description").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1342:20 [INFO] [stdout] | [INFO] [stdout] 1342 | if !data.get("price").is_some() { data["price"] = json!(0.0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("price").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1343:20 [INFO] [stdout] | [INFO] [stdout] 1343 | if !data.get("duration_minutes").is_some() { data["duration_minutes"] = json!(60); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("duration_minutes").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1346:20 [INFO] [stdout] | [INFO] [stdout] 1346 | if !data.get("requirements").is_some() { data["requirements"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("requirements").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1347:20 [INFO] [stdout] | [INFO] [stdout] 1347 | if !data.get("deliverables").is_some() { data["deliverables"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("deliverables").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1348:20 [INFO] [stdout] | [INFO] [stdout] 1348 | if !data.get("tags").is_some() { data["tags"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tags").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1352:20 [INFO] [stdout] | [INFO] [stdout] 1352 | if !data.get("location_name").is_some() { data["location_name"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("location_name").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1353:20 [INFO] [stdout] | [INFO] [stdout] 1353 | if !data.get("address").is_some() { data["address"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("address").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1354:20 [INFO] [stdout] | [INFO] [stdout] 1354 | if !data.get("city").is_some() { data["city"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("city").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1355:20 [INFO] [stdout] | [INFO] [stdout] 1355 | if !data.get("state").is_some() { data["state"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("state").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1356:20 [INFO] [stdout] | [INFO] [stdout] 1356 | if !data.get("country").is_some() { data["country"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("country").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1357:20 [INFO] [stdout] | [INFO] [stdout] 1357 | if !data.get("postal_code").is_some() { data["postal_code"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("postal_code").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1358:20 [INFO] [stdout] | [INFO] [stdout] 1358 | if !data.get("location_type").is_some() { data["location_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("location_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1359:20 [INFO] [stdout] | [INFO] [stdout] 1359 | if !data.get("parking_info").is_some() { data["parking_info"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("parking_info").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1362:20 [INFO] [stdout] | [INFO] [stdout] 1362 | if !data.get("latitude").is_some() { data["latitude"] = json!(0.0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("latitude").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1363:20 [INFO] [stdout] | [INFO] [stdout] 1363 | if !data.get("longitude").is_some() { data["longitude"] = json!(0.0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("longitude").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1366:20 [INFO] [stdout] | [INFO] [stdout] 1366 | if !data.get("accessibility").is_some() { data["accessibility"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("accessibility").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1370:20 [INFO] [stdout] | [INFO] [stdout] 1370 | if !data.get("schedule_type").is_some() { data["schedule_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("schedule_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1371:20 [INFO] [stdout] | [INFO] [stdout] 1371 | if !data.get("monday_open").is_some() { data["monday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("monday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1372:20 [INFO] [stdout] | [INFO] [stdout] 1372 | if !data.get("monday_close").is_some() { data["monday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("monday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1373:20 [INFO] [stdout] | [INFO] [stdout] 1373 | if !data.get("tuesday_open").is_some() { data["tuesday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tuesday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1374:20 [INFO] [stdout] | [INFO] [stdout] 1374 | if !data.get("tuesday_close").is_some() { data["tuesday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tuesday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1375:20 [INFO] [stdout] | [INFO] [stdout] 1375 | if !data.get("wednesday_open").is_some() { data["wednesday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("wednesday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1376:20 [INFO] [stdout] | [INFO] [stdout] 1376 | if !data.get("wednesday_close").is_some() { data["wednesday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("wednesday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1377:20 [INFO] [stdout] | [INFO] [stdout] 1377 | if !data.get("thursday_open").is_some() { data["thursday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("thursday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1378:20 [INFO] [stdout] | [INFO] [stdout] 1378 | if !data.get("thursday_close").is_some() { data["thursday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("thursday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1379:20 [INFO] [stdout] | [INFO] [stdout] 1379 | if !data.get("friday_open").is_some() { data["friday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("friday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1380:20 [INFO] [stdout] | [INFO] [stdout] 1380 | if !data.get("friday_close").is_some() { data["friday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("friday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1381:20 [INFO] [stdout] | [INFO] [stdout] 1381 | if !data.get("saturday_open").is_some() { data["saturday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("saturday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1382:20 [INFO] [stdout] | [INFO] [stdout] 1382 | if !data.get("saturday_close").is_some() { data["saturday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("saturday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1383:20 [INFO] [stdout] | [INFO] [stdout] 1383 | if !data.get("sunday_open").is_some() { data["sunday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("sunday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1384:20 [INFO] [stdout] | [INFO] [stdout] 1384 | if !data.get("sunday_close").is_some() { data["sunday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("sunday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1385:20 [INFO] [stdout] | [INFO] [stdout] 1385 | if !data.get("timezone").is_some() { data["timezone"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("timezone").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1388:20 [INFO] [stdout] | [INFO] [stdout] 1388 | if !data.get("exceptions").is_some() { data["exceptions"] = json!("{}"); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("exceptions").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1392:20 [INFO] [stdout] | [INFO] [stdout] 1392 | if !data.get("handle").is_some() { data["handle"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("handle").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1393:20 [INFO] [stdout] | [INFO] [stdout] 1393 | if !data.get("profile_url").is_some() { data["profile_url"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("profile_url").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1394:20 [INFO] [stdout] | [INFO] [stdout] 1394 | if !data.get("description").is_some() { data["description"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("description").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1395:20 [INFO] [stdout] | [INFO] [stdout] 1395 | if !data.get("contact_info").is_some() { data["contact_info"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("contact_info").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1398:20 [INFO] [stdout] | [INFO] [stdout] 1398 | if !data.get("follower_count").is_some() { data["follower_count"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("follower_count").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1399:20 [INFO] [stdout] | [INFO] [stdout] 1399 | if !data.get("post_count").is_some() { data["post_count"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("post_count").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1402:20 [INFO] [stdout] | [INFO] [stdout] 1402 | if !data.get("last_updated").is_some() { data["last_updated"] = json!(timestamp); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("last_updated").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1406:20 [INFO] [stdout] | [INFO] [stdout] 1406 | if !data.get("policy_type").is_some() { data["policy_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("policy_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1407:20 [INFO] [stdout] | [INFO] [stdout] 1407 | if !data.get("content").is_some() { data["content"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("content").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1408:20 [INFO] [stdout] | [INFO] [stdout] 1408 | if !data.get("version").is_some() { data["version"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("version").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1411:20 [INFO] [stdout] | [INFO] [stdout] 1411 | if !data.get("is_active").is_some() { data["is_active"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("is_active").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1414:20 [INFO] [stdout] | [INFO] [stdout] 1414 | if !data.get("tags").is_some() { data["tags"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tags").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1417:20 [INFO] [stdout] | [INFO] [stdout] 1417 | if !data.get("effective_date").is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("effective_date").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1423:20 [INFO] [stdout] | [INFO] [stdout] 1423 | if !data.get("event_type").is_some() { data["event_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("event_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1424:20 [INFO] [stdout] | [INFO] [stdout] 1424 | if !data.get("description").is_some() { data["description"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("description").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1425:20 [INFO] [stdout] | [INFO] [stdout] 1425 | if !data.get("location").is_some() { data["location"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("location").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1428:20 [INFO] [stdout] | [INFO] [stdout] 1428 | if !data.get("capacity").is_some() { data["capacity"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("capacity").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1431:20 [INFO] [stdout] | [INFO] [stdout] 1431 | if !data.get("registration_required").is_some() { data["registration_required"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("registration_required").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1434:20 [INFO] [stdout] | [INFO] [stdout] 1434 | if !data.get("tags").is_some() { data["tags"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tags").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1437:20 [INFO] [stdout] | [INFO] [stdout] 1437 | if !data.get("start_date").is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("start_date").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1440:20 [INFO] [stdout] | [INFO] [stdout] 1440 | if !data.get("end_date").is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("end_date").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1446:20 [INFO] [stdout] | [INFO] [stdout] 1446 | if !data.get("info_type").is_some() { data["info_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("info_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1447:20 [INFO] [stdout] | [INFO] [stdout] 1447 | if !data.get("content").is_some() { data["content"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("content").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1448:20 [INFO] [stdout] | [INFO] [stdout] 1448 | if !data.get("category").is_some() { data["category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1451:20 [INFO] [stdout] | [INFO] [stdout] 1451 | if !data.get("tags").is_some() { data["tags"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tags").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1232:17 [INFO] [stdout] | [INFO] [stdout] 1232 | / if data.get("product_name").is_none() { [INFO] [stdout] 1233 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1234 | | "error": "product_name is required for product memory type" [INFO] [stdout] 1235 | | }))); [INFO] [stdout] 1236 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1231 ~ "product" [INFO] [stdout] 1232 ~ if data.get("product_name").is_none() => { [INFO] [stdout] 1233 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1234 | "error": "product_name is required for product memory type" [INFO] [stdout] 1235 | }))); [INFO] [stdout] 1236 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1239:17 [INFO] [stdout] | [INFO] [stdout] 1239 | / if data.get("service_name").is_none() { [INFO] [stdout] 1240 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1241 | | "error": "service_name is required for service memory type" [INFO] [stdout] 1242 | | }))); [INFO] [stdout] 1243 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1238 ~ "service" [INFO] [stdout] 1239 ~ if data.get("service_name").is_none() => { [INFO] [stdout] 1240 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1241 | "error": "service_name is required for service memory type" [INFO] [stdout] 1242 | }))); [INFO] [stdout] 1243 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1246:17 [INFO] [stdout] | [INFO] [stdout] 1246 | / if data.get("location_name").is_none() { [INFO] [stdout] 1247 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1248 | | "error": "location_name is required for location memory type" [INFO] [stdout] 1249 | | }))); [INFO] [stdout] 1250 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1245 ~ "location" [INFO] [stdout] 1246 ~ if data.get("location_name").is_none() => { [INFO] [stdout] 1247 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1248 | "error": "location_name is required for location memory type" [INFO] [stdout] 1249 | }))); [INFO] [stdout] 1250 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1253:17 [INFO] [stdout] | [INFO] [stdout] 1253 | / if data.get("policy_name").is_none() { [INFO] [stdout] 1254 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1255 | | "error": "policy_name is required for policy memory type" [INFO] [stdout] 1256 | | }))); [INFO] [stdout] 1257 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1252 ~ "policy" [INFO] [stdout] 1253 ~ if data.get("policy_name").is_none() => { [INFO] [stdout] 1254 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1255 | "error": "policy_name is required for policy memory type" [INFO] [stdout] 1256 | }))); [INFO] [stdout] 1257 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1260:17 [INFO] [stdout] | [INFO] [stdout] 1260 | / if data.get("event_name").is_none() { [INFO] [stdout] 1261 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1262 | | "error": "event_name is required for event memory type" [INFO] [stdout] 1263 | | }))); [INFO] [stdout] 1264 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1259 ~ "event" [INFO] [stdout] 1260 ~ if data.get("event_name").is_none() => { [INFO] [stdout] 1261 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1262 | "error": "event_name is required for event memory type" [INFO] [stdout] 1263 | }))); [INFO] [stdout] 1264 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1267:17 [INFO] [stdout] | [INFO] [stdout] 1267 | / if data.get("platform").is_none() { [INFO] [stdout] 1268 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1269 | | "error": "platform is required for social memory type" [INFO] [stdout] 1270 | | }))); [INFO] [stdout] 1271 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1266 ~ "social" [INFO] [stdout] 1267 ~ if data.get("platform").is_none() => { [INFO] [stdout] 1268 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1269 | "error": "platform is required for social memory type" [INFO] [stdout] 1270 | }))); [INFO] [stdout] 1271 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1277:17 [INFO] [stdout] | [INFO] [stdout] 1277 | / if data.get("title").is_none() { [INFO] [stdout] 1278 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1279 | | "error": "title is required for information memory type" [INFO] [stdout] 1280 | | }))); [INFO] [stdout] 1281 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1276 ~ "information" [INFO] [stdout] 1277 ~ if data.get("title").is_none() => { [INFO] [stdout] 1278 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1279 | "error": "title is required for information memory type" [INFO] [stdout] 1280 | }))); [INFO] [stdout] 1281 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/main.rs:1308:87 [INFO] [stdout] | [INFO] [stdout] 1308 | let generated_id = format!("{}_{}", memory_type.to_uppercase(), Uuid::new_v4().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1610:12 [INFO] [stdout] | [INFO] [stdout] 1610 | if !data.get("created_at").is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("created_at").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1613:12 [INFO] [stdout] | [INFO] [stdout] 1613 | if !data.get("updated_at").is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("updated_at").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1616:12 [INFO] [stdout] | [INFO] [stdout] 1616 | if !data.get("timestamp").is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("timestamp").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1637:20 [INFO] [stdout] | [INFO] [stdout] 1637 | if !data.get("behavior_type").is_some() { data["behavior_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("behavior_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1638:20 [INFO] [stdout] | [INFO] [stdout] 1638 | if !data.get("action").is_some() { data["action"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("action").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1639:20 [INFO] [stdout] | [INFO] [stdout] 1639 | if !data.get("context").is_some() { data["context"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("context").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1640:20 [INFO] [stdout] | [INFO] [stdout] 1640 | if !data.get("channel").is_some() { data["channel"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("channel").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1641:20 [INFO] [stdout] | [INFO] [stdout] 1641 | if !data.get("duration_seconds").is_some() { data["duration_seconds"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("duration_seconds").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1642:20 [INFO] [stdout] | [INFO] [stdout] 1642 | if !data.get("metadata").is_some() { data["metadata"] = json!("{}"); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("metadata").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1645:20 [INFO] [stdout] | [INFO] [stdout] 1645 | if !data.get("preference_type").is_some() { data["preference_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("preference_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1646:20 [INFO] [stdout] | [INFO] [stdout] 1646 | if !data.get("category").is_some() { data["category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1647:20 [INFO] [stdout] | [INFO] [stdout] 1647 | if !data.get("subject").is_some() { data["subject"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("subject").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1648:20 [INFO] [stdout] | [INFO] [stdout] 1648 | if !data.get("strength").is_some() { data["strength"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("strength").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1649:20 [INFO] [stdout] | [INFO] [stdout] 1649 | if !data.get("is_active").is_some() { data["is_active"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("is_active").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1650:20 [INFO] [stdout] | [INFO] [stdout] 1650 | if !data.get("evidence_count").is_some() { data["evidence_count"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("evidence_count").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1651:20 [INFO] [stdout] | [INFO] [stdout] 1651 | if !data.get("last_evidence").is_some() { data["last_evidence"] = json!(current_timestamp); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("last_evidence").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1652:20 [INFO] [stdout] | [INFO] [stdout] 1652 | if !data.get("confidence_score").is_some() { data["confidence_score"] = json!(0.0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("confidence_score").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1653:20 [INFO] [stdout] | [INFO] [stdout] 1653 | if !data.get("source_channels").is_some() { data["source_channels"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("source_channels").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1656:20 [INFO] [stdout] | [INFO] [stdout] 1656 | if !data.get("desire_type").is_some() { data["desire_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("desire_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1657:20 [INFO] [stdout] | [INFO] [stdout] 1657 | if !data.get("category").is_some() { data["category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1658:20 [INFO] [stdout] | [INFO] [stdout] 1658 | if !data.get("description").is_some() { data["description"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("description").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1659:20 [INFO] [stdout] | [INFO] [stdout] 1659 | if !data.get("priority").is_some() { data["priority"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("priority").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1660:20 [INFO] [stdout] | [INFO] [stdout] 1660 | if !data.get("timeframe").is_some() { data["timeframe"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("timeframe").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1661:20 [INFO] [stdout] | [INFO] [stdout] 1661 | if !data.get("budget_range").is_some() { data["budget_range"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("budget_range").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1662:20 [INFO] [stdout] | [INFO] [stdout] 1662 | if !data.get("is_active").is_some() { data["is_active"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("is_active").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1665:20 [INFO] [stdout] | [INFO] [stdout] 1665 | if !data.get("rule_type").is_some() { data["rule_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("rule_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1666:20 [INFO] [stdout] | [INFO] [stdout] 1666 | if !data.get("category").is_some() { data["category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1667:20 [INFO] [stdout] | [INFO] [stdout] 1667 | if !data.get("rule_category").is_some() { data["rule_category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("rule_category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1668:20 [INFO] [stdout] | [INFO] [stdout] 1668 | if !data.get("rule_description").is_some() { data["rule_description"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("rule_description").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1669:20 [INFO] [stdout] | [INFO] [stdout] 1669 | if !data.get("enforcement").is_some() { data["enforcement"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("enforcement").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1670:20 [INFO] [stdout] | [INFO] [stdout] 1670 | if !data.get("exceptions").is_some() { data["exceptions"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("exceptions").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1671:20 [INFO] [stdout] | [INFO] [stdout] 1671 | if !data.get("condition").is_some() { data["condition"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("condition").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1672:20 [INFO] [stdout] | [INFO] [stdout] 1672 | if !data.get("action").is_some() { data["action"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("action").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1673:20 [INFO] [stdout] | [INFO] [stdout] 1673 | if !data.get("priority").is_some() { data["priority"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("priority").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1674:20 [INFO] [stdout] | [INFO] [stdout] 1674 | if !data.get("is_active").is_some() { data["is_active"] = json!(true); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("is_active").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1677:20 [INFO] [stdout] | [INFO] [stdout] 1677 | if !data.get("feedback_type").is_some() { data["feedback_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("feedback_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1678:20 [INFO] [stdout] | [INFO] [stdout] 1678 | if !data.get("subject").is_some() { data["subject"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("subject").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1679:20 [INFO] [stdout] | [INFO] [stdout] 1679 | if !data.get("rating").is_some() { data["rating"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("rating").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1680:20 [INFO] [stdout] | [INFO] [stdout] 1680 | if !data.get("sentiment").is_some() { data["sentiment"] = json!("neutral"); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("sentiment").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1681:20 [INFO] [stdout] | [INFO] [stdout] 1681 | if !data.get("channel").is_some() { data["channel"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("channel").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1682:20 [INFO] [stdout] | [INFO] [stdout] 1682 | if !data.get("response_required").is_some() { data["response_required"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("response_required").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1683:20 [INFO] [stdout] | [INFO] [stdout] 1683 | if !data.get("resolved").is_some() { data["resolved"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("resolved").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1684:20 [INFO] [stdout] | [INFO] [stdout] 1684 | if !data.get("feedback_category").is_some() { data["feedback_category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("feedback_category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1685:20 [INFO] [stdout] | [INFO] [stdout] 1685 | if !data.get("source").is_some() { data["source"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("source").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1686:20 [INFO] [stdout] | [INFO] [stdout] 1686 | if !data.get("is_resolved").is_some() { data["is_resolved"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("is_resolved").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/main.rs:1631:87 [INFO] [stdout] | [INFO] [stdout] 1631 | let generated_id = format!("{}_{}", memory_type.to_uppercase(), Uuid::new_v4().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/main.rs:1737:62 [INFO] [stdout] | [INFO] [stdout] 1737 | let interaction_id = format!("INT_{}", Uuid::new_v4().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/main.rs:1825:62 [INFO] [stdout] | [INFO] [stdout] 1825 | let interaction_id = format!("INT_{}", Uuid::new_v4().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/main.rs:2241:59 [INFO] [stdout] | [INFO] [stdout] 2241 | let waypoint_id = format!("WPT_{}", Uuid::new_v4().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/main.rs:2333:55 [INFO] [stdout] | [INFO] [stdout] 2333 | let path_id = format!("PTH_{}", Uuid::new_v4().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `.as_ref().map(|s| s.as_str())` on an `Option` value [INFO] [stdout] --> src/main.rs:3031:31 [INFO] [stdout] | [INFO] [stdout] 3031 | let delete_strategy = params.0.delete_strategy.as_ref() [INFO] [stdout] | _______________________________^ [INFO] [stdout] 3032 | | .map(|s| s.as_str()) [INFO] [stdout] | |________________________________^ help: consider using as_deref: `params.0.delete_strategy.as_deref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref [INFO] [stdout] = note: `#[warn(clippy::option_as_ref_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1315:20 [INFO] [stdout] | [INFO] [stdout] 1315 | if !data.get("product_category").is_some() { data["product_category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("product_category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1316:20 [INFO] [stdout] | [INFO] [stdout] 1316 | if !data.get("currency").is_some() { data["currency"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("currency").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1317:20 [INFO] [stdout] | [INFO] [stdout] 1317 | if !data.get("availability").is_some() { data["availability"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("availability").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1318:20 [INFO] [stdout] | [INFO] [stdout] 1318 | if !data.get("description").is_some() { data["description"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("description").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1319:20 [INFO] [stdout] | [INFO] [stdout] 1319 | if !data.get("competitor_analysis").is_some() { data["competitor_analysis"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("competitor_analysis").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1322:20 [INFO] [stdout] | [INFO] [stdout] 1322 | if !data.get("price").is_some() { data["price"] = json!(0.0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("price").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1325:20 [INFO] [stdout] | [INFO] [stdout] 1325 | if !data.get("specifications").is_some() { data["specifications"] = json!("{}"); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("specifications").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1326:20 [INFO] [stdout] | [INFO] [stdout] 1326 | if !data.get("seasonal_trends").is_some() { data["seasonal_trends"] = json!("{}"); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("seasonal_trends").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1330:20 [INFO] [stdout] | [INFO] [stdout] 1330 | if !data.get("features").is_some() { data["features"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("features").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1331:20 [INFO] [stdout] | [INFO] [stdout] 1331 | if !data.get("tags").is_some() { data["tags"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tags").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1332:20 [INFO] [stdout] | [INFO] [stdout] 1332 | if !data.get("seo_keywords").is_some() { data["seo_keywords"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("seo_keywords").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1336:20 [INFO] [stdout] | [INFO] [stdout] 1336 | if !data.get("service_category").is_some() { data["service_category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("service_category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1337:20 [INFO] [stdout] | [INFO] [stdout] 1337 | if !data.get("currency").is_some() { data["currency"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("currency").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1338:20 [INFO] [stdout] | [INFO] [stdout] 1338 | if !data.get("availability").is_some() { data["availability"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("availability").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1339:20 [INFO] [stdout] | [INFO] [stdout] 1339 | if !data.get("description").is_some() { data["description"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("description").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1342:20 [INFO] [stdout] | [INFO] [stdout] 1342 | if !data.get("price").is_some() { data["price"] = json!(0.0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("price").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1343:20 [INFO] [stdout] | [INFO] [stdout] 1343 | if !data.get("duration_minutes").is_some() { data["duration_minutes"] = json!(60); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("duration_minutes").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1346:20 [INFO] [stdout] | [INFO] [stdout] 1346 | if !data.get("requirements").is_some() { data["requirements"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("requirements").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1347:20 [INFO] [stdout] | [INFO] [stdout] 1347 | if !data.get("deliverables").is_some() { data["deliverables"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("deliverables").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1348:20 [INFO] [stdout] | [INFO] [stdout] 1348 | if !data.get("tags").is_some() { data["tags"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tags").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1352:20 [INFO] [stdout] | [INFO] [stdout] 1352 | if !data.get("location_name").is_some() { data["location_name"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("location_name").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1353:20 [INFO] [stdout] | [INFO] [stdout] 1353 | if !data.get("address").is_some() { data["address"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("address").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1354:20 [INFO] [stdout] | [INFO] [stdout] 1354 | if !data.get("city").is_some() { data["city"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("city").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1355:20 [INFO] [stdout] | [INFO] [stdout] 1355 | if !data.get("state").is_some() { data["state"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("state").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1356:20 [INFO] [stdout] | [INFO] [stdout] 1356 | if !data.get("country").is_some() { data["country"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("country").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1357:20 [INFO] [stdout] | [INFO] [stdout] 1357 | if !data.get("postal_code").is_some() { data["postal_code"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("postal_code").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1358:20 [INFO] [stdout] | [INFO] [stdout] 1358 | if !data.get("location_type").is_some() { data["location_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("location_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1359:20 [INFO] [stdout] | [INFO] [stdout] 1359 | if !data.get("parking_info").is_some() { data["parking_info"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("parking_info").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1362:20 [INFO] [stdout] | [INFO] [stdout] 1362 | if !data.get("latitude").is_some() { data["latitude"] = json!(0.0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("latitude").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1363:20 [INFO] [stdout] | [INFO] [stdout] 1363 | if !data.get("longitude").is_some() { data["longitude"] = json!(0.0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("longitude").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1366:20 [INFO] [stdout] | [INFO] [stdout] 1366 | if !data.get("accessibility").is_some() { data["accessibility"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("accessibility").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1370:20 [INFO] [stdout] | [INFO] [stdout] 1370 | if !data.get("schedule_type").is_some() { data["schedule_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("schedule_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1371:20 [INFO] [stdout] | [INFO] [stdout] 1371 | if !data.get("monday_open").is_some() { data["monday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("monday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1372:20 [INFO] [stdout] | [INFO] [stdout] 1372 | if !data.get("monday_close").is_some() { data["monday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("monday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1373:20 [INFO] [stdout] | [INFO] [stdout] 1373 | if !data.get("tuesday_open").is_some() { data["tuesday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tuesday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1374:20 [INFO] [stdout] | [INFO] [stdout] 1374 | if !data.get("tuesday_close").is_some() { data["tuesday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tuesday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1375:20 [INFO] [stdout] | [INFO] [stdout] 1375 | if !data.get("wednesday_open").is_some() { data["wednesday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("wednesday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1376:20 [INFO] [stdout] | [INFO] [stdout] 1376 | if !data.get("wednesday_close").is_some() { data["wednesday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("wednesday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1377:20 [INFO] [stdout] | [INFO] [stdout] 1377 | if !data.get("thursday_open").is_some() { data["thursday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("thursday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1378:20 [INFO] [stdout] | [INFO] [stdout] 1378 | if !data.get("thursday_close").is_some() { data["thursday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("thursday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1379:20 [INFO] [stdout] | [INFO] [stdout] 1379 | if !data.get("friday_open").is_some() { data["friday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("friday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1380:20 [INFO] [stdout] | [INFO] [stdout] 1380 | if !data.get("friday_close").is_some() { data["friday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("friday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1381:20 [INFO] [stdout] | [INFO] [stdout] 1381 | if !data.get("saturday_open").is_some() { data["saturday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("saturday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1382:20 [INFO] [stdout] | [INFO] [stdout] 1382 | if !data.get("saturday_close").is_some() { data["saturday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("saturday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1383:20 [INFO] [stdout] | [INFO] [stdout] 1383 | if !data.get("sunday_open").is_some() { data["sunday_open"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("sunday_open").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1384:20 [INFO] [stdout] | [INFO] [stdout] 1384 | if !data.get("sunday_close").is_some() { data["sunday_close"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("sunday_close").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1385:20 [INFO] [stdout] | [INFO] [stdout] 1385 | if !data.get("timezone").is_some() { data["timezone"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("timezone").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1388:20 [INFO] [stdout] | [INFO] [stdout] 1388 | if !data.get("exceptions").is_some() { data["exceptions"] = json!("{}"); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("exceptions").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1392:20 [INFO] [stdout] | [INFO] [stdout] 1392 | if !data.get("handle").is_some() { data["handle"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("handle").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1393:20 [INFO] [stdout] | [INFO] [stdout] 1393 | if !data.get("profile_url").is_some() { data["profile_url"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("profile_url").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1394:20 [INFO] [stdout] | [INFO] [stdout] 1394 | if !data.get("description").is_some() { data["description"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("description").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1395:20 [INFO] [stdout] | [INFO] [stdout] 1395 | if !data.get("contact_info").is_some() { data["contact_info"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("contact_info").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1398:20 [INFO] [stdout] | [INFO] [stdout] 1398 | if !data.get("follower_count").is_some() { data["follower_count"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("follower_count").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1399:20 [INFO] [stdout] | [INFO] [stdout] 1399 | if !data.get("post_count").is_some() { data["post_count"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("post_count").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1402:20 [INFO] [stdout] | [INFO] [stdout] 1402 | if !data.get("last_updated").is_some() { data["last_updated"] = json!(timestamp); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("last_updated").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1406:20 [INFO] [stdout] | [INFO] [stdout] 1406 | if !data.get("policy_type").is_some() { data["policy_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("policy_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1407:20 [INFO] [stdout] | [INFO] [stdout] 1407 | if !data.get("content").is_some() { data["content"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("content").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1408:20 [INFO] [stdout] | [INFO] [stdout] 1408 | if !data.get("version").is_some() { data["version"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("version").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1411:20 [INFO] [stdout] | [INFO] [stdout] 1411 | if !data.get("is_active").is_some() { data["is_active"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("is_active").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1414:20 [INFO] [stdout] | [INFO] [stdout] 1414 | if !data.get("tags").is_some() { data["tags"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tags").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1417:20 [INFO] [stdout] | [INFO] [stdout] 1417 | if !data.get("effective_date").is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("effective_date").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1423:20 [INFO] [stdout] | [INFO] [stdout] 1423 | if !data.get("event_type").is_some() { data["event_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("event_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1424:20 [INFO] [stdout] | [INFO] [stdout] 1424 | if !data.get("description").is_some() { data["description"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("description").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1425:20 [INFO] [stdout] | [INFO] [stdout] 1425 | if !data.get("location").is_some() { data["location"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("location").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1428:20 [INFO] [stdout] | [INFO] [stdout] 1428 | if !data.get("capacity").is_some() { data["capacity"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("capacity").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1431:20 [INFO] [stdout] | [INFO] [stdout] 1431 | if !data.get("registration_required").is_some() { data["registration_required"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("registration_required").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1434:20 [INFO] [stdout] | [INFO] [stdout] 1434 | if !data.get("tags").is_some() { data["tags"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tags").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1437:20 [INFO] [stdout] | [INFO] [stdout] 1437 | if !data.get("start_date").is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("start_date").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1440:20 [INFO] [stdout] | [INFO] [stdout] 1440 | if !data.get("end_date").is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("end_date").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1446:20 [INFO] [stdout] | [INFO] [stdout] 1446 | if !data.get("info_type").is_some() { data["info_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("info_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1447:20 [INFO] [stdout] | [INFO] [stdout] 1447 | if !data.get("content").is_some() { data["content"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("content").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1448:20 [INFO] [stdout] | [INFO] [stdout] 1448 | if !data.get("category").is_some() { data["category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1451:20 [INFO] [stdout] | [INFO] [stdout] 1451 | if !data.get("tags").is_some() { data["tags"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("tags").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1232:17 [INFO] [stdout] | [INFO] [stdout] 1232 | / if data.get("product_name").is_none() { [INFO] [stdout] 1233 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1234 | | "error": "product_name is required for product memory type" [INFO] [stdout] 1235 | | }))); [INFO] [stdout] 1236 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1231 ~ "product" [INFO] [stdout] 1232 ~ if data.get("product_name").is_none() => { [INFO] [stdout] 1233 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1234 | "error": "product_name is required for product memory type" [INFO] [stdout] 1235 | }))); [INFO] [stdout] 1236 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1239:17 [INFO] [stdout] | [INFO] [stdout] 1239 | / if data.get("service_name").is_none() { [INFO] [stdout] 1240 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1241 | | "error": "service_name is required for service memory type" [INFO] [stdout] 1242 | | }))); [INFO] [stdout] 1243 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1238 ~ "service" [INFO] [stdout] 1239 ~ if data.get("service_name").is_none() => { [INFO] [stdout] 1240 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1241 | "error": "service_name is required for service memory type" [INFO] [stdout] 1242 | }))); [INFO] [stdout] 1243 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1246:17 [INFO] [stdout] | [INFO] [stdout] 1246 | / if data.get("location_name").is_none() { [INFO] [stdout] 1247 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1248 | | "error": "location_name is required for location memory type" [INFO] [stdout] 1249 | | }))); [INFO] [stdout] 1250 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1245 ~ "location" [INFO] [stdout] 1246 ~ if data.get("location_name").is_none() => { [INFO] [stdout] 1247 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1248 | "error": "location_name is required for location memory type" [INFO] [stdout] 1249 | }))); [INFO] [stdout] 1250 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1253:17 [INFO] [stdout] | [INFO] [stdout] 1253 | / if data.get("policy_name").is_none() { [INFO] [stdout] 1254 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1255 | | "error": "policy_name is required for policy memory type" [INFO] [stdout] 1256 | | }))); [INFO] [stdout] 1257 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1252 ~ "policy" [INFO] [stdout] 1253 ~ if data.get("policy_name").is_none() => { [INFO] [stdout] 1254 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1255 | "error": "policy_name is required for policy memory type" [INFO] [stdout] 1256 | }))); [INFO] [stdout] 1257 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1260:17 [INFO] [stdout] | [INFO] [stdout] 1260 | / if data.get("event_name").is_none() { [INFO] [stdout] 1261 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1262 | | "error": "event_name is required for event memory type" [INFO] [stdout] 1263 | | }))); [INFO] [stdout] 1264 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1259 ~ "event" [INFO] [stdout] 1260 ~ if data.get("event_name").is_none() => { [INFO] [stdout] 1261 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1262 | "error": "event_name is required for event memory type" [INFO] [stdout] 1263 | }))); [INFO] [stdout] 1264 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1267:17 [INFO] [stdout] | [INFO] [stdout] 1267 | / if data.get("platform").is_none() { [INFO] [stdout] 1268 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1269 | | "error": "platform is required for social memory type" [INFO] [stdout] 1270 | | }))); [INFO] [stdout] 1271 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1266 ~ "social" [INFO] [stdout] 1267 ~ if data.get("platform").is_none() => { [INFO] [stdout] 1268 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1269 | "error": "platform is required for social memory type" [INFO] [stdout] 1270 | }))); [INFO] [stdout] 1271 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:1277:17 [INFO] [stdout] | [INFO] [stdout] 1277 | / if data.get("title").is_none() { [INFO] [stdout] 1278 | | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1279 | | "error": "title is required for information memory type" [INFO] [stdout] 1280 | | }))); [INFO] [stdout] 1281 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1276 ~ "information" [INFO] [stdout] 1277 ~ if data.get("title").is_none() => { [INFO] [stdout] 1278 | return Ok(CallToolResult::structured_error(json!({ [INFO] [stdout] 1279 | "error": "title is required for information memory type" [INFO] [stdout] 1280 | }))); [INFO] [stdout] 1281 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/main.rs:1308:87 [INFO] [stdout] | [INFO] [stdout] 1308 | let generated_id = format!("{}_{}", memory_type.to_uppercase(), Uuid::new_v4().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1610:12 [INFO] [stdout] | [INFO] [stdout] 1610 | if !data.get("created_at").is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("created_at").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1613:12 [INFO] [stdout] | [INFO] [stdout] 1613 | if !data.get("updated_at").is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("updated_at").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1616:12 [INFO] [stdout] | [INFO] [stdout] 1616 | if !data.get("timestamp").is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("timestamp").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1637:20 [INFO] [stdout] | [INFO] [stdout] 1637 | if !data.get("behavior_type").is_some() { data["behavior_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("behavior_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1638:20 [INFO] [stdout] | [INFO] [stdout] 1638 | if !data.get("action").is_some() { data["action"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("action").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1639:20 [INFO] [stdout] | [INFO] [stdout] 1639 | if !data.get("context").is_some() { data["context"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("context").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1640:20 [INFO] [stdout] | [INFO] [stdout] 1640 | if !data.get("channel").is_some() { data["channel"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("channel").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1641:20 [INFO] [stdout] | [INFO] [stdout] 1641 | if !data.get("duration_seconds").is_some() { data["duration_seconds"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("duration_seconds").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1642:20 [INFO] [stdout] | [INFO] [stdout] 1642 | if !data.get("metadata").is_some() { data["metadata"] = json!("{}"); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("metadata").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1645:20 [INFO] [stdout] | [INFO] [stdout] 1645 | if !data.get("preference_type").is_some() { data["preference_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("preference_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1646:20 [INFO] [stdout] | [INFO] [stdout] 1646 | if !data.get("category").is_some() { data["category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1647:20 [INFO] [stdout] | [INFO] [stdout] 1647 | if !data.get("subject").is_some() { data["subject"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("subject").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1648:20 [INFO] [stdout] | [INFO] [stdout] 1648 | if !data.get("strength").is_some() { data["strength"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("strength").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1649:20 [INFO] [stdout] | [INFO] [stdout] 1649 | if !data.get("is_active").is_some() { data["is_active"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("is_active").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1650:20 [INFO] [stdout] | [INFO] [stdout] 1650 | if !data.get("evidence_count").is_some() { data["evidence_count"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("evidence_count").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1651:20 [INFO] [stdout] | [INFO] [stdout] 1651 | if !data.get("last_evidence").is_some() { data["last_evidence"] = json!(current_timestamp); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("last_evidence").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1652:20 [INFO] [stdout] | [INFO] [stdout] 1652 | if !data.get("confidence_score").is_some() { data["confidence_score"] = json!(0.0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("confidence_score").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1653:20 [INFO] [stdout] | [INFO] [stdout] 1653 | if !data.get("source_channels").is_some() { data["source_channels"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("source_channels").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1656:20 [INFO] [stdout] | [INFO] [stdout] 1656 | if !data.get("desire_type").is_some() { data["desire_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("desire_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1657:20 [INFO] [stdout] | [INFO] [stdout] 1657 | if !data.get("category").is_some() { data["category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1658:20 [INFO] [stdout] | [INFO] [stdout] 1658 | if !data.get("description").is_some() { data["description"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("description").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1659:20 [INFO] [stdout] | [INFO] [stdout] 1659 | if !data.get("priority").is_some() { data["priority"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("priority").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1660:20 [INFO] [stdout] | [INFO] [stdout] 1660 | if !data.get("timeframe").is_some() { data["timeframe"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("timeframe").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1661:20 [INFO] [stdout] | [INFO] [stdout] 1661 | if !data.get("budget_range").is_some() { data["budget_range"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("budget_range").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1662:20 [INFO] [stdout] | [INFO] [stdout] 1662 | if !data.get("is_active").is_some() { data["is_active"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("is_active").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1665:20 [INFO] [stdout] | [INFO] [stdout] 1665 | if !data.get("rule_type").is_some() { data["rule_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("rule_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1666:20 [INFO] [stdout] | [INFO] [stdout] 1666 | if !data.get("category").is_some() { data["category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1667:20 [INFO] [stdout] | [INFO] [stdout] 1667 | if !data.get("rule_category").is_some() { data["rule_category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("rule_category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1668:20 [INFO] [stdout] | [INFO] [stdout] 1668 | if !data.get("rule_description").is_some() { data["rule_description"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("rule_description").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1669:20 [INFO] [stdout] | [INFO] [stdout] 1669 | if !data.get("enforcement").is_some() { data["enforcement"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("enforcement").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1670:20 [INFO] [stdout] | [INFO] [stdout] 1670 | if !data.get("exceptions").is_some() { data["exceptions"] = json!([]); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("exceptions").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1671:20 [INFO] [stdout] | [INFO] [stdout] 1671 | if !data.get("condition").is_some() { data["condition"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("condition").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1672:20 [INFO] [stdout] | [INFO] [stdout] 1672 | if !data.get("action").is_some() { data["action"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("action").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1673:20 [INFO] [stdout] | [INFO] [stdout] 1673 | if !data.get("priority").is_some() { data["priority"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("priority").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1674:20 [INFO] [stdout] | [INFO] [stdout] 1674 | if !data.get("is_active").is_some() { data["is_active"] = json!(true); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("is_active").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1677:20 [INFO] [stdout] | [INFO] [stdout] 1677 | if !data.get("feedback_type").is_some() { data["feedback_type"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("feedback_type").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1678:20 [INFO] [stdout] | [INFO] [stdout] 1678 | if !data.get("subject").is_some() { data["subject"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("subject").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1679:20 [INFO] [stdout] | [INFO] [stdout] 1679 | if !data.get("rating").is_some() { data["rating"] = json!(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("rating").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1680:20 [INFO] [stdout] | [INFO] [stdout] 1680 | if !data.get("sentiment").is_some() { data["sentiment"] = json!("neutral"); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("sentiment").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1681:20 [INFO] [stdout] | [INFO] [stdout] 1681 | if !data.get("channel").is_some() { data["channel"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("channel").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1682:20 [INFO] [stdout] | [INFO] [stdout] 1682 | if !data.get("response_required").is_some() { data["response_required"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("response_required").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1683:20 [INFO] [stdout] | [INFO] [stdout] 1683 | if !data.get("resolved").is_some() { data["resolved"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("resolved").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1684:20 [INFO] [stdout] | [INFO] [stdout] 1684 | if !data.get("feedback_category").is_some() { data["feedback_category"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("feedback_category").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1685:20 [INFO] [stdout] | [INFO] [stdout] 1685 | if !data.get("source").is_some() { data["source"] = json!(""); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("source").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1686:20 [INFO] [stdout] | [INFO] [stdout] 1686 | if !data.get("is_resolved").is_some() { data["is_resolved"] = json!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("is_resolved").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/main.rs:1631:87 [INFO] [stdout] | [INFO] [stdout] 1631 | let generated_id = format!("{}_{}", memory_type.to_uppercase(), Uuid::new_v4().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/main.rs:1737:62 [INFO] [stdout] | [INFO] [stdout] 1737 | let interaction_id = format!("INT_{}", Uuid::new_v4().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/main.rs:1825:62 [INFO] [stdout] | [INFO] [stdout] 1825 | let interaction_id = format!("INT_{}", Uuid::new_v4().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/main.rs:2241:59 [INFO] [stdout] | [INFO] [stdout] 2241 | let waypoint_id = format!("WPT_{}", Uuid::new_v4().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/main.rs:2333:55 [INFO] [stdout] | [INFO] [stdout] 2333 | let path_id = format!("PTH_{}", Uuid::new_v4().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `.as_ref().map(|s| s.as_str())` on an `Option` value [INFO] [stdout] --> src/main.rs:3031:31 [INFO] [stdout] | [INFO] [stdout] 3031 | let delete_strategy = params.0.delete_strategy.as_ref() [INFO] [stdout] | _______________________________^ [INFO] [stdout] 3032 | | .map(|s| s.as_str()) [INFO] [stdout] | |________________________________^ help: consider using as_deref: `params.0.delete_strategy.as_deref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref [INFO] [stdout] = note: `#[warn(clippy::option_as_ref_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 09s [INFO] running `Command { std: "docker" "inspect" "107c3aeec91e5b0a806e5ea07a3ea4a66f3036c89dbc74673511dd90b0547ab8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "107c3aeec91e5b0a806e5ea07a3ea4a66f3036c89dbc74673511dd90b0547ab8", kill_on_drop: false }` [INFO] [stdout] 107c3aeec91e5b0a806e5ea07a3ea4a66f3036c89dbc74673511dd90b0547ab8